Skip to main content

invalidate_reference

Function invalidate_reference 

Source
pub fn invalidate_reference(stripes: &mut [StripeState], frame_id: u16) -> bool
Expand description

How many horizontal stripes a frame of height is split into, which is the choice of how much encode parallelism to spend on it.

A full-frame session is one contiguous stream and so a single stripe; otherwise the frame fans out across cores, held to MAX_STRIPES and bounded so no stripe is shorter than a macroblock row. Both the encoder and the settings line report from here, so what is logged is what is encoded. Leave frame frame_id and every frame after it out of every stripe’s predictions. False when an encoder cannot, and the caller codes a key frame instead.