Expand description
Thumbnail and preview image generation.
This module provides configuration structures and utilities for generating thumbnail images or sprite sheets from video content. Actual pixel decoding is handled by the caller; this module focuses on timestamp selection, sizing, and nearest-neighbour scaling.
Structs§
- Thumbnail
- A single generated thumbnail.
- Thumbnail
Config - Configuration for thumbnail generation.
Enums§
- Thumbnail
Format - Output format for generated thumbnails.
- Thumbnail
Strategy - Strategy for selecting thumbnail timestamps.
Functions§
- compute_
thumbnail_ timestamps - Computes a list of timestamps (in milliseconds) at which to capture thumbnails.
- compute_
uniform_ timestamps - Computes
countuniformly spaced timestamps acrossduration_ms. - scale_
thumbnail - Scales a source image buffer to the destination dimensions using nearest-neighbour sampling.