pub struct StillDecodeRequest<'a> {
pub config: CodecConfig<'a>,
pub payload: &'a [u8],
pub width: u32,
pub height: u32,
pub bit_depth: u8,
pub chroma: ChromaSubsampling,
}Expand description
One still-frame decode request: the codec configuration (which implies the codec), the coded payload, and the caller’s advisory picture description.
payload framing follows the config variant: a length-prefixed NAL stream
for CodecConfig::Hvcc (the prefix width is inside the hvcC record),
an OBU stream for CodecConfig::Av1c.
width/height/bit_depth/chroma are advisory: they describe what
the container claims (ispe, hvcC/av1C fields) so a backend can size
its output surfaces up front, but the coded bitstream is authoritative and
the returned DecodedFrame carries the real geometry.
Fields§
§config: CodecConfig<'a>The codec configuration record; its variant is the codec.
payload: &'a [u8]The coded picture payload (length-prefixed NAL units or OBUs — see the type-level docs).
width: u32Advisory coded picture width in pixels (0 = unknown).
height: u32Advisory coded picture height in pixels (0 = unknown).
bit_depth: u8Advisory per-sample bit depth (from the configuration record).
chroma: ChromaSubsamplingAdvisory chroma subsampling (from the configuration record).