Function encode_block_post_cdef
Source pub fn encode_block_post_cdef<T: Pixel, W: Writer>(
fi: &FrameInvariants<T>,
ts: &mut TileStateMut<'_, T>,
cw: &mut ContextWriter<'_>,
w: &mut W,
luma_mode: PredictionMode,
chroma_mode: PredictionMode,
angle_delta: AngleDelta,
ref_frames: [RefType; 2],
mvs: [MotionVector; 2],
bsize: BlockSize,
tile_bo: TileBlockOffset,
skip: bool,
cfl: CFLParams,
tx_size: TxSize,
tx_type: TxType,
mode_context: usize,
mv_stack: &[CandidateMV],
rdo_type: RDOType,
need_recon_pixel: bool,
enc_stats: Option<&mut EncoderStats>,
) -> (bool, ScaledDistortion)
Expand description
ยงPanics
- If chroma and luma do not match for inter modes
- If an invalid motion vector is found