Skip to content
Snippets Groups Projects
Commit 61fef899 authored by Luca Barbato's avatar Luca Barbato Committed by Luca Barbato
Browse files

Use for_each for the chroma loop in rdo

parent 8bc92013
No related branches found
No related tags found
No related merge requests found
......@@ -342,7 +342,7 @@ pub fn rdo_mode_decision(
};
// Find the best chroma prediction mode for the current luma prediction mode
for &chroma_mode in &mode_set_chroma {
mode_set_chroma.iter().for_each(|&chroma_mode| {
skips.iter().for_each(|&skip| {
let wr: &mut dyn Writer = &mut WriterCounter::new();
let tell = wr.tell_frac();
......@@ -395,7 +395,7 @@ pub fn rdo_mode_decision(
cw.rollback(&cw_checkpoint);
});
}
});
});
if best_mode_luma.is_intra() && is_chroma_block && bsize.cfl_allowed() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment