forge
Explore
Log in

Don't you dare go Hollow

U4: ec-vp9-syntax remove unused is_superframe and reference_slots (no caller in the workspace, edith or yumush)

Browse files at this commit

4f6b18f2ddaa9ee693518a6b75d0b6d4c623a1d2Ahmet Kaan GümüşParent: f37b967
crates/ec-vp9-syntax/src/header.rsmodified+0 -5
@@ -505,11 +505,6 @@ impl Vp9Parser {
505 }505 }
506 }506 }
507 507
508- /// The reference slots as they stand, after every frame parsed so far.
509- pub fn reference_slots(&self) -> &[ReferenceSlot; NUM_REF_FRAMES] {
510- &self.refs
511- }
512-
513 /// Parse one frame's uncompressed header and apply its reference refresh.508 /// Parse one frame's uncompressed header and apply its reference refresh.
514 ///509 ///
515 /// `frame` starts at the frame marker, i.e. it is one element of510 /// `frame` starts at the frame marker, i.e. it is one element of
crates/ec-vp9-syntax/src/superframe.rsmodified+0 -5
@@ -63,11 +63,6 @@ pub fn split(chunk: &[u8]) -> Result<Vec<&[u8]>> {
63 Ok(out)63 Ok(out)
64 }64 }
65 65
66-/// True if `chunk` carries a superframe index, i.e. holds more than one frame.
67-pub fn is_superframe(chunk: &[u8]) -> bool {
68- matches!(split(chunk), Ok(frames) if frames.len() > 1)
69-}
70-
71 #[cfg(test)]66 #[cfg(test)]
72 mod tests {67 mod tests {
73 use super::*;68 use super::*;
crates/ec-vp9-syntax/tests/streams.rsmodified+0 -3
@@ -195,9 +195,6 @@ fn altref_fixture_has_superframes_and_hidden_frames() {
195 assert!(h.show_existing_frame);195 assert!(h.show_existing_frame);
196 assert_eq!(h.frame_to_show_map_idx, 5);196 assert_eq!(h.frame_to_show_map_idx, 5);
197 assert_eq!(h.uncompressed_header_size, 1);197 assert_eq!(h.uncompressed_header_size, 1);
198- let slot = parser.reference_slots()[5];
199- assert!(slot.valid, "slot 5 was never refreshed by the fixture");
200- assert_eq!((h.width, h.height), (slot.width, slot.height));
201 }198 }
202 199
203 /// Truncation, bit flips and random noise: an error, never a panic.200 /// Truncation, bit flips and random noise: an error, never a panic.