Skip to content

Commit b3d0c06

Browse files
shssoichirolu-zero
authored andcommitted
Reuse lookahead frame state and motion vectors
Results in 5-8% encoding time improvement with 1 tile. Closes #1677
1 parent a6c217b commit b3d0c06

File tree

10 files changed

+278
-195
lines changed

10 files changed

+278
-195
lines changed

benches/bench.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ use rav1e::bench::transform::*;
2424
use crate::transform::{forward_transforms, inverse_transforms};
2525

2626
use criterion::*;
27+
use std::sync::Arc;
2728
use std::time::Duration;
2829

2930
fn write_b(c: &mut Criterion) {
@@ -133,7 +134,7 @@ fn cdef_frame_bench(b: &mut Bencher, width: usize, height: usize) {
133134
let fb = FrameBlocks::new(fi.sb_width * 16, fi.sb_height * 16);
134135
let mut fs = FrameState::new(&fi);
135136

136-
b.iter(|| cdef_filter_frame(&fi, &mut fs.rec, &fb));
137+
b.iter(|| cdef_filter_frame(&fi, Arc::make_mut(&mut fs.rec), &fb));
137138
}
138139

139140
fn cfl_rdo(c: &mut Criterion) {

0 commit comments

Comments
 (0)