Skip to main content

encode_inter_frame

Function encode_inter_frame 

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

Encode a P-frame with per-block SAD motion search + 4×4 DCT residual.

Each block picks an even-Q3 MV via SAD search, then codes NEARESTMV / NEARMV / ZEROMV / NEWMV plus residual against EIGHTTAP prediction from LAST.