Skip to content

Commit

Permalink
Remove get_frame_count and needs_more_frames
Browse files Browse the repository at this point in the history
They shouldn't be needed anymore.
  • Loading branch information
lu-zero committed Apr 6, 2019
1 parent e4363d0 commit bfc0837
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
12 changes: 0 additions & 12 deletions src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -629,21 +629,9 @@ impl<T: Pixel> Context<T> {
&self.inner.first_pass_data
}


// TODO: the methods below should go away

pub fn get_frame_count(&self) -> u64 {
self.inner.get_frame_count()
}

pub fn set_limit(&mut self, limit: u64) {
self.inner.set_limit(limit);
}

pub fn needs_more_frames(&self, frame_count: u64) -> bool {
self.inner.needs_more_frames(frame_count)
}

}


Expand Down
3 changes: 0 additions & 3 deletions src/bin/rav1e.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@ fn read_frame<T: Pixel, D: Decoder>(ctx: &mut Context<T>, decoder: &mut D, video
let _ = ctx.send_frame(Some(Arc::new(frame)));
}
_ => {
let frames_to_be_coded = ctx.get_frame_count();
// This is a hack, instead when EOF is reached simply "close" the encoder to input (flag)
ctx.set_limit(frames_to_be_coded);
ctx.flush();
}
};
Expand Down

0 comments on commit bfc0837

Please sign in to comment.