Cap the NEARMV DRL search at index 2
Browse files at this commit8cfe3a6180e0f8b15b3f7a4e17f56263a584aba3Parent: 9147adb- perf
- cap the NEARMV DRL search at index 2
1 changed file +1 -1
crates/ec-av1/src/encode.rsmodified+1 -1
| @@ -3448,7 +3448,7 @@ fn search_inter_block( | |||
| 3448 | ), | 3448 | ), |
| 3449 | ]; | 3449 | ]; |
| 3450 | let near_bits = not_new + not_zero + symbol_bits(&cdf::REF_MV[stack.ref_mv_ctx], 1); | 3450 | let near_bits = not_new + not_zero + symbol_bits(&cdf::REF_MV[stack.ref_mv_ctx], 1); |
| 3451 | - for idx in 1..=3usize { | 3451 | + for idx in 1..=2usize { |
| 3452 | if let Some(e) = stack.entries.get(idx) { | 3452 | if let Some(e) = stack.entries.get(idx) { |
| 3453 | cands.push(( | 3453 | cands.push(( |
| 3454 | e.mv, | 3454 | e.mv, |