#[repr(C)]pub struct moq_video_decoder_output {
pub max_age_us: u64,
pub format: u32,
pub width: u32,
pub height: u32,
}Expand description
Decode-side configuration the caller passes to moq_decode_video.
format selects the CPU pixel layout of each moq_video_frame (I420
is width * height * 3 / 2 bytes, RGBA is width * height * 4 bytes),
and width/height select its size: zero both for the stream’s native
size, otherwise both must be even and non-zero.
This struct is versioned by recompilation, not by reserved fields: adding a
field changes its layout, so rebuild callers against the moq.h that ships
with the libmoq.a they link.
Fields§
§max_age_us: u64Upper bound on buffering before skipping a stalled group, in
microseconds. Same congestion-control knob as
moq_consume_video’s max_age_us. 0 = skip aggressively
(the moq-mux default); set to your playout buffer for a softer skip.
format: u32moq_video_pixel_format discriminant. Unknown values fail
moq_decode_video rather than decoding into an assumed layout.
width: u32Target width in pixels. 0 with height 0 means the native size.
height: u32Target height in pixels. 0 with width 0 means the native size.