edith_codecs
Clone
https://git.tahinli.com/Tahinli/edith_codecs.git
0 watching0 forksRust370.3 MiB9b67700Tahinli3 days ago4021 commits
| 1 | use *; |
| 2 | use *; |
| 3 | use *; |
| 4 | use crate; |
| 5 | use craterun_with_stdin; |
| 6 | use ; |
| 7 | |
| 8 | /// lane-av1422lift: THE 4:2:2 LIFT, in two pins. This test is the renamed, |
| 9 | /// inverted replacement for `a_non_420_subsampled_sequence_header_is_ |
| 10 | /// refused_by_name`, and the two fixtures replace that gate's fixture -- |
| 11 | /// a hand-built profile-2 header bolted onto a 4:2:0 TILE from this |
| 12 | /// crate's own encoder, which could never be inverted into an exactness |
| 13 | /// claim no matter how the assert was flipped (class `refusal-lifted- |
| 14 | /// without-a-gate`, and the risk study's R6). |
| 15 | /// |
| 16 | /// Both pins are REAL 4:2:2 streams from libaom's own writer over a |
| 17 | /// y4m whose header line is `C422`, so every chroma symbol in them is a |
| 18 | /// 4:2:2 chroma symbol. Provenance (both, verbatim, no other encoder): |
| 19 | /// |
| 20 | /// ```text |
| 21 | /// aomenc --codec=av1 --profile=2 \ |
| 22 | /// --input-chroma-subsampling-x=1 --input-chroma-subsampling-y=0 \ |
| 23 | /// --passes=1 --end-usage=q --cq-level=24 --cpu-used=0 \ |
| 24 | /// --threads=1 --row-mt=0 --obu -o <pin> <source.y4m> |
| 25 | /// ``` |
| 26 | /// |
| 27 | /// * `422_key_64x64.obu` -- 755 bytes, sha256 |
| 28 | /// `3c9396c9e42701d720419ec2cb5577387e305482df0cb150f7f0b965edeaaffc`, |
| 29 | /// fnv1a64 `0x87fc569cf53bcbc6`. A single 64x64 8-bit KEY frame |
| 30 | /// (`--limit=1 --kf-min-dist=0 --kf-max-dist=0`) over a |
| 31 | /// hand-generated two-frame integer `C422` card source, the second |
| 32 | /// source frame unused by the `--limit=1`. The smallest thing that can |
| 33 | /// say "4:2:2 intra reconstructs". |
| 34 | /// * `422_inter_160x128_3f.obu` -- 6522 bytes, sha256 |
| 35 | /// `7b54834c18f5fdc0e8606a6dc5bf4ff368402417d87fcfc2ab9758e4e9164902`, |
| 36 | /// fnv1a64 `0xf87eba3bf4fc2bb8`. Three 160x128 8-bit frames with a |
| 37 | /// panning square |
| 38 | /// (`--limit=3 --kf-min-dist=3 --kf-max-dist=3`, so frames 1 and 2 are |
| 39 | /// INTER), over a three-frame integer `C422` card source whose square |
| 40 | /// moves (6,4) -> (9,6) -> (12,8). This is what exercises the |
| 41 | /// inter-predicted 4:2:2 chroma reference: a decoder that walked the |
| 42 | /// key frame correctly and then predicted chroma from a 4:2:0-shaped |
| 43 | /// reference passes the first pin and reds here. |
| 44 | /// |
| 45 | /// Both are asserted BYTE-EXACT against ffmpeg 8.1.3's own rawvideo of |
| 46 | /// the same bytes at `yuv422p`, per plane and per frame, with the |
| 47 | /// per-plane coefficient-unit census as the non-vacuity arm (see |
| 48 | /// [`assert_422_stream_pixel_exact`]). A gate whose only assertion was |
| 49 | /// `err.contains(REFUSAL)` would have passed unchanged on a tree where |
| 50 | /// 4:2:2 decode was completely broken; that is what this replaces. |
| 51 | |
| 52 | |
| 53 | |
| 54 | |
| 55 | |
| 56 | |
| 57 | |
| 58 | |
| 59 | |
| 60 | |
| 61 | |
| 62 | |
| 63 | |
| 64 | |
| 65 | |
| 66 | |
| 67 | |
| 68 | |
| 69 | |
| 70 | |
| 71 | |
| 72 | |
| 73 | |
| 74 | |
| 75 | |
| 76 | |
| 77 | |
| 78 | /// lane-av1422lift: 4:2:2 at 12 bits, and 4:2:2 with superres, are the two |
| 79 | /// cells the corpus had no coverage for at all (the risk study's R3 and |
| 80 | /// R9: the sweep recipe passed no 12-bit depth and no `--superres-mode`, |
| 81 | /// so every 4:2:2 measurement in the tree was 8- or 10-bit, none |
| 82 | /// superres). Both are pinned and both are byte-exact here. |
| 83 | /// |
| 84 | /// `s422_12bit_160x128.obu` -- 9214 bytes, sha256 |
| 85 | /// `eacc70f75c82ad7d795efbd0242aa4ee33db917b8c1a3570ebce2570ee8bc245`, |
| 86 | /// fnv1a64 `0xa62b8e3fe6f60ae5`. 160x128, 12-bit, 3 frames, |
| 87 | /// `yuv422p12le` per ffprobe, profile 2 ("Professional"). |
| 88 | /// |
| 89 | /// **Provenance is ffmpeg's libaom-av1 wrapper, not aomenc, and the |
| 90 | /// reason is measured, not preferred.** aomenc's own 12-bit y4m path |
| 91 | /// issues `AV1E_SET_CHROMA_SUBSAMPLING_X` (apps/aomenc.c:2272-2278, |
| 92 | /// reached whenever the input is not 4:2:0 and the bit depth is 12) |
| 93 | /// BEFORE `aom_codec_enc_config_set`, and on this libaom that control |
| 94 | /// returns `AOM_CODEC_INTERNAL_ERROR` for any non-4:2:0 shape -- measured |
| 95 | /// on four independently built trees |
| 96 | /// (`~/.cache/aom-oracle`, `aom-affine`, `aom-oracle2`, `aom-oracle3`): |
| 97 | /// `C422p12` and `C444p12` both die with "Failed to set chroma |
| 98 | /// subsampling x", while `C420p12` and the 8-bit `C422`/`C444` both |
| 99 | /// encode. It is not a 4:2:2-specific gap (12-bit 4:4:4 fails too) and |
| 100 | /// not a 4:2:0 gap (12-bit 4:2:0 encodes). The same control succeeds at |
| 101 | /// 8 bits, so the failure is the 12-bit configuration order, and the |
| 102 | /// workaround is a wrapper that sets the codec config first. ffmpeg's |
| 103 | /// libaom-av1 does exactly that: |
| 104 | /// |
| 105 | /// ```text |
| 106 | /// ffmpeg -f lavfi -i "testsrc2=size=160x128:rate=1:duration=3" \ |
| 107 | /// -pix_fmt yuv422p12le -c:v libaom-av1 -profile:v 2 -b:v 0 -crf 30 \ |
| 108 | /// -cpu-used 8 -auto-alt-ref 0 -lag-in-frames 0 \ |
| 109 | /// -strict experimental -f obu s422_12bit_160x128.obu |
| 110 | /// ``` |
| 111 | /// |
| 112 | /// That is libaom's encoder either way -- ffmpeg links it and calls |
| 113 | /// `aom_codec_encode` -- and the oracle side is ffmpeg's own |
| 114 | /// `yuv422p12le` rawvideo decode of the same bytes, so the pin and the |
| 115 | /// oracle come from the same library, which is the property that makes |
| 116 | /// byte-exactness a claim about OUR decoder rather than about a |
| 117 | /// disagreement between two encoders. |
| 118 | /// |
| 119 | /// `s422_superres_160x128.obu` -- 5304 bytes, sha256 |
| 120 | /// `5852ff2c273cb773c4886762c6a6f2cce6e12065a690eb3a5ca2119c0b6f2957`, |
| 121 | /// fnv1a64 `0x0789d1b2851b94ae`. 160x128, 8-bit, 3 frames, `--superres- |
| 122 | /// mode=1` (fixed) over a `C422` testsrc2 source, encoded by the |
| 123 | /// aomenc recipe above plus `--superres-mode=1`. Superres is the one |
| 124 | /// 4:2:2 path whose output crop is `(round_ss(w,1) x round_ss(h,0))` at |
| 125 | /// the UPSCALED size, and it had no 4:2:2 cell anywhere. |
| 126 | |
| 127 | |
| 128 | |
| 129 | |
| 130 | |
| 131 | |
| 132 | |
| 133 | |
| 134 | |
| 135 | |
| 136 | |
| 137 | |
| 138 | |
| 139 | |
| 140 | |
| 141 | |
| 142 | /// lane-av1lr422: a libaom-recipe 10-bit 4:2:2 stream with loop |
| 143 | /// restoration ON, `s422_lr_10bit_200x120.obu` (129409 bytes, sha256 |
| 144 | /// `5d6bc195934709390191c9ea8af167d385552c5b1330e8abd38f76a4416ba751`, |
| 145 | /// fnv1a64 `0xc5d5489355fdc2df`), 200x120, 8 frames. It was REFUSED by |
| 146 | /// the sub-8x8 plane-block check before the fix: the refusal was a |
| 147 | /// parse desync, not a wrong check. The 32x8 / 8x32 rect4 general arm |
| 148 | /// gathered the chroma dc-sign votes per mi instead of per 4-px chroma |
| 149 | /// column, which desynced the coefficient contexts. Decodes byte-exact |
| 150 | /// against ffmpeg libdav1d rawvideo. |
| 151 | |
| 152 | |
| 153 | |
| 154 | |
| 155 | |
| 156 | |
| 157 | |
| 158 | |
| 159 | |
| 160 | |
| 161 | |
| 162 | |
| 163 | /// lane-av1odd440, CELL 1 of 2: `4:2:0 with an ODD luma dimension`, the |
| 164 | /// cell `lanes/av1formatsweep.report.md` left as declared debt because |
| 165 | /// "aomenc rounds a 4:2:0 frame's coded size DOWN to even, so no stream |
| 166 | /// this recipe can produce codes an odd luma dimension". |
| 167 | /// |
| 168 | /// The pin, `420_odd65x65_key.obu` (2305 bytes, |
| 169 | /// sha256 `66986019a561f81130f407f426c4379b25e6e80c2cd9ce47d517b3216e9a03cf`), |
| 170 | /// is that missing stream, built offline by |
| 171 | /// `examples/gen_coverage_cells.rs`: a 96x96 card padded to the block |
| 172 | /// grid, coded by `encode::encode_key_frame_at_size` with a 65x65 frame |
| 173 | /// header. Provenance: that example, `cargo run -p ec-av1 --example |
| 174 | /// gen_coverage_cells -- crates/ec-av1/fixtures`; no encoder, no ffmpeg, |
| 175 | /// no lavfi. |
| 176 | /// |
| 177 | /// WHY THE CELL IS NOT A RUBBER STAMP -- the chroma extent is where a |
| 178 | /// floor shows. A 65-wide 4:2:0 frame has |
| 179 | /// `ROUND_POWER_OF_TWO(65, 1) = 33` chroma columns (libaom |
| 180 | /// `av1_common_plane_width`, `av1/common/av1_common_int.h`), not 32, so |
| 181 | /// the decoded frame's own plane sizes, the rawvideo sample count and |
| 182 | /// the oracle compare all move if `decode::round_ss` is floored. The |
| 183 | /// mutation was run: flooring `round_ss` (`decode.rs:697`) turns the |
| 184 | /// `round_ss` assert below red at 32 chroma columns and the oracle arm |
| 185 | /// red at a 6273-byte raw against the oracle's 6403. The gate is |
| 186 | /// therefore not green on a floored decoder, which is the whole content |
| 187 | /// of this cell. |
| 188 | /// |
| 189 | /// The stream decodes PIXEL-EXACT against the instrumented `aomdec` |
| 190 | /// (6403 raw bytes = 65*65 + 2*33*33, byte-identical), so the cell is a |
| 191 | /// `y` and not a `–`. |
| 192 | |
| 193 | |
| 194 | |
| 195 | |
| 196 | |
| 197 | |
| 198 | |
| 199 | |
| 200 | |
| 201 | |
| 202 | |
| 203 | |
| 204 | |
| 205 | |
| 206 | |
| 207 | |
| 208 | |
| 209 | |
| 210 | |
| 211 | |
| 212 | |
| 213 | |
| 214 | |
| 215 | |
| 216 | |
| 217 | |
| 218 | |
| 219 | |
| 220 | |
| 221 | |
| 222 | |
| 223 | |
| 224 | |
| 225 | |
| 226 | |
| 227 | |
| 228 | |
| 229 | |
| 230 | |
| 231 | |
| 232 | |
| 233 | |
| 234 | |
| 235 | |
| 236 | |
| 237 | |
| 238 | |
| 239 | |
| 240 | |
| 241 | |
| 242 | |
| 243 | |
| 244 | |
| 245 | |
| 246 | |
| 247 | |
| 248 | |
| 249 | |
| 250 | |
| 251 | |
| 252 | |
| 253 | |
| 254 | |
| 255 | /// lane-av1odd440, CELL 2 of 2: the `4:4:0 (ss 0,1)` row, which the same |
| 256 | /// report called "unmeasured and unproducible by recipe". It is neither |
| 257 | /// unmeasured nor unproducible: it is NOT A CELL AT ALL. |
| 258 | /// |
| 259 | /// `subsampling_y` is coded only when `subsampling_x` is 1 (spec 5.5.2 |
| 260 | /// `color_config`), so a sequence header can carry exactly three chroma |
| 261 | /// shapes -- 4:2:0 `(1,1)`, 4:2:2 `(1,0)`, 4:4:4 `(0,0)` -- and never |
| 262 | /// `(0,1)`. libaom says so in both directions: the reader leaves |
| 263 | /// `subsampling_y = 0` when `subsampling_x` is 0 |
| 264 | /// (`av1_read_color_config`, `av1/decoder/decodeframe.c:4171-4175`) and |
| 265 | /// the writer ASSERTS it -- `assert(seq_params->subsampling_y == 0 && |
| 266 | /// "4:4:0 subsampling not allowed in AV1")`, `av1/encoder/bitstream.c: |
| 267 | /// 2463-2465`. So there is no stream to decode, no fixture to pin that |
| 268 | /// a decoder could be handed, and no oracle to compare against: a |
| 269 | /// 4:4:0 row in a coverage matrix is a matrix bug, not a decoder gap. |
| 270 | /// |
| 271 | /// What is pinned, then, is the claim itself, in three arms that a |
| 272 | /// mutation turns red: |
| 273 | /// |
| 274 | /// 1. WRITER: every `(profile, bit_depth, mono, colour description, |
| 275 | /// requested subsampling)` combination a `color_config` can carry is |
| 276 | /// written by this crate's own writer and read back by this crate's |
| 277 | /// own reader. The reachable set is asserted to be EXACTLY |
| 278 | /// `{(1,1), (1,0), (0,0)}` -- each legal shape present, `(0,1)` |
| 279 | /// absent -- and, on the BYTES rather than on the round trip, the two |
| 280 | /// requests that differ only in `subsampling_y` must write identical |
| 281 | /// headers whenever `subsampling_x` is 0. A sweep that silently wrote |
| 282 | /// nothing would pass, so the count of combinations actually written |
| 283 | /// and read is asserted too. |
| 284 | /// 2. READER: the one byte that carries `subsampling_x` is found by |
| 285 | /// diffing an `(0,0)` header against an `(1,0)` one, and then all 256 |
| 286 | /// values of that byte are fed back through the reader. Not one of the |
| 287 | /// headers that parse reads back `(0,1)`, because the reader never |
| 288 | /// reads a `subsampling_y` bit in that position. A reader that always |
| 289 | /// read a second bit would produce `(0,1)` at the one value that sets |
| 290 | /// both bits. |
| 291 | /// 3. THE PIN: `440_request_is_422.obu` (2014 bytes, sha256 |
| 292 | /// `4afaa5470c4e010d9d970086ef514680adfe801a579e4deeec582f52d13c5e7c`, |
| 293 | /// fnv1a64 `0x98a1378df976253d`) is what this crate's writer produces |
| 294 | /// when it is handed `subsampling (0,1)` at profile 2 -- profile 2 |
| 295 | /// below 12 bits is 4:2:2 and codes no subsampling bit at all, so the |
| 296 | /// request lands on `(1,0)`. The pin is asserted to read back `(1,0)`, |
| 297 | /// NOT `(0,1)`. Its frame OBU is a 4:2:0 key frame's, so the pin is a |
| 298 | /// HEADER witness, not a decodable 4:2:2 stream -- nothing here claims |
| 299 | /// pixels for it. Provenance: `examples/gen_coverage_cells.rs`, `cargo |
| 300 | /// run -p ec-av1 --example gen_coverage_cells -- crates/ec-av1/fixtures`. |
| 301 | /// |
| 302 | /// lane-av1422lift: this arm used to end "and the decoder is asserted |
| 303 | /// to refuse it by name, which is the honest outcome for the shape a |
| 304 | /// 4:4:0 request actually yields". That was honest only because the |
| 305 | /// decoder refused EVERY (1,0) header -- the assertion was about the |
| 306 | /// guard, not about these bytes. With 4:2:2 admitted, refusing these |
| 307 | /// bytes would be wrong and accepting them without comment would be |
| 308 | /// worse, so the arm now asserts the one thing that IS true of them: |
| 309 | /// the SEQUENCE HEADER, not the tile, fixes the decode's chroma |
| 310 | /// geometry. The pixel claim moved to genuinely 4:2:2 pins. |
| 311 | |
| 312 | |
| 313 | |
| 314 | |
| 315 | |
| 316 | |
| 317 | |
| 318 | |
| 319 | |
| 320 | |
| 321 | |
| 322 | |
| 323 | |
| 324 | |
| 325 | |
| 326 | |
| 327 | |
| 328 | |
| 329 | |
| 330 | |
| 331 | |
| 332 | |
| 333 | |
| 334 | |
| 335 | |
| 336 | |
| 337 | |
| 338 | |
| 339 | |
| 340 | |
| 341 | |
| 342 | |
| 343 | |
| 344 | |
| 345 | |
| 346 | |
| 347 | |
| 348 | |
| 349 | |
| 350 | |
| 351 | |
| 352 | |
| 353 | |
| 354 | |
| 355 | |
| 356 | |
| 357 | |
| 358 | |
| 359 | |
| 360 | |
| 361 | |
| 362 | |
| 363 | |
| 364 | |
| 365 | |
| 366 | |
| 367 | |
| 368 | |
| 369 | |
| 370 | |
| 371 | |
| 372 | |
| 373 | |
| 374 | |
| 375 | |
| 376 | |
| 377 | |
| 378 | |
| 379 | |
| 380 | |
| 381 | |
| 382 | |
| 383 | |
| 384 | |
| 385 | |
| 386 | |
| 387 | |
| 388 | |
| 389 | |
| 390 | |
| 391 | |
| 392 | |
| 393 | |
| 394 | |
| 395 | |
| 396 | |
| 397 | |
| 398 | |
| 399 | |
| 400 | |
| 401 | |
| 402 | |
| 403 | |
| 404 | |
| 405 | |
| 406 | |
| 407 | |
| 408 | |
| 409 | |
| 410 | |
| 411 | |
| 412 | |
| 413 | |
| 414 | |
| 415 | |
| 416 | |
| 417 | |
| 418 | |
| 419 | |
| 420 | |
| 421 | |
| 422 | |
| 423 | |
| 424 | |
| 425 | |
| 426 | |
| 427 | |
| 428 | |
| 429 | |
| 430 | |
| 431 | |
| 432 | |
| 433 | |
| 434 | |
| 435 | |
| 436 | |
| 437 | |
| 438 | |
| 439 | |
| 440 | |
| 441 | |
| 442 | |
| 443 | |
| 444 | |
| 445 | |
| 446 | |
| 447 | |
| 448 | |
| 449 | |
| 450 | |
| 451 | |
| 452 | |
| 453 | |
| 454 | |
| 455 | |
| 456 | |
| 457 | |
| 458 | |
| 459 | |
| 460 | |
| 461 | |
| 462 | |
| 463 | |
| 464 | |
| 465 | |
| 466 | |
| 467 | |
| 468 | |
| 469 | |
| 470 | |
| 471 | |
| 472 | |
| 473 | |
| 474 | |
| 475 | |
| 476 | |
| 477 | |
| 478 | |
| 479 | |
| 480 | |
| 481 | |
| 482 | |
| 483 | |
| 484 | |
| 485 | |
| 486 | |
| 487 | |
| 488 | |
| 489 | |
| 490 | |
| 491 | |
| 492 | |
| 493 | |
| 494 | |
| 495 | |
| 496 | |
| 497 | |
| 498 | |
| 499 | |
| 500 | |
| 501 | |
| 502 | |
| 503 | |
| 504 | |
| 505 | |
| 506 | |
| 507 | |
| 508 | |
| 509 | |
| 510 | |
| 511 | |
| 512 | |
| 513 | |
| 514 | |
| 515 | |
| 516 | |
| 517 | |
| 518 | |
| 519 | |
| 520 | |
| 521 | |
| 522 | |
| 523 | |
| 524 | |
| 525 | |
| 526 | |
| 527 | |
| 528 | |
| 529 | |
| 530 | |
| 531 | |
| 532 | |
| 533 | |
| 534 | |
| 535 | |
| 536 | |
| 537 | |
| 538 | |
| 539 | |
| 540 | |
| 541 | |
| 542 | |
| 543 | |
| 544 | |
| 545 | |
| 546 | |
| 547 | |
| 548 | |
| 549 | |
| 550 | |
| 551 | |
| 552 | |
| 553 | |
| 554 | |
| 555 | |
| 556 | |
| 557 | |
| 558 | |
| 559 | |
| 560 | |
| 561 | |
| 562 | |
| 563 | |
| 564 | |
| 565 | |
| 566 | |
| 567 | |
| 568 | |
| 569 | |
| 570 | |
| 571 | |
| 572 | |
| 573 | |
| 574 | |
| 575 | |
| 576 | |
| 577 | |
| 578 | |
| 579 | /// lane-av1unwritten: this pin is a MISSING REFUSAL, not a pixel defect. |
| 580 | /// |
| 581 | /// `440_request_is_422.obu` is a 4:2:2 sequence header wrapped around a |
| 582 | /// 4:2:0 key frame's tile, so the tile's partition symbols make subsizes |
| 583 | /// (8x16 among them) that have NO chroma plane block at ss (1,0). libaom |
| 584 | /// refuses exactly that, before descending into the subsize: |
| 585 | /// |
| 586 | /// ```text |
| 587 | /// $ aomdec --rawvideo -o /dev/null fixtures/440_request_is_422.obu |
| 588 | /// Warning: Failed to decode frame 1: Corrupt frame detected |
| 589 | /// Warning: Additional information: Block size 8x16 invalid with this subsampling mode |
| 590 | /// ``` |
| 591 | /// |
| 592 | /// (`av1/decoder/decodeframe.c:1449-1458`, |
| 593 | /// `get_plane_block_size(subsize, ss_x, ss_y) == BLOCK_INVALID` -> |
| 594 | /// `AOM_CODEC_CORRUPT_FRAME`.) We walked those subsizes instead, and the |
| 595 | /// first version of this lane misread the downstream symptom -- a chroma |
| 596 | /// plane block covered by a square unit, whole 4x4 blocks left unwritten, |
| 597 | /// and a `EC_AV1_FINAL_DUMP` hash that CHANGED RUN TO RUN because the |
| 598 | /// unwritten samples were uninitialised plane memory. |
| 599 | /// |
| 600 | /// The contract pinned here is the one libaom has: the pin REFUSES, by a |
| 601 | /// named error that says which shape and which subsampling mode. The |
| 602 | /// positive control is a genuinely 4:2:2 pin, which must still decode -- |
| 603 | /// so this gate cannot pass by refusing everything. |
| 604 | |
| 605 | |
| 606 | |
| 607 | |
| 608 | |
| 609 | |
| 610 | |
| 611 | |
| 612 | |
| 613 | |
| 614 | |
| 615 | |
| 616 | |
| 617 | |
| 618 | |
| 619 | |
| 620 | |
| 621 | |
| 622 | |
| 623 | |
| 624 | |
| 625 | |
| 626 | |
| 627 | |
| 628 | |
| 629 | |
| 630 | |
| 631 | |
| 632 | |
| 633 | |
| 634 | |
| 635 | |
| 636 | |
| 637 | |
| 638 | |
| 639 | |
| 640 | |
| 641 | |
| 642 | |
| 643 | |
| 644 | |
| 645 | |
| 646 | |
| 647 | |
| 648 | |
| 649 | /// lane-av1subsizesweep: the FRAME-EDGE walk of a BLOCK_INVALID subsize, |
| 650 | /// pinned. This is the one install site the partition-symbol guards missed, |
| 651 | /// and the sibling pin above cannot see it -- that pin's 8x16 comes from a |
| 652 | /// 16x16-level `PARTITION_VERT_B` (an interior AB strip, refused at |
| 653 | /// decode.rs:36472), while this pin's comes from the key-frame 16-level |
| 654 | /// FRAME-EDGE arm, which is not a `dec.symbol(` site at all: it reads one |
| 655 | /// gathered bit with `dec.symbol_fixed(&gather(..))` and dispatches |
| 656 | /// `decode_leaf_rect` straight off it. |
| 657 | /// |
| 658 | /// `422_header_edge16_walk.obu` (128 bytes, sha256 |
| 659 | /// `e8ab2bb229896f796cdec4d2cb383b41f057ef8d364da30f160a3f55a452657f`, |
| 660 | /// fnv1a64 `0xcfa2394ebe1f7764`) is a 4:2:2 sequence header over a 4:2:0 |
| 661 | /// key frame's tile, at 88x64. Width 88 is 8 mod 16, so the last 16x16 |
| 662 | /// column block is COLUMN-short and the frame-edge arm fires; height 64 is |
| 663 | /// 16-aligned, so the ROW is not short and the both-cut arm is not taken. |
| 664 | /// The gathered bit names `PARTITION_VERT`, so the strip is `BLOCK_8X16`. |
| 665 | /// |
| 666 | /// libaom's own verdict, which is the rule this pin pins: |
| 667 | /// |
| 668 | /// ```text |
| 669 | /// $ aomdec --rawvideo -o /dev/null fixtures/422_header_edge16_walk.obu |
| 670 | /// Warning: Failed to decode frame 1: Corrupt frame detected |
| 671 | /// Warning: Additional information: Block size 8x16 invalid with this subsampling mode |
| 672 | /// ``` |
| 673 | /// |
| 674 | /// What makes this pin different from every other refusal gate in this file |
| 675 | /// is that the 8x16 is the ONLY offending subsize in the stream. Measured |
| 676 | /// over a 260-candidate sweep (4 card textures x 5 quantizers x 13 declared |
| 677 | /// widths), this is the one candidate whose decode with the guard removed |
| 678 | /// SUCCEEDS: with the `refuse_invalid_subsize` at decode.rs:37098 deleted, |
| 679 | /// this decoder returned a full 88x64 picture where libaom refuses the |
| 680 | /// frame. So the guard is not a redundant second refusal here -- it is the |
| 681 | /// only thing between a corrupt frame and a plausible-looking decode. |
| 682 | |
| 683 | |
| 684 | |
| 685 | |
| 686 | |
| 687 | |
| 688 | |
| 689 | |
| 690 | |
| 691 | |
| 692 | |
| 693 | |
| 694 | |
| 695 | |
| 696 | |
| 697 | |
| 698 | |
| 699 | |
| 700 | |
| 701 | |
| 702 | |
| 703 | |
| 704 | |
| 705 | |
| 706 | |
| 707 | |
| 708 | |
| 709 | |
| 710 | |
| 711 | |
| 712 | |
| 713 | |
| 714 | |
| 715 | |
| 716 | |
| 717 | |
| 718 | |
| 719 | |
| 720 | |
| 721 | |
| 722 | |
| 723 | |
| 724 | |
| 725 | /// lane-av1-422bigblock: the two witnessed 4:2:2 big-block defects, pinned |
| 726 | /// as fixtures (`git add -f`; `fixtures/` is gitignored). |
| 727 | /// |
| 728 | /// `422_allskip_2f.obu` (62 bytes) is a 128x128 profile-2 key frame plus |
| 729 | /// its all-skip first inter frame: the pre-port decoder read phantom |
| 730 | /// coefficient units in the inter frame and then panicked in |
| 731 | /// `reconstruct_mc_rect` on a full-height 4:2:2 chroma rect. At this |
| 732 | /// lane's HEAD the block-half port's per-axis plane-block model already |
| 733 | /// has it entropy-locked (all 20 key-frame coefficient units pair |
| 734 | /// rng-for-rng with the instrumented oracle, the inter frame reads |
| 735 | /// zero, matching the oracle) and pixel-exact vs aomdec. |
| 736 | /// |
| 737 | /// `422_sb128_3f.obu` (12543 bytes) carries the f2 128x128 |
| 738 | /// `PARTITION_NONE` non-skip inter block: the mu-chunk chroma walk cut |
| 739 | /// each chunk's 32x64 chroma into a `chroma_side`-square 64x64 (twice |
| 740 | /// the units the oracle codes), indexed the prediction buffer at the |
| 741 | /// square `chroma_side` instead of `chroma_stride` (the empty-slice |
| 742 | /// panic at `push_mc_rect_tx`'s densify), and the reference plane |
| 743 | /// resolution guessed every non-4:4:4 picture quarter-height, so the |
| 744 | /// bottom mu-chunk row predicted from a clamped row-63 edge. All fixed; |
| 745 | /// both witnesses decode pixel-exact vs aomdec on the lane's local |
| 746 | /// `EC_AV1_ALLOW_422_PROBE` patch-run-restore build (recipe and measured |
| 747 | /// numbers in `lanes/av1422bigblock.report.md`). |
| 748 | /// |
| 749 | /// lane-av1422lift: `decode_stream` no longer refuses 4:2:2 at the |
| 750 | /// sequence header, so this gate stops being a refusal contract and |
| 751 | /// becomes the one it should have been: BOTH pins, byte-pinned AND |
| 752 | /// byte-exact against ffmpeg, with the per-plane coefficient-unit census |
| 753 | /// as the non-vacuity arm. The pins are unchanged and still load-bearing |
| 754 | /// (size + fnv1a64); only the assertion moved. |
| 755 | |
| 756 | |
| 757 | |
| 758 | |
| 759 | |
| 760 | |
| 761 | |
| 762 | |
| 763 | |
| 764 | |
| 765 | |
| 766 | |
| 767 | |
| 768 | |
| 769 | |
| 770 | |
| 771 | |
| 772 | |
| 773 | |
| 774 | |
| 775 | |
| 776 | |
| 777 | |
| 778 | |
| 779 | |
| 780 | |
| 781 | |
| 782 | |
| 783 | |
| 784 | |
| 785 | |
| 786 | |
| 787 | |
| 788 | |
| 789 | |
| 790 | |
| 791 | |
| 792 | |
| 793 | |
| 794 | |
| 795 | |
| 796 | |
| 797 | |
| 798 | |
| 799 | |
| 800 | |
| 801 | |
| 802 | |
| 803 | |
| 804 | /// lane-av1muchroma: the `chroma_side * chroma_side` mu-chroma site |
| 805 | /// census, over the whole committed 4:2:2 corpus, as a per-site |
| 806 | /// REACHABILITY measurement with a non-vacuity arm. |
| 807 | /// |
| 808 | /// `lanes/av1subsizesweep.report.md` named "mu-chroma sites using |
| 809 | /// `chroma_side * chroma_side`" as unprobed residue. This lane's sweep |
| 810 | /// (env-gated probe at each of the 12 sites, run over every pinned 4:2:2 |
| 811 | /// gate) measured them: |
| 812 | /// |
| 813 | /// - sites 4, 7, 10 are guarded `ss_x == 0 && ss_y == 0`, i.e. 4:4:4 |
| 814 | /// ONLY -- structurally unreachable at 4:2:2, not merely unwitnessed. |
| 815 | /// - sites 2, 8 (`side > 64` mu-chunk walks) were not reached by any |
| 816 | /// committed 4:2:2 fixture; their single-reference twin, site 5, is |
| 817 | /// (side 128, plane 64x128), and its square allocation is the ENCLOSING |
| 818 | /// square, so it is 2x oversized, never short. |
| 819 | /// - sites 1, 3, 5, 6, 9, 11, 12 ARE reached. For 3/5/6/9/11/12 |
| 820 | /// `chroma_side` is `max(side >> ss_x, side >> ss_y)` (decode.rs), the |
| 821 | /// ENCLOSING square of the plane rect, so at 4:2:2 the square is 2x |
| 822 | /// the per-axis extent: oversized, never short. |
| 823 | /// - site 1 alone still used `side >> ss_x` and was therefore sized at |
| 824 | /// HALF the plane block at 4:2:2. Fixed per-axis; this gate pins it. |
| 825 | /// |
| 826 | /// Non-vacuity: [`crate::decode::skip_arm_chroma_plane_block_hits`] |
| 827 | /// fires only where the per-axis and square forms differ, so a green run |
| 828 | /// that never reached the site would be vacuous and this asserts > 0. |
| 829 | |
| 830 | |
| 831 | |
| 832 | |
| 833 | |
| 834 | |
| 835 | |
| 836 | |
| 837 | |
| 838 | |
| 839 | |
| 840 | |
| 841 | |
| 842 | |
| 843 | |
| 844 | |
| 845 | |
| 846 | |
| 847 | |
| 848 | |
| 849 | |
| 850 | |
| 851 | |
| 852 | |
| 853 | |
| 854 | |
| 855 | |
| 856 | |
| 857 | |
| 858 | |
| 859 | |
| 860 | |
| 861 | |
| 862 | |
| 863 | |
| 864 | |
| 865 | |
| 866 | |
| 867 | |
| 868 | |
| 869 | |
| 870 | |
| 871 | |
| 872 | |
| 873 | |
| 874 | |
| 875 | |
| 876 | /// lane-av1floorshift: the two FRAME chroma plane allocators |
| 877 | /// (`decode_key_frame_tile_with_cdfs`, `decode_inter_tile`) size U and V as |
| 878 | /// `(width >> ss_x) x (height >> ss_y)`. `lanes/av1subsizesweep.report.md` |
| 879 | /// named them "floor-`>>` chroma plane allocators -- shape assumption at |
| 880 | /// frame edges; not probed" and left them open. This is the probe. |
| 881 | /// |
| 882 | /// **The verdict is ALREADY CORRECT, and it is structural, not |
| 883 | /// corpus-luck.** `width`/`height` are `block_grid(mi_cols, mi_rows) * |
| 884 | /// BLOCK` (`BLOCK == 32`) and the allocator is handed those, not the frame's |
| 885 | /// own `true_width`/`true_height`: both axes are multiples of 32, and |
| 886 | /// `ss_x`/`ss_y` are the sequence header's single-bit subsampling fields, |
| 887 | /// so `ss <= 1` on every stream that exists. `32k >> ss == round_ss(32k, ss)` |
| 888 | /// for every `k` and every `ss <= 1` -- the `>>` can never floor one sample |
| 889 | /// short of libaom's own chroma crop, at a frame edge or anywhere else. The |
| 890 | /// static half of the gate below proves that exhaustively over every |
| 891 | /// `mi_cols`/`mi_rows` this decoder admits. |
| 892 | /// |
| 893 | /// The corpus half keeps the instrument honest: it decodes one frame per |
| 894 | /// selectable subsampling cell and asserts the allocators were REACHED |
| 895 | /// (`frame_chroma_alloc_calls` moved), so a green run cannot be the census |
| 896 | /// having been wired to nothing. |
| 897 | /// |
| 898 | /// Witnesses, all byte-pinned (`size`, `fnv1a64`), chosen to cover all |
| 899 | /// three selectable cells and both allocators: |
| 900 | /// |
| 901 | /// | file | cell | frame | covers | |
| 902 | /// |---|---|---|---| |
| 903 | /// | `420_odd65x65_key.obu` | 4:2:0, **odd** 65x65 | key | key allocator, the odd-dimension cell where a floor WOULD show | |
| 904 | /// | `422_key_64x64.obu` | 4:2:2 (1,0) | key | key allocator, half-width/full-height | |
| 905 | /// | `444_intrabc_rect4_witness.obu` | 4:4:4 (0,0) | key | key allocator, the `ss == 0` cell where `>> ss` is the identity | |
| 906 | /// |
| 907 | /// 4:4:0 (`0,1`) is excluded and cannot be added: libaom's |
| 908 | /// `av1_read_color_config` asserts `subsampling_y == 0` when |
| 909 | /// `subsampling_x == 0`, and no of 256 header bytes reads back `(0,1)` -- |
| 910 | /// the reader census at `the_reader_never_produces_440` names it. |
| 911 | |
| 912 | |
| 913 | |
| 914 | |
| 915 | |
| 916 | |
| 917 | |
| 918 | |
| 919 | |
| 920 | |
| 921 | |
| 922 | |
| 923 | |
| 924 | |
| 925 | |
| 926 | |
| 927 | |
| 928 | |
| 929 | |
| 930 | |
| 931 | |
| 932 | |
| 933 | |
| 934 | |
| 935 | |
| 936 | |
| 937 | |
| 938 | |
| 939 | |
| 940 | |
| 941 | |
| 942 | |
| 943 | |
| 944 | |
| 945 | |
| 946 | |
| 947 | |
| 948 | |
| 949 | |
| 950 | |
| 951 | |
| 952 | |
| 953 | |
| 954 | |
| 955 | |
| 956 | |
| 957 | |
| 958 | |
| 959 | |
| 960 | |
| 961 | |
| 962 | |
| 963 | |
| 964 | |
| 965 | |
| 966 | |
| 967 | |
| 968 | |
| 969 | |
| 970 | |
| 971 | |
| 972 | |
| 973 | |
| 974 | |
| 975 | |
| 976 | |
| 977 | |
| 978 | |
| 979 | |
| 980 | |
| 981 | |
| 982 | |
| 983 | |
| 984 | |
| 985 | |
| 986 | |
| 987 | |
| 988 | |
| 989 | |
| 990 | |
| 991 | |
| 992 | |
| 993 | |
| 994 | |
| 995 | |
| 996 | /// lane-av1floorshift: the STATIC half of the same claim, and the part that |
| 997 | /// does not need a corpus. The frame chroma allocators' shift argument is |
| 998 | /// `block_grid(mi_cols, mi_rows) * BLOCK` with `BLOCK == 32`, so for every |
| 999 | /// `mi_cols`/`mi_rows` this decoder can admit and every subsampling the |
| 1000 | /// header can carry (`ss in {0, 1}` per axis), `>> ss` and `round_ss` are |
| 1001 | /// the same number. Exhaustively checked here over a range wider than any |
| 1002 | /// frame a header can declare; the two counters above are zero for a |
| 1003 | /// reason, and this is the reason. |
| 1004 | |
| 1005 | |
| 1006 | |
| 1007 | |
| 1008 | |
| 1009 | |
| 1010 | |
| 1011 | |
| 1012 | |
| 1013 | |
| 1014 | |
| 1015 | |
| 1016 | |
| 1017 | |
| 1018 | |
| 1019 | |
| 1020 | |
| 1021 | |
| 1022 | |
| 1023 | |
| 1024 | |
| 1025 | |
| 1026 | |
| 1027 | |
| 1028 | |
| 1029 | |
| 1030 | |
| 1031 | |
| 1032 | |
| 1033 | |
| 1034 | |
| 1035 | |
| 1036 | |
| 1037 | |
| 1038 | |
| 1039 | /// lane-av1422tailskip: the WITNESS cell for the 4:2:2 intra-in-inter |
| 1040 | /// PALETTE chroma per-unit window, and its byte pin. |
| 1041 | /// |
| 1042 | /// `422_palette_intra_in_inter_384x240_17f.obu` (19344 B, sha256 |
| 1043 | /// `bf1c658e9bfdc13ec1ed51e59049d2b81201941b6ef4571f8382f356ea4b815b`) is |
| 1044 | /// the one 4:2:2 cell of the 384x240 census sweep: 384x240, ss (1,0), |
| 1045 | /// 8-bit, **17 decode frames, 16 shown** (decode 1 is the hidden altref). |
| 1046 | /// Its decode-frame-1 block at mi(32,0) is a 64x64 INTRA block with a |
| 1047 | /// PALETTE -- `aomdec`'s `EC_PIB` prints `use_palette=1` there, and the |
| 1048 | /// oracle's own prediction rungs print nothing for the block because |
| 1049 | /// `av1_predict_intra_block` returns at its palette branch before them |
| 1050 | /// (`reconintra.c:1735`). |
| 1051 | /// |
| 1052 | /// At 4:2:2 that block's chroma plane block is 32x64, but |
| 1053 | /// `av1_get_max_uv_txsize` adjusts `max_tx_size_rect_lookup[BLOCK_32X64]` |
| 1054 | /// down to TX_32X32, so it codes TWO STACKED SQUARE units per plane. |
| 1055 | /// `decode_inter_block`'s `side == 64` walk armed the ONE block-sized |
| 1056 | /// 2048-entry chroma palette prediction before the loop: the first unit |
| 1057 | /// consumed all of it and the second found none pending, so it silently |
| 1058 | /// fell back to the edge DC prediction -- a flat 90/240 box where the |
| 1059 | /// oracle carries its palette (U/V rows 170..189, cols 23..31, 180 wrong |
| 1060 | /// samples per plane at the pre-filter stage). Each unit now takes its own |
| 1061 | /// `palette_window` of that buffer (`decode.rs`) -- the same helper the |
| 1062 | /// split-transform chroma paths already used. |
| 1063 | /// |
| 1064 | /// **The committed assertion follows the family's standing rule** (same |
| 1065 | /// shape as |
| 1066 | /// [`the_pinned_422_bigblock_witnesses_are_present_and_refuse_by_name`]): |
| 1067 | /// the byte pin plus this decoder's disposition of those bytes. |
| 1068 | /// lane-av1422lift: `decode_stream` no longer refuses 4:2:2 at the sequence |
| 1069 | /// header, so the OK arm is the live one -- the gate decodes the pin and |
| 1070 | /// asserts 17 decode-order frames byte-exact against aomdec with |
| 1071 | /// `palette_422_unit_window_hits()` fired. lane-av1oracledepth: the stale |
| 1072 | /// `Err` arm (it matched the pre-lift refusal string |
| 1073 | /// `"a chroma format of 4:2:2"` the decoder no longer returns, and could |
| 1074 | /// have swallowed a future decode error as green) is deleted; a refusal |
| 1075 | /// now fails this gate loudly. |
| 1076 | |
| 1077 | |
| 1078 | |
| 1079 | |
| 1080 | |
| 1081 | |
| 1082 | |
| 1083 | |
| 1084 | |
| 1085 | |
| 1086 | |
| 1087 | |
| 1088 | |
| 1089 | |
| 1090 | |
| 1091 | |
| 1092 | |
| 1093 | |
| 1094 | |
| 1095 | |
| 1096 | |
| 1097 | |
| 1098 | |
| 1099 | |
| 1100 | |
| 1101 | |
| 1102 | |
| 1103 | |
| 1104 | |
| 1105 | |
| 1106 | |
| 1107 | |
| 1108 | |
| 1109 | |
| 1110 | |
| 1111 | |
| 1112 | |
| 1113 | |
| 1114 | |
| 1115 | |
| 1116 | |
| 1117 | |
| 1118 | |
| 1119 | |
| 1120 | |
| 1121 | |
| 1122 | |
| 1123 | |
| 1124 | |
| 1125 | |
| 1126 | |
| 1127 | /// lane-av1-ibc128chunk: the WITNESS for the 128-root intrabc strip's |
| 1128 | /// de-square-cut mu-chunk chroma walk, and the byte pin for it. |
| 1129 | /// |
| 1130 | /// `decode_intrabc_128rect` cut each mu chunk's chroma plane block with |
| 1131 | /// `chunk_chroma = cside * 64 / side` -- a `chroma_side`-SQUARE chunk, |
| 1132 | /// i.e. the 4:2:0 count on BOTH axes (the same defect lane-av1-422bigblock |
| 1133 | /// fixed, and witnessed, in `decode_inter_block` and |
| 1134 | /// `decode_block_128rect`; this copy was deferred there as unwitnessed). |
| 1135 | /// At 4:2:2 a 64x64 mu chunk's chroma plane block is 32x64, so it holds |
| 1136 | /// TWO STACKED TX_32X32 units per plane: the square-cut walk read one per |
| 1137 | /// plane per chunk, left the chunk's lower 32 chroma rows with no |
| 1138 | /// residual at all, and stamped each unit's entropy context over a |
| 1139 | /// 16x16-mi luma span instead of 16x8. |
| 1140 | /// |
| 1141 | /// Measured red-before on the pinned witness (parent `a7d22aec`, via the |
| 1142 | /// local `EC_AV1_ALLOW_422_PROBE` patch-run-restore build): 8 chroma |
| 1143 | /// units stamped over the stream's two reached blocks and frames 0 and 3 |
| 1144 | /// diverge from `aomdec` (45135 / 44540 of 245760 samples each), the |
| 1145 | /// first difference at Y sample 98368 -- frame 0, row 256, col 64, the |
| 1146 | /// top-left corner of the first 128x64 intrabc block at mi(64,0). The |
| 1147 | /// red build then lost 4 of the stream's 6 intrabc blocks to the desync. |
| 1148 | /// Green-after, same fixture: 48 chroma units stamped, all 6 blocks |
| 1149 | /// decoded, and ALL FIVE frames byte-identical to `aomdec --rawvideo`. |
| 1150 | /// |
| 1151 | /// lane-av1422lift: committed code no longer refuses 4:2:2 at the |
| 1152 | /// sequence header, so the red/green evidence above is no longer |
| 1153 | /// probe-only: this gate is the one that asserts it. Both pins are |
| 1154 | /// byte-pinned AND byte-exact against ffmpeg's `yuv422p` rawvideo of the |
| 1155 | /// same bytes, per plane and per frame, with the per-plane |
| 1156 | /// coefficient-unit census as the non-vacuity arm -- the census is what |
| 1157 | /// makes "48 chroma units stamped" a committed, reproducible number here |
| 1158 | /// instead of a sentence in a lane report. The source-scan arm below |
| 1159 | /// keeps its own claim (the per-axis SPELLING) and does not overlap. |
| 1160 | |
| 1161 | |
| 1162 | |
| 1163 | |
| 1164 | |
| 1165 | |
| 1166 | |
| 1167 | |
| 1168 | |
| 1169 | |
| 1170 | |
| 1171 | |
| 1172 | |
| 1173 | |
| 1174 | |
| 1175 | |
| 1176 | |
| 1177 | |
| 1178 | |
| 1179 | |
| 1180 | |
| 1181 | |
| 1182 | |
| 1183 | |
| 1184 | |
| 1185 | |
| 1186 | |
| 1187 | |
| 1188 | |
| 1189 | |
| 1190 | |
| 1191 | |
| 1192 | |
| 1193 | |
| 1194 | /// lane-av1422a2a4: the firing gate for `decode_block`'s var-tx EITHER/OR |
| 1195 | /// tail at 4:2:2 -- an INTRABC block whose var-tx tree resolved MIXED |
| 1196 | /// leaves, where the old blanket `set_txfm_ctxs` + `fill_lf_grid` publishes |
| 1197 | /// clobbered the per-leaf TXFM_CONTEXT bands libaom keeps. |
| 1198 | /// |
| 1199 | /// Provenance: aomenc profile 2, `testsrc2=size=128x112:rate=25` tiled 2x2 |
| 1200 | /// to 256x224, cq 30, 3 frames (`lanes/av1422ibcrect.report.md` §2, stream |
| 1201 | /// A4). The oracle decodes it to completion; the pre-fix tree refused it |
| 1202 | /// mid-tile with the documented `decodeframe.c:1456` subsize string -- the |
| 1203 | /// E6/E7 desync-symptom class, NOT an invalid shape. |
| 1204 | /// |
| 1205 | /// Measured on the pinned bytes: the 32x32 intrabc block at mi(32,8) |
| 1206 | /// resolves leaves (0,0)+((0,4) 8x8, (4,0)+(4,4) 16x16, so |
| 1207 | /// `left_txfm[32..35]` must read 16 when the NEXT tree's sub-unit at |
| 1208 | /// (32,16) row0col0 reads its `txfm_partition` context (oracle operands |
| 1209 | /// `above=16 left=16`, ctx 9). The blanket publishes reset those cells to |
| 1210 | /// 8 -> ctx 10 -> a wrong `is_split` -> the first divergent read, and the |
| 1211 | /// refusal surfaced ~30 partition symbols later. |
| 1212 | |
| 1213 | |
| 1214 | |
| 1215 | |
| 1216 | |
| 1217 | |
| 1218 | |
| 1219 | |
| 1220 | |
| 1221 | |
| 1222 | |
| 1223 | |
| 1224 | |
| 1225 | |
| 1226 | |
| 1227 | |
| 1228 | |
| 1229 | |
| 1230 | |
| 1231 | |
| 1232 | |
| 1233 | |
| 1234 | |
| 1235 | |
| 1236 | |
| 1237 | /// lane-av1422ibctxsel: the firing gate for `decode_intrabc_owned_rect`'s |
| 1238 | /// NON-SPLIT chroma coefficient context at 4:2:2. |
| 1239 | /// |
| 1240 | /// `lanes/av1422gathercensus.report.md` closed its ss (1, 0) class sweep |
| 1241 | /// with this one gather at STOP -- unwitnessed: `around_mi_rect` over the |
| 1242 | /// block's LUMA span feeds the CHROMA `dc_sign_ctx`, and at ss (1, 0) a |
| 1243 | /// chroma 4-px cell spans TWO luma mi columns, so the per-mi sum counts |
| 1244 | /// every chroma column twice (`around_mi_422_chroma`'s every-second |
| 1245 | /// sampling is libaom's one-vote-per-cell sum). `lane-av1422ibcrect` |
| 1246 | /// found a stream that ENTERS the gather (24 entries) but whose two |
| 1247 | /// gathers agree on every entry, so the class stayed harmless-ON-THAT- |
| 1248 | /// STREAM, not proven. |
| 1249 | /// |
| 1250 | /// This fixture is the discriminating witness: aomenc profile 2, 384x288 |
| 1251 | /// 4:2:2, 4 key frames, `--sb-size=64` with the last superblock row half |
| 1252 | /// outside the frame (so the 64-root partition is a single gathered bit |
| 1253 | /// and the strips are 64x32 HORZ intra-BC strips), `--enable-tx-size- |
| 1254 | /// search=1` plus a high-frequency patch that keeps the frame's `tx_mode` |
| 1255 | /// at `TX_MODE_SELECT` (`txb_split_count > 0`; without it encodeframe.c |
| 1256 | /// :2690 downgrades every frame to `TX_MODE_LARGEST`), and a chroma band |
| 1257 | /// above the strips so a full-weight above context meets a full-weight |
| 1258 | /// left one of the opposite sign. |
| 1259 | /// |
| 1260 | /// Measured on the pinned bytes: 24 non-split chroma gathers entered (6 |
| 1261 | /// strips x 4 frames; 48 plane reads), and FIVE of them -- plane 2, strips |
| 1262 | /// mi (64,16)..(64,80) of frame 0 -- read `dc_sign_ctx` 1 through the |
| 1263 | /// luma-span gather against libaom's 0 through the pair rule (`full = 2A + |
| 1264 | /// L = -8`, `pair = A + L = 0`: the double-counted above vote crosses |
| 1265 | /// zero, and the context is a sign). |
| 1266 | /// |
| 1267 | /// Red-before (the route reverted, same fixture bytes): the wrong sign |
| 1268 | /// context changes the decoded dc-sign CDF and desyncs the tile -- the |
| 1269 | /// decoder refuses the stream mid-frame with "a block size 4x8, 8x16 or |
| 1270 | /// 16x4 ... has no chroma plane block at this frame's subsampling mode", |
| 1271 | /// so NO frame decodes at all. That refusal is also the proof it is a |
| 1272 | /// desync symptom and not a real sub-8x8 shape: both oracles decode the |
| 1273 | /// pinned bytes fully. Green-after: 4/4 frames byte-exact against |
| 1274 | /// ffmpeg's `yuv422p` rawvideo, with the per-plane coefficient-unit |
| 1275 | /// census (the helper's) and the pair-rule route counter as the |
| 1276 | /// non-vacuity arms. The 4:4:4 arm below pins the guard's other side: |
| 1277 | /// the same function at ss (0, 0) keeps the verbatim luma-span gather and |
| 1278 | /// must NOT fire the route. |
| 1279 | |
| 1280 | |
| 1281 | |
| 1282 | |
| 1283 | |
| 1284 | |
| 1285 | |
| 1286 | |
| 1287 | |
| 1288 | |
| 1289 | |
| 1290 | |
| 1291 | |
| 1292 | |
| 1293 | |
| 1294 | |
| 1295 | |
| 1296 | |
| 1297 | |
| 1298 | |
| 1299 | |
| 1300 | |
| 1301 | |
| 1302 | |
| 1303 | |
| 1304 | |
| 1305 | |
| 1306 | |
| 1307 | |
| 1308 | |
| 1309 | |
| 1310 | |
| 1311 | |
| 1312 | |
| 1313 | |
| 1314 | |
| 1315 | |
| 1316 | |
| 1317 | |
| 1318 | |
| 1319 | |
| 1320 | |
| 1321 | |
| 1322 | |
| 1323 | |
| 1324 | |
| 1325 | |
| 1326 | |
| 1327 | |
| 1328 | |
| 1329 | |
| 1330 | |
| 1331 | /// lane-av1-ibc128chunk: the SOURCE-SCAN arm of the witness gate above. |
| 1332 | /// |
| 1333 | /// The decode-level half of the red/green evidence now runs in committed |
| 1334 | /// code too -- the witness gate above, |
| 1335 | /// `the_pinned_422_intrabc_sb128_strip_witnesses_decode_pixel_exact`, |
| 1336 | /// decodes both pins byte-exact against ffmpeg (lane-av1422lift lifted the |
| 1337 | /// sequence-header refusal). This arm complements it by pinning the thing |
| 1338 | /// that would silently bring the defect back: the square-cut |
| 1339 | /// `chunk_chroma = cside * 64 / side` expression, and the per-axis |
| 1340 | /// replacements that replaced it at BOTH sites in |
| 1341 | /// [`decode_intrabc_128rect`] -- the mu-chunk read walk and the |
| 1342 | /// `mu_chroma` per-unit context replay. It also pins the per-axis |
| 1343 | /// counters' accessors so the arms stay reachable, and the walk's own |
| 1344 | /// per-axis extent, derived here from the same `64 >> ss` form the |
| 1345 | /// witnesses measured (4:2:0 = one TX_32X32 per plane per chunk, |
| 1346 | /// 4:2:2 = two stacked, 4:4:4 = four). |
| 1347 | |
| 1348 | |
| 1349 | |
| 1350 | |
| 1351 | |
| 1352 | |
| 1353 | |
| 1354 | |
| 1355 | |
| 1356 | |
| 1357 | |
| 1358 | |
| 1359 | |
| 1360 | |
| 1361 | |
| 1362 | |
| 1363 | |
| 1364 | |
| 1365 | |
| 1366 | |
| 1367 | |
| 1368 | |
| 1369 | |
| 1370 | |
| 1371 | |
| 1372 | |
| 1373 | |
| 1374 | |
| 1375 | |
| 1376 | |
| 1377 | |
| 1378 | |
| 1379 | |
| 1380 | |
| 1381 | |
| 1382 | |
| 1383 | |
| 1384 | |
| 1385 | |
| 1386 | |
| 1387 | |
| 1388 | |
| 1389 | |
| 1390 | |
| 1391 | |
| 1392 | |
| 1393 | |
| 1394 | |
| 1395 | |
| 1396 | |
| 1397 | |
| 1398 | |
| 1399 | |
| 1400 | |
| 1401 | |
| 1402 | |
| 1403 | |
| 1404 | |
| 1405 | |
| 1406 | |
| 1407 | |
| 1408 | |
| 1409 | |
| 1410 | |
| 1411 | |
| 1412 | |
| 1413 | |
| 1414 | |
| 1415 | |
| 1416 | |
| 1417 | |
| 1418 | |
| 1419 | |
| 1420 | |
| 1421 | |
| 1422 | |
| 1423 | |
| 1424 | |
| 1425 | |
| 1426 | |
| 1427 | |
| 1428 | |
| 1429 | |
| 1430 | |
| 1431 | |
| 1432 | |
| 1433 | |
| 1434 | |
| 1435 | |
| 1436 | |
| 1437 | |
| 1438 | |
| 1439 | |
| 1440 | |
| 1441 | |
| 1442 | |
| 1443 | |
| 1444 | |
| 1445 | |
| 1446 | |
| 1447 | |
| 1448 | |
| 1449 | |
| 1450 | |
| 1451 | |
| 1452 | |
| 1453 | |
| 1454 | |
| 1455 | |
| 1456 | |
| 1457 | |
| 1458 | |
| 1459 | |
| 1460 | |
| 1461 | |
| 1462 | |
| 1463 | |
| 1464 | |
| 1465 | |
| 1466 | |
| 1467 | |
| 1468 | |
| 1469 | |
| 1470 | |
| 1471 | |
| 1472 | |
| 1473 | |
| 1474 | |
| 1475 | |
| 1476 | |
| 1477 | |
| 1478 | |
| 1479 | /// lane-av1422gather3: `decode_block_128rect`'s per-chunk CHROMA unit |
| 1480 | /// walk gathered its coefficient context with the plain square-cut |
| 1481 | /// `around_mi_rect`, so at ss (1,0) its above dc vote summed 16 LUMA mi |
| 1482 | /// cells where libaom's `get_txb_ctx_general` reads `txb_w_unit` = |
| 1483 | /// `chroma_tx / 4` = 8 CHROMA cells (one chroma column per PAIR of luma |
| 1484 | /// mi columns; both luma cells of a column carry the covering unit's |
| 1485 | /// whole-unit dc sign). That is the same pair rule the mu-chunk walks |
| 1486 | /// take (`around_mi_422_chroma`), and the gather now routes through it |
| 1487 | /// under the ss guard -- verbatim `around_mi_rect` at every other shape. |
| 1488 | /// |
| 1489 | /// Reachability is MEASURED, not assumed: the walk fires at ss (1,0) on |
| 1490 | /// both pinned `422_intrabc_sb128_strip*.obu` cells, 72 chroma unit |
| 1491 | /// gathers each (`sb128rect_chroma_replay_hits().0`, the same walk's own |
| 1492 | /// replay counter). No committed cell DISCRIMINATES the change: with the |
| 1493 | /// pair rule in place all 21 committed 4:2:2 cells are byte-exact |
| 1494 | /// against ffmpeg, exactly as the pre-change tree was (the gathered |
| 1495 | /// votes cancel at every reached unit), so THIS gate -- not a pixel |
| 1496 | /// compare -- is what stops the routing being reverted. |
| 1497 | /// |
| 1498 | /// lane-av1422mismatch9: the same decode loop now also asserts the |
| 1499 | /// `SB128RECT_REPLAY_SPAN_MISMATCH_HITS` count (NINE per pin) and states |
| 1500 | /// why it is not a pixel miss -- the counter's predicate is a span |
| 1501 | /// DIFFERENCE, true by construction at ss (1,0); the replay re-stamps the |
| 1502 | /// identical context cells with the same per-axis pair the read walk used; |
| 1503 | /// and `record_mi_chroma` writes no pixel sample. See the assert's message. |
| 1504 | |
| 1505 | |
| 1506 | |
| 1507 | |
| 1508 | |
| 1509 | |
| 1510 | |
| 1511 | |
| 1512 | |
| 1513 | |
| 1514 | |
| 1515 | |
| 1516 | |
| 1517 | |
| 1518 | |
| 1519 | |
| 1520 | |
| 1521 | |
| 1522 | |
| 1523 | |
| 1524 | |
| 1525 | |
| 1526 | |
| 1527 | |
| 1528 | |
| 1529 | |
| 1530 | |
| 1531 | |
| 1532 | |
| 1533 | |
| 1534 | |
| 1535 | |
| 1536 | |
| 1537 | |
| 1538 | |
| 1539 | |
| 1540 | |
| 1541 | |
| 1542 | |
| 1543 | |
| 1544 | |
| 1545 | |
| 1546 | |
| 1547 | |
| 1548 | |
| 1549 | |
| 1550 | |
| 1551 | |
| 1552 | |
| 1553 | |
| 1554 | |
| 1555 | |
| 1556 | |
| 1557 | |
| 1558 | |
| 1559 | |
| 1560 | |
| 1561 | |
| 1562 | |
| 1563 | |
| 1564 | |
| 1565 | |
| 1566 | |
| 1567 | |
| 1568 | |
| 1569 | |
| 1570 | |
| 1571 | |
| 1572 | |
| 1573 | |
| 1574 | |
| 1575 | |
| 1576 | |
| 1577 | |
| 1578 | |
| 1579 | |
| 1580 | |
| 1581 | |
| 1582 | |
| 1583 | |
| 1584 | |
| 1585 | |
| 1586 | |
| 1587 | |
| 1588 | |
| 1589 | |
| 1590 | |
| 1591 | |
| 1592 | |
| 1593 | |
| 1594 | |
| 1595 | |
| 1596 | |
| 1597 | |
| 1598 | |
| 1599 | |
| 1600 | |
| 1601 | |
| 1602 | |
| 1603 | |
| 1604 | |
| 1605 | |
| 1606 | |
| 1607 | |
| 1608 | |
| 1609 | |
| 1610 | |
| 1611 | |
| 1612 | |
| 1613 | |
| 1614 | |
| 1615 | |
| 1616 | |
| 1617 | |
| 1618 | |
| 1619 | |
| 1620 | |
| 1621 | |
| 1622 | |
| 1623 | |
| 1624 | |
| 1625 | |
| 1626 | |
| 1627 | |
| 1628 | |
| 1629 | |
| 1630 | |
| 1631 | |
| 1632 | /// lane-av1422lpf: the three 4:2:2 LOSSLESS INTER witness fixtures, |
| 1633 | /// PINNED. As of lane-av1422lift they are asserted to DECODE pixel-exact |
| 1634 | /// against ffmpeg (the lane-av1422lift paragraph at the end of this doc); |
| 1635 | /// before the lift this gate asserted the SEQUENCE-HEADER refusal instead. |
| 1636 | /// |
| 1637 | /// W/X/Y (`W_intrabc.obu`, `X_intrabc_tiled.obu`, `Y_intrabc_10b.obu`) are |
| 1638 | /// the streams on which lane-av1422lpf found the seven-site chroma-extent |
| 1639 | /// PANIC family -- each site indexed a block's chroma PLANE BLOCK with |
| 1640 | /// the ENCLOSING SQUARE `max(side >> ss_x, side >> ss_y)` instead of the |
| 1641 | /// PER-AXIS `(bw >> ss_x, bh >> ss_y)` -- so the pins keep the bytes that |
| 1642 | /// witnessed it from silently changing under the gate. |
| 1643 | /// |
| 1644 | /// WHAT THIS GATE DID NOT COVER BEFORE THE LIFT, measured rather than |
| 1645 | /// argued: the refusal it asserted was the HEADER refusal, which fired |
| 1646 | /// BEFORE any of the seven sites is reachable, and it fired IDENTICALLY on |
| 1647 | /// the pre-fix tree (commit `aef4fa67` prints the same string, built and |
| 1648 | /// run for this correction). As a refusal contract the gate was therefore |
| 1649 | /// VACUOUS with respect to the seven-site fix -- it passed before and |
| 1650 | /// after the fix, and its only real content was the three pins. |
| 1651 | /// |
| 1652 | /// That refusal is GONE (lane-av1422lift lifted the sequence-header |
| 1653 | /// refusal), so the decode-level half of the evidence now runs in |
| 1654 | /// committed code: this gate's own byte-exact arm below decodes all three |
| 1655 | /// fixtures against ffmpeg. `EC_AV1_ALLOW_422_PROBE` was only ever the |
| 1656 | /// patch-run-restore bypass for the manual measurement in |
| 1657 | /// `lanes/av1422lpf.report.md`; it is still deliberately not committed. |
| 1658 | /// The source-scan arm |
| 1659 | /// `the_422_lossless_inter_chroma_walk_sites_stay_per_axis` remains the |
| 1660 | /// per-axis SPELLING proof; the pixel proof is now the committed decode. |
| 1661 | /// |
| 1662 | /// CORRECTED by lane-av1422llintra: the name said `..._panics_refuse_ |
| 1663 | /// by_name`, and lane-av1422lpf's report claimed W and X now REFUSE with |
| 1664 | /// `a Golomb tail longer than this decoder reads` at frame 2. That |
| 1665 | /// refusal DOES NOT REPRODUCE on this tip: with the bypass applied, all |
| 1666 | /// three cells DECODE 16/16 -- no panic and no second refusal. |
| 1667 | /// |
| 1668 | /// lane-av1422lift: the three pins are asserted BYTE-EXACT against |
| 1669 | /// ffmpeg's rawvideo of the same bytes, per plane and per frame, with the |
| 1670 | /// per-plane coefficient-unit census as the non-vacuity arm -- so the |
| 1671 | /// three DECODE 16/16 fact the paragraph above records from a bypassed |
| 1672 | /// probe build is now a committed assertion. `Y` is the 10-bit member |
| 1673 | /// and carries the depth-correct HBD compare (`yuv422p10le`, 16-bit |
| 1674 | /// containers on both sides) rather than an 8-bit narrowing of a |
| 1675 | /// high-bit-depth cell. |
| 1676 | |
| 1677 | |
| 1678 | |
| 1679 | |
| 1680 | |
| 1681 | |
| 1682 | |
| 1683 | |
| 1684 | |
| 1685 | |
| 1686 | |
| 1687 | |
| 1688 | |
| 1689 | |
| 1690 | |
| 1691 | |
| 1692 | |
| 1693 | |
| 1694 | |
| 1695 | |
| 1696 | |
| 1697 | |
| 1698 | |
| 1699 | |
| 1700 | /// lane-av1422lpf: the SOURCE-SCAN arm of the witness gate above -- one |
| 1701 | /// assertion per site, so a mutation at any single site reds exactly that |
| 1702 | /// site and leaves the other six alone. |
| 1703 | /// |
| 1704 | /// Every assertion has a NEGATIVE twin (`forbidden`) and a POSITIVE twin |
| 1705 | /// (`required`), so neither an unreverted site nor a matcher that has |
| 1706 | /// stopped matching can pass: the forbidden string is absent AND the |
| 1707 | /// required string is present in the same function body. The `required` |
| 1708 | /// half is what makes this gate non-vacuous in the |
| 1709 | /// `dead-matcher-positive-control` sense -- a scan that matched nothing |
| 1710 | /// would fail it rather than pass silently. |
| 1711 | /// |
| 1712 | /// WHAT IT DOES NOT COVER: this arm is a SPELLING scan. It cannot observe |
| 1713 | /// a decode, so it cannot prove any cell decodes and cannot prove any |
| 1714 | /// pixel -- the same limit as the witness gate above it, and stated here |
| 1715 | /// because "one assertion per site, each with a mutation proof" reads |
| 1716 | /// like more coverage than it is. |
| 1717 | /// |
| 1718 | /// `strip_code` is the same comment-stripping the arms above use: the |
| 1719 | /// fixes quote their own old expression to say what it was, and a prose |
| 1720 | /// mention must neither read as a reintroduction nor mask one. |
| 1721 | |
| 1722 | |
| 1723 | |
| 1724 | |
| 1725 | |
| 1726 | |
| 1727 | |
| 1728 | |
| 1729 | |
| 1730 | |
| 1731 | |
| 1732 | |
| 1733 | |
| 1734 | |
| 1735 | |
| 1736 | |
| 1737 | |
| 1738 | |
| 1739 | |
| 1740 | |
| 1741 | |
| 1742 | |
| 1743 | |
| 1744 | |
| 1745 | |
| 1746 | |
| 1747 | |
| 1748 | |
| 1749 | |
| 1750 | |
| 1751 | |
| 1752 | |
| 1753 | |
| 1754 | |
| 1755 | |
| 1756 | |
| 1757 | |
| 1758 | |
| 1759 | |
| 1760 | |
| 1761 | |
| 1762 | |
| 1763 | |
| 1764 | |
| 1765 | |
| 1766 | |
| 1767 | |
| 1768 | |
| 1769 | |
| 1770 | |
| 1771 | |
| 1772 | |
| 1773 | |
| 1774 | |
| 1775 | |
| 1776 | |
| 1777 | |
| 1778 | |
| 1779 | |
| 1780 | |
| 1781 | |
| 1782 | |
| 1783 | |
| 1784 | |
| 1785 | |
| 1786 | |
| 1787 | |
| 1788 | |
| 1789 | |
| 1790 | |
| 1791 | |
| 1792 | |
| 1793 | |
| 1794 | |
| 1795 | |
| 1796 | |
| 1797 | |
| 1798 | |
| 1799 | |
| 1800 | |
| 1801 | |
| 1802 | |
| 1803 | |
| 1804 | |
| 1805 | |
| 1806 | |
| 1807 | |
| 1808 | |
| 1809 | |
| 1810 | |
| 1811 | |
| 1812 | |
| 1813 | |
| 1814 | |
| 1815 | |
| 1816 | |
| 1817 | |
| 1818 | |
| 1819 | |
| 1820 | |
| 1821 | |
| 1822 | |
| 1823 | |
| 1824 | |
| 1825 | |
| 1826 | |
| 1827 | |
| 1828 | |
| 1829 | |
| 1830 | |
| 1831 | |
| 1832 | |
| 1833 | |
| 1834 | |
| 1835 | |
| 1836 | |
| 1837 | |
| 1838 | |
| 1839 | |
| 1840 | |
| 1841 | |
| 1842 | |
| 1843 | |
| 1844 | |
| 1845 | |
| 1846 | |
| 1847 | |
| 1848 | |
| 1849 | |
| 1850 | |
| 1851 | |
| 1852 | |
| 1853 | |
| 1854 | |
| 1855 | |
| 1856 | |
| 1857 | |
| 1858 | |
| 1859 | |
| 1860 | |
| 1861 | |
| 1862 | |
| 1863 | |
| 1864 | |
| 1865 | |
| 1866 | |
| 1867 | |
| 1868 | |
| 1869 | |
| 1870 | |
| 1871 | |
| 1872 | |
| 1873 | |
| 1874 | |
| 1875 | |
| 1876 | |
| 1877 | |
| 1878 | |
| 1879 | |
| 1880 | |
| 1881 | |
| 1882 | |
| 1883 | |
| 1884 | |
| 1885 | |
| 1886 | |
| 1887 | |
| 1888 | |
| 1889 | |
| 1890 | |
| 1891 | |
| 1892 | |
| 1893 | |
| 1894 | |
| 1895 | |
| 1896 | |
| 1897 | |
| 1898 | |
| 1899 | |
| 1900 | |
| 1901 | |
| 1902 | |
| 1903 | |
| 1904 | |
| 1905 | |
| 1906 | |
| 1907 | |
| 1908 | |
| 1909 | |
| 1910 | |
| 1911 | |
| 1912 | |
| 1913 | |
| 1914 | |
| 1915 | |
| 1916 | |
| 1917 | |
| 1918 | |
| 1919 | |
| 1920 | |
| 1921 | |
| 1922 | |
| 1923 | |
| 1924 | |
| 1925 | |
| 1926 | |
| 1927 | |
| 1928 | |
| 1929 | |
| 1930 | |
| 1931 | /// lane-av1422warp: the SECOND 4:2:2 coverage witness -- the one |
| 1932 | /// `422_sb128_3f.obu` could not be, because that stream's inter content |
| 1933 | /// is skip-heavy (see `lanes/av1422stripwrite.report.md`, which named a |
| 1934 | /// second fixture with real residuals, compound and warped motion above |
| 1935 | /// the vertical midpoint as the thing that would justify lifting the |
| 1936 | /// refusal). This is that fixture. |
| 1937 | /// |
| 1938 | /// `422_residual_compound_warp_16f.obu` (38845 bytes), sha256 |
| 1939 | /// `d78e2afb43ce311d3d82335a945c6f80f62db4537966d881c1349a68b3aecb95`: |
| 1940 | /// |
| 1941 | /// ```text |
| 1942 | /// ffmpeg -f lavfi -i "mandelbrot=size=256x288:rate=24:maxiter=220:start_scale=3:end_scale=0.35:end_pts=300,rotate=a=0.10*t:c=none:ow=256:oh=288" \ |
| 1943 | /// -frames:v 24 -pix_fmt yuv422p -f yuv4mpegpipe src422.y4m |
| 1944 | /// aomenc --codec=av1 --profile=2 --input-bit-depth=8 --limit=16 |
| 1945 | /// --width=256 --height=288 --lag-in-frames=25 --auto-alt-ref=1 |
| 1946 | /// --enable-global-motion=1 --pass=1 |
| 1947 | /// --cq-level=24 --cpu-used=0 |
| 1948 | /// --threads=4 --kf-min-dist=0 --kf-max-dist=999999 \ |
| 1949 | /// src422.y4m -o a1.webm |
| 1950 | /// ffmpeg -i a1.webm -c copy -f obu -y a1.obu |
| 1951 | /// ``` |
| 1952 | /// |
| 1953 | /// CORRECTED by lane-av1422lrless (reviewer P2). This doc previously |
| 1954 | /// carried a different ffmpeg filter (`rotate=a=0.10`, no `*t`, no |
| 1955 | /// `:c=none:ow/oh`) and a `-n ffp --pass=2 --fpf=...` two-pass line. |
| 1956 | /// **Neither produced these bytes.** Re-encoding from the recorded |
| 1957 | /// source `src422.y4m` (sha256 |
| 1958 | /// `4d35eaf65d1a5541b3177e1183644c163b3868d8f141bed0ce9fdf833280ba9f`) |
| 1959 | /// was measured three ways: the two-pass form gives 38774 bytes |
| 1960 | /// (`e93c4ed7...`), and only adding `--pass=1` reproduces these 38845 |
| 1961 | /// bytes byte for byte (`d78e2afb...`). `aomenc` DEFAULTS to two-pass, |
| 1962 | /// so the flag has to be stated to get back the pinned stream. The |
| 1963 | /// recipe above is the one that was actually run. |
| 1964 | /// |
| 1965 | /// Measured on a patch-run-restore build (the `EC_AV1_ALLOW_422_PROBE` |
| 1966 | /// bypass applied for the run, reverted after -- it is deliberately NOT |
| 1967 | /// committed). This block is the bypassed measurement; the committed |
| 1968 | /// assertion is now the byte-exact compare in the lane-av1422lift |
| 1969 | /// paragraph below: |
| 1970 | /// |
| 1971 | /// - all 16 frames pixel-exact against `aomdec --rawvideo`, 2359296 |
| 1972 | /// bytes each, sha256 `4bfc2395e5ca6ea178f606e6b1ced773e26fc2d85b |
| 1973 | /// c3a6cdb63a402939aeb203` on both sides; |
| 1974 | /// - the entropy stream pairs bit-for-bit against the instrumented |
| 1975 | /// oracle -- 246735 symbol reads each, no divergence anywhere in the |
| 1976 | /// stream, not merely at the window this lane spent nine rounds |
| 1977 | /// narrowing; |
| 1978 | /// - the arms this fixture exists to cover really fire ABOVE the |
| 1979 | /// vertical midpoint: 3 upper-half blocks on a non-`TRANSLATION` |
| 1980 | /// global-motion model (`top_half_warp_hits`, gated on libaom's |
| 1981 | /// `is_global_mv_block` per slot) and 3 upper-half |
| 1982 | /// `GLOBAL_GLOBALMV` compound blocks (`top_half_compound_hits`), |
| 1983 | /// alongside 25 compound-warp, 18 compound-warp-8x8-leaf, 84 |
| 1984 | /// rotzoom global-warp, 22 Wiener and 10 SGRPROJ loop-restoration |
| 1985 | /// units frame-globally. |
| 1986 | /// |
| 1987 | /// The loop-restoration numbers are load-bearing twice over: decoding |
| 1988 | /// this stream is what exposed the per-axis `read_lr` corner bug |
| 1989 | /// (`restoration.rs`, `av1_loop_restoration_corners_in_sb`), whose fix |
| 1990 | /// is what made the whole sequence pair. 4:2:0 and 4:4:4 are unchanged |
| 1991 | /// by it -- byte-identical to their pre-lane decodes, with the LR gate |
| 1992 | /// family green. |
| 1993 | /// |
| 1994 | /// lane-av1422lift: the committed assertion is now the byte pin AND |
| 1995 | /// byte-exactness against ffmpeg's `yuv422p` rawvideo of the same bytes, |
| 1996 | /// per plane and per frame, with the per-plane coefficient-unit census |
| 1997 | /// as the non-vacuity arm. The paragraph above's coverage counts (25 |
| 1998 | /// compound-warp, 84 rotzoom global-warp, 22 Wiener, 10 SGRPROJ, CDEF |
| 1999 | /// 39) are what make the row non-vacuous: without them a byte-exact |
| 2000 | /// compare could be green over a stream that never entered a warp arm. |
| 2001 | |
| 2002 | |
| 2003 | |
| 2004 | |
| 2005 | |
| 2006 | |
| 2007 | |
| 2008 | |
| 2009 | |
| 2010 | |
| 2011 | |
| 2012 | |
| 2013 | |
| 2014 | |
| 2015 | |
| 2016 | |
| 2017 | |
| 2018 | |
| 2019 | |
| 2020 | |
| 2021 | |
| 2022 | |
| 2023 | |
| 2024 | |
| 2025 | /// lane-av1422lrless: the LR-OFF half of the 4:2:2 coverage pair. |
| 2026 | /// |
| 2027 | /// This is `422_residual_compound_warp_16f.obu`'s recipe with EXACTLY |
| 2028 | /// ONE flag changed, `--enable-restoration=0`, and that is a measured |
| 2029 | /// claim rather than an assertion: both arms were re-encoded from the |
| 2030 | /// same source `src422.y4m` (sha256 |
| 2031 | /// `4d35eaf65d1a5541b3177e1183644c163b3868d8f141bed0ce9fdf833280ba9f`) |
| 2032 | /// with the same aomenc invocation, and the LR-on arm reproduces the |
| 2033 | /// committed 38845 bytes byte for byte. So the pair is controlled, and |
| 2034 | /// the corners code is the only thing that can differ between their |
| 2035 | /// decodes: with restoration off, every plane's `frame_restoration_type` |
| 2036 | /// is `RESTORE_NONE`, so `read_lr` skips each plane and never computes a |
| 2037 | /// range. The LR-on stream exercises the range; this one proves the skip |
| 2038 | /// is the skip. |
| 2039 | /// |
| 2040 | /// ```text |
| 2041 | /// aomenc --codec=av1 --profile=2 --input-bit-depth=8 --limit=16 |
| 2042 | /// --width=256 --height=288 --lag-in-frames=25 --auto-alt-ref=1 |
| 2043 | /// --enable-global-motion=1 --pass=1 --enable-restoration=0 |
| 2044 | /// --cq-level=24 --cpu-used=0 |
| 2045 | /// --threads=4 --kf-min-dist=0 --kf-max-dist=999999 \ |
| 2046 | /// src422.y4m -o a3.webm |
| 2047 | /// ffmpeg -i a3.webm -c copy -f obu -y a3.obu |
| 2048 | /// ``` |
| 2049 | /// |
| 2050 | /// 38538 bytes, sha256 |
| 2051 | /// `8bed368f7ec4bca772137c6a9c2af89e1b2767ed5f937b91bd9e72ec60aeb42f`. |
| 2052 | /// |
| 2053 | /// Measured on a patch-run-restore build (the `EC_AV1_ALLOW_422_PROBE` |
| 2054 | /// bypass applied for the run, reverted after -- deliberately not |
| 2055 | /// committed). This block is the bypassed measurement; the committed |
| 2056 | /// assertion is now the byte-exact compare in the lane-av1422lift |
| 2057 | /// paragraph below: |
| 2058 | /// |
| 2059 | /// - all 16 frames pixel-exact against `aomdec --rawvideo`, 2359296 |
| 2060 | /// bytes each, sha256 `1cf47bc9e06a6e286452dfe4ffe457a85b6badd25 |
| 2061 | /// 657dfd36af48262e8eb2464` on both sides; |
| 2062 | /// - the entropy stream pairs **244756-for-244756** against the |
| 2063 | /// instrumented oracle with no divergence anywhere -- a different |
| 2064 | /// read count from the LR-on sibling's 246735, which is the corners |
| 2065 | /// skip showing up in the symbol stream, so the two arms really are |
| 2066 | /// on different paths; |
| 2067 | /// - **loop restoration is proved off, not inferred from the flag**: |
| 2068 | /// all five LR counters read zero where the LR-on sibling reads |
| 2069 | /// `lr_wiener` 22, `lr_sgrproj` 10, `lr_stripe0` 26, `lr_last_stripe` |
| 2070 | /// 28; |
| 2071 | /// - and it carries MORE of the coverage than its sibling, which is |
| 2072 | /// what rescues the thin leg of the lift argument: **top-half |
| 2073 | /// compound 11** against the sibling's 3, and top-half warp 5 against |
| 2074 | /// 3. Frame-globally compound_warp 25, compound_warp_8 15, rotzoom |
| 2075 | /// global-warp 77, cdef_idx 39, part128_split 95. The stronger arm is |
| 2076 | /// the one where `read_lr` does nothing at all, so the engagement is |
| 2077 | /// not an artefact of the code under test. |
| 2078 | /// |
| 2079 | /// lane-av1422lift: same scope change as its siblings, and this is the arm |
| 2080 | /// where it matters most: this stream is the one where `read_lr` does |
| 2081 | /// nothing at all, so a byte-exact green over it is a claim about the |
| 2082 | /// per-axis path WITHOUT the loop-restoration corner fix carrying it. |
| 2083 | /// The pin stays, the compare against ffmpeg's `yuv422p` rawvideo is |
| 2084 | /// added per plane and per frame, and the per-plane coefficient-unit |
| 2085 | /// census is the non-vacuity arm. |
| 2086 | |
| 2087 | |
| 2088 | |
| 2089 | |
| 2090 | |
| 2091 | |
| 2092 | |
| 2093 | |
| 2094 | |
| 2095 | |
| 2096 | |
| 2097 | |
| 2098 | |
| 2099 | |
| 2100 | |
| 2101 | |
| 2102 | |
| 2103 | |
| 2104 | |
| 2105 | |
| 2106 | |
| 2107 | |
| 2108 | |
| 2109 | |
| 2110 | /// lane-av1422lift: 4:2:2 FILM GRAIN, and why this one gate cannot use |
| 2111 | /// the dump path or the shared body above. |
| 2112 | /// |
| 2113 | /// `EC_AV1_FINAL_DUMP` writes the picture "exactly as it is about to be |
| 2114 | /// stored into the reference slots" (`stream.rs`, the dump site beside |
| 2115 | /// the emit), which is BEFORE `apply_grain` runs on the output. ffmpeg's |
| 2116 | /// rawvideo is POST-grain. So every grain cell -- 4:2:0, 4:2:2, 12-bit, |
| 2117 | /// all of them -- is incomparable through the dump, and the corpus |
| 2118 | /// comparator hits it as a hard error rather than as a clean red |
| 2119 | /// (measured on `s422_grain_160x128.obu`: "luma identity never covers the |
| 2120 | /// display side (3 decode frames, 3 display frames)"). This gate |
| 2121 | /// therefore compares the IN-MEMORY `decode_stream` output, which is |
| 2122 | /// post-grain, exactly like |
| 2123 | /// `a_real_aomenc_12bit_film_grain_stream_decodes_pixel_exact` does for |
| 2124 | /// 12-bit 4:2:0. Using the pre-grain dump here would make the gate |
| 2125 | /// permanently red for a reason that has nothing to do with grain. |
| 2126 | /// |
| 2127 | /// The pin, `s422_grain_160x128.obu` (5433 bytes, sha256 |
| 2128 | /// `a4a6957b5e8298d9138f64498cab2d3008b3390fa73cd0d74aa0632b13d93d15`, |
| 2129 | /// fnv1a64 `0x2aed47614b9461b8`), is aomenc profile 2 over a `C422` |
| 2130 | /// testsrc2 160x128 3-frame source with `--film-grain-test=5`, |
| 2131 | /// `--passes=1 --end-usage=q --cq-level=24 --cpu-used=0 --threads=1 |
| 2132 | /// --row-mt=0 --limit=3 --obu`. |
| 2133 | /// |
| 2134 | /// Two arms, because a green compare over a stream whose grain never ran |
| 2135 | /// is the "params-without-apply" false green: |
| 2136 | /// |
| 2137 | /// 1. the stream's OWN frame headers carry `apply_grain` and scaling |
| 2138 | /// points on all THREE planes -- at 4:2:2 that is the shape libaom's |
| 2139 | /// `generate_grain_uv_422` exists for, and it is read out of the |
| 2140 | /// bytes, not out of the flags handed to the encoder; |
| 2141 | /// 2. `film_grain::grain_hits()` moves across the decode. |
| 2142 | |
| 2143 | |
| 2144 | |
| 2145 | |
| 2146 | |
| 2147 | |
| 2148 | |
| 2149 | |
| 2150 | |
| 2151 | |
| 2152 | |
| 2153 | |
| 2154 | |
| 2155 | |
| 2156 | |
| 2157 | |
| 2158 | |
| 2159 | |
| 2160 | |
| 2161 | |
| 2162 | |
| 2163 | |
| 2164 | |
| 2165 | |
| 2166 | |
| 2167 | |
| 2168 | |
| 2169 | |
| 2170 | |
| 2171 | |
| 2172 | |
| 2173 | |
| 2174 | |
| 2175 | |
| 2176 | |
| 2177 | |
| 2178 | |
| 2179 | |
| 2180 | |
| 2181 | |
| 2182 | |
| 2183 | |
| 2184 | |
| 2185 | |
| 2186 | |
| 2187 | |
| 2188 | |
| 2189 | |
| 2190 | |
| 2191 | |
| 2192 | |
| 2193 | |
| 2194 | |
| 2195 | |
| 2196 | |
| 2197 | |
| 2198 | |
| 2199 | |
| 2200 | |
| 2201 | |
| 2202 | |
| 2203 | |
| 2204 | |
| 2205 | |
| 2206 | |
| 2207 | |
| 2208 | |
| 2209 | |
| 2210 | |
| 2211 | |
| 2212 | |
| 2213 | |
| 2214 | |
| 2215 | |
| 2216 | |
| 2217 | |
| 2218 | |
| 2219 | |
| 2220 | |
| 2221 | |
| 2222 | |
| 2223 | /// lane-av1422lift: THE CORPUS BATTERY -- the gate the 4:2:2 campaign |
| 2224 | /// earned, and the one that replaces seven gates whose only behavioural |
| 2225 | /// assertion was `err.contains(REFUSAL)`. |
| 2226 | /// |
| 2227 | /// **Why these seven.** The measurement base |
| 2228 | /// (`lanes/av1422ffmpegbase.report.md` section 2.1) recorded seven 4:2:2 |
| 2229 | /// cells that diverged from ffmpeg: `s422_320x246`, `s422_322x240`, |
| 2230 | /// `s422_322x246`, `s422_352x242_10b`, `s422_384x240`, |
| 2231 | /// `s422_416x242_10b`, `s422_416x250_10b`. ALL SEVEN are closed and are |
| 2232 | /// pinned here, each byte-exact against ffmpeg with the per-plane |
| 2233 | /// coefficient-unit census as its non-vacuity arm. Six of them are |
| 2234 | /// CHROMA-only divergences at non-8-aligned geometries -- odd or |
| 2235 | /// 2-mod-4 luma dimensions, where `round_ss` and the chroma block walk |
| 2236 | /// disagree with a hardcoded `>> 1` -- which is why they are the rows a |
| 2237 | /// lift cannot afford to leave unasserted: they are the cells that would |
| 2238 | /// go quietly wrong again. |
| 2239 | /// |
| 2240 | /// **The seventh, `s422_384x240`, IS here now.** lane-av1422lift pinned six |
| 2241 | /// of the seven and deliberately left this one out: it was still red, and |
| 2242 | /// pinning a red cell inside a green gate is how a gate stops being a gate |
| 2243 | /// ("THIS BRANCH MUST NOT LAND UNTIL THAT CELL CLOSES AND THE CORPUS |
| 2244 | /// RE-MEASURES 51/51", `lanes/av1422lift.report.md` §7). The cell closed in |
| 2245 | /// lane-av1422tailskip, and NOT through the reserved group-tail chroma SKIP |
| 2246 | /// arm the risk study's R4 blamed: that lane measured it byte-exact against |
| 2247 | /// ffmpeg on all 16 displayed frames and all 17 decode-order frames, 0/0/0 |
| 2248 | /// wrong samples in Y/U/V, with the fix's own counter |
| 2249 | /// (`palette_422_unit_window_hits`) non-zero on this stream. |
| 2250 | /// `lanes/av1422tailskip.report.md` §1 records the measurement and the |
| 2251 | /// refutation of the arm attribution. |
| 2252 | /// |
| 2253 | /// That lane had already committed these exact bytes under the name |
| 2254 | /// `422_palette_intra_in_inter_384x240_17f.obu` (sha256 `bf1c658e...a815b`, |
| 2255 | /// the sweep artifact byte for byte), so the row below pins THAT file |
| 2256 | /// rather than committing a second copy of one stream under a second name. |
| 2257 | /// Unlike the other six, this cell sits at an 8- AND 16-aligned geometry |
| 2258 | /// (384x240): it was the late-starting frame-1 alt-ref chroma residual |
| 2259 | /// (`lanes/av1422late.report.md`), not the `round_ss` class -- which is why |
| 2260 | /// it is pinned as its own row here rather than folded into that sentence. |
| 2261 | /// |
| 2262 | /// **The corpus re-measures 51/51**, which was the second half of the |
| 2263 | /// condition the paragraph above quotes. Re-run for this row with the |
| 2264 | /// ffmpeg-oracle census driver (`~/.cache/census422b/ffcensus.py`: display |
| 2265 | /// order, shown frames, geometry from `ffprobe`, a count over zero frames |
| 2266 | /// is a hard error) and a `dump_yuv` built from THIS lane's tree: |
| 2267 | /// **51 of 51 4:2:2 cells BYTE-EXACT** -- `s422_384x240` among them at |
| 2268 | /// 0/0/0 -- and, in the same run, all 44 4:2:0 / 4:4:4 controls BYTE-EXACT |
| 2269 | /// (95/95 over the whole corpus). That run is a measurement of this tree, |
| 2270 | /// not a re-reading of the closure report; the per-cell rows here are what |
| 2271 | /// keep the seven named ones from drifting back. |
| 2272 | /// |
| 2273 | /// **The census arm, per row.** `assert_422_stream_pixel_exact` asserts |
| 2274 | /// that all three planes read a non-zero number of coefficient units AND |
| 2275 | /// a non-zero number of units that coded at least one coefficient, on |
| 2276 | /// this row's own bytes. That is the requirement R8 named as unwritable |
| 2277 | /// before lane-av1422census422 armed the census for `(1,0)`; measured on |
| 2278 | /// this tree the OLD arming read `[0, 0, 0]` on every 4:2:2 cell while |
| 2279 | /// the same decode walked 4994 units, so a green here with no census |
| 2280 | /// assert would have proven nothing about 4:2:2. |
| 2281 | /// |
| 2282 | /// **Provenance of the seven pins.** All seven are `aomenc --codec=av1 |
| 2283 | /// --profile=2 --input-bit-depth=<8|10> --cpu-used=0 --cq-level=24 |
| 2284 | /// --limit=16 --auto-alt-ref=1 --enable-global-motion=1 --passes=1 |
| 2285 | /// --obu` over a hand-built `C422` y4m (header line, then `FRAME\n` plus |
| 2286 | /// one frame of planes per frame -- libaom's y4minput requires those six |
| 2287 | /// bytes before EVERY frame), produced by the census sweep. The first six |
| 2288 | /// were copied in from `~/.cache/census422b/sweep/`; the seventh is the |
| 2289 | /// same sweep's `s422_384x240.obu`, which lane-av1422tailskip had already |
| 2290 | /// committed under the name in its own row (the two files are byte for |
| 2291 | /// byte identical -- sha256 `bf1c658e9bfdc13ec1ed51e59049d2b81201941b6ef45\ |
| 2292 | /// 71f8382f356ea4b815b`), so it is pinned under that name here. They are |
| 2293 | /// ordinary libaom 4:2:2 streams with nothing bolted on. |
| 2294 | |
| 2295 | |
| 2296 | |
| 2297 | |
| 2298 | |
| 2299 | |
| 2300 | |
| 2301 | |
| 2302 | |
| 2303 | |
| 2304 | |
| 2305 | |
| 2306 | |
| 2307 | |
| 2308 | |
| 2309 | |
| 2310 | |
| 2311 | |
| 2312 | |
| 2313 | |
| 2314 | |
| 2315 | |
| 2316 | |
| 2317 | |
| 2318 | |
| 2319 | |
| 2320 | |
| 2321 | |
| 2322 | |
| 2323 | |
| 2324 | |
| 2325 | |
| 2326 | |
| 2327 | |
| 2328 | |
| 2329 | |
| 2330 | |
| 2331 | |
| 2332 | |
| 2333 | |
| 2334 | |
| 2335 | |
| 2336 | |
| 2337 | |
| 2338 | |
| 2339 | |
| 2340 | |
| 2341 | |
| 2342 | |
| 2343 | |
| 2344 | |
| 2345 | |
| 2346 | |
| 2347 | |
| 2348 | |
| 2349 | |
| 2350 | |
| 2351 | |
| 2352 | |
| 2353 | |
| 2354 | |
| 2355 | |
| 2356 | |
| 2357 | |
| 2358 | |
| 2359 | |
| 2360 | |
| 2361 | |
| 2362 | |
| 2363 | |
| 2364 | |
| 2365 | |
| 2366 | |
| 2367 | |
| 2368 | |
| 2369 | |
| 2370 | |
| 2371 | |
| 2372 | |
| 2373 | |
| 2374 | |
| 2375 | |
| 2376 | |
| 2377 | |
| 2378 | |
| 2379 | |
| 2380 | |
| 2381 | |
| 2382 | |
| 2383 | |
| 2384 | |
| 2385 | |
| 2386 | |
| 2387 | |
| 2388 | |
| 2389 | |
| 2390 | |
| 2391 | |
| 2392 | |
| 2393 | |
| 2394 | |
| 2395 | |
| 2396 | |
| 2397 | |
| 2398 | /// lane-av1-qmatrix: WITNESS for the lifted `using_qmatrix` refusal (the |
| 2399 | /// old gate `a_frame_using_quantisation_matrices_is_refused_by_name` is |
| 2400 | /// its mirror image -- its own panic said "flip this gate to a witness" |
| 2401 | /// the moment the dequant landed). |
| 2402 | /// |
| 2403 | /// A REAL `aomenc --enable-qm=1` stream (same source and recipe as the |
| 2404 | /// refusal's gate, plus its `--enable-qm=0` control) now DECODES, and |
| 2405 | /// every frame of both arms is pixel-exact against ffmpeg's own decode |
| 2406 | /// of the same OBU. The census proves the feature non-vacuously both |
| 2407 | /// ways (class `gate-blind-to-feature`): the parsed frame headers really |
| 2408 | /// carry `using_qmatrix = 1`, the dequantiser really SCALED transform |
| 2409 | /// units through a matrix on the qm-on arm (`qm_scaled_units() > 0`), |
| 2410 | /// and the qm-off control really scaled none (`== 0`). |
| 2411 | |
| 2412 | |
| 2413 | |
| 2414 | |
| 2415 | |
| 2416 | |
| 2417 | |
| 2418 | |
| 2419 | |
| 2420 | |
| 2421 | |
| 2422 | |
| 2423 | |
| 2424 | |
| 2425 | |
| 2426 | |
| 2427 | |
| 2428 | |
| 2429 | |
| 2430 | |
| 2431 | |
| 2432 | |
| 2433 | |
| 2434 | |
| 2435 | |
| 2436 | |
| 2437 | |
| 2438 | |
| 2439 | |
| 2440 | |
| 2441 | |
| 2442 | |
| 2443 | |
| 2444 | |
| 2445 | |
| 2446 | |
| 2447 | |
| 2448 | |
| 2449 | |
| 2450 | |
| 2451 | |
| 2452 | |
| 2453 | |
| 2454 | |
| 2455 | |
| 2456 | |
| 2457 | |
| 2458 | |
| 2459 | |
| 2460 | |
| 2461 | |
| 2462 | |
| 2463 | |
| 2464 | |
| 2465 | |
| 2466 | |
| 2467 | |
| 2468 | |
| 2469 | |
| 2470 | |
| 2471 | |
| 2472 | |
| 2473 | |
| 2474 | |
| 2475 | |
| 2476 | |
| 2477 | |
| 2478 | |
| 2479 | |
| 2480 | |
| 2481 | |
| 2482 | |
| 2483 | |
| 2484 | |
| 2485 | |
| 2486 | |
| 2487 | |
| 2488 | |
| 2489 | |
| 2490 | |
| 2491 | |
| 2492 | |
| 2493 | |
| 2494 | |
| 2495 | |
| 2496 | |
| 2497 | |
| 2498 | |
| 2499 | |
| 2500 | |
| 2501 | |
| 2502 | |
| 2503 | |
| 2504 | |
| 2505 | |
| 2506 | |
| 2507 | |
| 2508 | |
| 2509 | |
| 2510 | |
| 2511 | |
| 2512 | |
| 2513 | |
| 2514 | |
| 2515 | |
| 2516 | |
| 2517 | |
| 2518 | |
| 2519 | |
| 2520 | |
| 2521 | |
| 2522 | |
| 2523 | |
| 2524 | |
| 2525 | |
| 2526 | |
| 2527 | |
| 2528 | |
| 2529 | |
| 2530 | |
| 2531 | |
| 2532 | |
| 2533 | |
| 2534 | |
| 2535 | |
| 2536 | |
| 2537 | |
| 2538 | |
| 2539 | |
| 2540 | |
| 2541 | |
| 2542 | |
| 2543 | |
| 2544 | |
| 2545 | |
| 2546 | |
| 2547 | |
| 2548 | |
| 2549 | |
| 2550 | |
| 2551 | |
| 2552 | |
| 2553 | |
| 2554 | |
| 2555 | |
| 2556 | |
| 2557 | |
| 2558 | |
| 2559 | |
| 2560 | |
| 2561 | |
| 2562 | |
| 2563 | |
| 2564 | |
| 2565 | |
| 2566 | |
| 2567 | |
| 2568 | |
| 2569 | |
| 2570 | |
| 2571 | |
| 2572 | |
| 2573 | |
| 2574 | |
| 2575 | |
| 2576 | |
| 2577 | |
| 2578 | |
| 2579 | |
| 2580 | |
| 2581 | |
| 2582 | |
| 2583 | |
| 2584 | /// lane-av1mono: the INVERSE of the pilot's |
| 2585 | /// `a_real_libaom_monochrome_key_frame_is_refused_by_name`, which the |
| 2586 | /// pilot's merge `d71084ae` landed on `main` (after this lane's base |
| 2587 | /// `7f4e8301`): the very same recipe now decodes, and its luma is |
| 2588 | /// byte-exact against ffmpeg's own decode of the same OBU. A merge of this |
| 2589 | /// lane into `main` must therefore resolve that pinning gate by adopting |
| 2590 | /// this witness in its place. |
| 2591 | /// |
| 2592 | /// `ffmpeg -pix_fmt gray -c:v libaom-av1` sets `color_config.mono_chrome`, |
| 2593 | /// so libaom codes NO chroma symbol anywhere in the sequence -- not the |
| 2594 | /// mode syntax, not a coefficient. That reaches all three classes this lane |
| 2595 | /// had to close: chroma SYMBOL reads (`uv_mode`/cfl/angle/palette), chroma |
| 2596 | /// COEFFICIENT reads on the rect-strip paths that call `read_coeffs_rect` |
| 2597 | /// DIRECTLY instead of through `read_plane`'s own plane gate, and the |
| 2598 | /// palette-mode neighbour band a mono sub-8x8 leaf must still clear before |
| 2599 | /// it returns (an uncleared band made the next block read `palette_y_mode` |
| 2600 | /// off the wrong CDF row and silently desynced the rest of the tile -- |
| 2601 | /// measured at decode-order frame 33 of this very recipe). |
| 2602 | /// |
| 2603 | /// The 4:2:0 twin of the same source and settings is the control: it proves |
| 2604 | /// the recipe is decodable, so a failure here is about the plane count and |
| 2605 | /// not about the source or the encoder settings. |
| 2606 | |
| 2607 | |
| 2608 | |
| 2609 | |
| 2610 | |
| 2611 | |
| 2612 | |
| 2613 | |
| 2614 | |
| 2615 | |
| 2616 | |
| 2617 | |
| 2618 | |
| 2619 | |
| 2620 | |
| 2621 | |
| 2622 | |
| 2623 | |
| 2624 | |
| 2625 | |
| 2626 | |
| 2627 | |
| 2628 | |
| 2629 | |
| 2630 | |
| 2631 | |
| 2632 | |
| 2633 | |
| 2634 | |
| 2635 | |
| 2636 | |
| 2637 | |
| 2638 | |
| 2639 | |
| 2640 | |
| 2641 | |
| 2642 | |
| 2643 | |
| 2644 | |
| 2645 | |
| 2646 | |
| 2647 | |
| 2648 | |
| 2649 | |
| 2650 | |
| 2651 | |
| 2652 | |
| 2653 | |
| 2654 | |
| 2655 | |
| 2656 | |
| 2657 | |
| 2658 | |
| 2659 | |
| 2660 | |
| 2661 | |
| 2662 | |
| 2663 | |
| 2664 | |
| 2665 | |
| 2666 | |
| 2667 | |
| 2668 | |
| 2669 | |
| 2670 | |
| 2671 | |
| 2672 | |
| 2673 | |
| 2674 | |
| 2675 | |
| 2676 | |
| 2677 | |
| 2678 | |
| 2679 | |
| 2680 | |
| 2681 | |
| 2682 | /// lane-t900 r25: the refusal "a frame OBU with no tile group" names a |
| 2683 | /// shape the parser cannot hand [`decode_stream`]. |
| 2684 | /// |
| 2685 | /// `tiles` reaches that check from exactly two places -- `ObuKind::Frame`'s |
| 2686 | /// own vector and the `ObuKind::TileGroup` accumulation -- and both are |
| 2687 | /// filled by `ec_av1_syntax`'s `parse_tile_group`, whose only success path |
| 2688 | /// pushes one `Tile` per `tile_num` of the INCLUSIVE range |
| 2689 | /// `tg_start..=tg_end`. That range is never empty: the single-tile-group |
| 2690 | /// case takes `(0, num_tiles - 1)` saturating at 0, and the multi-group |
| 2691 | /// case rejects `end < start` as corrupt. So an `OBU_FRAME` either fails to |
| 2692 | /// parse or carries at least one tile, however short its payload is -- |
| 2693 | /// including the empty payload the charter for this round asked to build, |
| 2694 | /// which parses into ONE zero-byte tile rather than none. |
| 2695 | /// |
| 2696 | /// Sweeping a real frame OBU's tile payload from empty upwards asserts both |
| 2697 | /// halves: every `Frame` OBU that parses has a tile, and `decode_stream` |
| 2698 | /// never reports this refusal for any of them. |
| 2699 | |
| 2700 | |
| 2701 | |
| 2702 | |
| 2703 | |
| 2704 | |
| 2705 | |
| 2706 | |
| 2707 | |
| 2708 | |
| 2709 | |
| 2710 | |
| 2711 | |
| 2712 | |
| 2713 | |
| 2714 | |
| 2715 | |
| 2716 | |
| 2717 | |
| 2718 | |
| 2719 | |
| 2720 | |
| 2721 | |
| 2722 | |
| 2723 | |
| 2724 | |
| 2725 | |
| 2726 | |
| 2727 | |
| 2728 | |
| 2729 | |
| 2730 | |
| 2731 | |
| 2732 | |
| 2733 | |
| 2734 | |
| 2735 | |
| 2736 | |
| 2737 | |
| 2738 | |
| 2739 | |
| 2740 | |
| 2741 | |
| 2742 | |
| 2743 | /// lane-t900 r27, negative gate: a frame whose segmentation enables one of |
| 2744 | /// the three MODE-OVERRIDING features -- `SEG_LVL_REF_FRAME` (forces a |
| 2745 | /// block's reference), `SEG_LVL_SKIP` and `SEG_LVL_GLOBALMV` (both |
| 2746 | /// suppress symbols `decode_inter_block` reads unconditionally) -- is |
| 2747 | /// refused BY NAME and outputs no picture, rather than desyncing on the |
| 2748 | /// first block that would have obeyed the override. |
| 2749 | /// |
| 2750 | /// Written, not hand-built: `write_segmentation_params` (spec 5.9.14) |
| 2751 | /// codes `feature_enabled`/`feature_data` for every segment, so a real |
| 2752 | /// key frame carrying the flag is a two-line change to the header the |
| 2753 | /// encoder already produced. Swept over all three features and over the |
| 2754 | /// first, a middle and the last segment id. |
| 2755 | |
| 2756 | |
| 2757 | |
| 2758 | |
| 2759 | |
| 2760 | |
| 2761 | |
| 2762 | |
| 2763 | |
| 2764 | |
| 2765 | |
| 2766 | |
| 2767 | |
| 2768 | |
| 2769 | |
| 2770 | |
| 2771 | |
| 2772 | |
| 2773 | |
| 2774 | |
| 2775 | |
| 2776 | |
| 2777 | |
| 2778 | |
| 2779 | |
| 2780 | |
| 2781 | |
| 2782 | |
| 2783 | |
| 2784 | |
| 2785 | |
| 2786 | |
| 2787 | |
| 2788 | |
| 2789 | |
| 2790 | |
| 2791 | |
| 2792 | |
| 2793 | /// lane-hdrlossless WITNESS → lane-av1mixloss LIFT. `--end-usage=q |
| 2794 | /// --cq-level=0 --aq-mode=1` (variance AQ over a lossless base) gives a |
| 2795 | /// high-variance segment a positive `SEG_LVL_ALT_Q` while a flat segment |
| 2796 | /// stays at `qindex == 0` (`aq_variance.c` sets `SEG_LVL_ALT_Q` per |
| 2797 | /// segment and only clamps when `base_qindex != 0`, so a lossless base is |
| 2798 | /// exactly where the mixed case comes from): a frame MIXING lossless and |
| 2799 | /// lossy segments, which this decoder refused by name until the |
| 2800 | /// per-segment lossless table (libaom `decodeframe.c:5205`, |
| 2801 | /// `xd->lossless[segment_id]`; `read_tx_size` returns TX_4X4 before it |
| 2802 | /// reads a symbol, `decodeframe.c:1170`) landed. Non-vacuity, three ways: |
| 2803 | /// (1) the header census proves the arms REALLY carry a mixed frame |
| 2804 | /// (class `gate-blind-to-feature` -- variance AQ over a lossless base is |
| 2805 | /// the whole point, not the flag spelling), (2) the WHT-unit counter |
| 2806 | /// proves the per-segment lossless reconstruction really ran, and (3) |
| 2807 | /// every decoded plane is compared SAMPLE-EXACT against ffmpeg's libaom, |
| 2808 | /// which accepts the same stream -- so the old refusal named a capability |
| 2809 | /// gap, and this gate now proves the gap closed on a real encoder output. |
| 2810 | |
| 2811 | |
| 2812 | |
| 2813 | |
| 2814 | |
| 2815 | |
| 2816 | |
| 2817 | |
| 2818 | |
| 2819 | |
| 2820 | |
| 2821 | |
| 2822 | |
| 2823 | |
| 2824 | |
| 2825 | |
| 2826 | |
| 2827 | |
| 2828 | |
| 2829 | |
| 2830 | |
| 2831 | |
| 2832 | |
| 2833 | |
| 2834 | |
| 2835 | |
| 2836 | |
| 2837 | |
| 2838 | |
| 2839 | |
| 2840 | |
| 2841 | |
| 2842 | |
| 2843 | |
| 2844 | |
| 2845 | |
| 2846 | |
| 2847 | |
| 2848 | |
| 2849 | |
| 2850 | |
| 2851 | |
| 2852 | |
| 2853 | |
| 2854 | |
| 2855 | |
| 2856 | |
| 2857 | |
| 2858 | |
| 2859 | |
| 2860 | |
| 2861 | |
| 2862 | |
| 2863 | |
| 2864 | |
| 2865 | |
| 2866 | |
| 2867 | |
| 2868 | |
| 2869 | |
| 2870 | |
| 2871 | |
| 2872 | |
| 2873 | |
| 2874 | |
| 2875 | |
| 2876 | |
| 2877 | |
| 2878 | |
| 2879 | |
| 2880 | |
| 2881 | |
| 2882 | |
| 2883 | |
| 2884 | |
| 2885 | |
| 2886 | |
| 2887 | |
| 2888 | |
| 2889 | |
| 2890 | |
| 2891 | |
| 2892 | |
| 2893 | |
| 2894 | |
| 2895 | |
| 2896 | |
| 2897 | |
| 2898 | |
| 2899 | |
| 2900 | |
| 2901 | |
| 2902 | |
| 2903 | |
| 2904 | |
| 2905 | |
| 2906 | |
| 2907 | |
| 2908 | |
| 2909 | |
| 2910 | |
| 2911 | |
| 2912 | |
| 2913 | |
| 2914 | |
| 2915 | |
| 2916 | |
| 2917 | |
| 2918 | |
| 2919 | |
| 2920 | |
| 2921 | |
| 2922 | |
| 2923 | |
| 2924 | |
| 2925 | |
| 2926 | |
| 2927 | |
| 2928 | |
| 2929 | |
| 2930 | |
| 2931 | |
| 2932 | |
| 2933 | |
| 2934 | |
| 2935 | |
| 2936 | |
| 2937 | |
| 2938 | |
| 2939 | |
| 2940 | |
| 2941 | |
| 2942 | |
| 2943 | |
| 2944 | |
| 2945 | |
| 2946 | |
| 2947 | |
| 2948 | |
| 2949 | |
| 2950 | |
| 2951 | |
| 2952 | |
| 2953 | |
| 2954 | |
| 2955 | |
| 2956 | |
| 2957 | |
| 2958 | |
| 2959 | |
| 2960 | |
| 2961 | |
| 2962 | |
| 2963 | |
| 2964 | |
| 2965 | |
| 2966 | |
| 2967 | |
| 2968 | |
| 2969 | |
| 2970 | |
| 2971 | |
| 2972 | |
| 2973 | |
| 2974 | |
| 2975 | |
| 2976 | |
| 2977 | |
| 2978 | |
| 2979 | |
| 2980 | |
| 2981 | /// lane-t900 r27 CENSUS behind the negative gate above: does a real |
| 2982 | /// aomenc ever ENABLE one of the three mode-overriding segmentation |
| 2983 | /// features? Measured over the recipes that turn segmentation on -- |
| 2984 | /// `--aq-mode=1/2/3` (variance, complexity and cyclic-refresh AQ) and |
| 2985 | /// `--deltaq-mode=1` -- with the refusal as the instrument: if one of |
| 2986 | /// those features appeared, the decode would stop by name. |
| 2987 | /// |
| 2988 | /// lane-av1seglvl re-scope: r27's arms were all `--passes=1 |
| 2989 | /// --lag-in-frames=0`, so they never coded an alt-ref frame or ran an |
| 2990 | /// encoder second pass -- the only shapes where libaom's OTHER seg |
| 2991 | /// feature setup (`configure_static_seg_features`) could ever run. The |
| 2992 | /// re-scoped half below adds alt-ref-group arms and a real two-pass arm, |
| 2993 | /// and upgrades the instrument from the refusal (blind to a pure-ALT_LF |
| 2994 | /// stream) to a direct parse of every frame header's `feature_enabled` |
| 2995 | /// table: over all of it, aomenc enables `SEG_LVL_ALT_Q` and nothing |
| 2996 | /// else. |
| 2997 | |
| 2998 | |
| 2999 | |
| 3000 | |
| 3001 | |
| 3002 | |
| 3003 | |
| 3004 | |
| 3005 | |
| 3006 | |
| 3007 | |
| 3008 | |
| 3009 | |
| 3010 | |
| 3011 | |
| 3012 | |
| 3013 | |
| 3014 | |
| 3015 | |
| 3016 | |
| 3017 | |
| 3018 | |
| 3019 | |
| 3020 | |
| 3021 | |
| 3022 | |
| 3023 | |
| 3024 | |
| 3025 | |
| 3026 | |
| 3027 | |
| 3028 | |
| 3029 | |
| 3030 | |
| 3031 | |
| 3032 | |
| 3033 | |
| 3034 | |
| 3035 | |
| 3036 | |
| 3037 | |
| 3038 | |
| 3039 | |
| 3040 | |
| 3041 | |
| 3042 | |
| 3043 | |
| 3044 | |
| 3045 | |
| 3046 | |
| 3047 | |
| 3048 | |
| 3049 | |
| 3050 | |
| 3051 | |
| 3052 | |
| 3053 | |
| 3054 | |
| 3055 | |
| 3056 | |
| 3057 | |
| 3058 | |
| 3059 | |
| 3060 | |
| 3061 | |
| 3062 | |
| 3063 | |
| 3064 | |
| 3065 | |
| 3066 | |
| 3067 | |
| 3068 | |
| 3069 | |
| 3070 | |
| 3071 | |
| 3072 | |
| 3073 | |
| 3074 | |
| 3075 | |
| 3076 | |
| 3077 | |
| 3078 | |
| 3079 | |
| 3080 | |
| 3081 | |
| 3082 | |
| 3083 | |
| 3084 | |
| 3085 | |
| 3086 | |
| 3087 | |
| 3088 | |
| 3089 | |
| 3090 | |
| 3091 | |
| 3092 | |
| 3093 | |
| 3094 | |
| 3095 | |
| 3096 | |
| 3097 | |
| 3098 | |
| 3099 | |
| 3100 | |
| 3101 | |
| 3102 | |
| 3103 | |
| 3104 | |
| 3105 | |
| 3106 | |
| 3107 | |
| 3108 | |
| 3109 | |
| 3110 | |
| 3111 | |
| 3112 | |
| 3113 | |
| 3114 | |
| 3115 | |
| 3116 | |
| 3117 | |
| 3118 | |
| 3119 | |
| 3120 | |
| 3121 | |
| 3122 | |
| 3123 | |
| 3124 | |
| 3125 | |
| 3126 | |
| 3127 | |
| 3128 | |
| 3129 | |
| 3130 | |
| 3131 | |
| 3132 | |
| 3133 | |
| 3134 | |
| 3135 | |
| 3136 | |
| 3137 | |
| 3138 | |
| 3139 | |
| 3140 | |
| 3141 | |
| 3142 | |
| 3143 | |
| 3144 | |
| 3145 | |
| 3146 | |
| 3147 | |
| 3148 | |
| 3149 | |
| 3150 | |
| 3151 | |
| 3152 | |
| 3153 | |
| 3154 | |
| 3155 | |
| 3156 | |
| 3157 | |
| 3158 | |
| 3159 | |
| 3160 | |
| 3161 | |
| 3162 | |
| 3163 | |
| 3164 | |
| 3165 | |
| 3166 | |
| 3167 | |
| 3168 | |
| 3169 | |
| 3170 | |
| 3171 | |
| 3172 | |
| 3173 | |
| 3174 | |
| 3175 | |
| 3176 | |
| 3177 | |
| 3178 | |
| 3179 | |
| 3180 | |
| 3181 | |
| 3182 | |
| 3183 | |
| 3184 | |
| 3185 | |
| 3186 | |
| 3187 | |
| 3188 | |
| 3189 | |
| 3190 | |
| 3191 | |
| 3192 | |
| 3193 | |
| 3194 | |
| 3195 | |
| 3196 | |
| 3197 | |
| 3198 | |
| 3199 | |
| 3200 | |
| 3201 | |
| 3202 | |
| 3203 | |
| 3204 | |
| 3205 | |
| 3206 | |
| 3207 | |
| 3208 | |
| 3209 | |
| 3210 | |
| 3211 | |
| 3212 | |
| 3213 | |
| 3214 | |
| 3215 | |
| 3216 | |
| 3217 | |
| 3218 | |
| 3219 | |
| 3220 | |
| 3221 | |
| 3222 | |
| 3223 | |
| 3224 | |
| 3225 | |
| 3226 | |
| 3227 | |
| 3228 | |
| 3229 | /// lane-av1seglvl WITNESS: the reaching stream. `--aq-mode=1` turns |
| 3230 | /// segmentation on for every frame; `--lag-in-frames=16 --auto-alt-ref=1` |
| 3231 | /// adds real alt-ref groups, so the stream mixes map-CODING frames |
| 3232 | /// (`update_map == 1`: the key frame and each group's arf) with dozens of |
| 3233 | /// map-INHERITING frames (`update_map == 0`), and an inheriting block's |
| 3234 | /// id is the MIN of the previous map over its own footprint while the |
| 3235 | /// saved map itself inherits that footprint VERBATIM |
| 3236 | /// (`copy_segment_id`, decodemv.c:342) -- heterogeneous footprints are |
| 3237 | /// exactly what a 1:4-split arf leaves behind. Stamping the minified id |
| 3238 | /// (the pre-lane defect) flattened those footprints and mis-dequantized |
| 3239 | /// scattered blocks frames later: 2 luma bytes of mandelbrot frame 35 |
| 3240 | /// differed from the oracle, everything else exact. |
| 3241 | /// |
| 3242 | /// Both arms decode EVERY frame in decode order -- hidden arfs included |
| 3243 | /// -- byte-exact against the instrumented oracle, and every SHOWN frame |
| 3244 | /// pixel-exact against ffmpeg; the census counters prove the premise |
| 3245 | /// (segmentation symbols read, a wider-than-zero quantizer span from |
| 3246 | /// `SEG_LVL_ALT_Q`, and an inheritance-heavy shape). |
| 3247 | |
| 3248 | |
| 3249 | |
| 3250 | |
| 3251 | |
| 3252 | |
| 3253 | |
| 3254 | |
| 3255 | |
| 3256 | |
| 3257 | |
| 3258 | |
| 3259 | |
| 3260 | |
| 3261 | |
| 3262 | |
| 3263 | |
| 3264 | |
| 3265 | |
| 3266 | |
| 3267 | |
| 3268 | |
| 3269 | |
| 3270 | |
| 3271 | |
| 3272 | |
| 3273 | |
| 3274 | |
| 3275 | |
| 3276 | |
| 3277 | |
| 3278 | |
| 3279 | |
| 3280 | |
| 3281 | |
| 3282 | |
| 3283 | |
| 3284 | |
| 3285 | |
| 3286 | |
| 3287 | |
| 3288 | |
| 3289 | |
| 3290 | |
| 3291 | |
| 3292 | |
| 3293 | |
| 3294 | |
| 3295 | |
| 3296 | |
| 3297 | |
| 3298 | |
| 3299 | |
| 3300 | |
| 3301 | |
| 3302 | |
| 3303 | |
| 3304 | |
| 3305 | |
| 3306 | |
| 3307 | |
| 3308 | |
| 3309 | |
| 3310 | |
| 3311 | |
| 3312 | |
| 3313 | |
| 3314 | |
| 3315 | |
| 3316 | |
| 3317 | |
| 3318 | |
| 3319 | |
| 3320 | |
| 3321 | |
| 3322 | |
| 3323 | |
| 3324 | |
| 3325 | |
| 3326 | |
| 3327 | |
| 3328 | |
| 3329 | |
| 3330 | |
| 3331 | |
| 3332 | |
| 3333 | |
| 3334 | |
| 3335 | |
| 3336 | |
| 3337 | |
| 3338 | |
| 3339 | |
| 3340 | |
| 3341 | |
| 3342 | |
| 3343 | |
| 3344 | /// lane-t900 r27, WITNESS half of the proof for "an OBMC neighbour whose |
| 3345 | /// switchable interp filter was never recorded" (the structural half is |
| 3346 | /// `decode::tests::every_inter_record_publishes_an_obmc_readable_filter`, |
| 3347 | /// which shows no INTER cell is ever stamped with the `[3, 3]` |
| 3348 | /// sentinel): real OBMC streams whose frames use a SWITCHABLE (and dual) |
| 3349 | /// interp filter decode with the refusal firing 0 times while OBMC blends |
| 3350 | /// really read the neighbour band -- a decode that never read one would |
| 3351 | /// pass just as well and prove nothing (class gate-blind-to-feature). |
| 3352 | |
| 3353 | |
| 3354 | |
| 3355 | |
| 3356 | |
| 3357 | |
| 3358 | |
| 3359 | |
| 3360 | |
| 3361 | |
| 3362 | |
| 3363 | |
| 3364 | |
| 3365 | |
| 3366 | |
| 3367 | |
| 3368 | |
| 3369 | |
| 3370 | |
| 3371 | |
| 3372 | |
| 3373 | |
| 3374 | |
| 3375 | |
| 3376 | |
| 3377 | |
| 3378 | |
| 3379 | |
| 3380 | |
| 3381 | |
| 3382 | |
| 3383 | |
| 3384 | |
| 3385 | |
| 3386 | |
| 3387 | |
| 3388 | |
| 3389 | |
| 3390 | |
| 3391 | |
| 3392 | |
| 3393 | |
| 3394 | |
| 3395 | |
| 3396 | |
| 3397 | |
| 3398 | |
| 3399 | |
| 3400 | |
| 3401 | |
| 3402 | |
| 3403 | |
| 3404 | |
| 3405 | |
| 3406 | |
| 3407 | |
| 3408 | |
| 3409 | |
| 3410 | |
| 3411 | |
| 3412 | |
| 3413 | |
| 3414 | |
| 3415 | |
| 3416 | |
| 3417 | |
| 3418 | |
| 3419 | |
| 3420 | |
| 3421 | |
| 3422 | |
| 3423 | |
| 3424 | |
| 3425 | /// lane-t900 r27 CENSUS for the three SUPERRES refusals -- "warp |
| 3426 | /// prediction with a scaled reference", "a sub-8x8 inter block under a |
| 3427 | /// scaled reference" and "an 8x8 partition leaf under a scaled reference". |
| 3428 | /// Six real `--superres-mode` encodes (fixed denominators and the auto |
| 3429 | /// mode, warped motion and OBMC on), decoded by this decoder: the table it |
| 3430 | /// prints is which of the three a real encoder actually reaches. |
| 3431 | /// |
| 3432 | /// Every one of them is a REAL capability gap (unlike the enumerated |
| 3433 | /// refusals elsewhere in the inventory), so this gate asserts the measured |
| 3434 | /// shape rather than "no refusal": at least one recipe must decode (else |
| 3435 | /// the census says nothing), and any refusal must be one of the three |
| 3436 | /// named superres ones -- a fourth string would be a new gap this round |
| 3437 | /// did not measure. |
| 3438 | |
| 3439 | |
| 3440 | |
| 3441 | |
| 3442 | |
| 3443 | |
| 3444 | |
| 3445 | |
| 3446 | |
| 3447 | |
| 3448 | |
| 3449 | |
| 3450 | |
| 3451 | |
| 3452 | |
| 3453 | |
| 3454 | |
| 3455 | |
| 3456 | |
| 3457 | |
| 3458 | |
| 3459 | |
| 3460 | |
| 3461 | |
| 3462 | |
| 3463 | |
| 3464 | |
| 3465 | |
| 3466 | |
| 3467 | |
| 3468 | |
| 3469 | |
| 3470 | |
| 3471 | |
| 3472 | |
| 3473 | |
| 3474 | |
| 3475 | |
| 3476 | |
| 3477 | |
| 3478 | |
| 3479 | |
| 3480 | |
| 3481 | |
| 3482 | |
| 3483 | |
| 3484 | |
| 3485 | |
| 3486 | |
| 3487 | |
| 3488 | |
| 3489 | |
| 3490 | |
| 3491 | |
| 3492 | |
| 3493 | |
| 3494 | |
| 3495 | |
| 3496 | |
| 3497 | |
| 3498 | |
| 3499 | |
| 3500 | |
| 3501 | |
| 3502 | |
| 3503 | |
| 3504 | |
| 3505 | |
| 3506 | |
| 3507 | |
| 3508 | |
| 3509 | |
| 3510 | |
| 3511 | |
| 3512 | |
| 3513 | |
| 3514 | |
| 3515 | |
| 3516 | |
| 3517 | |
| 3518 | |
| 3519 | |
| 3520 | |
| 3521 | |
| 3522 | |
| 3523 | |
| 3524 | |
| 3525 | |
| 3526 | |
| 3527 | |
| 3528 | |
| 3529 | |
| 3530 | |
| 3531 | |
| 3532 | |
| 3533 | |
| 3534 | |
| 3535 | |
| 3536 | |
| 3537 | |
| 3538 | |
| 3539 | |
| 3540 | |
| 3541 | |
| 3542 | |
| 3543 | |
| 3544 | |
| 3545 | |
| 3546 | |
| 3547 | |
| 3548 | |
| 3549 | |
| 3550 | |
| 3551 | |
| 3552 | |
| 3553 | |
| 3554 | |
| 3555 | |
| 3556 | |
| 3557 | |
| 3558 | |
| 3559 | |
| 3560 | |
| 3561 | |
| 3562 | |
| 3563 | |
| 3564 | |
| 3565 | |
| 3566 | |
| 3567 | |
| 3568 | |
| 3569 | |
| 3570 | |
| 3571 | |
| 3572 | |
| 3573 | |
| 3574 | |
| 3575 | |
| 3576 | |
| 3577 | |
| 3578 | |
| 3579 | |
| 3580 | /// lane-t900 r25, negative gate: a `show_existing_frame` header naming a |
| 3581 | /// slot no frame has refreshed is refused BY NAME, and outputs no picture. |
| 3582 | /// |
| 3583 | /// The OBU is hand-built because [`crate::frame::write_frame_header`] |
| 3584 | /// refuses to write one (it writes shown key and inter frames only): spec |
| 3585 | /// 5.9.2's whole header for this case is `show_existing_frame` (1) plus |
| 3586 | /// `frame_to_show_map_idx` (3), the sequence carrying neither a decoder |
| 3587 | /// model nor frame ids. |
| 3588 | /// |
| 3589 | /// Deviation from the round's charter, which asked for a key frame first |
| 3590 | /// with the named slot's `refresh_frame_flags` bit clear: a SHOWN key frame |
| 3591 | /// refreshes every slot (spec 5.9.2 forces `refresh_frame_flags` to |
| 3592 | /// `all_frames` and does not code it, which is also what |
| 3593 | /// `write_frame_header` does), so the only reachable empty-slot stream is |
| 3594 | /// one where no frame has refreshed that slot yet. The stream below is a |
| 3595 | /// valid sequence header followed by the header OBU, and every one of the |
| 3596 | /// eight slots is tried. |
| 3597 | |
| 3598 | |
| 3599 | |
| 3600 | |
| 3601 | |
| 3602 | |
| 3603 | |
| 3604 | |
| 3605 | |
| 3606 | |
| 3607 | |
| 3608 | |
| 3609 | |
| 3610 | |
| 3611 | |
| 3612 | |
| 3613 | |
| 3614 | |
| 3615 | |
| 3616 | |
| 3617 | |
| 3618 | |
| 3619 | |
| 3620 | |
| 3621 | |
| 3622 | |
| 3623 | |
| 3624 | |
| 3625 | |
| 3626 | |
| 3627 | |
| 3628 | |
| 3629 | |
| 3630 | |
| 3631 | |
| 3632 | |
| 3633 | |
| 3634 | |
| 3635 | |
| 3636 | /// lane-t900 r25, negative gate: an inter frame whose `ref_frame_idx[0]` |
| 3637 | /// slot holds no picture -- a stream that opens on an inter frame -- is |
| 3638 | /// refused BY NAME rather than predicting from nothing. |
| 3639 | /// |
| 3640 | /// Deviation from the round's charter, which asked for a real aomenc |
| 3641 | /// two-frame stream with the key frame's OBUs stripped: this crate's own |
| 3642 | /// `write_frame_header` writes a shown INTER frame (short reference |
| 3643 | /// signalling and non-identity global motion are the parts it refuses), so |
| 3644 | /// the fixture is built from the writers, needs neither ffmpeg nor aomenc, |
| 3645 | /// and is byte-identical on every run. The tile payload is a real key |
| 3646 | /// frame's; the refusal fires on the header's reference lookup, before any |
| 3647 | /// tile is decoded. |
| 3648 | |
| 3649 | |
| 3650 | |
| 3651 | |
| 3652 | |
| 3653 | |
| 3654 | |
| 3655 | |
| 3656 | |
| 3657 | |
| 3658 | |
| 3659 | |
| 3660 | |
| 3661 | |
| 3662 | |
| 3663 | |
| 3664 | |
| 3665 | |
| 3666 | |
| 3667 | |
| 3668 | |
| 3669 | |
| 3670 | |
| 3671 | |
| 3672 | |
| 3673 | |
| 3674 | |
| 3675 | |
| 3676 | |
| 3677 | |
| 3678 | |
| 3679 | |
| 3680 | |
| 3681 | |
| 3682 | |
| 3683 | /// lane-t900 r26, negative gate: an inter frame whose own coded size is |
| 3684 | /// SHORTER than the reference it predicts from is refused BY NAME, and |
| 3685 | /// outputs no picture beyond the key frame that preceded it. |
| 3686 | /// |
| 3687 | /// The height mismatch is the one size difference this decoder cannot |
| 3688 | /// absorb: `mc::predict_scaled` scales horizontally (a `use_superres` |
| 3689 | /// reference), and nothing on this path scales vertically. The fixture is |
| 3690 | /// written, not hand-built: a shown key frame at 64x64 (which refreshes |
| 3691 | /// every slot), then a shown inter frame carrying |
| 3692 | /// `frame_size_override_flag` with `error_resilient_mode` set -- the one |
| 3693 | /// combination [`crate::frame::write_frame_header`] writes, since |
| 3694 | /// `frame_size_with_refs` (spec 5.9.7) is only read when error resilience |
| 3695 | /// is OFF. The inter frame's tile payload is the key frame's; the refusal |
| 3696 | /// fires on the reference's dimensions before a tile symbol is read. A 31 |
| 3697 | /// row frame against a 64 row reference is past the 2x down limit. |
| 3698 | |
| 3699 | |
| 3700 | |
| 3701 | |
| 3702 | |
| 3703 | |
| 3704 | |
| 3705 | |
| 3706 | |
| 3707 | |
| 3708 | |
| 3709 | |
| 3710 | |
| 3711 | |
| 3712 | |
| 3713 | |
| 3714 | |
| 3715 | |
| 3716 | |
| 3717 | |
| 3718 | |
| 3719 | |
| 3720 | |
| 3721 | |
| 3722 | |
| 3723 | |
| 3724 | |
| 3725 | |
| 3726 | |
| 3727 | |
| 3728 | |
| 3729 | |
| 3730 | |
| 3731 | |
| 3732 | |
| 3733 | |
| 3734 | |
| 3735 | |
| 3736 | /// lane-t900 r26, negative gate: an inter frame naming a |
| 3737 | /// `primary_ref_frame` whose reference slot has never been refreshed is |
| 3738 | /// refused BY NAME rather than decoded from the spec 8.4 default tables. |
| 3739 | /// |
| 3740 | /// Enumeration first, because the refusal's premise is an invariant: the |
| 3741 | /// picture slots and the CDF slots are written by exactly two loops in |
| 3742 | /// [`decode_stream`] (the `show_existing_frame` arm's copy and the |
| 3743 | /// end-of-frame store), and both walk the SAME `refresh_frame_flags` mask |
| 3744 | /// writing `ref_slots[i]` and `cdf_slots[i]` together -- so no slot can |
| 3745 | /// hold a picture without CDFs, and the reachable case is a slot nothing |
| 3746 | /// has refreshed at all. That is what this builds: a stream that OPENS on |
| 3747 | /// a non-error-resilient inter frame (the only header shape that codes |
| 3748 | /// `primary_ref_frame` at all, spec 5.9.2), tried at all eight slots. |
| 3749 | /// |
| 3750 | /// This refusal, not "an inter frame with no key frame before it", is the |
| 3751 | /// one such a stream reaches: the CDF load happens in the header path, |
| 3752 | /// before the reference pictures are looked up. |
| 3753 | |
| 3754 | |
| 3755 | |
| 3756 | |
| 3757 | |
| 3758 | |
| 3759 | |
| 3760 | |
| 3761 | |
| 3762 | |
| 3763 | |
| 3764 | |
| 3765 | |
| 3766 | |
| 3767 | |
| 3768 | |
| 3769 | |
| 3770 | |
| 3771 | |
| 3772 | |
| 3773 | |
| 3774 | |
| 3775 | |
| 3776 | |
| 3777 | |
| 3778 | |
| 3779 | |
| 3780 | |
| 3781 | |
| 3782 | |
| 3783 | |
| 3784 | |
| 3785 | |
| 3786 | |
| 3787 | |
| 3788 | |
| 3789 | |
| 3790 | |
| 3791 | |
| 3792 | |
| 3793 | |
| 3794 | |
| 3795 | |
| 3796 | |
| 3797 | |
| 3798 | |
| 3799 | |
| 3800 | |
| 3801 | |
| 3802 | |
| 3803 | |
| 3804 | |
| 3805 | |
| 3806 | |
| 3807 | |
| 3808 | |
| 3809 | |
| 3810 | |
| 3811 | |
| 3812 | |
| 3813 | |
| 3814 | |
| 3815 | |
| 3816 | |
| 3817 | |
| 3818 | |
| 3819 | |
| 3820 | |
| 3821 | |
| 3822 | /// lane-t900 r26, enumeration: no frame header a stream can carry derives |
| 3823 | /// an empty mode-info grid, so "a frame with no mode-info grid" names a |
| 3824 | /// case outside the coded domain. |
| 3825 | /// |
| 3826 | /// `compute_image_size` (spec 5.9.9) is `mi_cols = 2 * ((frame_width + 7) |
| 3827 | /// >> 3)`, which is 0 only for `frame_width == 0`, and a frame width is |
| 3828 | /// > > never 0 on any of the three paths that set one: |
| 3829 | /// |
| 3830 | /// * `frame_size()` (5.9.5) reads `frame_width_minus_1` and adds one, or |
| 3831 | /// takes the sequence's `max_frame_width` (itself `+ 1`-coded); |
| 3832 | /// * `superres_params()` (5.9.8) divides by a denominator of 9..=16 with |
| 3833 | /// rounding, whose minimum over the whole 16-bit upscaled-width domain |
| 3834 | /// is enumerated below and is 1, not 0; |
| 3835 | /// * `show_existing_frame` and `frame_size_with_refs()` copy a slot's own |
| 3836 | /// dimensions, which came from one of the above. |
| 3837 | /// |
| 3838 | /// The sweep drives the REAL header reader (write a header, parse it back) |
| 3839 | /// over every width and every height a 16-bit `frame_size()` can code, |
| 3840 | /// per axis -- the derivation is independent per axis -- rather than |
| 3841 | /// re-deriving the formula here. |
| 3842 | |
| 3843 | |
| 3844 | |
| 3845 | |
| 3846 | |
| 3847 | |
| 3848 | |
| 3849 | |
| 3850 | |
| 3851 | |
| 3852 | |
| 3853 | |
| 3854 | |
| 3855 | |
| 3856 | |
| 3857 | |
| 3858 | |
| 3859 | |
| 3860 | |
| 3861 | |
| 3862 | |
| 3863 | |
| 3864 | |
| 3865 | |
| 3866 | |
| 3867 | |
| 3868 | |
| 3869 | |
| 3870 | |
| 3871 | |
| 3872 | |
| 3873 | |
| 3874 | |
| 3875 | |
| 3876 | |
| 3877 | |
| 3878 | |
| 3879 | |
| 3880 | |
| 3881 | |
| 3882 | |
| 3883 | |
| 3884 | |
| 3885 | |
| 3886 | |
| 3887 | |
| 3888 | |
| 3889 | |
| 3890 | |
| 3891 | |
| 3892 | |
| 3893 | |
| 3894 | |
| 3895 | |
| 3896 | |
| 3897 | |
| 3898 | |
| 3899 | |
| 3900 | |
| 3901 | |
| 3902 | |
| 3903 | |
| 3904 | |
| 3905 | |
| 3906 | |
| 3907 | /// lane-interedge r1 GATE (was lane-oddh r2's `#[ignore]`d twin): the INTER |
| 3908 | /// frame-edge half strips -- a `PARTITION_HORZ`/`PARTITION_VERT` forced by |
| 3909 | /// the gathered edge symbol at the 64, 32 or 16 level whose second half lies |
| 3910 | /// outside the true frame. Both of the user's films are height mod 16 == 8 |
| 3911 | /// (1920x792, 3840x1608), so every inter frame crosses these nodes. |
| 3912 | /// |
| 3913 | /// r1 root cause: the inter tile's 32-level `PARTITION_HORZ`/`PARTITION_VERT` |
| 3914 | /// decoded the SECOND strip unconditionally, while libaom `decode_partition` |
| 3915 | /// (decodeframe.c, PARTITION_HORZ) guards it with `has_rows`/`has_cols` -- |
| 3916 | /// so at the edge we read symbols the encoder never wrote. With that guard |
| 3917 | /// removed this gate's 72x192 cq 32 arm refuses outright and its 104x192 arm |
| 3918 | /// decodes luma rows 127..191 of frame 5 wrong (measured r1). |
| 3919 | /// |
| 3920 | /// The compare is LUMA-exact per frame plus a CONTROL size with no edge node |
| 3921 | /// at all: chroma is excluded because a chroma-only inter residue that has |
| 3922 | /// nothing to do with the frame edge is open on main (lanes/tiny-r3, |
| 3923 | /// lanes/gmaffine-r4, lanes/palette2-r8) and the control below reproduces it |
| 3924 | /// with `inter_edge_strip_hits` all zero. |
| 3925 | |
| 3926 | |
| 3927 | |
| 3928 | |
| 3929 | |
| 3930 | |
| 3931 | |
| 3932 | |
| 3933 | |
| 3934 | |
| 3935 | |
| 3936 | |
| 3937 | |
| 3938 | |
| 3939 | |
| 3940 | |
| 3941 | |
| 3942 | |
| 3943 | |
| 3944 | |
| 3945 | |
| 3946 | |
| 3947 | |
| 3948 | |
| 3949 | |
| 3950 | |
| 3951 | |
| 3952 | |
| 3953 | |
| 3954 | |
| 3955 | |
| 3956 | |
| 3957 | |
| 3958 | |
| 3959 | |
| 3960 | |
| 3961 | |
| 3962 | |
| 3963 | |
| 3964 | |
| 3965 | |
| 3966 | |
| 3967 | |
| 3968 | |
| 3969 | |
| 3970 | |
| 3971 | |
| 3972 | |
| 3973 | |
| 3974 | |
| 3975 | |
| 3976 | |
| 3977 | |
| 3978 | |
| 3979 | |
| 3980 | |
| 3981 | |
| 3982 | |
| 3983 | |
| 3984 | |
| 3985 | |
| 3986 | |
| 3987 | |
| 3988 | |
| 3989 | |
| 3990 | |
| 3991 | |
| 3992 | |
| 3993 | |
| 3994 | |
| 3995 | /// lane-sb128 r4 GATE (was lane-oddh r2's refusal gate): the SAME real |
| 3996 | /// aomenc 64x72 `--cpu-used=0 --sb-size=128` stream that once desynced at |
| 3997 | /// the very first symbol now decodes PIXEL-EXACT against aomdec. mi_rows |
| 3998 | /// = 18 > 16, so the BLOCK_128X128 root reads a real gathered partition |
| 3999 | /// symbol (2 symbols: has_cols false, has_rows true) -- exactly the case |
| 4000 | /// r1 mis-read as a 10-symbol BLOCK_64X64 partition. |
| 4001 | /// |
| 4002 | /// The `use_128x128_superblock` assert is the "knob reached the tool" |
| 4003 | /// half: without it an aomenc that ignored `--sb-size=128` would leave |
| 4004 | /// the gate proving nothing about 128 superblocks. |
| 4005 | |
| 4006 | |
| 4007 | |
| 4008 | |
| 4009 | |
| 4010 | |
| 4011 | |
| 4012 | |
| 4013 | |
| 4014 | |
| 4015 | |
| 4016 | |
| 4017 | |
| 4018 | |
| 4019 | |
| 4020 | |
| 4021 | |
| 4022 | |
| 4023 | |
| 4024 | |
| 4025 | |
| 4026 | |
| 4027 | |
| 4028 | |
| 4029 | |
| 4030 | |
| 4031 | |
| 4032 | |
| 4033 | |
| 4034 | |
| 4035 | |
| 4036 | |
| 4037 | |
| 4038 | |
| 4039 | |
| 4040 | |
| 4041 | |
| 4042 | |
| 4043 | |
| 4044 | |
| 4045 | |
| 4046 | |
| 4047 | |
| 4048 | |
| 4049 | |
| 4050 | |
| 4051 | |
| 4052 | |
| 4053 | |
| 4054 | |
| 4055 | |
| 4056 | |
| 4057 | |
| 4058 | |
| 4059 | |
| 4060 | |
| 4061 | |
| 4062 | |
| 4063 | |
| 4064 | |
| 4065 | |
| 4066 | |
| 4067 | |
| 4068 | |
| 4069 | |
| 4070 | |
| 4071 | |
| 4072 | |
| 4073 | |
| 4074 | |
| 4075 | |
| 4076 | |
| 4077 | |
| 4078 | |
| 4079 | |
| 4080 | |
| 4081 | |
| 4082 | |
| 4083 | |
| 4084 | |
| 4085 | |
| 4086 | |
| 4087 | |
| 4088 | |
| 4089 | |
| 4090 | |
| 4091 | |
| 4092 | |
| 4093 | |
| 4094 | |
| 4095 | |
| 4096 | |
| 4097 | |
| 4098 | |
| 4099 | |
| 4100 | |
| 4101 | |
| 4102 | |
| 4103 | |
| 4104 | /// `decode_stream` on a lone key frame's stream matches both the tile |
| 4105 | /// path (`decode_key_frame_tile` called directly on `Encoded::tile`) and |
| 4106 | /// the encoder's own reconstruction, at an even and an odd size. |
| 4107 | |
| 4108 | |
| 4109 | |
| 4110 | |
| 4111 | |
| 4112 | |
| 4113 | |
| 4114 | |
| 4115 | |
| 4116 | |
| 4117 | |
| 4118 | |
| 4119 | |
| 4120 | |
| 4121 | |
| 4122 | |
| 4123 | |
| 4124 | |
| 4125 | |
| 4126 | |
| 4127 | |
| 4128 | |
| 4129 | |
| 4130 | |
| 4131 | |
| 4132 | |
| 4133 | |
| 4134 | |
| 4135 | |
| 4136 | |
| 4137 | |
| 4138 | |
| 4139 | |
| 4140 | |
| 4141 | |
| 4142 | |
| 4143 | |
| 4144 | |
| 4145 | |
| 4146 | |
| 4147 | |
| 4148 | |
| 4149 | |
| 4150 | |
| 4151 | |
| 4152 | |
| 4153 | |
| 4154 | |
| 4155 | |
| 4156 | |
| 4157 | |
| 4158 | |
| 4159 | |
| 4160 | |
| 4161 | |
| 4162 | |
| 4163 | |
| 4164 | |
| 4165 | /// Same claim at a size that is not a whole number of 32x32 blocks, so |
| 4166 | /// the inter frame's 16x16-leaf split path is exercised too. |
| 4167 | |
| 4168 | |
| 4169 | |
| 4170 | |
| 4171 | |
| 4172 | |
| 4173 | /// lane-streamsink r1: `decode_stream_with` emits exactly the pictures |
| 4174 | /// `decode_stream` collects, in the same order -- the streaming path is |
| 4175 | /// the decoder now (`decode_stream` is a collecting wrapper), so an |
| 4176 | /// equivalence check here is what keeps every gate's Vec-shaped assert |
| 4177 | /// meaningful. Also pins the sink contract: one call per shown picture, |
| 4178 | /// decode indices non-decreasing, and an `Err` from the sink aborting. |
| 4179 | |
| 4180 | |
| 4181 | |
| 4182 | |
| 4183 | |
| 4184 | |
| 4185 | |
| 4186 | |
| 4187 | |
| 4188 | |
| 4189 | |
| 4190 | |
| 4191 | |
| 4192 | |
| 4193 | |
| 4194 | |
| 4195 | |
| 4196 | |
| 4197 | |
| 4198 | |
| 4199 | |
| 4200 | |
| 4201 | |
| 4202 | |
| 4203 | |
| 4204 | |
| 4205 | |
| 4206 | |
| 4207 | |
| 4208 | |
| 4209 | |
| 4210 | |
| 4211 | |
| 4212 | |
| 4213 | |
| 4214 | |
| 4215 | |
| 4216 | |
| 4217 | |
| 4218 | |
| 4219 | |
| 4220 | |
| 4221 | |
| 4222 | |
| 4223 | |
| 4224 | |
| 4225 | |
| 4226 | |
| 4227 | |
| 4228 | |
| 4229 | |
| 4230 | /// lane-av1oracleguard, direction 1 of 2: the 4:2:0 helper's COMPARATOR |
| 4231 | /// still bites on a real 4:2:0 pin, so the refusal added above did not |
| 4232 | /// buy its non-vacuity by making the helper stop comparing. |
| 4233 | /// |
| 4234 | /// `420_mixll_256x128_6f.obu` is 8-bit 4:2:0 at 256x128. Ours and ffmpeg |
| 4235 | /// agree on every sample of every output frame (bad == 0), then ONE U |
| 4236 | /// sample of the oracle is flipped and the same count must move to 1. A |
| 4237 | /// count that stays 0 on a flipped oracle is a comparator that compares |
| 4238 | /// nothing, and the refusal would then be the only thing this gate could |
| 4239 | /// prove. |
| 4240 | |
| 4241 | |
| 4242 | |
| 4243 | |
| 4244 | |
| 4245 | |
| 4246 | |
| 4247 | |
| 4248 | |
| 4249 | |
| 4250 | |
| 4251 | |
| 4252 | |
| 4253 | |
| 4254 | |
| 4255 | |
| 4256 | |
| 4257 | |
| 4258 | |
| 4259 | |
| 4260 | |
| 4261 | |
| 4262 | |
| 4263 | |
| 4264 | |
| 4265 | |
| 4266 | |
| 4267 | |
| 4268 | |
| 4269 | |
| 4270 | |
| 4271 | |
| 4272 | |
| 4273 | |
| 4274 | |
| 4275 | |
| 4276 | |
| 4277 | |
| 4278 | |
| 4279 | |
| 4280 | |
| 4281 | |
| 4282 | |
| 4283 | |
| 4284 | |
| 4285 | |
| 4286 | |
| 4287 | |
| 4288 | |
| 4289 | |
| 4290 | |
| 4291 | |
| 4292 | |
| 4293 | |
| 4294 | |
| 4295 | |
| 4296 | |
| 4297 | |
| 4298 | |
| 4299 | |
| 4300 | |
| 4301 | |
| 4302 | |
| 4303 | |
| 4304 | |
| 4305 | |
| 4306 | |
| 4307 | |
| 4308 | |
| 4309 | |
| 4310 | |
| 4311 | |
| 4312 | |
| 4313 | |
| 4314 | /// lane-av1oracleguard, direction 2 of 2 (8-bit): the 4:2:0 helper must |
| 4315 | /// REFUSE a real 4:2:2 pin instead of letting ffmpeg convert it. The |
| 4316 | /// message must name the REAL subsampling AND the sibling to use -- a |
| 4317 | /// bare "wrong shape" would leave the caller to rediscover the fix. |
| 4318 | /// |
| 4319 | /// Before this lane, `ffmpeg_decode_sequence(&422_key_64x64, 64, 64, 1)` |
| 4320 | /// RETURNED a 4:2:0-converted picture without complaint, which is the |
| 4321 | /// silent-green the refusal exists to stop. This gate needs no ffmpeg at |
| 4322 | /// all: the guard runs before the spawn, so a host without ffmpeg still |
| 4323 | /// proves the refusal. |
| 4324 | |
| 4325 | |
| 4326 | |
| 4327 | |
| 4328 | |
| 4329 | |
| 4330 | |
| 4331 | |
| 4332 | |
| 4333 | |
| 4334 | |
| 4335 | |
| 4336 | |
| 4337 | |
| 4338 | |
| 4339 | |
| 4340 | |
| 4341 | |
| 4342 | |
| 4343 | |
| 4344 | |
| 4345 | |
| 4346 | |
| 4347 | |
| 4348 | |
| 4349 | |
| 4350 | |
| 4351 | |
| 4352 | |
| 4353 | /// lane-av1oracleguard, direction 2 of 2 (high depth): the same refusal on |
| 4354 | /// `ffmpeg_decode_sequence_10bit` and `_12bit`, which ask ffmpeg for |
| 4355 | /// `yuv420p10le`/`yuv420p12le` and slice chroma at `width * height / 4` |
| 4356 | /// exactly as the 8-bit helper does. Pinned 4:2:2 at both depths. |
| 4357 | |
| 4358 | |
| 4359 | |
| 4360 | |
| 4361 | |
| 4362 | |
| 4363 | |
| 4364 | |
| 4365 | |
| 4366 | |
| 4367 | |
| 4368 | |
| 4369 | |
| 4370 | |
| 4371 | |
| 4372 | |
| 4373 | |
| 4374 | |
| 4375 | |
| 4376 | |
| 4377 | |
| 4378 | |
| 4379 | |
| 4380 | |
| 4381 | |
| 4382 | |
| 4383 | |
| 4384 | |
| 4385 | |
| 4386 | |
| 4387 | |
| 4388 | |
| 4389 | |
| 4390 | |
| 4391 | |
| 4392 | |
| 4393 | |
| 4394 | |
| 4395 | |
| 4396 | |
| 4397 | |
| 4398 | |
| 4399 | |
| 4400 | |
| 4401 | |
| 4402 | |
| 4403 | /// lane-av1422mixll10: a skipped INTRABC 8x8 leaf inside a LOSSLESS |
| 4404 | /// segment of a 4:2:2 frame predicts its whole 4x8 chroma plane block -- |
| 4405 | /// both TX_4X4 units, each windowed off the DV frame copy. The defect |
| 4406 | /// arm pushed only the first 4x4 (at `cpy`), leaving rows |
| 4407 | /// `cpy+4..cpy+8` unwritten: frame 0's U(140..143, 188..191) read the |
| 4408 | /// sentinel poison 0 against the oracle's 664 (16 samples, all planes |
| 4409 | /// otherwise exact). Pin `422_mixll_intrabc_lossless_320x240_5f.obu` |
| 4410 | /// (aomenc profile 1, 320x240 yuv422p10le, mixed-lossless AQ segment + |
| 4411 | /// intrabc screen content; 79333 bytes, sha256 |
| 4412 | /// `9fa1f1d28d61e3096d70908728f9cdfa1a570b9769a3d31e8d385a61c12a2b25`). |
| 4413 | /// Gate: every frame of all three planes byte-exact against ffmpeg's |
| 4414 | /// `yuv422p10le`, plus the non-vacuity controls (the pin's chroma census |
| 4415 | /// must show coded units, and one flipped oracle sample must move the |
| 4416 | /// count). |
| 4417 | |
| 4418 | |
| 4419 | |
| 4420 | |
| 4421 | |
| 4422 | |
| 4423 | |
| 4424 | |
| 4425 | |
| 4426 | |
| 4427 | |
| 4428 | |
| 4429 | |
| 4430 | |
| 4431 | |
| 4432 | |
| 4433 | |
| 4434 | |
| 4435 | |
| 4436 | |
| 4437 | |
| 4438 | |
| 4439 | |
| 4440 | |
| 4441 | |
| 4442 | |
| 4443 | |
| 4444 | |
| 4445 | |
| 4446 | |
| 4447 | |
| 4448 | |
| 4449 | |
| 4450 | |
| 4451 | |
| 4452 | |
| 4453 | |
| 4454 | |
| 4455 | |
| 4456 | |
| 4457 | |
| 4458 | |
| 4459 | |
| 4460 | |
| 4461 | |
| 4462 | |
| 4463 | |
| 4464 | |
| 4465 | |
| 4466 | |
| 4467 | |
| 4468 | |
| 4469 | |
| 4470 | |
| 4471 | |
| 4472 | |
| 4473 | |
| 4474 | |
| 4475 | |
| 4476 | |
| 4477 | |
| 4478 | |
| 4479 | |
| 4480 | |
| 4481 | |
| 4482 | |
| 4483 | |
| 4484 | |
| 4485 | |
| 4486 | |
| 4487 | |
| 4488 | |
| 4489 | |
| 4490 | |
| 4491 | |
| 4492 | |
| 4493 | |
| 4494 | |
| 4495 | /// lane-av1oracledepth: the 8-bit `ffmpeg_decode_sequence_444` must REFUSE |
| 4496 | /// a real 10-bit 4:4:4 pin instead of letting ffmpeg convert it down to |
| 4497 | /// `yuv444p`. ffmpeg does not fail on the depth mismatch -- it re-scales |
| 4498 | /// -- so a gate built on the 8-bit helper would compare ffmpeg's rescaled |
| 4499 | /// planes against our 10-bit decode and could read exact. The message |
| 4500 | /// must name the real depth AND the depth-generic sibling |
| 4501 | /// `ffmpeg_decode_sequence_444_depth`, so the caller has the fix in front |
| 4502 | /// of it. |
| 4503 | /// |
| 4504 | /// Needs no ffmpeg at all: the guard runs before the spawn, so a host |
| 4505 | /// without ffmpeg still proves the refusal. |
| 4506 | |
| 4507 | |
| 4508 | |
| 4509 | |
| 4510 | |
| 4511 | |
| 4512 | |
| 4513 | |
| 4514 | |
| 4515 | |
| 4516 | |
| 4517 | |
| 4518 | |
| 4519 | |
| 4520 | |
| 4521 | |
| 4522 | |
| 4523 | |
| 4524 | |
| 4525 | |
| 4526 | |
| 4527 | |
| 4528 | |
| 4529 | |
| 4530 | |
| 4531 | |
| 4532 | |
| 4533 | |
| 4534 | |
| 4535 | |
| 4536 | |
| 4537 | |
| 4538 |