Skip to content

Commit

Permalink
codec/h264: adjust methods visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Gnurou committed Feb 14, 2024
1 parent d6f96df commit ae9590a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/codec/h264/dpb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,13 @@ pub enum MmcoError {
impl<T: Clone> Dpb<T> {
/// Returns an iterator over the underlying H264 pictures stored in the
/// DPB.
pub fn pictures(&self) -> impl Iterator<Item = Ref<'_, PictureData>> {
fn pictures(&self) -> impl Iterator<Item = Ref<'_, PictureData>> {
self.entries.iter().map(|h| h.pic.borrow())
}

/// Returns a mutable iterator over the underlying H264 pictures stored in
/// the DPB.
pub fn pictures_mut(&mut self) -> impl Iterator<Item = RefMut<'_, PictureData>> {
fn pictures_mut(&mut self) -> impl Iterator<Item = RefMut<'_, PictureData>> {
self.entries.iter().map(|h| h.pic.borrow_mut())
}

Expand Down

0 comments on commit ae9590a

Please sign in to comment.