Skip to content
Snippets Groups Projects
Unverified Commit 2c6a3f51 authored by Frank Bossen's avatar Frank Bossen Committed by GitHub
Browse files

Test NEAR1 and NEAR2 modes based on speed setting (#584)

Don't test these modes at speed settings higher than 2
parent 51e1c199
No related branches found
No related tags found
No related merge requests found
......@@ -309,11 +309,13 @@ pub fn rdo_mode_decision(
if fi.frame_type == FrameType::INTER {
mode_set.extend_from_slice(RAV1E_INTER_MODES_MINIMAL);
if mv_stack.len() >= 3 {
mode_set.push(PredictionMode::NEAR1MV);
}
if mv_stack.len() >= 4 {
mode_set.push(PredictionMode::NEAR2MV);
if fi.config.speed <= 2 {
if mv_stack.len() >= 3 {
mode_set.push(PredictionMode::NEAR1MV);
}
if mv_stack.len() >= 4 {
mode_set.push(PredictionMode::NEAR2MV);
}
}
}
......
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