stream: pin the ignored rect-tx recipe sweep and the 32-level AB gate
Browse files at this commitf9d88f7c3d389d8cf56139a843e608d60516e360Parent: 8644bc71 changed file +18 -0
- crates/ec-av1/src/stream.rs +18 -0
crates/ec-av1/src/stream.rsmodified+18 -0
| @@ -28704,6 +28704,18 @@ pub(crate) mod tests { | |||
| 28704 | eprintln!("x={start_x} cq={cq} rtx={rtx} fired={fired} REFUSED {e}") | 28704 | eprintln!("x={start_x} cq={cq} rtx={rtx} fired={fired} REFUSED {e}") |
| 28705 | } | 28705 | } |
| 28706 | Ok(frames) => { | 28706 | Ok(frames) => { |
| 28707 | + // The ENCODE's frame count: the y4m is rendered with | ||
| 28708 | + // `-t 1` and `-vframes 1` (28747) -- one frame, and | ||
| 28709 | + // the sources carry no explicit `:rate=` so that | ||
| 28710 | + // `-vframes` is the binding bound -- and aomenc runs | ||
| 28711 | + // with `--kf-max-dist=0` and no `--limit` | ||
| 28712 | + // (28782), so all 126 arms code exactly 1 frame. | ||
| 28713 | + // This sweep asserts no verdict, but `bad` below is | ||
| 28714 | + // the NUMBER of mismatching frames it reports, so a | ||
| 28715 | + // decode that showed fewer frames than the wire | ||
| 28716 | + // would silently under-report it. Pinned here, above | ||
| 28717 | + // the oracle call, for that reason. | ||
| 28718 | + assert_eq!(frames.len(), 1, "x={start_x} cq={cq} rtx={rtx} key frame"); | ||
| 28707 | let want = ffmpeg_decode_sequence(&stream, width, height, frames.len()); | 28719 | let want = ffmpeg_decode_sequence(&stream, width, height, frames.len()); |
| 28708 | let bad = frames | 28720 | let bad = frames |
| 28709 | .iter() | 28721 | .iter() |
| @@ -29307,6 +29319,12 @@ pub(crate) mod tests { | |||
| 29307 | .map(|((label, _), d)| format!("{label}={d}")) | 29319 | .map(|((label, _), d)| format!("{label}={d}")) |
| 29308 | .collect(); | 29320 | .collect(); |
| 29309 | let fired = fired.join(" "); | 29321 | let fired = fired.join(" "); |
| 29322 | + // The ENCODE's frame count: `gradients_source` (6015) is rendered with | ||
| 29323 | + // `duration=0.04:rate=25` (29116) and `-frames:v 1` (29119) caps the | ||
| 29324 | + // y4m at one frame; aomenc runs with `--limit=1` and | ||
| 29325 | + // `--kf-max-dist=0` (29150) and so codes exactly that one. Asserted | ||
| 29326 | + // ABOVE the oracle call -- it holds for every one of the 16 seeds. | ||
| 29327 | + assert_eq!(frames.len(), 1, "{NAME}: seed {seed} key frame"); | ||
| 29310 | let ffmpeg_frames = ffmpeg_decode_sequence(&stream, width, height, frames.len()); | 29328 | let ffmpeg_frames = ffmpeg_decode_sequence(&stream, width, height, frames.len()); |
| 29311 | assert_eq!( | 29329 | assert_eq!( |
| 29312 | frames.len(), | 29330 | frames.len(), |