pub fn encode_slice_data( w: &mut BitWriter, cfg: &EncoderConfig, frame: &YuvFrame, qp: u8, is_p: bool, refs: &[RefFrame], qpo: &[i32], ) -> RefFrame