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 craterun_with_stdin; |
| 5 | use ; |
| 6 | |
| 7 | /// As [`a_real_libaom_gradients_stream_decodes_pixel_exact`], but leaves |
| 8 | /// CDEF *on* (no `-enable-cdef 0`) -- the whole point of `lane-av1cdef`: |
| 9 | /// proves `apply_cdef` itself, not just that this decoder still works |
| 10 | /// when the filter never fires. Gradient content at a low crf reliably |
| 11 | /// gives libaom something to dering. |
| 12 | /// |
| 13 | /// lane-av1skipfix: the attempt-loop shape. A single-SB 64x64 frame can |
| 14 | /// never make libaom write `cdef_bits > 0` (nothing to differentiate per |
| 15 | /// superblock), so this recipe is MULTI-SB and MULTI-FRAME, and it sweeps |
| 16 | /// (size, cpu-used, crf) until one attempt reads a real `cdef_idx` literal |
| 17 | /// -- MEASURED 2026-09-29 on `a21f3680`: 64x64 at every crf/cpu reads |
| 18 | /// ZERO `cdef_idx` (single superblock, `bits == 0`, though `apply_cdef` |
| 19 | /// does filter with a nonzero strength pair), while 128x64/128x128 at |
| 20 | /// 24 frames read 2-8. Every attempt that decodes is ALWAYS pixel- |
| 21 | /// compared against ffmpeg's own decode of the identical bytes; a decode |
| 22 | /// error is a named refusal recorded per attempt, never a SKIP, and |
| 23 | /// exhausting every attempt -- or decoding without ever reading a |
| 24 | /// `cdef_idx` -- is a hard FAILURE (an unfired gate is a vacuous gate, |
| 25 | /// class `gate-skips-on-its-own-failure`). |
| 26 | |
| 27 | |
| 28 | |
| 29 | |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | |
| 37 | |
| 38 | |
| 39 | |
| 40 | |
| 41 | |
| 42 | |
| 43 | |
| 44 | |
| 45 | |
| 46 | |
| 47 | |
| 48 | |
| 49 | |
| 50 | |
| 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 | |
| 79 | |
| 80 | |
| 81 | |
| 82 | |
| 83 | |
| 84 | |
| 85 | |
| 86 | |
| 87 | |
| 88 | |
| 89 | |
| 90 | |
| 91 | |
| 92 | |
| 93 | |
| 94 | |
| 95 | |
| 96 | |
| 97 | |
| 98 | |
| 99 | |
| 100 | |
| 101 | |
| 102 | |
| 103 | |
| 104 | |
| 105 | |
| 106 | |
| 107 | |
| 108 | |
| 109 | |
| 110 | |
| 111 | |
| 112 | |
| 113 | |
| 114 | |
| 115 | |
| 116 | |
| 117 | |
| 118 | |
| 119 | |
| 120 | |
| 121 | |
| 122 | |
| 123 | |
| 124 | |
| 125 | /// lane-av1422h232: the non-vacuity test for [`count_rawvideo_diffs`]. |
| 126 | /// |
| 127 | /// A cell-classifying counter that cannot report a difference is worse |
| 128 | /// than no counter, because it reports "exact" for everything -- that is |
| 129 | /// exactly how lane-av1422remeasure's "18/18 byte-exact" table was |
| 130 | /// produced (it compared our own packed samples against the same |
| 131 | /// samples, never reading `aomdec`'s output). |
| 132 | /// |
| 133 | /// It used to lean on the pinned witness DIFFERING to prove the counting |
| 134 | /// path fires. That witness is byte-exact now (lane-av1422hrtx fixed the |
| 135 | /// 32-point inter chroma `tx_type`), so "it differs" is no longer |
| 136 | /// available and a witness-based version of this test would be vacuous by |
| 137 | /// construction. Instead this proves the same property directly and |
| 138 | /// unconditionally: flipping ONE bit of the ORACLE's own bytes must move |
| 139 | /// the count by exactly one, in the plane that bit is in, and knock exactly |
| 140 | /// one frame out of `frames_exact`. A comparator that had stopped reading |
| 141 | /// the oracle reports the baseline numbers again and fails by name. |
| 142 | |
| 143 | |
| 144 | |
| 145 | |
| 146 | |
| 147 | |
| 148 | |
| 149 | |
| 150 | |
| 151 | |
| 152 | |
| 153 | |
| 154 | |
| 155 | |
| 156 | |
| 157 | |
| 158 | |
| 159 | |
| 160 | |
| 161 | |
| 162 | |
| 163 | |
| 164 | |
| 165 | |
| 166 | |
| 167 | |
| 168 | |
| 169 | |
| 170 | |
| 171 | |
| 172 | |
| 173 | |
| 174 | |
| 175 | |
| 176 | |
| 177 | |
| 178 | |
| 179 | |
| 180 | |
| 181 | |
| 182 | /// lane-av1cmpframe: the control for the class |
| 183 | /// `comparator-that-attributes-the-wrong-plane`. |
| 184 | /// |
| 185 | /// [`count_rawvideo_diffs`] used to derive its plane split from the FIRST |
| 186 | /// decoded picture and compare every byte index against those frame-0 |
| 187 | /// thresholds. On a multi-frame stream that attributes every sample after |
| 188 | /// frame 0's luma to the LAST plane: on the pinned 320x236 stream below |
| 189 | /// (16 frames of 320x236 4:2:0, 113 280 bytes per frame, so plane V holds |
| 190 | /// 302 080 bytes in total) it reported `wrong_v = 330 673` -- more wrong V |
| 191 | /// bytes than exist. The per-frame totals and the frame-exact count were |
| 192 | /// sound, so the defect was invisible to every gate that only asserted |
| 193 | /// zeros; it corrupted exactly the numbers a per-plane report exists to |
| 194 | /// give. |
| 195 | /// |
| 196 | /// Three arms, each of which the old attribution FAILS: |
| 197 | /// |
| 198 | /// 1. **Arithmetic.** Each plane's count must be at most that plane's own |
| 199 | /// byte capacity summed over frames, and the three must sum to the |
| 200 | /// independently computed total. The old code reported 330 673 wrong V |
| 201 | /// bytes in a 302 080-byte plane. |
| 202 | /// 2. **A later frame's U.** Flipping one byte inside frame 5's U plane |
| 203 | /// must move U by exactly one and leave Y and V at their baseline. |
| 204 | /// The old code has no frame-5 U at all -- byte 600 000 is past every |
| 205 | /// frame-0 threshold, so it landed in V. |
| 206 | /// 3. **Frame attribution.** `frames_exact` must equal the number of |
| 207 | /// frames this test counts itself, per frame, from the decoded |
| 208 | /// pictures' own plane lengths. |
| 209 | /// |
| 210 | /// The pin is asserted only for IDENTITY (bytes + fnv1a64) and for |
| 211 | /// comparability. Whether the stream currently diverges is deliberately |
| 212 | /// NOT asserted: this is a control for the INSTRUMENT, and it must keep |
| 213 | /// biting after the odd-height entropy fork is fixed. |
| 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 | |
| 256 | |
| 257 | |
| 258 | |
| 259 | |
| 260 | |
| 261 | |
| 262 | |
| 263 | |
| 264 | |
| 265 | |
| 266 | |
| 267 | |
| 268 | |
| 269 | |
| 270 | |
| 271 | |
| 272 | |
| 273 | |
| 274 | |
| 275 | |
| 276 | |
| 277 | |
| 278 | |
| 279 | |
| 280 | |
| 281 | |
| 282 | |
| 283 | |
| 284 | |
| 285 | |
| 286 | |
| 287 | |
| 288 | |
| 289 | |
| 290 | |
| 291 | |
| 292 | |
| 293 | |
| 294 | |
| 295 | |
| 296 | |
| 297 | |
| 298 | |
| 299 | |
| 300 | |
| 301 | |
| 302 | |
| 303 | |
| 304 | |
| 305 | |
| 306 | |
| 307 | |
| 308 | |
| 309 | |
| 310 | |
| 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 | /// lane-av1cmpaudit2: the permanent CONTROL for the class |
| 357 | /// `comparator-that-never-reads-the-oracle`. |
| 358 | /// |
| 359 | /// The retracted predecessor lane's per-cell counter reported "0 wrong" |
| 360 | /// on 18/18 cells -- including cells that differ from `aomdec |
| 361 | /// --rawvideo` in 17658 samples -- because it packed OUR decoded samples |
| 362 | /// into a buffer and compared that buffer against the same samples. |
| 363 | /// `aomdec`'s output was written, length-checked, and never read. |
| 364 | /// Nothing about that mistake is visible from the outside: the helper's |
| 365 | /// signature, its panic text and its return type are all exactly what a |
| 366 | /// working comparator has, and no amount of reading the source of a |
| 367 | /// healthy-looking helper proves the next one is healthy. |
| 368 | /// |
| 369 | /// So the class is pinned here from the other direction. |
| 370 | /// `EC_AV1_AOMDEC` is already the crate's oracle override, so this test |
| 371 | /// points every oracle helper at a shim that runs the REAL `aomdec` and |
| 372 | /// then corrupts exactly ONE byte of whatever it wrote -- the |
| 373 | /// `--rawvideo` output and the `EC_AV1_FINAL_DUMP` frame 0 -- leaving |
| 374 | /// every other sample a genuine decode. On a pin that IS byte-exact |
| 375 | /// against the real oracle: |
| 376 | /// |
| 377 | /// 1. **arm 1, real oracle: every helper is GREEN.** Without this arm, |
| 378 | /// arm 2's red could just be a stream that was never exact. |
| 379 | /// 2. **arm 2, one-byte-wrong oracle: every helper is RED.** A helper |
| 380 | /// that stays green here is the retracted defect itself: it cannot |
| 381 | /// fail, so its green is worth nothing. |
| 382 | /// |
| 383 | /// One test, five helpers, and it goes red for the exact mistake that |
| 384 | /// was retracted. Measured over this file: the other 62 tests that |
| 385 | /// reach an oracle helper all take `lock_gate_counters()` before their |
| 386 | /// first oracle call, which is what makes the process-global |
| 387 | /// `EC_AV1_AOMDEC` safe to flip here. |
| 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 | /// lane-film10fix: the permanent CONTROL for the ffmpeg half of the class |
| 571 | /// `comparator-that-never-reads-the-oracle`. |
| 572 | /// |
| 573 | /// Its sibling above covers the five `aomdec` comparators. The `ffmpeg` |
| 574 | /// half had no such control, and it is the half the two 10-bit FILM gates |
| 575 | /// rest on: `a_10bit_128sb_film_frames_with_warp_cdef_and_interintra_...` |
| 576 | /// and `a_10bit_film_frames_with_small_side_globalmv_and_rect_warp_...` |
| 577 | /// both declare "pixel-exact" purely as |
| 578 | /// `assert_eq!(ours.<plane>, ffmpeg_decode_sequence_10bit(...).<plane>)` |
| 579 | /// over 15 and 33 shown frames. If `ffmpeg_decode_sequence_10bit` ever |
| 580 | /// stopped reading ffmpeg's stdout -- packed our own samples into the |
| 581 | /// buffer it returns, say -- both gates would report exact on a decoder |
| 582 | /// that could be arbitrarily wrong, and nothing in the crate would go |
| 583 | /// red. Reading the helper's source proves it is live TODAY; only a |
| 584 | /// deliberately wrong reference proves it can FAIL. |
| 585 | /// |
| 586 | /// So this is the same two-arm shape, pointed at ffmpeg. The shim runs the |
| 587 | /// REAL ffmpeg and then rotates ONE byte of its rawvideo stdout per |
| 588 | /// offset in a sibling file, leaving the stream, the geometry, the frame |
| 589 | /// count and every other sample a genuine decode. On a pin that IS |
| 590 | /// byte-exact against real ffmpeg: |
| 591 | /// |
| 592 | /// 1. **arm 1, real ffmpeg: every helper is GREEN.** Without this arm, |
| 593 | /// arm 2's red could just be a stream that was never exact. |
| 594 | /// 2. **arm 2, one-sample-wrong ffmpeg, PER PLANE: every helper is RED |
| 595 | /// and the red names the plane that was tampered with.** Three arms, |
| 596 | /// one per plane, because a helper that only ever compared luma would |
| 597 | /// pass the Y arm and fail U and V -- and a 10-bit film gate that |
| 598 | /// reported "exact" while ignoring chroma entirely would be exactly |
| 599 | /// the class this controls. |
| 600 | /// |
| 601 | /// The three helpers are the whole reference surface in this module: |
| 602 | /// `ffmpeg_decode_sequence` (4:2:0 8-bit), `ffmpeg_decode_gray_sequence` |
| 603 | /// (monochrome, one plane) and `ffmpeg_decode_sequence_10bit` (the |
| 604 | /// `yuv420p10le` family both film gates use). Each is driven on a pin it |
| 605 | /// is known to be exact against: the 8-bit `420_odd65x65_key.obu` for the |
| 606 | /// first, the same stream for the third's shape arithmetic, and the |
| 607 | /// monochrome recipe the mono gate already builds for the second. The |
| 608 | /// override is thread-local, so a red arm cannot leave a tampered ffmpeg |
| 609 | /// behind for a sibling test on another thread. |
| 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 | |
| 650 | |
| 651 | |
| 652 | |
| 653 | |
| 654 | |
| 655 | |
| 656 | |
| 657 | |
| 658 | |
| 659 | |
| 660 | |
| 661 | |
| 662 | |
| 663 | |
| 664 | |
| 665 | |
| 666 | |
| 667 | |
| 668 | |
| 669 | |
| 670 | |
| 671 | |
| 672 | |
| 673 | |
| 674 | |
| 675 | |
| 676 | |
| 677 | |
| 678 | |
| 679 | |
| 680 | |
| 681 | |
| 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 | |
| 726 | |
| 727 | |
| 728 | |
| 729 | |
| 730 | |
| 731 | |
| 732 | |
| 733 | |
| 734 | |
| 735 | |
| 736 | |
| 737 | |
| 738 | |
| 739 | |
| 740 | |
| 741 | |
| 742 | |
| 743 | |
| 744 | |
| 745 | |
| 746 | |
| 747 | |
| 748 | |
| 749 | |
| 750 | |
| 751 | |
| 752 | |
| 753 | |
| 754 | |
| 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 | |
| 805 | |
| 806 | |
| 807 | |
| 808 | |
| 809 | |
| 810 | |
| 811 | |
| 812 | |
| 813 | |
| 814 | |
| 815 | |
| 816 | |
| 817 | |
| 818 | |
| 819 | |
| 820 | |
| 821 | |
| 822 | |
| 823 | |
| 824 | |
| 825 | |
| 826 | |
| 827 | |
| 828 | |
| 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 | |
| 877 | |
| 878 | |
| 879 | |
| 880 | |
| 881 | |
| 882 | |
| 883 | |
| 884 | |
| 885 | |
| 886 | |
| 887 | |
| 888 | |
| 889 | |
| 890 | |
| 891 | |
| 892 | |
| 893 | |
| 894 | |
| 895 | |
| 896 | |
| 897 | |
| 898 | |
| 899 | |
| 900 | |
| 901 | |
| 902 | |
| 903 | |
| 904 | |
| 905 | |
| 906 | |
| 907 | |
| 908 | |
| 909 | |
| 910 | |
| 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 | /// lane-av1422chrtx: the odd-frame-HEIGHT 4:2:0 witness, pinned and now |
| 960 | /// EXACT (lane-av1422anom had pinned it as a ratchet on its own defect). |
| 961 | /// |
| 962 | /// This is NOT a 4:2:2 cell and needs no bypass -- it is ordinary 4:2:0, |
| 963 | /// reachable by any user. lane-av1422anom pinned it as a RATCHET asserting |
| 964 | /// its own measured defect `(0, 200, 17658)`, and said whoever fixed it |
| 965 | /// must flip that to exactness. That is done, and the flip is the |
| 966 | /// deliverable: |
| 967 | /// |
| 968 | /// the defect was a chroma `tx_type`, not a geometry. libaom's |
| 969 | /// `av1_get_ext_tx_set_type` (`blockd.h`) resolves a **32-point** chroma |
| 970 | /// unit to `EXT_TX_SET_DCT_IDTX` when the block `is_inter` -- so an |
| 971 | /// Intra-Block-Copy block whose luma coded `IDTX` runs the identity |
| 972 | /// transform on its chroma. `read_plane`'s `side >= 32` clamp forced |
| 973 | /// `DCT_DCT` there (its `DCT_DCT` cap is really libaom's |
| 974 | /// `txsize_sqr_up_map[tx_size] > TX_32X32`, i.e. 64 and up), so the |
| 975 | /// residual was a 32-point IDCT where libaom's was a plain copy of the |
| 976 | /// dequantized coefficients `>>2`. The wrong samples sat in one 64x64 |
| 977 | /// IBC block's 32x32 chroma unit at chroma (128,96) on frame 0, and |
| 978 | /// propagated from there through the inter frames. |
| 979 | /// |
| 980 | /// `the_counting_oracle_diff_detects_one_flipped_oracle_byte` is the |
| 981 | /// non-vacuity control that keeps the `0` above worth anything. |
| 982 | |
| 983 | |
| 984 | |
| 985 | |
| 986 | |
| 987 | |
| 988 | |
| 989 | |
| 990 | |
| 991 | |
| 992 | |
| 993 | |
| 994 | |
| 995 | |
| 996 | |
| 997 | |
| 998 | |
| 999 | |
| 1000 | |
| 1001 | |
| 1002 | |
| 1003 | |
| 1004 | |
| 1005 | |
| 1006 | |
| 1007 | |
| 1008 | |
| 1009 | |
| 1010 | |
| 1011 | |
| 1012 | |
| 1013 | |
| 1014 | |
| 1015 | |
| 1016 | |
| 1017 | |
| 1018 | |
| 1019 | |
| 1020 | |
| 1021 | /// lane-av1oddheightfork3: the 320x236 cell this lane CLOSED, as a |
| 1022 | /// permanent BYTE-EXACTNESS gate against the live oracle -- not a route |
| 1023 | /// counter, not a source scan. It compares our decoded samples with |
| 1024 | /// `aomdec --rawvideo`'s own bytes plane by plane, and asserts every |
| 1025 | /// frame is byte-exact. |
| 1026 | /// |
| 1027 | /// **The defect it pins.** Before the fix this cell measured |
| 1028 | /// `Y 234349 / U 56957 / V 52981, 0 of 16 frames exact` -- reproduced on |
| 1029 | /// this lane's own tree by reverting the fix, matching |
| 1030 | /// `lanes/av1oddluma.report.md` and `lanes/av1cmpframe.report.md` digit |
| 1031 | /// for digit. The first divergent read is the `txfm_partition` symbol of |
| 1032 | /// the INTRABC 8x16 block at mi(44,60): our `TXFM_CONTEXT` grid held the |
| 1033 | /// BLOCK's own `16` in `left_txfm[44]` where libaom holds the split |
| 1034 | /// leaf's `8` (the operand pair is printed by the oracle rung |
| 1035 | /// `EC_VARTXCTX`, `scripts/instrument-aom-oracle.sh`), so `ctx` was 12 |
| 1036 | /// against libaom's 13 and `is_split` 0 against 1. |
| 1037 | /// |
| 1038 | /// **Non-vacuity.** `the_counting_oracle_diff_detects_one_flipped_oracle_byte` |
| 1039 | /// is the comparator control and does not depend on any witness |
| 1040 | /// diverging; the mutation proof that this gate BITES the defect it |
| 1041 | /// names is in `lanes/av1oddheightfork3.report.md` (revert the |
| 1042 | /// `fill_lf_grid_rect_after_vartx` call sites -> this test reds BY NAME |
| 1043 | /// with the numbers above). |
| 1044 | |
| 1045 | |
| 1046 | |
| 1047 | |
| 1048 | |
| 1049 | |
| 1050 | |
| 1051 | |
| 1052 | |
| 1053 | |
| 1054 | |
| 1055 | |
| 1056 | |
| 1057 | |
| 1058 | |
| 1059 | |
| 1060 | |
| 1061 | |
| 1062 | |
| 1063 | |
| 1064 | |
| 1065 | |
| 1066 | |
| 1067 | |
| 1068 | |
| 1069 | |
| 1070 | |
| 1071 | |
| 1072 | |
| 1073 | |
| 1074 | |
| 1075 | |
| 1076 | |
| 1077 | |
| 1078 | |
| 1079 | |
| 1080 | /// The repo's first hidden-frame pixel gate. Every other aomenc gate |
| 1081 | /// here compares `decode_stream`'s output against `ffmpeg -f obu`, and |
| 1082 | /// both sides emit SHOWN frames only -- so an alt-ref frame that is |
| 1083 | /// decoded, stored into a reference slot and never displayed was, until |
| 1084 | /// this gate, never compared to anything (class |
| 1085 | /// gate-blind-to-hidden-frames). His films are aomenc-encoded with the |
| 1086 | /// default `--lag-in-frames`, so they are full of exactly these frames. |
| 1087 | /// |
| 1088 | /// `--auto-alt-ref=1 --lag-in-frames=25` on moving content makes aomenc |
| 1089 | /// build alt-refs; `--arnr-maxframes=0` is load-bearing -- with libaom's |
| 1090 | /// temporal filter on, this fixture's alt-ref candidates get filtered |
| 1091 | /// away and the encoder emits ZERO hidden frames (measured: 0 hidden |
| 1092 | /// with the filter on, 3 with it off), which would have made the gate |
| 1093 | /// vacuous. The `hidden >= 2` assertion is hard, on both bit depths, so |
| 1094 | /// a recipe that stops producing hidden frames fails rather than skips. |
| 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 | |
| 1128 | |
| 1129 | |
| 1130 | |
| 1131 | |
| 1132 | |
| 1133 | |
| 1134 | |
| 1135 | |
| 1136 | |
| 1137 | |
| 1138 | |
| 1139 | |
| 1140 | |
| 1141 | |
| 1142 | |
| 1143 | |
| 1144 | |
| 1145 | |
| 1146 | |
| 1147 | |
| 1148 | |
| 1149 | |
| 1150 | |
| 1151 | |
| 1152 | |
| 1153 | |
| 1154 | |
| 1155 | |
| 1156 | |
| 1157 | |
| 1158 | |
| 1159 | |
| 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 | |
| 1195 | |
| 1196 | |
| 1197 | |
| 1198 | |
| 1199 | |
| 1200 | |
| 1201 | |
| 1202 | |
| 1203 | |
| 1204 | |
| 1205 | |
| 1206 | |
| 1207 | |
| 1208 | |
| 1209 | |
| 1210 | |
| 1211 | |
| 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 | |
| 1238 | |
| 1239 | |
| 1240 | /// A real `aomenc` filter-intra fixture: every other intra mode disabled |
| 1241 | /// (smooth/paeth/directional/angle-delta) and |
| 1242 | /// `--max-partition-size=32` (past which `av1_filter_intra_allowed_bsize`'s |
| 1243 | /// <=32x32 bound means `use_filter_intra` never reads at all, spec |
| 1244 | /// 5.11.14), so the only way this frame codes is `DC_PRED` with filter |
| 1245 | /// intra on top -- `--loopfilter-control=0` is required too: this |
| 1246 | /// decoder has no in-loop deblocking filter at all, and libaom's default |
| 1247 | /// (on) smooths every block-boundary column, which first looked like a |
| 1248 | /// filter-intra math bug (mismatches straddling the 32-pixel block |
| 1249 | /// seam) until the recipe without it round-tripped byte-exact. |
| 1250 | /// |
| 1251 | /// lane-av1skipfix: the attempt-loop shape this gate's single recipe |
| 1252 | /// lacked. It sweeps (seed, cq) and REQUIRES at least one attempt to both |
| 1253 | /// decode and read `use_filter_intra`: a decode error on EVERY attempt is |
| 1254 | /// a hard failure carrying the refusal texts, not a printed SKIP, and an |
| 1255 | /// attempt that decodes without the symbol firing is still pixel-compared |
| 1256 | /// (class `gate-skips-on-its-own-failure`). MEASURED 2026-09-29 on |
| 1257 | /// `a21f3680`: seed 42 cq 40 and seed 43 cq 40 read the symbol 3x each, |
| 1258 | /// pixel-exact, while seed 44 cq 45 and seed 45 cq 30 decode WITHOUT it -- |
| 1259 | /// so the one fixed recipe really did carry the whole gate. |
| 1260 | /// |
| 1261 | /// The per-attempt decode error the old single recipe SKIPped on is |
| 1262 | /// `screen_content_tools_determination` (libaom `encoder_utils.c`): a real |
| 1263 | /// internal trial-encode/PSNR comparison, not a flag this CLI exposes a |
| 1264 | /// knob for -- on this flat gradient fixture it lands on |
| 1265 | /// `allow_screen_content_tools=0` most runs but occasionally trips over |
| 1266 | /// its 0.9 dB threshold the other way even with palette/intrabc both |
| 1267 | /// disabled. That is a genuine separate gap (`decode_stream` never reads |
| 1268 | /// `intrabc`/`palette_mode_info`), so it is a NAMED REFUSAL counted per |
| 1269 | /// attempt, never a silent skip and never a pass. |
| 1270 | |
| 1271 | |
| 1272 | |
| 1273 | |
| 1274 | |
| 1275 | |
| 1276 | |
| 1277 | |
| 1278 | |
| 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 | |
| 1332 | |
| 1333 | |
| 1334 | |
| 1335 | |
| 1336 | |
| 1337 | |
| 1338 | |
| 1339 | |
| 1340 | |
| 1341 | |
| 1342 | |
| 1343 | |
| 1344 | |
| 1345 | |
| 1346 | |
| 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 | /// A real `aomenc` palette-Y fixture (lane-palette r3): `smptebars` |
| 1416 | /// (SMPTE colour bars -- a handful of large flat luma regions, exactly |
| 1417 | /// the "flat, few-colour, repetitive" content `av1_choose_palette_map`'s |
| 1418 | /// RD trial rewards) with `hue=s=0` to flatten chroma to one constant |
| 1419 | /// value, so `DC_PRED` already nails every chroma block with zero |
| 1420 | /// residual and the encoder's own RD never has a reason to spend bits on |
| 1421 | /// a *UV* palette too (a real symbol this decoder still refuses -- |
| 1422 | /// lane-palette r3's own scope is Y only). `smptebars` has no seed to |
| 1423 | /// vary, so the fixture is deterministic by construction; hashed twice |
| 1424 | /// below to prove it rather than assert it. `--enable-rect-partitions=0` |
| 1425 | /// / `-ab-` / `-1to4-` keep every intra block square, sidestepping the |
| 1426 | /// rect-strip screen-content refusal at `read_intra_mode_rect` |
| 1427 | /// (decode.rs ~2226) -- that refusal is this lane's own next milestone, |
| 1428 | /// not this gate's. `--sb-size=64` and `--threads=1 --row-mt=0` are the |
| 1429 | /// sibling-lane facts this charter paid for: a single 64x64 frame is one |
| 1430 | /// superblock either way, but pinning them keeps the recipe identical to |
| 1431 | /// every other gate in this file. HARD-asserts |
| 1432 | /// [`decode::palette_hits`] moved -- a stream that never reads a real |
| 1433 | /// palette block would refuse (or not) by construction without proving |
| 1434 | /// this milestone at all. |
| 1435 | /// |
| 1436 | /// lane-palette r4/r6/r7: r3/r4 found that this fixture's reconstructed |
| 1437 | /// pixels did not match ffmpeg's decode of the same bytes even though |
| 1438 | /// every symbol read by `decode_color_index_map` checked line-for-line |
| 1439 | /// against the oracle and matched. r6's range trace (`compare-range-not-tell`) |
| 1440 | /// pinned the real cause: `decode_color_index_map` was called from the |
| 1441 | /// wrong syntax position -- inline right after the Y colours, instead of |
| 1442 | /// after the whole mode-info read (UV palette mode_info + `filter_intra`, |
| 1443 | /// `av1_visit_palette`'s real call order). r7 ported the UV palette |
| 1444 | /// mode_info read and moved the colour-index-map decode after |
| 1445 | /// `filter_intra`; this gate now asserts a real pixel match instead of |
| 1446 | /// the old named refusal. |
| 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 | |
| 1480 | |
| 1481 | |
| 1482 | |
| 1483 | |
| 1484 | |
| 1485 | |
| 1486 | |
| 1487 | |
| 1488 | |
| 1489 | |
| 1490 | |
| 1491 | |
| 1492 | |
| 1493 | |
| 1494 | |
| 1495 | |
| 1496 | |
| 1497 | |
| 1498 | |
| 1499 | |
| 1500 | |
| 1501 | |
| 1502 | |
| 1503 | |
| 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 | /// lane-kf900 r3: the palette colour reader at BOTH bit depths. |
| 1548 | /// |
| 1549 | /// `read_palette_colors_y`/`_uv` (decode.rs, mirroring `decodemv.c:478` |
| 1550 | /// and `:509`) size every raw literal they read by the sequence's |
| 1551 | /// `bit_depth`: the first colour is `bit_depth` bits, `min_bits` is |
| 1552 | /// `bit_depth - 3` (Y/U) or `bit_depth - 4` (V), `range` starts at |
| 1553 | /// `1 << bit_depth`, and the clamp/wrap bound is `(1 << bit_depth) - 1`. |
| 1554 | /// Ours hardcoded 8, so every 10-bit palette block read TWO BITS TOO FEW |
| 1555 | /// per transmitted colour and silently decoded the rest of the tile from |
| 1556 | /// the wrong bit position. |
| 1557 | /// |
| 1558 | /// It was silent because raw literals are EQUIPROBABLE: at the ranges |
| 1559 | /// this content reaches an equiprobable read maps the msac range onto |
| 1560 | /// itself (62728 -> 31364 -> renormalised 62728), so a cross-decoder |
| 1561 | /// RANGE ladder stays bit-identical straight through the miscount and |
| 1562 | /// only the decoded VALUE moves. Pinned on a 256x192 10-bit |
| 1563 | /// `--cq-level=59` stream whose first block is a 32x16 palette: aomdec's |
| 1564 | /// `EC_PAL` ladder and ours agreed on every range and disagreed on the |
| 1565 | /// very first colour index (0 vs 1); after the fix all 1024 `EC_PAL` |
| 1566 | /// lines of that block match aomdec line for line. |
| 1567 | /// |
| 1568 | /// The recipe is the 8-bit `..._with_palette_y_...` gate's, with the |
| 1569 | /// depth as the only variable, so a failure here is the depth and |
| 1570 | /// nothing else. HARD-asserts [`decode::palette_hits`] moved on each arm |
| 1571 | /// (a stream with no real palette block would prove nothing) and |
| 1572 | /// compares all three planes against ffmpeg's decode of the same bytes. |
| 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 | |
| 1633 | |
| 1634 | |
| 1635 | |
| 1636 | |
| 1637 | |
| 1638 | |
| 1639 | |
| 1640 | |
| 1641 | |
| 1642 | |
| 1643 | |
| 1644 | |
| 1645 | |
| 1646 | |
| 1647 | |
| 1648 | |
| 1649 | |
| 1650 | |
| 1651 | |
| 1652 | |
| 1653 | |
| 1654 | |
| 1655 | |
| 1656 | |
| 1657 | |
| 1658 | |
| 1659 | |
| 1660 | |
| 1661 | |
| 1662 | |
| 1663 | |
| 1664 | |
| 1665 | |
| 1666 | |
| 1667 | |
| 1668 | |
| 1669 | |
| 1670 | |
| 1671 | |
| 1672 | |
| 1673 | |
| 1674 | |
| 1675 | |
| 1676 | |
| 1677 | |
| 1678 | |
| 1679 | |
| 1680 | |
| 1681 | |
| 1682 | |
| 1683 | |
| 1684 | |
| 1685 | |
| 1686 | |
| 1687 | |
| 1688 | |
| 1689 | |
| 1690 | |
| 1691 | |
| 1692 | |
| 1693 | /// lane-pal8 r1, the gate for a palette on a SQUARE 8x8 LEAF. |
| 1694 | /// |
| 1695 | /// `read_palette_mode_info` (decodemv.c:567) reads `palette_y_mode` for |
| 1696 | /// every `DC_PRED` block whose `av1_get_palette_bsize_ctx` |
| 1697 | /// (`num_pels_log2 - num_pels_log2[BLOCK_8X8]`, 0 at 8x8) exists, and |
| 1698 | /// `av1_decode_palette_tokens` (decodeframe.c:1135, `av1_visit_palette`) |
| 1699 | /// reads the colour-index map after the WHOLE mode-info read. Ours passed |
| 1700 | /// `None`/`&[]` from [`decode::decode_leaf8`], reading the mode symbol off |
| 1701 | /// CDF row 0 and refusing "a block that actually uses a palette (Y) -- |
| 1702 | /// reconstruction is out of scope" the moment it fired -- and at 8 bit |
| 1703 | /// aomenc palettes SQUARE blocks, so with `--min-partition-size=8` every |
| 1704 | /// 8-bit screen-content stream stopped there (lane-kf900 r4's measurement). |
| 1705 | /// |
| 1706 | /// Sweeps both bit depths x cq 30/40/55 x `--enable-tx-size-search` 0/1 x |
| 1707 | /// two lavfi sources (+ a `--tile-columns=1` arm, per the neighbour-map |
| 1708 | /// rule: the palette bands are per-mi and tile-guarded). Key frame only |
| 1709 | /// (`--limit=1`): the inter frames of these recipes stop on OTHER lanes' |
| 1710 | /// open refusals (8x8 inter leaf chroma mode, inter 1:4 partitions). |
| 1711 | /// HARD-asserts the 8x8-leaf palette counter moved on the compared arms |
| 1712 | /// and that no arm mismatched, in or out of scope. |
| 1713 | |
| 1714 | |
| 1715 | |
| 1716 | |
| 1717 | |
| 1718 | |
| 1719 | |
| 1720 | |
| 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 | |
| 1932 | |
| 1933 | |
| 1934 | |
| 1935 | |
| 1936 | |
| 1937 | |
| 1938 | |
| 1939 | |
| 1940 | |
| 1941 | |
| 1942 | |
| 1943 | |
| 1944 | |
| 1945 | |
| 1946 | /// lane-av1toolgates: `enable-rect-tx` at 8 BITS. See |
| 1947 | /// [`rect_tx_tool_gate`] for what the flag does and does not prove, and |
| 1948 | /// why the recipe is spelled here rather than in the helper. |
| 1949 | /// |
| 1950 | /// The whole recipe is inline: `--passes=1` has to be findable in this |
| 1951 | /// segment for the coverage derivation to count the gate at all, and |
| 1952 | /// `--enable-rect-tx=1` has to be findable here for it to count the |
| 1953 | /// TOOL. The quantiser and the tx-size-search setting are swept as two |
| 1954 | /// arms so the witness cannot rest on one RD interaction. |
| 1955 | |
| 1956 | |
| 1957 | |
| 1958 | |
| 1959 | |
| 1960 | |
| 1961 | |
| 1962 | |
| 1963 | |
| 1964 | |
| 1965 | |
| 1966 | |
| 1967 | |
| 1968 | |
| 1969 | |
| 1970 | |
| 1971 | |
| 1972 | |
| 1973 | |
| 1974 | |
| 1975 | |
| 1976 | |
| 1977 | |
| 1978 | |
| 1979 | |
| 1980 | |
| 1981 | |
| 1982 | |
| 1983 | |
| 1984 | |
| 1985 | |
| 1986 | |
| 1987 | |
| 1988 | |
| 1989 | |
| 1990 | |
| 1991 | |
| 1992 | |
| 1993 | |
| 1994 | |
| 1995 | |
| 1996 | |
| 1997 | |
| 1998 | |
| 1999 | |
| 2000 | |
| 2001 | |
| 2002 | |
| 2003 | |
| 2004 | |
| 2005 | |
| 2006 | |
| 2007 | |
| 2008 | |
| 2009 | |
| 2010 | |
| 2011 | |
| 2012 | |
| 2013 | |
| 2014 | |
| 2015 | |
| 2016 | |
| 2017 | /// lane-av1toolgates: `enable-rect-tx` at 10 BITS -- the same recipe, the |
| 2018 | /// same parsed-shape witness, at the depth the 8-bit arm says nothing |
| 2019 | /// about (the per-depth rule `NEVER_EXERCISED_10BIT` is built on: |
| 2020 | /// lane-hbdinter's two 10-bit-only defects survived because every 10-bit |
| 2021 | /// gate pinned the filters off). The depth is spelled in THIS body, |
| 2022 | /// which is what files the gate in the 10-bit bucket. |
| 2023 | |
| 2024 | |
| 2025 | |
| 2026 | |
| 2027 | |
| 2028 | |
| 2029 | |
| 2030 | |
| 2031 | |
| 2032 | |
| 2033 | |
| 2034 | |
| 2035 | |
| 2036 | |
| 2037 | |
| 2038 | |
| 2039 | |
| 2040 | |
| 2041 | |
| 2042 | |
| 2043 | |
| 2044 | |
| 2045 | |
| 2046 | |
| 2047 | |
| 2048 | |
| 2049 | |
| 2050 | |
| 2051 | |
| 2052 | |
| 2053 | |
| 2054 | |
| 2055 | |
| 2056 | |
| 2057 | |
| 2058 | |
| 2059 | |
| 2060 | |
| 2061 | |
| 2062 | |
| 2063 | |
| 2064 | |
| 2065 | |
| 2066 | |
| 2067 | |
| 2068 | |
| 2069 | |
| 2070 | |
| 2071 | |
| 2072 | |
| 2073 | |
| 2074 | |
| 2075 | |
| 2076 | |
| 2077 | |
| 2078 | |
| 2079 | |
| 2080 | |
| 2081 | |
| 2082 | |
| 2083 | |
| 2084 | |
| 2085 | |
| 2086 | |
| 2087 | /// lane-kf900 r5, the gate for the rect-strip `use_intrabc` read. |
| 2088 | /// |
| 2089 | /// `av1_allow_intrabc` is a FRAME-level test (`decodemv.c:892`, |
| 2090 | /// `read_intra_frame_mode_info`): on an intra frame whose header set |
| 2091 | /// `allow_intrabc`, EVERY intra block reads a `use_intrabc` symbol right |
| 2092 | /// after `skip`/`cdef`/`delta_q` and before `mbmi->mode`. There is no |
| 2093 | /// block-shape term, so rect strips read it exactly like square leaves -- |
| 2094 | /// `read_intra_mode_rect` never did, and the arithmetic decoder desynced |
| 2095 | /// at the FIRST symbol of the first rect block of every |
| 2096 | /// `--tune-content=screen` key frame (measured: `testsrc2` 256x192 cq59 |
| 2097 | /// 8-bit decoded "OK" with all 49152 luma samples wrong). |
| 2098 | /// |
| 2099 | /// Arm 0 is that recipe at cq50 without palette: its rect strips really do |
| 2100 | /// use intrabc. lane-av1-rect14 reconstructs those strips (2:1 and the |
| 2101 | /// 16x4/4x16 pair), so the arm must now decode pixel-exact -- and it must |
| 2102 | /// still have read the symbol. The named refusal remains only for a |
| 2103 | /// 128-superblock strip (`decode_block_128rect`), which this sb64 recipe |
| 2104 | /// does not reach. |
| 2105 | /// Arm 1 is the same recipe without palette and without tx-size search -- |
| 2106 | /// it decodes the whole frame, reading the symbol dozens of times. |
| 2107 | /// Arm 2 is a screen-tools key frame whose header does NOT set |
| 2108 | /// `allow_intrabc` (cq63): it stays pixel-exact, proving the new read is |
| 2109 | /// not taken when libaom does not write it. |
| 2110 | /// |
| 2111 | /// PIXEL RESIDUE (open, lane-kf900 r5): arm 1's frame is entropy-exact |
| 2112 | /// against the instrumented aomdec for 429 mode-ladder elements and then |
| 2113 | /// diverges inside the DV read of a SQUARE intrabc block at mi(32,44), so |
| 2114 | /// its pixels are not compared here. That is a separate defect in |
| 2115 | /// `read_intrabc_dv`, not in the read this gate covers. |
| 2116 | |
| 2117 | |
| 2118 | |
| 2119 | |
| 2120 | |
| 2121 | |
| 2122 | |
| 2123 | |
| 2124 | |
| 2125 | |
| 2126 | |
| 2127 | |
| 2128 | |
| 2129 | |
| 2130 | |
| 2131 | |
| 2132 | |
| 2133 | |
| 2134 | |
| 2135 | |
| 2136 | |
| 2137 | |
| 2138 | |
| 2139 | |
| 2140 | |
| 2141 | |
| 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 | |
| 2224 | |
| 2225 | |
| 2226 | |
| 2227 | |
| 2228 | |
| 2229 | |
| 2230 | |
| 2231 | |
| 2232 | |
| 2233 | |
| 2234 | |
| 2235 | |
| 2236 | |
| 2237 | |
| 2238 | |
| 2239 | |
| 2240 | |
| 2241 | |
| 2242 | |
| 2243 | |
| 2244 | |
| 2245 | |
| 2246 | |
| 2247 | |
| 2248 | |
| 2249 | |
| 2250 | |
| 2251 | |
| 2252 | |
| 2253 | |
| 2254 | |
| 2255 | |
| 2256 | |
| 2257 | |
| 2258 | |
| 2259 | |
| 2260 | |
| 2261 | |
| 2262 | |
| 2263 | |
| 2264 | |
| 2265 | |
| 2266 | |
| 2267 | |
| 2268 | |
| 2269 | |
| 2270 | |
| 2271 | |
| 2272 | |
| 2273 | |
| 2274 | |
| 2275 | |
| 2276 | |
| 2277 | |
| 2278 | |
| 2279 | |
| 2280 | |
| 2281 | |
| 2282 | |
| 2283 | |
| 2284 | |
| 2285 | |
| 2286 | |
| 2287 | |
| 2288 | |
| 2289 | |
| 2290 | |
| 2291 | |
| 2292 | |
| 2293 | |
| 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 | |
| 2399 | |
| 2400 | |
| 2401 | |
| 2402 | |
| 2403 | |
| 2404 | |
| 2405 | |
| 2406 | |
| 2407 | |
| 2408 | |
| 2409 | |
| 2410 | |
| 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 | /// lane-av1-rect14: the 16x4/4x16 intrabc pair. libaom codes the pair's |
| 2457 | /// chroma on the odd-mi strip only (`is_chroma_reference`, |
| 2458 | /// av1_common_int.h:1454). The witness is the report recipe: testsrc2 |
| 2459 | /// 640x480 cq60 palette, txs off, which places a 16x4 intrabc strip at |
| 2460 | /// mi(76,108). Pre-fix this refused by name. VERT_4 was not produced by |
| 2461 | /// any fully-decoded recipe tried here (the allintra stream codes four |
| 2462 | /// `PARTITION_VERT_4` at bsize 6 and then stops on the unrelated var-tx |
| 2463 | /// mixed-leaf refusal); the VERT arm is the same body with the axes |
| 2464 | /// swapped. |
| 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 | /// lane-av1-rect14: lossless 16x4/4x16 chroma is two TX_4X4s, not one |
| 2544 | /// TX_8X4. The measured site is luma col 108 of a 320x240 sb128 lossless |
| 2545 | /// key frame (lanes/av1lossless128.report.md §6). Rows 0-127 of that |
| 2546 | /// frame -- the first superblock row, which contains the site -- must |
| 2547 | /// match ffmpeg. A later mismatch is the pre-existing 64x64 square |
| 2548 | /// lossless residue (base fails at byte 108; this lane's first remaining |
| 2549 | /// mismatch is row 128). The gate fails if that residue moves back into |
| 2550 | /// the repaired region. |
| 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 | |
| 2585 | |
| 2586 | |
| 2587 | |
| 2588 | |
| 2589 | |
| 2590 | |
| 2591 | |
| 2592 | |
| 2593 | |
| 2594 | |
| 2595 | |
| 2596 | |
| 2597 | |
| 2598 | |
| 2599 | |
| 2600 | |
| 2601 | |
| 2602 | |
| 2603 | |
| 2604 | |
| 2605 | |
| 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 | /// lane-av1tilerows: the 4:4:4 LOSSLESS rect-pair chroma REACH fix -- |
| 2641 | /// the defect lane `av1formatsweep` filed as **H4** ("4:4:4 lossless + |
| 2642 | /// `--tile-rows=1`, frame 3 onward the whole plane goes flat") and this |
| 2643 | /// lane's red-before actually measured. |
| 2644 | /// |
| 2645 | /// **The H4 label was wrong; the defect it points at is real.** Two |
| 2646 | /// corrections to the sweep's framing, both measured: |
| 2647 | /// |
| 2648 | /// 1. `--tile-rows=1` at 256x128 is a **no-op**. aomenc's default |
| 2649 | /// superblock is 128px, so 256x128 is 2x1 superblocks -- there is no |
| 2650 | /// second superblock ROW to split, and aomenc silently emits a |
| 2651 | /// stream BYTE-IDENTICAL to `--tile-columns=0 --tile-rows=0` |
| 2652 | /// (verified: both 64828 bytes, `cmp` equal). The sweep's "tiled" |
| 2653 | /// fixture contained no tile rows at all. Tile rows at 4:4:4 |
| 2654 | /// lossless are exact here: measured pixel-exact at 1, 2 and 4 tile |
| 2655 | /// rows, both axes (2x2), at 256x128 / 256x256 / 128x256 / 512x128, |
| 2656 | /// on a recipe that is exact without tiles. |
| 2657 | /// 2. The "frames 0-2 byte-exact, frame 3 onward flat, Y(0,0) 128 vs |
| 2658 | /// 81" signature is a **harness frame-order mismatch, not a decode |
| 2659 | /// defect**: with altref on, aomdec's `EC_AV1_FINAL_DUMP` writes 7 |
| 2660 | /// frames in DECODE order while `ffmpeg -f rawvideo` writes 6 in |
| 2661 | /// DISPLAY order. Indexing one against the other makes frame 1 differ |
| 2662 | /// by 29109 samples (30%) -- and aomdec-vs-ffmpeg ALONE reproduces |
| 2663 | /// the identical 29109/24412/20046/19906 counts with no edith |
| 2664 | /// decoder in the loop. Our decode-order output is byte-exact against |
| 2665 | /// the oracle on all 7. |
| 2666 | /// |
| 2667 | /// The defect IS real, is in the class the sweep named (a hardcoded |
| 2668 | /// 4:2:0-shaped walk at 4:4:4), and is tile-INDEPENDENT: it reproduces |
| 2669 | /// on the zero-tile stream. `decode.rs`'s lossless 16x4/4x16 chroma-pair |
| 2670 | /// walk passed `tu_reach` a hardcoded 4:2:0 luma footprint |
| 2671 | /// (`ox * 2, oy * 2, 8`) for every chroma transform unit. At 4:4:4 a |
| 2672 | /// 4x4 chroma unit is 4x4 LUMA, so the footprint is doubled: |
| 2673 | /// `Reach::of_tu`'s `col_off + tx_w < bw` test then answers against a |
| 2674 | /// block twice its real width and every unit past the midpoint wrongly |
| 2675 | /// reports `above_right = false`, so a directional chroma strip predicts |
| 2676 | /// from a neighbour libaom never reads. |
| 2677 | /// |
| 2678 | /// **Measured site (red-before, `git stash` of the fix, same tree):** |
| 2679 | /// `testsrc2 256x128 yuv444p`, aomenc `--profile=1 --lossless=1 |
| 2680 | /// --passes=1 --end-usage=q --threads=1 --row-mt=0 --limit=6 |
| 2681 | /// --cpu-used=2 --lag-in-frames=0 --kf-max-dist=100` (pinned below). |
| 2682 | /// Frame 0 (the KEY frame) and all five inter frames: **63 samples wrong |
| 2683 | /// per frame, U 29 + V 34, first at U(110,26) / V(108,26), deltas -10..+13**, |
| 2684 | /// region x108..125 y26..29 -- a 16x4 chroma strip at 4:4:4, whose rows |
| 2685 | /// are NOT block-aligned (y26), which is the signature of a REACH |
| 2686 | /// answer and not of a coefficient or transform error. |
| 2687 | /// |
| 2688 | /// **Entropy is bit-identical**: `EC_SYMR` on both sides, 351109 reads |
| 2689 | /// compared on `(value, range, symbol, post_rng)` with the CDF-row |
| 2690 | /// convention reconciled (`32768 - ours_cdf0 == oracle_cdf0`): **zero |
| 2691 | /// divergence**. So this is reconstruction arithmetic, not an entropy |
| 2692 | /// fork -- which is what separates it from the H1 rect-partition fork |
| 2693 | /// (that one forks `EC_SYMR` at `decodetxb.c:158` `txb_skip`). |
| 2694 | /// |
| 2695 | /// A second, far worse instance of the SAME defect is the 512x128 |
| 2696 | /// `--cpu-used=2` stream (18779 wrong in the key frame, growing to |
| 2697 | /// 130708 by frame 5) -- but that stream ALSO forks entropy |
| 2698 | /// (459866 oracle reads vs 369136 ours), so it is not claimed here; |
| 2699 | /// it belongs to the H1 rect-partition lane. The pinned fixture below is |
| 2700 | /// the entropy-clean, fully-repaired instance. |
| 2701 | /// |
| 2702 | /// Non-vacuity: the fixture bytes are pinned (length + FNV-1a, like the |
| 2703 | /// other `ll444_*` pins), the header must really be `ss (0,0)` at 8-bit |
| 2704 | /// with `lossless == 1` (asserted from the parsed sequence header, not |
| 2705 | /// assumed), the tiled sweep gates' counter |
| 2706 | /// `decode::rect4_16_lossless_chroma_hits()` must FIRE (measured 80 |
| 2707 | /// units on this fixture -- a 4:2:0 stream of the same content leaves it |
| 2708 | /// at 0, because a 4:2:0 lossless 16x4 pair is an 8x4 chroma block and |
| 2709 | /// takes the pair-merge, not this walk), and every frame must be |
| 2710 | /// byte-exact through BOTH the oracle `aomdec --rawvideo` (decode order, |
| 2711 | /// the 7-frame compare that the hidden-frame gates use) and ffmpeg |
| 2712 | /// (display order, 4:4:4 full-resolution chroma). |
| 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 | |
| 2744 | |
| 2745 | |
| 2746 | |
| 2747 | |
| 2748 | |
| 2749 | |
| 2750 | |
| 2751 | |
| 2752 | |
| 2753 | |
| 2754 | |
| 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 | |
| 2794 | |
| 2795 | |
| 2796 | |
| 2797 | |
| 2798 | |
| 2799 | |
| 2800 | |
| 2801 | |
| 2802 | |
| 2803 | |
| 2804 | |
| 2805 | |
| 2806 | |
| 2807 | |
| 2808 | |
| 2809 | |
| 2810 | |
| 2811 | |
| 2812 | |
| 2813 | |
| 2814 | |
| 2815 | |
| 2816 | |
| 2817 | |
| 2818 | |
| 2819 | |
| 2820 | /// lane-av1-intrabc r4: the reviewer's unblock witness for the rect-strip |
| 2821 | /// reconstruction -- a CODED `use_intrabc` block (so its residual reader |
| 2822 | /// runs, not just the prediction copy) on a 2:1 strip in BOTH |
| 2823 | /// orientations, plus the `TX_MODE_SELECT` (var-tx) shape, every arm |
| 2824 | /// byte-exact against ffmpeg. |
| 2825 | /// |
| 2826 | /// The orientation counters (`intrabc_rect_coded_hits`) are the |
| 2827 | /// non-vacuity instrument: [`intrabc_rect_hits`] counts neither the skip |
| 2828 | /// flag nor the orientation, so an arm that silently became an all-skip |
| 2829 | /// stream (or a stream with only one orientation) would keep the old gate |
| 2830 | /// green while the coded residual path went untested |
| 2831 | /// (class `gate-blind-to-feature`). |
| 2832 | /// |
| 2833 | /// # The VERT arm is also the DV-PREDICTOR regression witness |
| 2834 | /// |
| 2835 | /// The 512x384 arm is the stream that exposed r4's defect: 528 of 294912 |
| 2836 | /// luma samples were wrong, all inside one `skip == 1` intrabc copy at |
| 2837 | /// `mi(84,104)`. Its coded diff was identical to aomdec's and the post-read |
| 2838 | /// range matched exactly (`rng=33207` both), so nothing was misread -- the |
| 2839 | /// DV PREDICTOR differed. libaom picks `nearestmv` (`-520`) from the |
| 2840 | /// `INTRA_FRAME` MV stack; this decoder picked `-512`, one stack entry |
| 2841 | /// lower, because the scan that builds that stack walked further than |
| 2842 | /// libaom's. The scans step by the candidate BLOCK's own width |
| 2843 | /// (`mi_size_wide[bsize]`) over `xd->mi[]`, which holds an entry for every |
| 2844 | /// coded block; this decoder's MV grid held only the intrabc blocks, so a |
| 2845 | /// non-intrabc neighbour read as uncovered and the scan advanced that cell |
| 2846 | /// by one instead of by its real width. See `MiGrid::cover` for the |
| 2847 | /// measured walk. A stream that decodes the DV predictor from the wrong |
| 2848 | /// stack entry cannot pass this arm's pixel comparison. |
| 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 | |
| 2982 | |
| 2983 | |
| 2984 | |
| 2985 | |
| 2986 | |
| 2987 | |
| 2988 | |
| 2989 | |
| 2990 | |
| 2991 | |
| 2992 | |
| 2993 | |
| 2994 | |
| 2995 | |
| 2996 | |
| 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 | /// lane-t900 r34, the WITNESS (r33 pinned it ignored) that intrabc under |
| 3178 | /// a 128x128 superblock decodes pixel-exact. |
| 3179 | /// |
| 3180 | /// All four arms of r33's census -- `--sb-size=128 --tune-content=screen |
| 3181 | /// --enable-intrabc=1` over both `--enable-tx-size-search` settings and |
| 3182 | /// two quantisers, on a 2x2 tiling of a 128x96 bar pattern (256x192, |
| 3183 | /// 8-bit, `--cpu-used=0 --min-partition-size=8 --max-partition-size=32`, |
| 3184 | /// rect and 1:4 off) -- code `use_128x128_superblock && allow_intrabc`. |
| 3185 | /// |
| 3186 | /// The lift was one constant: `av1_find_ref_dv` (mvref_common.c) takes |
| 3187 | /// `mib_size`, the SEQUENCE's superblock size in mi units, so the |
| 3188 | /// fallback DV is one 128-px superblock up (or 128 + `INTRABC_DELAY_PIXELS` |
| 3189 | /// left on the tile's first superblock row) under a 128 superblock, where |
| 3190 | /// [`crate::decode::read_intrabc_dv`] hardcoded 64. Every arm is compared |
| 3191 | /// to ffmpeg and the decoded-intrabc-block counter is asserted non-zero, |
| 3192 | /// so a stream that stopped using intrabc could not make this vacuous. |
| 3193 | /// |
| 3194 | /// lane-av1-intrabc (2026-09-17): the four recipes now run at 10 bits as |
| 3195 | /// well, and both depths must SHOW the engagement -- `blocks_at_depth` |
| 3196 | /// below hard-asserts a decoded intrabc block per depth. The 10-bit |
| 3197 | /// coverage the guard records for `enable-intrabc` used to rest on a gate |
| 3198 | /// that only SPELLED `--enable-intrabc=1`: measured (same round), all five |
| 3199 | /// arms of `a_real_aomenc_rect_strip_palette_decodes_pixel_exact` decode |
| 3200 | /// ZERO intrabc blocks at BOTH depths, so the spelling proved nothing and |
| 3201 | /// the entry was one encoder-RD change away from being vacuous again |
| 3202 | /// (class `tool-disabled-in-every-gate`). An arm here that stops engaging |
| 3203 | /// intrabc now fails this gate instead of retiring the entry unproven. |
| 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 | |
| 3230 | |
| 3231 | |
| 3232 | |
| 3233 | |
| 3234 | |
| 3235 | |
| 3236 | |
| 3237 | |
| 3238 | |
| 3239 | |
| 3240 | |
| 3241 | |
| 3242 | |
| 3243 | |
| 3244 | |
| 3245 | |
| 3246 | |
| 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 | /// lane-av1-ibcrect: `use_intrabc` on a 128-root HORZ/VERT strip |
| 3283 | /// (BLOCK_128X64 / BLOCK_64X128) decodes PIXEL-EXACT against the |
| 3284 | /// instrumented oracle -- the witness the refusal inventory names after |
| 3285 | /// `decode_block_128rect`'s rect-strip intrabc refusal was lifted |
| 3286 | /// (`decode_intrabc_128rect`). The square-block twin is |
| 3287 | /// [`an_sb128_screen_stream_with_intrabc_decodes_pixel_exact`] above. |
| 3288 | /// |
| 3289 | /// The recipes are the hunt's proven arms (lanes/ibcrect r1/r2, the same |
| 3290 | /// `--sb-size=128 --min-partition-size=64 --enable-rect-partitions=1 |
| 3291 | /// --enable-ab-partitions=0 --enable-1to4-partitions=0` partition recipe |
| 3292 | /// [`a_real_aomenc_sb128_intra_rect_block_decodes_pixel_exact`] uses, plus |
| 3293 | /// `--tune-content=screen --enable-intrabc=1` over the DETERMINISTIC geq |
| 3294 | /// sinusoid sources -- lavfi `gradients` ignores its seed and re-rolls |
| 3295 | /// every run, so a "flake" there was really this): |
| 3296 | /// |
| 3297 | /// * HORZ arm: 384x320 cq32, 5 all-key frames -- 14 unskipped 128x64 |
| 3298 | /// intrabc blocks (`skip=false`, real residual reads); |
| 3299 | /// * VERT arm: 512x512 cq45, 5 all-key frames -- an unskipped 64x128 |
| 3300 | /// intrabc block at mi(64,96). |
| 3301 | /// |
| 3302 | /// Both arms HARD-assert `intrabc_128rect_hits() > 0` and decode-order |
| 3303 | /// pixel-exactness of EVERY frame (hidden alt-refs included) against the |
| 3304 | /// oracle's own dump, so a stream that stopped engaging the shape fails |
| 3305 | /// the gate instead of passing vacuously (class `gate-blind-to-feature`). |
| 3306 | /// |
| 3307 | /// The 10-bit arm engages the shape. Hunt r2 and the witness re-run both |
| 3308 | /// measured `intrabc_128rect_hits` +15 on arm 3, so aomenc does take a |
| 3309 | /// 128-root HORZ/VERT strip at 10 bit under this recipe. There is no |
| 3310 | /// per-depth coverage gap to print. The gate's hard asserts already |
| 3311 | /// cover that arm. |
| 3312 | /// |
| 3313 | /// The chroma context this shape reads was the r2 defect: per-unit chroma |
| 3314 | /// entropy states were stamped inside the mu-chunk loop, then the |
| 3315 | /// end-of-block `record_split_luma_rect_mi` re-stamped BOTH planes over |
| 3316 | /// the whole 128x64 span with ONE composed state -- level = the SUM of |
| 3317 | /// both 64x64 chunks' units, dc = chunk-0's top-left (class |
| 3318 | /// `override-slot-on-one-arm`; the inter-128 path fixed the same class |
| 3319 | /// with its `mu_chroma_units` replay, decode.rs). The next block then |
| 3320 | /// read `txb_skip` off the smeared state. |
| 3321 | |
| 3322 | |
| 3323 | |
| 3324 | |
| 3325 | |
| 3326 | |
| 3327 | |
| 3328 | |
| 3329 | |
| 3330 | |
| 3331 | |
| 3332 | |
| 3333 | |
| 3334 | |
| 3335 | |
| 3336 | |
| 3337 | |
| 3338 | |
| 3339 | |
| 3340 | |
| 3341 | |
| 3342 | |
| 3343 | |
| 3344 | |
| 3345 | |
| 3346 | |
| 3347 | |
| 3348 | |
| 3349 | |
| 3350 | |
| 3351 | |
| 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 | |
| 3426 | |
| 3427 | |
| 3428 | |
| 3429 | |
| 3430 | |
| 3431 | |
| 3432 | |
| 3433 | |
| 3434 | |
| 3435 | |
| 3436 | |
| 3437 | |
| 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 | /// lane-av1intrapred r2, REGRESSION GATE for the two intrabc TX4-split |
| 3465 | /// chroma defects this lane fixed. |
| 3466 | /// |
| 3467 | /// An intrabc 8x8 leaf whose var-tx tree split to TX_4X4 must (a) arm |
| 3468 | /// `INTRABC_CHROMA_TX` from the co-located luma TU's coded type -- the |
| 3469 | /// chroma units then take that type's class-1 eob row, HORIZ scan and nz |
| 3470 | /// contexts (libaom `av1_get_tx_type`'s is_inter branch; intrabc is |
| 3471 | /// inter-classified) -- and (b) predict the chroma units from the FRAME |
| 3472 | /// COPY at the DV, not intra-from-UV-mode (intrabc's UV mode is DC, so a |
| 3473 | /// leaf that loses the override predicts flat DC where libaom copies a |
| 3474 | /// busy region). |
| 3475 | /// |
| 3476 | /// Pre-r2, decode_leaf8's TX4 arm did neither: R5's chroma U txb at |
| 3477 | /// mi (36,66) decoded `eob=11` off the 2D row where aomdec decoded |
| 3478 | /// `eob=13` off the class-1 row, and the first surviving pixel fork was |
| 3479 | /// U(184,4) of mi (2,92) (class `intrabc-chroma-tx-not-armed`, then |
| 3480 | /// `intrabc-chroma-predicts-intra`). |
| 3481 | /// |
| 3482 | /// The fixture is the report's R5 stream pinned into `fixtures/` |
| 3483 | /// (aomenc oracle, testsrc2 320x180 tiled 2x2 -> 640x360, sb64 maxp64 |
| 3484 | /// square-only screen intrabc, cq20, 1 frame; 7173 bytes, |
| 3485 | /// sha256 bc699af4a6e7c1c5657f041e8cbdf2d3d899ddb80ec2a549a950b7cebb5b41bd). |
| 3486 | /// The gate needs no oracle at run time and cannot be skipped: a missing |
| 3487 | /// fixture, a decode error, a zero counter, a moved pixel patch or a |
| 3488 | /// changed full-frame fingerprint each fail by name. The fingerprint is |
| 3489 | /// FNV-1a (dependency-free, same rationale as the cdf-forwarding gate's). |
| 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 | |
| 3581 | |
| 3582 | |
| 3583 | |
| 3584 | |
| 3585 | |
| 3586 | |
| 3587 | |
| 3588 | |
| 3589 | |
| 3590 | |
| 3591 | |
| 3592 | |
| 3593 | |
| 3594 | /// lane-t900 r33, CENSUS for "a sub-8x8 leaf that uses intrabc". |
| 3595 | /// |
| 3596 | /// The `use_intrabc` symbol IS read at that reader for every sub-8x8 leaf |
| 3597 | /// of an `allow_intrabc` frame, so arrival is provable rather than |
| 3598 | /// assumed: the arms below force 4x4 leaves (`--min-partition-size=4`) on |
| 3599 | /// the exact-repetition screen content that keeps `allow_intrabc`, and the |
| 3600 | /// gate requires both counters -- `allow_intrabc` frames and decoded sub-8 |
| 3601 | /// leaves -- to be non-zero before it reads anything into the refusal |
| 3602 | /// firing 0 times (class `gate-blind-to-feature`). |
| 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 | |
| 3637 | |
| 3638 | |
| 3639 | |
| 3640 | |
| 3641 | |
| 3642 | |
| 3643 | |
| 3644 | |
| 3645 | |
| 3646 | |
| 3647 | |
| 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 | |
| 3684 | |
| 3685 | |
| 3686 | |
| 3687 | |
| 3688 | |
| 3689 | |
| 3690 | /// lane-t900 r33, CENSUS for "an intrabc block whose var-tx tree resolved |
| 3691 | /// to mixed leaf transform sizes" -- the residue lane-t900 r32 left when |
| 3692 | /// it lifted the intrabc `TX_MODE_SELECT` refusal. |
| 3693 | /// |
| 3694 | /// The tree is read in full; lane-av1-ibcvtx taught the luma reconstruct |
| 3695 | /// to walk the tree's own leaf list, so mixed trees now decode. This |
| 3696 | /// census sweeps the quantiser across the exact-repetition recipe that |
| 3697 | /// reaches the tree at all and requires the tree to actually be read |
| 3698 | /// (`intrabc_vartx_hits`); it stays as the premise witness for the lifted |
| 3699 | /// refusal (`reached` is 0 by construction now). |
| 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 | |
| 3737 | |
| 3738 | |
| 3739 | |
| 3740 | |
| 3741 | |
| 3742 | |
| 3743 | |
| 3744 | |
| 3745 | |
| 3746 | |
| 3747 | |
| 3748 | |
| 3749 | |
| 3750 | |
| 3751 | |
| 3752 | |
| 3753 | |
| 3754 | |
| 3755 | |
| 3756 | |
| 3757 | |
| 3758 | |
| 3759 | |
| 3760 | |
| 3761 | |
| 3762 | |
| 3763 | |
| 3764 | |
| 3765 | |
| 3766 | |
| 3767 | |
| 3768 | |
| 3769 | |
| 3770 | |
| 3771 | |
| 3772 | |
| 3773 | /// lane-av1-ibcvtx, capability gate for the LIFTED refusal "an intrabc |
| 3774 | /// block whose var-tx tree resolved to mixed leaf transform sizes": the |
| 3775 | /// t900 r33 census recipe class (screen content, square partitions, |
| 3776 | /// tx-size search) reaches mixed trees the moment the canvas carries |
| 3777 | /// testsrc2's texture and blocks grow past 32 -- on the PRE-fix tree this |
| 3778 | /// exact stream refused by name on its first mixed tree (5 of the 12 |
| 3779 | /// hunt recipes hit it, `lanes/av1ibcvtx.report.md`). |
| 3780 | /// |
| 3781 | /// The luma reconstruct walks the tree's own leaf list per leaf (libaom |
| 3782 | /// `decode_token_recon_block`), and the block's chroma inherits the |
| 3783 | /// co-located luma unit's coded tx type (`av1_get_tx_type`, |
| 3784 | /// `blockd.h:1278`) -- the inheritance the uniform multi-TU intrabc path |
| 3785 | /// was missing as well: symbol-aligned against an instrumented aomdec, |
| 3786 | /// the 640x360 cq20 witness desynced inside the FIRST chroma unit of its |
| 3787 | /// first mixed tree until the arm landed, then matched every subsequent |
| 3788 | /// read. |
| 3789 | /// |
| 3790 | /// NOT yet asserted: full pixel-exactness against ffmpeg. A second, |
| 3791 | /// PRE-EXISTING defect that is not this refusal -- a NON-intrabc intra |
| 3792 | /// block (R5 witness: mi (32,32), 64x64, uniform 4x TX_32X32 tree, every |
| 3793 | /// coefficient all_zero, reads symbol-identical to aomdec) mispredicts |
| 3794 | /// isolated samples on testsrc2 content (first divergence px (128,296) |
| 3795 | /// of the 640x360 cq20 recipe) and cascades over roughly a third of the |
| 3796 | /// frame. It is pinned in `lanes/av1ibcvtx.report.md`; when it lands, |
| 3797 | /// tighten this gate to a full pixel-exact assert. |
| 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 | |
| 3823 | |
| 3824 | |
| 3825 | |
| 3826 | |
| 3827 | |
| 3828 | |
| 3829 | |
| 3830 | |
| 3831 | |
| 3832 | |
| 3833 | |
| 3834 | |
| 3835 | |
| 3836 | |
| 3837 | |
| 3838 | |
| 3839 | |
| 3840 | |
| 3841 | |
| 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 | /// lane-t900 r31, CENSUS for the refusal "an intrabc block under |
| 3898 | /// TxMode::Select" -- which this gate DISPROVES as an "no encoder writes |
| 3899 | /// one" claim and pins as a real capability gap instead. |
| 3900 | /// |
| 3901 | /// The premise is reachable by the SPEC: `tx_mode` (5.9.21) is forced to |
| 3902 | /// `ONLY_4X4` only under `CodedLossless`, while `allow_intrabc` (5.9.2) |
| 3903 | /// needs `allow_screen_content_tools` at unscaled resolution -- two |
| 3904 | /// independent conditions. libaom leaves it open too: `select_tx_mode` |
| 3905 | /// (encodeframe.c:2355) never consults `allow_intrabc`, and the only |
| 3906 | /// downgrade to `TX_MODE_LARGEST` is `txb_split_count == 0` |
| 3907 | /// (encodeframe.c:2690). |
| 3908 | /// |
| 3909 | /// The measurement over 14 real `--tune-content=screen --enable-intrabc=1` |
| 3910 | /// recipes: |
| 3911 | /// |
| 3912 | /// * the 10 non-repeating arms never present the premise at all -- with |
| 3913 | /// `--enable-tx-size-search=1` the frame codes `TX_MODE_SELECT` but RD |
| 3914 | /// never picks intrabc, so libaom clears `allow_intrabc` again; with |
| 3915 | /// `=0` intrabc IS used and the frame is `TX_MODE_LARGEST`. That |
| 3916 | /// correlation, not any rule, is why earlier rounds never saw this; |
| 3917 | /// * the four EXACT-REPETITION arms (a 2x2 tiling of one 128x96 bar |
| 3918 | /// pattern) all code `allow_intrabc && tx_mode == Select`. Two of them |
| 3919 | /// stop on the older rect-strip intrabc refusal (the shape that fires |
| 3920 | /// first, class `refusal-hides-a-defect`), and the two with rect/1:4 |
| 3921 | /// partitions off put intrabc on a SQUARE block: `cq=30` reaches THIS |
| 3922 | /// refusal by name, `cq=45`'s intrabc blocks are all `skip` and decode |
| 3923 | /// pixel-exact against ffmpeg. |
| 3924 | /// |
| 3925 | /// So the refusal is correct and load-bearing, exactly one arm reaches it, |
| 3926 | /// and the lift it names has a waiting witness: |
| 3927 | /// [`an_intrabc_block_under_tx_mode_select_decodes_pixel_exact`] (ignored |
| 3928 | /// until the intra path reads the inter var-tx tree for an intrabc block). |
| 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 | |
| 3996 | |
| 3997 | |
| 3998 | |
| 3999 | |
| 4000 | |
| 4001 | |
| 4002 | |
| 4003 | |
| 4004 | |
| 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 | /// lane-t900 r31, the WAITING witness for the capability |
| 4055 | /// [`an_intrabc_census_over_screen_key_frames_measures_the_tx_select_refusal`] |
| 4056 | /// pins: a real aomenc screen key frame whose intrabc block sits on a |
| 4057 | /// square block of a `TX_MODE_SELECT` frame, unskipped. libaom's |
| 4058 | /// `parse_decode_block` treats an intrabc block as `inter_block_tx`, so |
| 4059 | /// its transform size comes off the inter var-tx partition tree |
| 4060 | /// (`read_var_tx_size`), which this decoder reads nowhere on the intra |
| 4061 | /// path -- reading the intra `tx_depth` symbol instead desyncs. |
| 4062 | /// |
| 4063 | /// lane-t900 r32 closed both arms. A SKIPPED intrabc block reads no |
| 4064 | /// tx-size symbol at all (`allowSelect = !skip || !is_inter`, false for an |
| 4065 | /// intrabc block since libaom's `is_inter_block` counts one); reading the |
| 4066 | /// intra `tx_depth` for it consumed a symbol libaom never wrote and |
| 4067 | /// desynced the tile a whole block later, at the superblock corner |
| 4068 | /// (192,64) (class `equal-range-means-unread`). An UNSKIPPED one reads the |
| 4069 | /// inter var-tx tree (`read_var_tx_size`). r31's note that cq=45's blocks |
| 4070 | /// are all `skip` was read off that desynced decode: with the tx-size read |
| 4071 | /// corrected, cq=45 carries 3 unskipped intrabc blocks of 10 and cq=30 |
| 4072 | /// carries 1 of 16, so both arms exercise both sides of the split. |
| 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 | |
| 4105 | |
| 4106 | |
| 4107 | |
| 4108 | |
| 4109 | |
| 4110 | |
| 4111 | |
| 4112 | |
| 4113 | |
| 4114 | |
| 4115 | |
| 4116 | |
| 4117 | |
| 4118 | |
| 4119 | |
| 4120 | |
| 4121 | |
| 4122 | |
| 4123 | |
| 4124 | |
| 4125 | |
| 4126 | |
| 4127 | |
| 4128 | /// lane-av1txr: a real `aomenc --cdf-update-mode=0` stream (spec 5.9.2 |
| 4129 | /// `disable_cdf_update`) decodes SAMPLE-EXACT. The read that was missing: |
| 4130 | /// `stream.rs` never threaded the header bit, so the tile readers adapted |
| 4131 | /// every symbol of a frame the encoder coded against fixed tables -- the |
| 4132 | /// stream desynced at its first multi-symbol block and the pixels differed |
| 4133 | /// from byte 6 (`EC_PROBE_OUT` vs `ffmpeg -pix_fmt yuv420p`, measured |
| 4134 | /// 2026-09-20). The msac unit gate |
| 4135 | /// (`a_reader_told_not_to_adapt_matches_a_non_adapting_writer`) pins the |
| 4136 | /// mechanism; this one pins the wiring end to end. |
| 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 | |
| 4166 | |
| 4167 | |
| 4168 | |
| 4169 | |
| 4170 | |
| 4171 | |
| 4172 | |
| 4173 | |
| 4174 | |
| 4175 | |
| 4176 | |
| 4177 | |
| 4178 | |
| 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 | /// lane-kf900 r4, the gate for the two lifted palette refusals ("a 1:4 |
| 4205 | /// rect strip that actually uses a palette (reconstruction is not ported |
| 4206 | /// at this shape)" and "a palette block on a HORZ/VERT intra strip below |
| 4207 | /// 16x16 (reconstruction not ported)"): real `aomenc` streams that put a |
| 4208 | /// palette on a RECT strip, decoded whole-frame pixel-exact against |
| 4209 | /// ffmpeg's own decode of the identical bytes, at 8 AND 10 bit. |
| 4210 | /// |
| 4211 | /// Arm 0 is the stream lane-kf900 r3 pinned and stopped on -- `testsrc2` |
| 4212 | /// 256x192, `--cq-level=59 --cpu-used=0 --min-partition-size=8 |
| 4213 | /// --enable-rect-partitions=1 --enable-tx-size-search=1`, md5 |
| 4214 | /// `e5f033d8fe34e4418d8cca3ac9d2b595` at 10 bit. Arms 1-2 force the shape |
| 4215 | /// on screen-like content with `--tune-content=screen --enable-palette=1 |
| 4216 | /// --enable-1to4-partitions=1`. |
| 4217 | /// |
| 4218 | /// An attempt whose decode never hit a rect-strip palette block proves |
| 4219 | /// nothing about the lift, so it is counted OUT OF SCOPE rather than |
| 4220 | /// silently passing -- but a mismatch on one is still a failure |
| 4221 | /// (`out_of_scope_mismatch == 0`), and at least one attempt must fire the |
| 4222 | /// counter or the gate is vacuous. |
| 4223 | |
| 4224 | |
| 4225 | |
| 4226 | |
| 4227 | |
| 4228 | |
| 4229 | |
| 4230 | |
| 4231 | |
| 4232 | |
| 4233 | |
| 4234 | |
| 4235 | |
| 4236 | |
| 4237 | |
| 4238 | |
| 4239 | |
| 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 | |
| 4315 | |
| 4316 | |
| 4317 | |
| 4318 | |
| 4319 | |
| 4320 | |
| 4321 | |
| 4322 | |
| 4323 | |
| 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 | |
| 4354 | |
| 4355 | |
| 4356 | |
| 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 | |
| 4404 | |
| 4405 | |
| 4406 | |
| 4407 | |
| 4408 | |
| 4409 | |
| 4410 | |
| 4411 | |
| 4412 | |
| 4413 | |
| 4414 | |
| 4415 | |
| 4416 | |
| 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 | /// The 12-bit KEY witness: CDEF and loop restoration ON, grain off. |
| 4469 | /// Byte-exact against ffmpeg, and the 12-bit-sensitive pixel paths hard- |
| 4470 | /// assert fired: a CDEF index literal read (bits > 0) and at least one |
| 4471 | /// Wiener or SGR restoration unit. Gauntlet for the parameterised |
| 4472 | /// rounding sites: MC/Wiener round pairs, `coeff_shift = bd - 8` CDEF, |
| 4473 | /// the 12-bit dequant tables, bd-scaled SGR box sums. |
| 4474 | |
| 4475 | |
| 4476 | |
| 4477 | |
| 4478 | |
| 4479 | |
| 4480 | |
| 4481 | |
| 4482 | |
| 4483 | |
| 4484 | |
| 4485 | |
| 4486 | |
| 4487 | |
| 4488 | |
| 4489 | |
| 4490 | |
| 4491 | |
| 4492 | |
| 4493 | |
| 4494 | |
| 4495 | |
| 4496 | |
| 4497 | |
| 4498 | |
| 4499 | |
| 4500 | |
| 4501 | |
| 4502 | |
| 4503 | |
| 4504 | |
| 4505 | |
| 4506 | |
| 4507 | |
| 4508 | |
| 4509 | |
| 4510 | |
| 4511 | |
| 4512 | |
| 4513 | |
| 4514 | |
| 4515 | |
| 4516 | /// The 12-bit INTER witness: a key frame plus one P frame over sub-pixel |
| 4517 | /// true motion. Byte-exact against ffmpeg; hard-asserts the two-pass |
| 4518 | /// SUBPEL prediction path ran (`MC_SUBPEL_HITS`), so the frame's own |
| 4519 | /// `round_0`/`round_1` -- 5/9 at 12 bits, the whole point of the mc.rs |
| 4520 | /// parameterisation -- really executed, and asserts |
| 4521 | /// `compound_mode_hits` UNCHANGED (this recipe offers no divergent |
| 4522 | /// second reference, so no compound mode symbol is read -- the lane's |
| 4523 | /// compound witness is the six-frame gate below). |
| 4524 | |
| 4525 | |
| 4526 | |
| 4527 | |
| 4528 | |
| 4529 | |
| 4530 | |
| 4531 | |
| 4532 | |
| 4533 | |
| 4534 | |
| 4535 | |
| 4536 | |
| 4537 | |
| 4538 | |
| 4539 | |
| 4540 | |
| 4541 | |
| 4542 | |
| 4543 | |
| 4544 | |
| 4545 | |
| 4546 | |
| 4547 | |
| 4548 | |
| 4549 | |
| 4550 | |
| 4551 | |
| 4552 | |
| 4553 | |
| 4554 | |
| 4555 | |
| 4556 | |
| 4557 | |
| 4558 | |
| 4559 | |
| 4560 | |
| 4561 | |
| 4562 | |
| 4563 | |
| 4564 | |
| 4565 | |
| 4566 | |
| 4567 |