Loading...
Searching...
No Matches
Video::VideoThumbnailer Class Reference
Inheritance diagram for Video::VideoThumbnailer:
Video::VideoMetadata Video::ImageFormat

Public Member Functions

 VideoThumbnailer (QString filePath)
 
void requestThumbnails (int64_t req, QVector< int64_t > flicks)
 
void requestHeight (int height)
 Decode the thumbnails at that height; the width follows the video's aspect.
 
void thumbnailReady (int64_t req, int64_t flicks, QImage thumb)
 
QImage process (int64_t flicks)
 
double aspectRatio () const noexcept
 
QSize thumbnailSize () const noexcept
 

Static Public Attributes

static constexpr int defaultThumbnailHeight = 55
 

Additional Inherited Members

- Public Attributes inherited from Video::ImageFormat
int width {}
 
int height {}
 
AVPixelFormat pixel_format = AVPixelFormat(-1)
 
AVPixelFormat hwaccel_sw_format = AVPixelFormat(-1)
 
VideoPixelFormat native_format = VideoPixelFormat::Unknown
 
AVColorRange color_range = AVCOL_RANGE_UNSPECIFIED
 
AVColorPrimaries color_primaries = AVCOL_PRI_UNSPECIFIED
 
AVColorTransferCharacteristic color_trc = AVCOL_TRC_UNSPECIFIED
 
AVColorSpace color_space = AVCOL_SPC_UNSPECIFIED
 
AVChromaLocation chroma_location = AVCHROMA_LOC_UNSPECIFIED
 
AVMasteringDisplayMetadata mastering_display {}
 
std::optional< AVContentLightMetadata > content_light {}
 
Interlacing interlacing = ::Video::Interlacing::None
 
OutputFormat output_format = ::Video::OutputFormat::SDR
 
Tonemap tonemap = ::Video::Tonemap::Auto
 
Deinterlace deinterlace = ::Video::Deinterlace::Weave
 

Member Function Documentation

◆ thumbnailSize()

QSize Video::VideoThumbnailer::thumbnailSize ( ) const
inlinenoexcept

Resolution the frames are currently decoded at, for the thumbnailer's own thread: the layer asks for a height and scales what it gets to the slot.


The documentation for this class was generated from the following files: