Skip to main content

encode_inter_frame_refresh

Function encode_inter_frame_refresh 

Source
pub fn encode_inter_frame_refresh(
    src: &Yuv420Frame,
    last: &Reconstruction,
    refresh_frame_flags: u8,
) -> (Vec<u8>, Reconstruction)
Expand description

LAST-only ME P-frame with a custom refresh_frame_flags bitmask.

Bit i writes this recon into reference slot i. Common values: 0x01 (LAST/slot 0, default), 0x04 (ALTREF/slot 2 only — leaves LAST/GOLDEN).