U4: ec-vp9-syntax remove unused is_superframe and reference_slots (no caller in the workspace, edith or yumush)
Browse files at this commit4f6b18f2ddaa9ee693518a6b75d0b6d4c623a1d2Parent: f37b9673 changed files +0 -13
- crates/ec-vp9-syntax/src/header.rs +0 -5
- crates/ec-vp9-syntax/src/superframe.rs +0 -5
- crates/ec-vp9-syntax/tests/streams.rs +0 -3
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 | 508 | /// Parse one frame's uncompressed header and apply its reference refresh. |
| 514 | 509 | /// |
| 515 | 510 | /// `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 | 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 | 66 | #[cfg(test)] |
| 72 | 67 | mod tests { |
| 73 | 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 | 195 | assert!(h.show_existing_frame); |
| 196 | 196 | assert_eq!(h.frame_to_show_map_idx, 5); |
| 197 | 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 | 200 | /// Truncation, bit flips and random noise: an error, never a panic. |