Skip to main content

Module color

Module color 

Source
Expand description

Color metadata: re-exported from mediaframe::color.

mediadecode used to define these enums locally (per ITU-T H.273); they now live in the lowest-layer mediaframe crate so colconv, mediadecode, and scenesdetect share a single canonical definition.

Upstream renamed Color{Matrix,Primaries,Transfer,Range,Info} to {Matrix,Primaries,Transfer,DynamicRange,Info} during the videoframe → mediaframe rename; the disambiguated Color* names are kept here as re-export aliases so mediadecode’s public surface and every downstream consumer (mediadecode-ffmpeg, …) stay stable.

Structs§

ColorInfo
Bundled color metadata that rides on every video frame.

Enums§

ChromaLocation
Chroma sample location (for subsampled YUV formats).
ColorMatrix
Color matrix coefficients per ITU-T H.273 MatrixCoefficients (Table 4) / ISO/IEC 23001-8.
ColorPrimaries
Color primaries per ITU-T H.273 ColourPrimaries (Table 2) / ISO/IEC 23001-8.
ColorRange
Sample range — limited (TV / studio swing) vs. full (PC).
ColorTransfer
Transfer characteristics per ITU-T H.273 (Table 3).