VLC 4.0.0-dev
Loading...
Searching...
No Matches
libvlc_thumbnailer_request_t Struct Reference

struct defining a thumbnailer request More...

#include <libvlc_parser.h>

Collaboration diagram for libvlc_thumbnailer_request_t:
[legend]

Data Fields

uint32_t version
 Version of libvlc_thumbnailer_request_t.
libvlc_media_tmedia
 Media source of the thumbnail.
unsigned int width
 Thumbnail width (0 by default).
unsigned int height
 Thumbnail height (0 by default).
bool crop
 True to enable crop (false by default).
libvlc_picture_type_t type
 Picture type (libvlc_picture_Argb by default).
struct { 
   libvlc_thumbnailer_seek_type_t   type 
 by time or by position (libvlc_thumbnailer_seek_none by default) More...
   libvlc_thumbnailer_seek_value_t   value 
 Seek value, the active member is selected by type. More...
   libvlc_thumbnailer_seek_speed_t   speed 
 precise or fast mode (libvlc_media_thumbnail_seek_precise by default) More...
seek
 Seek parameters.
bool hw_dec
 True to enable hardware decoder (false by default).

Detailed Description

struct defining a thumbnailer request

Field Documentation

◆ crop

bool libvlc_thumbnailer_request_t::crop

True to enable crop (false by default).

Note
Only meaningful when both width and height are non-zero (hardcoded thumbnail size); ignored otherwise.
Optional (can be false), available since version 0

◆ height

unsigned int libvlc_thumbnailer_request_t::height

Thumbnail height (0 by default).

Note
The resulting thumbnail size can either be:
  • Hardcoded by providing both width & height. In which case, the image will be stretched to match the provided aspect ratio, or cropped if crop is true.
  • Derived from the media aspect ratio if only width or height is provided and the other one is set to 0.
  • Of the same size as the media if both width and height are set to 0.
Note
Optional (can be 0), available since version 0

◆ hw_dec

bool libvlc_thumbnailer_request_t::hw_dec

True to enable hardware decoder (false by default).

Note
Optional (can be false), available since version 0

◆ media

libvlc_media_t* libvlc_thumbnailer_request_t::media

Media source of the thumbnail.

Note
Mandatory (can't be NULL), available since version 0

◆ [struct]

struct { ... } libvlc_thumbnailer_request_t::seek

Seek parameters.

Note
Optional (can be zero-initialized, in which case the members will be set to their default values), available since version 0

◆ speed

libvlc_thumbnailer_seek_speed_t libvlc_thumbnailer_request_t::speed

precise or fast mode (libvlc_media_thumbnail_seek_precise by default)

◆ type [1/2]

libvlc_thumbnailer_seek_type_t libvlc_thumbnailer_request_t::type

by time or by position (libvlc_thumbnailer_seek_none by default)

◆ type [2/2]

libvlc_picture_type_t libvlc_thumbnailer_request_t::type

Picture type (libvlc_picture_Argb by default).

Note
Optional (can be 0), available since version 0

◆ value

libvlc_thumbnailer_seek_value_t libvlc_thumbnailer_request_t::value

Seek value, the active member is selected by type.

Note
time by default, although it won't be used if type is libvlc_thumbnailer_seek_none

◆ version

uint32_t libvlc_thumbnailer_request_t::version

◆ width

unsigned int libvlc_thumbnailer_request_t::width

Thumbnail width (0 by default).

Note
The resulting thumbnail size can either be:
  • Hardcoded by providing both width & height. In which case, the image will be stretched to match the provided aspect ratio, or cropped if crop is true.
  • Derived from the media aspect ratio if only width or height is provided and the other one is set to 0.
  • Of the same size as the media if both width and height are set to 0.
Note
Optional (can be 0), available since version 0

The documentation for this struct was generated from the following file: