Skip to main content

Module thumbnail

Module thumbnail 

Source
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.
ThumbnailConfig
Configuration for thumbnail generation.

Enums§

ThumbnailFormat
Output format for generated thumbnails.
ThumbnailStrategy
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 count uniformly spaced timestamps across duration_ms.
scale_thumbnail
Scales a source image buffer to the destination dimensions using nearest-neighbour sampling.