Skip to content

Commit bfc0837

Browse files
committed
Remove get_frame_count and needs_more_frames
They shouldn't be needed anymore.
1 parent e4363d0 commit bfc0837

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

src/api.rs

-12
Original file line numberDiff line numberDiff line change
@@ -629,21 +629,9 @@ impl<T: Pixel> Context<T> {
629629
&self.inner.first_pass_data
630630
}
631631

632-
633-
// TODO: the methods below should go away
634-
635-
pub fn get_frame_count(&self) -> u64 {
636-
self.inner.get_frame_count()
637-
}
638-
639632
pub fn set_limit(&mut self, limit: u64) {
640633
self.inner.set_limit(limit);
641634
}
642-
643-
pub fn needs_more_frames(&self, frame_count: u64) -> bool {
644-
self.inner.needs_more_frames(frame_count)
645-
}
646-
647635
}
648636

649637

src/bin/rav1e.rs

-3
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,6 @@ fn read_frame<T: Pixel, D: Decoder>(ctx: &mut Context<T>, decoder: &mut D, video
4040
let _ = ctx.send_frame(Some(Arc::new(frame)));
4141
}
4242
_ => {
43-
let frames_to_be_coded = ctx.get_frame_count();
44-
// This is a hack, instead when EOF is reached simply "close" the encoder to input (flag)
45-
ctx.set_limit(frames_to_be_coded);
4643
ctx.flush();
4744
}
4845
};

0 commit comments

Comments
 (0)