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.
#include <player/YiImageMapThumbnails.h>
Public Member Functions | |
| CYIImageMapThumbnails (CYIImageView *pThumbnailNode) | |
| virtual | ~CYIImageMapThumbnails () |
| virtual void | Init (const CYIString &path) override |
| virtual void | Update (uint64_t uTime) override |
Public Member Functions inherited from IYIThumbnails | |
| IYIThumbnails (CYIImageView *pThumbnailNode) | |
| virtual | ~IYIThumbnails () |
Additional Inherited Members | |
Protected Member Functions inherited from IYIThumbnails | |
| void | SetFilePath (const CYIString &path) |
Protected Attributes inherited from IYIThumbnails | |
| 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 uTime milliseconds
Implements IYIThumbnails.