Commit 0830d658 authored by David Michael Barr's avatar David Michael Barr Committed by fbossen

CfL RDO: rollback ContextWriter after luma reconstruction

parent 14de53db
......@@ -292,10 +292,12 @@ pub fn rdo_mode_decision(
let mut cfl = CFLParams::new();
if chroma_mode == PredictionMode::UV_CFL_PRED {
if !best_mode_chroma.is_intra() { continue; }
let cw_checkpoint = cw.checkpoint();
let mut wr: &mut dyn Writer = &mut WriterCounter::new();
write_tx_blocks(
fi, fs, cw, wr, luma_mode, luma_mode, bo, bsize, tx_size, tx_type, false, seq.bit_depth, cfl, true
);
cw.rollback(&cw_checkpoint);
cfl = rdo_cfl_alpha(fs, bo, bsize, seq.bit_depth);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment