Implementation of thumbnails using Image Map file format.
In the Image Map format, the thumbnails exist in one image file.
We assume no vertical and/or horizontal padding. Sequence of images are in raster scan order. Basic sanity check is done to make sure an integer multiple of subimages fit in the image.
player-thumbnails
optional module. #include <player/YiImageMapThumbnails.h>
Public Member Functions | |
CYIImageMapThumbnails (CYIImageView *pThumbnailNode) | |
virtual | ~CYIImageMapThumbnails () |
virtual void | Init (const CYIString &path) override |
virtual void | Update (uint64_t time) override |
![]() | |
IYIThumbnails (CYIImageView *pThumbnailNode) | |
virtual | ~IYIThumbnails () |
Additional Inherited Members | |
![]() | |
void | SetFilePath (const CYIString &path) |
![]() | |
CYIString | m_AbsolutePath |
CYIImageView * | m_pThumbnailNode |
CYIImageMapThumbnails::CYIImageMapThumbnails | ( | CYIImageView * | pThumbnailNode | ) |
|
virtual |
|
overridevirtual |
Initialize with an absolute path to the thumbnails file on disk.
Subclasses can provide overloads of `Init` if they choose.
Implements IYIThumbnails.
|
overridevirtual |
Update the node with the appropriate thumbnail content when the video is at time milliseconds
Implements IYIThumbnails.