Unverified Commit 2c6a3f51 authored by fbossen's avatar fbossen Committed by GitHub

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

Don't test these modes at speed settings higher than 2
parent 51e1c199
......@@ -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);
}
}
}
......
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