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 *; |
| 5 | use craterun_with_stdin; |
| 6 | use ; |
| 7 | |
| 8 | /// lane-tiles r10: non-uniform tile spacing (`uniform_spacing_flag == 0`, |
| 9 | /// spec 5.9.15). aomenc never sets this from `--tile-columns`/ |
| 10 | /// `--tile-rows` (those always take the `uniform_spacing = 1` branch in |
| 11 | /// `set_tile_info`, libaom `encoder.c`), and `--auto-tiles` only takes |
| 12 | /// the non-uniform balancing path when `g_threads >= 2` -- this charter's |
| 13 | /// `--threads=1` rules that out. The only CLI surface that reaches |
| 14 | /// libaom's `else { tiles->uniform_spacing = 0; ... }` arm is the |
| 15 | /// explicit per-tile size lists `--tile-width=<sb-list>`/ |
| 16 | /// `--tile-height=<sb-list>` (`av1_cx_iface.c` `set_tile_info`, argument |
| 17 | /// parsing at `arg_defs.c`'s `.tile_width`/`.tile_height` -- present in |
| 18 | /// the binary, just not printed by `--help`). Probed live with |
| 19 | /// `aomenc --tile-width=1,3 --tile-height=1 --sb-size=64` on a 256x64 |
| 20 | /// source (4 SB columns, 1 SB row): confirmed by hand this round to |
| 21 | /// produce a real OBU stream aomdec/ffmpeg both decode. |
| 22 | /// |
| 23 | /// `decode.rs`'s tile loop was already generic over spacing before this |
| 24 | /// gate existed -- it walks `tile_info.mi_col_starts`/`mi_row_starts` |
| 25 | /// (populated identically by `read_tile_info` for both the uniform and |
| 26 | /// non-uniform branches, spec 5.9.15) and never recomputes tile bounds |
| 27 | /// from `cols_log2`/`rows_log2`. The only place in this crate that ever |
| 28 | /// refused non-uniform spacing is `frame.rs`'s OBU *writer* |
| 29 | /// (`"non-uniform tile spacing is not written"`), an unrelated encode |
| 30 | /// path this gate does not touch. So this is a staleness check, not new |
| 31 | /// machinery: prove the already-generic decode path live and pin it. |
| 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 | |
| 126 | |
| 127 | |
| 128 | |
| 129 | |
| 130 | |
| 131 | |
| 132 | |
| 133 | |
| 134 | |
| 135 | |
| 136 | |
| 137 | |
| 138 | |
| 139 | |
| 140 | |
| 141 | |
| 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 | |
| 183 | |
| 184 | |
| 185 | |
| 186 | |
| 187 | |
| 188 | |
| 189 | |
| 190 | |
| 191 | |
| 192 | |
| 193 | |
| 194 | |
| 195 | |
| 196 | |
| 197 | |
| 198 | |
| 199 | /// lane-sb128 r1 gate: a real `aomenc --sb-size=128` stream (the size his |
| 200 | /// ReelC encode uses -- `EC_TRACE=1 aomdec reelc-head.obu` prints |
| 201 | /// `EC_PART mi_row=0 mi_col=0 bsize=15` = `BLOCK_128X128`) must decode |
| 202 | /// pixel-exact. `--max-partition-size=64` keeps the RD search from ever |
| 203 | /// choosing a 128-level NONE/HORZ/VERT/AB arm, so every 128 root here is |
| 204 | /// genuinely `PARTITION_SPLIT` -- the one arm |
| 205 | /// `decode_key_frame_tile_with_cdfs` codes; the other seven refuse by |
| 206 | /// name (`PART128_NON_SPLIT_REFUSAL`) and stay refused after this round. |
| 207 | /// |
| 208 | /// What the 128 root actually changes, and what this gate therefore |
| 209 | /// proves: the 8-symbol `partition_w128` CDF and its forced-split gather |
| 210 | /// at the frame edge, the quadrant VISIT ORDER (TL, TR, BL, BR inside one |
| 211 | /// superblock, not raster over 64x64 superblocks), one loop-restoration |
| 212 | /// read per 128x128 instead of per 64x64, `delta_q`/`delta_lf` once per |
| 213 | /// 128x128, and the per-64x64 `cdef_idx` read inside the 128 superblock. |
| 214 | /// 256x192 gives a 2x2 grid of 128 superblocks whose bottom row is a |
| 215 | /// partial superblock (the gathered forced-split read); 384x384 gives a |
| 216 | /// 3x3 grid of whole ones. 8-bit sweep plus one 10-bit stream (his films |
| 217 | /// are `yuv420p10le`). Only a missing tool SKIPs. |
| 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 | |
| 357 | |
| 358 | |
| 359 | |
| 360 | |
| 361 | |
| 362 | |
| 363 | |
| 364 | |
| 365 | |
| 366 | |
| 367 | |
| 368 | |
| 369 | |
| 370 | |
| 371 | |
| 372 | |
| 373 | |
| 374 | |
| 375 | |
| 376 | |
| 377 | |
| 378 | |
| 379 | |
| 380 | |
| 381 | |
| 382 | |
| 383 | |
| 384 | |
| 385 | |
| 386 | |
| 387 | |
| 388 | |
| 389 | |
| 390 | /// lane-sb128b r1 gate: a real `aomenc --sb-size=128` KEY frame whose 128 |
| 391 | /// roots resolve to `PARTITION_NONE` -- one whole 128x128 intra block, |
| 392 | /// four TX_64X64 luma transform units and FOUR TX_32X32 chroma units per |
| 393 | /// plane (`av1_get_max_uv_txsize(BLOCK_128X128)` is |
| 394 | /// `av1_get_adjusted_tx_size` of its 64x64 uv plane block's TX_64X64, so |
| 395 | /// TX_32X32) -- lane-sb128b r2's `chroma_split_tx_hits` asserts them. The r1 gate above pins `--max-partition-size=64`, which |
| 396 | /// makes every 128 root a forced SPLIT and leaves this arm unexercised. |
| 397 | /// Smooth gradients at a high `--cq-level` are what make the RD search |
| 398 | /// keep a whole 128x128 block; `part128_none_hits` HARD-asserts it did. |
| 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 | /// lane-sb128c r7 GATE: the 128 root's GATHERED bottom/right-edge arm -- |
| 559 | /// the only 128-partition shape the user's 1080p AV1 film reaches |
| 560 | /// (`mi_rows = 270`, so every bottom 128 row has `has_rows128 == false`, |
| 561 | /// one gathered bit, and the film codes `PARTITION_HORZ`: a 128x64 block |
| 562 | /// whose bottom half is outside the frame and never decoded). Frame sizes |
| 563 | /// here are chosen so the LAST superblock row (or column, for the VERT |
| 564 | /// twin at 192x256) is partial, which is what forces the gathered symbol. |
| 565 | /// Both the key frame and the inter frames of each stream carry the arm; |
| 566 | /// `part128_edge_*_hits` and `inter_sb128_*_hits` HARD-assert it fired, |
| 567 | /// and `decode_all_frames_vs_oracle` compares EVERY decode-order frame |
| 568 | /// (hidden alt-refs included) against the instrumented aomdec. |
| 569 | |
| 570 | |
| 571 | |
| 572 | |
| 573 | |
| 574 | |
| 575 | |
| 576 | |
| 577 | |
| 578 | |
| 579 | |
| 580 | |
| 581 | |
| 582 | |
| 583 | |
| 584 | |
| 585 | |
| 586 | |
| 587 | |
| 588 | |
| 589 | |
| 590 | |
| 591 | |
| 592 | |
| 593 | |
| 594 | |
| 595 | |
| 596 | |
| 597 | |
| 598 | |
| 599 | |
| 600 | |
| 601 | |
| 602 | |
| 603 | |
| 604 | |
| 605 | |
| 606 | |
| 607 | |
| 608 | |
| 609 | |
| 610 | |
| 611 | |
| 612 | |
| 613 | |
| 614 | |
| 615 | |
| 616 | |
| 617 | |
| 618 | |
| 619 | |
| 620 | |
| 621 | |
| 622 | |
| 623 | |
| 624 | |
| 625 | |
| 626 | |
| 627 | |
| 628 | |
| 629 | |
| 630 | |
| 631 | |
| 632 | |
| 633 | |
| 634 | |
| 635 | |
| 636 | |
| 637 | |
| 638 | |
| 639 | |
| 640 | |
| 641 | |
| 642 | |
| 643 | |
| 644 | |
| 645 | |
| 646 | |
| 647 | |
| 648 | |
| 649 | |
| 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 | /// lane-sb128c r8: the 128 root's HORZ/VERT arm on a KEY frame -- one |
| 746 | /// 128x64 (or 64x128) INTRA block, the shape r7 still refused by name. |
| 747 | /// A smooth `gradients` source makes the key frame itself take the arm |
| 748 | /// (`mandelbrot`'s key frames always split), at sizes whose last |
| 749 | /// superblock row/column is a partial 64 so the gathered frame-edge bit |
| 750 | /// decides the root. `--enable-tx-size-search=1` on half the arms is what |
| 751 | /// makes the intra `tx_depth` symbol real (depth 1 = 32x32 units, |
| 752 | /// depth 2 = 16x16). Every decode-order frame (hidden alt-refs included) |
| 753 | /// is compared against the instrumented aomdec, and the per-depth |
| 754 | /// counters are printed for every compared attempt. |
| 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 | /// lane-sb128c r9 GATE: the four AB shapes at the 128 root |
| 928 | /// (`PARTITION_HORZ_A`/`_HORZ_B`/`_VERT_A`/`_VERT_B`), each one |
| 929 | /// 128x64/64x128 half plus two 64x64 quadrants in libaom |
| 930 | /// `decode_partition`'s visit order. The recipe is r8's measured one |
| 931 | /// (`--sb-size=128 --min-partition-size=64 --enable-ab-partitions=1` over |
| 932 | /// a 512x512 `geq` sinusoid), which is what made aomenc pick the shapes at |
| 933 | /// all; arms cover cq 18/45, 8 and 10 bit, and one INTER arm |
| 934 | /// (`--kf-max-dist=100`) so the shapes are exercised on both tile paths. |
| 935 | /// Continue-and-sweep: an arm that stops on ANOTHER lane's named refusal |
| 936 | /// is counted and skipped, a decode failure or a pixel mismatch is a hard |
| 937 | /// failure, and the end-of-sweep assert names which of the four fired. |
| 938 | |
| 939 | |
| 940 | |
| 941 | |
| 942 | |
| 943 | |
| 944 | |
| 945 | |
| 946 | |
| 947 | |
| 948 | |
| 949 | |
| 950 | |
| 951 | |
| 952 | |
| 953 | |
| 954 | |
| 955 | |
| 956 | |
| 957 | |
| 958 | |
| 959 | |
| 960 | |
| 961 | |
| 962 | |
| 963 | |
| 964 | |
| 965 | |
| 966 | |
| 967 | |
| 968 | |
| 969 | |
| 970 | |
| 971 | |
| 972 | |
| 973 | |
| 974 | |
| 975 | |
| 976 | |
| 977 | |
| 978 | |
| 979 | |
| 980 | |
| 981 | |
| 982 | |
| 983 | |
| 984 | |
| 985 | |
| 986 | |
| 987 | |
| 988 | |
| 989 | |
| 990 | |
| 991 | |
| 992 | |
| 993 | |
| 994 | |
| 995 | |
| 996 | |
| 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 | |
| 1022 | |
| 1023 | |
| 1024 | |
| 1025 | |
| 1026 | |
| 1027 | |
| 1028 | |
| 1029 | |
| 1030 | |
| 1031 | |
| 1032 | |
| 1033 | |
| 1034 | |
| 1035 | |
| 1036 | |
| 1037 | |
| 1038 | |
| 1039 | |
| 1040 | |
| 1041 | |
| 1042 | |
| 1043 | |
| 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 | |
| 1081 | |
| 1082 | |
| 1083 | |
| 1084 | |
| 1085 | |
| 1086 | |
| 1087 | |
| 1088 | |
| 1089 | |
| 1090 | |
| 1091 | |
| 1092 | |
| 1093 | |
| 1094 | |
| 1095 | |
| 1096 | |
| 1097 | |
| 1098 | |
| 1099 | |
| 1100 | |
| 1101 | |
| 1102 | |
| 1103 | |
| 1104 | |
| 1105 | |
| 1106 | |
| 1107 | |
| 1108 | |
| 1109 | |
| 1110 | |
| 1111 | |
| 1112 | |
| 1113 | |
| 1114 | |
| 1115 | |
| 1116 | |
| 1117 | |
| 1118 | |
| 1119 | |
| 1120 | |
| 1121 | |
| 1122 | |
| 1123 | |
| 1124 | |
| 1125 | |
| 1126 | |
| 1127 | |
| 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 | /// lane-sb128 r2: an INTER SEQUENCE under a 128x128 superblock -- the |
| 1165 | /// half ReelC is made of. r1 refused it by name (the inter tile loop |
| 1166 | /// recursed a 64x64 root only); r2 ported `sb_visit_order` and the 128 |
| 1167 | /// root (per-superblock `read_lr`, the 8-symbol `partition_w128` read with |
| 1168 | /// its edge gather, `delta_q`/`delta_lf` at 128 granularity) into that |
| 1169 | /// loop, so this gate replaces the refusal test. |
| 1170 | /// |
| 1171 | /// Every frame in DECODE order, hidden alt-refs included |
| 1172 | /// ([`decode_all_frames_vs_oracle`], class gate-blind-to-hidden-frames): |
| 1173 | /// `--lag-in-frames` is left at aomenc's default so the encoder really |
| 1174 | /// emits them. Per-ATTEMPT counter deltas are hard asserts (class |
| 1175 | /// counter-from-refused-stream: the helper panics on any refusal, so every |
| 1176 | /// counted attempt is a compared one): 128 partition roots read on this |
| 1177 | /// stream, `cdef_idx` reads (one per 64x64 quadrant inside the 128 |
| 1178 | /// superblock), and temporal MV candidates (the inter-only path). Both bit |
| 1179 | /// depths -- his films are `yuv420p10le`. Only a missing tool SKIPs. |
| 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 | |
| 1241 | |
| 1242 | |
| 1243 | |
| 1244 | |
| 1245 | |
| 1246 | |
| 1247 | |
| 1248 | |
| 1249 | |
| 1250 | |
| 1251 | |
| 1252 | |
| 1253 | |
| 1254 | |
| 1255 | |
| 1256 | |
| 1257 | |
| 1258 | |
| 1259 | |
| 1260 | |
| 1261 | |
| 1262 | |
| 1263 | |
| 1264 | |
| 1265 | |
| 1266 | |
| 1267 | |
| 1268 | |
| 1269 | |
| 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 | /// lane-sb128c r1: an INTER frame whose 128x128 superblock root really |
| 1321 | /// resolves `PARTITION_NONE` -- one whole 128x128 inter block, the shape |
| 1322 | /// ReelC's first inter frame stops this decoder on. r1 wired it: four |
| 1323 | /// TX_64X64 luma units (`max_txsize_rect_lookup[BLOCK_128X128]`), four |
| 1324 | /// TX_32X32 chroma units (`av1_get_max_uv_txsize`), interleaved Y,U,V per |
| 1325 | /// 64x64 "mu" chunk (libaom `decode_token_recon_block`) with the chroma |
| 1326 | /// `txb_skip_ctx` offset-10 rows, and OBMC's overlap capped at a 64x64 |
| 1327 | /// block's half (`reconinter.c` 860/899). |
| 1328 | /// |
| 1329 | /// `--max-partition-size=128` is what lets the root be NONE at all (the |
| 1330 | /// sibling gate above pins 64, so its roots always SPLIT). Every arm hard |
| 1331 | /// asserts its own `inter_sb128_none_hits` delta, so a recipe that stops |
| 1332 | /// choosing the shape fails instead of passing vacuously; every decode |
| 1333 | /// order frame is compared by [`decode_all_frames_vs_oracle`], which |
| 1334 | /// panics on a refusal or any differing byte. Arms: 8-bit and 10-bit (his |
| 1335 | /// films are 10-bit) with `tx-size-search=0` (TX_MODE_LARGEST, the block's |
| 1336 | /// four TX_64X64 units come straight from `max_txsize_rect_lookup`) and an |
| 1337 | /// 8-bit `tx-size-search=1` arm (the var-tx tree at 128). |
| 1338 | // lane-sb128c r3: green. `--min-partition-size=32` let the RD search reach |
| 1339 | // 16x16-level AB / SB-level AB shapes that other lanes still refuse (two of |
| 1340 | // the three arms stopped there, measured); at 64 every arm decodes and the |
| 1341 | // 128 root still resolves NONE. |
| 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 | |
| 1416 | |
| 1417 | |
| 1418 | |
| 1419 | |
| 1420 | |
| 1421 | |
| 1422 | |
| 1423 | |
| 1424 | |
| 1425 | |
| 1426 | |
| 1427 | |
| 1428 | |
| 1429 | |
| 1430 | |
| 1431 | |
| 1432 | |
| 1433 | |
| 1434 | |
| 1435 | |
| 1436 | |
| 1437 | |
| 1438 | |
| 1439 | |
| 1440 | |
| 1441 | |
| 1442 | |
| 1443 | |
| 1444 | |
| 1445 | |
| 1446 | |
| 1447 | |
| 1448 | |
| 1449 | |
| 1450 | |
| 1451 | |
| 1452 | |
| 1453 | |
| 1454 | |
| 1455 | |
| 1456 | |
| 1457 | |
| 1458 | |
| 1459 | |
| 1460 | |
| 1461 | |
| 1462 | |
| 1463 | |
| 1464 | |
| 1465 | |
| 1466 | |
| 1467 | |
| 1468 | |
| 1469 | |
| 1470 | |
| 1471 | |
| 1472 | |
| 1473 | |
| 1474 | |
| 1475 | |
| 1476 | |
| 1477 | |
| 1478 | |
| 1479 | |
| 1480 | |
| 1481 | |
| 1482 | |
| 1483 | /// lane-av1-444-128: a real `aomenc` stream whose inter frames are ONE |
| 1484 | /// 128x128 PARTITION_NONE block each, non-skip, must walk that block's |
| 1485 | /// chroma through the mu-chunk loop -- one TX_32X32 unit per 64x64 mu |
| 1486 | /// chunk per plane at 4:2:0 (`decode_token_recon_block`'s mu walk with |
| 1487 | /// `av1_get_max_uv_txsize(BLOCK_128X128)` = `TX_32X32`), each unit read |
| 1488 | /// at its own origin against its own entropy-cell span and stamped |
| 1489 | /// immediately (`av1_set_entropy_contexts`). The census asserts the walk |
| 1490 | /// actually ran (four units per plane per coded 128-none block); the key |
| 1491 | /// frame splits to 64x64 (detailed testsrc2 content), so the whole |
| 1492 | /// stream stays inside the 4:2:0 paths this tree decodes. The 4:4:4 twin |
| 1493 | /// of this shape (FOUR TX_32X32 units per chunk per plane) is witnessed |
| 1494 | /// in `lanes/av1444128.report.md` and committed here as |
| 1495 | /// `a_real_aomenc_444_intra_in_inter_128_root_codes_chroma_per_mu_chunk_unit_pixel_exact`. |
| 1496 | /// lane-av1422lift: the sequence-header refusal is gone, so this tree no |
| 1497 | /// longer refuses non-4:2:0 sequences by name. |
| 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 | |
| 1548 | |
| 1549 | |
| 1550 | |
| 1551 | |
| 1552 | |
| 1553 | |
| 1554 | |
| 1555 | |
| 1556 | |
| 1557 | |
| 1558 | |
| 1559 | |
| 1560 | |
| 1561 | |
| 1562 | |
| 1563 | |
| 1564 | |
| 1565 | |
| 1566 | |
| 1567 | |
| 1568 | |
| 1569 | |
| 1570 | |
| 1571 | |
| 1572 | |
| 1573 | |
| 1574 | |
| 1575 | |
| 1576 | |
| 1577 | |
| 1578 | |
| 1579 | |
| 1580 | |
| 1581 | |
| 1582 | |
| 1583 | |
| 1584 | |
| 1585 | |
| 1586 | |
| 1587 | |
| 1588 | |
| 1589 | |
| 1590 | |
| 1591 | |
| 1592 | |
| 1593 | |
| 1594 | |
| 1595 | |
| 1596 | |
| 1597 | |
| 1598 | |
| 1599 | |
| 1600 | |
| 1601 | |
| 1602 | |
| 1603 | |
| 1604 | |
| 1605 | |
| 1606 | |
| 1607 | |
| 1608 | |
| 1609 | |
| 1610 | |
| 1611 | |
| 1612 | |
| 1613 | |
| 1614 | |
| 1615 | |
| 1616 | |
| 1617 | |
| 1618 | |
| 1619 | /// lane-av1ibc128arm: the INTRA-in-inter 128x128 root's mu-chunk chroma |
| 1620 | /// arm (`decode_inter_block`'s `side > 64` arm, the intra half of the |
| 1621 | /// inter pair the sibling gate above names) must code the mu chunk's |
| 1622 | /// chroma as a PER-UNIT walk at every subsampling, and at 4:4:4 each |
| 1623 | /// 64x64 mu chunk is FOUR TX_32X32 units per plane, not one. |
| 1624 | /// |
| 1625 | /// **The defect.** The arm hardcoded `cu_tx = 32`, `luma_span = cu_tx * |
| 1626 | /// 2` and the chroma origin `cc * cu_tx` -- the 4:2:0 arithmetic, where a |
| 1627 | /// mu chunk's chroma plane block is `64 >> 1 == 32` square and the whole |
| 1628 | /// chunk IS one TX_32X32 unit. At 4:4:4 the chunk's chroma is 64x64, so |
| 1629 | /// the arm (a) read one 32x32 unit where libaom codes four, (b) stamped |
| 1630 | /// the unit's entropy context over the 4:2:0 64x64 luma span rather than |
| 1631 | /// the unit's own 32x32, and (c) placed chunk 1's unit at `cpx + 32` |
| 1632 | /// instead of `cpx + 64`, i.e. back inside chunk 0's samples. |
| 1633 | /// |
| 1634 | /// **`av1_get_max_uv_txsize` is NOT the source of a 64x64 chroma unit.** |
| 1635 | /// `blockd.h:1371` is `av1_get_adjusted_tx_size(max_txsize_rect_lookup[ |
| 1636 | /// get_plane_block_size(bsize, ss_x, ss_y)])`, and `av1_get_adjusted_tx_size` |
| 1637 | /// (`blockd.h:1361`) takes NO subsampling argument -- it maps TX_64X64 / |
| 1638 | /// TX_64X32 / TX_32X64 to TX_32X32 UNCONDITIONALLY, so even at ss (0,0) |
| 1639 | /// (where `get_plane_block_size` returns BLOCK_128X128 and the lookup |
| 1640 | /// entry is TX_64X64) the answer is TX_32X32. Measured on this gate's own |
| 1641 | /// stream against the oracle's `EC_TRACE_COEFF`: every chroma read of the |
| 1642 | /// 128x128 intra-in-inter root is `tx_size=3` (TX_32X32), four per plane |
| 1643 | /// per mu chunk at (row,col) (0,0) (0,8) (8,0) (8,8). |
| 1644 | /// |
| 1645 | /// **The recipe** (128x256, 3 frames). `--sb-size=128` with |
| 1646 | /// `--min-partition-size=64 --max-partition-size=128` keeps the |
| 1647 | /// superblock root resolvable to `PARTITION_NONE`, and the noise-on- |
| 1648 | /// gradient content is what makes the encoder's RD pick INTRA over inter |
| 1649 | /// for a whole 128 root on an inter frame (a clean `testsrc2` stream |
| 1650 | /// never does -- measured over 24 recipe/cell combinations, three of |
| 1651 | /// which fired and none of them `testsrc2`): |
| 1652 | /// ```text |
| 1653 | /// ffmpeg -f lavfi -i "gradients=size=128x256:c0=..:c1=..:c2=..:c3=..:\ |
| 1654 | /// seed=63:duration=0.12:rate=25,noise=all_seed=63:alls=6:allf=t" \ |
| 1655 | /// -pix_fmt yuv444p -t 0.12 -f yuv4mpegpipe - | \ |
| 1656 | /// aomenc --codec=av1 --profile=1 --passes=1 --end-usage=q --cq-level=62 \ |
| 1657 | /// --cpu-used=0 --threads=1 --row-mt=0 --sb-size=128 --limit=3 \ |
| 1658 | /// --max-partition-size=128 --min-partition-size=64 \ |
| 1659 | /// --enable-rect-partitions=0 --enable-ab-partitions=0 \ |
| 1660 | /// --enable-1to4-partitions=0 --enable-palette=0 \ |
| 1661 | /// --enable-intrabc=0 --deltaq-mode=0 --enable-tx-size-search=0 \ |
| 1662 | /// --obu -o out.obu - |
| 1663 | /// ``` |
| 1664 | /// Both `rate=25` and the frame limit are load-bearing: `gradients`' and |
| 1665 | /// `noise`' patterns are time-parameterised, so a different rate or a |
| 1666 | /// different `--limit` emits a different stream (and at `--limit=2` this |
| 1667 | /// recipe stops choosing the shape at all -- measured, 0 fires). |
| 1668 | /// |
| 1669 | /// Non-vacuity, three ways: the sequence header is asserted really to be |
| 1670 | /// 4:4:4 (`subsampling_x == subsampling_y == 0`) and 128-superblock; |
| 1671 | /// `intra_128_in_inter_mu_chroma_hits()` must be non-zero, so the arm |
| 1672 | /// really ran; and every decode-order frame is compared byte-for-byte |
| 1673 | /// against the oracle by [`decode_all_frames_vs_oracle`], which panics on |
| 1674 | /// a refusal or any differing byte. Red before the fix (the ss-aware |
| 1675 | /// arithmetic and the per-unit walk reverted, the counter kept): decode- |
| 1676 | /// order frame 2 differs in 44649 of 98304 bytes while the counter still |
| 1677 | /// reads 4 -- the red is on PIXELS, not on the counter. |
| 1678 | |
| 1679 | |
| 1680 | |
| 1681 | |
| 1682 | |
| 1683 | |
| 1684 | |
| 1685 | |
| 1686 | |
| 1687 | |
| 1688 | |
| 1689 | |
| 1690 | |
| 1691 | |
| 1692 | |
| 1693 | |
| 1694 | |
| 1695 | |
| 1696 | |
| 1697 | |
| 1698 | |
| 1699 | |
| 1700 | |
| 1701 | |
| 1702 | |
| 1703 | |
| 1704 | |
| 1705 | |
| 1706 | |
| 1707 | |
| 1708 | |
| 1709 | |
| 1710 | |
| 1711 | |
| 1712 | |
| 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 | /// lane-av1sb128chroma: the PINNED half of |
| 1811 | /// [`a_real_aomenc_444_intra_in_inter_128_root_codes_chroma_per_mu_chunk_unit_pixel_exact`]. |
| 1812 | /// That gate re-encodes its fixture on every run, so the arm it names had |
| 1813 | /// NO committed 4:4:4 bytes at all: a host without ffmpeg/aomenc silently |
| 1814 | /// skips it, and the whole committed 4:4:4 base is lossless 8-bit, so |
| 1815 | /// nothing else in the crate decoded one of these streams. This gate is |
| 1816 | /// the pin, and it also carries the COUNTER-PROOF arm: the recipe a |
| 1817 | /// proposed 4:4:4 `--sb-size=128` chroma repair was argued from reads |
| 1818 | /// ZERO on both the arm's own counters, so its green is vacuous. |
| 1819 | /// |
| 1820 | /// **Witness** `fixtures/444_intra_in_inter_128root_mu_chroma.obu`, |
| 1821 | /// sha256 `f5999bd996fef820472dc7846e42cad3e62bd1f816fafd7f218e34b77786394a`, |
| 1822 | /// 3570 bytes, 3 decode-order frames. Recipe (verified byte-reproducible): |
| 1823 | /// ```text |
| 1824 | /// ffmpeg -v error -f lavfi -i "gradients=size=128x256:c0=0xa1128f:c1=0xd98c48:\ |
| 1825 | /// c2=0x120601:c3=0x4abfba:seed=63:duration=0.12:rate=25,\ |
| 1826 | /// noise=all_seed=63:alls=6:allf=t" -pix_fmt yuv444p -t 0.12 -f yuv4mpegpipe - > in.y4m |
| 1827 | /// aomenc --codec=av1 --profile=1 --passes=1 --end-usage=q --cq-level=62 \ |
| 1828 | /// --cpu-used=0 --threads=1 --row-mt=0 --sb-size=128 --limit=3 \ |
| 1829 | /// --max-partition-size=128 --min-partition-size=64 \ |
| 1830 | /// --enable-rect-partitions=0 --enable-ab-partitions=0 \ |
| 1831 | /// --enable-1to4-partitions=0 --enable-palette=0 --enable-intrabc=0 \ |
| 1832 | /// --deltaq-mode=0 --enable-tx-size-search=0 --obu -o out.obu in.y4m |
| 1833 | /// ``` |
| 1834 | /// `duration=0.12:rate=25` and `--limit=3` are load-bearing (the |
| 1835 | /// `gradients`/`noise` patterns are time-parameterised, and at `--limit=2` |
| 1836 | /// the encoder stops choosing INTRA over inter for a whole 128 root). |
| 1837 | /// |
| 1838 | /// **Measured on this witness** (unpatched `main` `57834ee2`): the arm |
| 1839 | /// fires `intra_128_in_inter_hits = 1` root and |
| 1840 | /// `intra_128_in_inter_mu_chroma_hits = 4` mu-chunk chroma reads (a 4:4:4 |
| 1841 | /// 64x64 mu chunk is FOUR TX_32X32 units per plane, two chunks, one |
| 1842 | /// plane reached before the other), and all 3 frames are byte-exact |
| 1843 | /// against the oracle. The claimed `cu_tx = 64` repair is refuted by two |
| 1844 | /// independent measurements: (a) with `cu_tx` at 64 this arm PANICS -- |
| 1845 | /// `no default scan for a 64-point transform` at `decode.rs:7197`, because |
| 1846 | /// libaom's `av1_get_adjusted_tx_size` (blockd.h:1361) maps TX_64X64 to |
| 1847 | /// TX_32X32 unconditionally, so a 4:4:4 chroma unit is never 64 and |
| 1848 | /// `av1_scan_orders` has no 64-point chroma table; (b) with only the |
| 1849 | /// luma-span and per-chunk-origin halves of that repair applied (`cu_tx` |
| 1850 | /// left at 32 so the mutation reaches the pixels), this same witness goes |
| 1851 | /// RED: Y 12537, U 16696, V 16667 wrong samples of 98304 per plane, |
| 1852 | /// first at Y(90,120) ours 142 vs oracle 141, U(65,120) 153 vs 152, |
| 1853 | /// V(64,120) 145 vs 146 -- all of it on decode-order frame 2, and the |
| 1854 | /// counters still read 1/4, so the damage is on PIXELS. |
| 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 | |
| 1947 | |
| 1948 | |
| 1949 | |
| 1950 | |
| 1951 | |
| 1952 | |
| 1953 | |
| 1954 | |
| 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 | /// lane-av1muchunk422b: the **compound** `side > 64` mu-chunk walk -- |
| 2013 | /// per-unit chroma allocation of `decode_inter_block`'s compound arm, site |
| 2014 | /// 2 of `lanes/av1muchunk422.report.md`, which that lane's recipes all |
| 2015 | /// missed (`part128 none=0` on a 384x256 frame). |
| 2016 | /// |
| 2017 | /// Reachability, shared with the intra-in-inter twin below: the streams |
| 2018 | /// that reach this walk are 128-as-the-whole-frame (`--sb-size=128 |
| 2019 | /// --min-partition-size=128 --max-partition-size=128`, PARTITION_NONE |
| 2020 | /// forced; here `part128 none=7`) and LOSSY, which is load-bearing: each arm |
| 2021 | /// has a lossless branch that returns before the unit loop, and |
| 2022 | /// `W_intrabc.obu` reaches both guards at ss (1,0) allocating nothing. That |
| 2023 | /// is why [`crate::decode::mu_chunk_compound_units`] counts at the |
| 2024 | /// ALLOCATION and not at the guard; the counter-proof at the end of the |
| 2025 | /// intra test pins that gap. The single-reference twin of site 2 (site 5) |
| 2026 | /// shares this exact source text and is routed out of the counter by |
| 2027 | /// `is_compound`. |
| 2028 | /// |
| 2029 | /// **7 of the 8 streams this lane generated DIVERGED from ffmpeg; only |
| 2030 | /// `i6_grad128_iis` (the intra-in-inter fixture, pinned in the twin test |
| 2031 | /// below) was byte-exact.** lane-av1muchunk422sym has since fixed this |
| 2032 | /// pin's stream: the compound mu-chunk walk gathered its CHROMA |
| 2033 | /// coefficient context with the plain rect rule, which at ss (1, 0) counts |
| 2034 | /// one chroma column twice in the above vote (see the walk's own comment). |
| 2035 | /// **The stream is now byte-exact against the instrumented aomdec over all |
| 2036 | /// 7 decode-order frames (6 shown + 1 hidden alt-ref)**, so this test |
| 2037 | /// carries both halves: the counter witness that the walk ran AND the |
| 2038 | /// exactness witness. The pinned V-plane hashes run without an oracle; |
| 2039 | /// `decode_all_frames_vs_oracle` adds the decode-order compare when one is |
| 2040 | /// present. The counter half still stops this fixture silently ceasing to |
| 2041 | /// reach the walk it was pinned for. |
| 2042 | /// |
| 2043 | /// Recipe (byte-reproducible; whole aomenc argv): |
| 2044 | /// ```text |
| 2045 | /// ffmpeg -v error -f lavfi -i "testsrc2=size=128x128:rate=25" -t 0.24 \ |
| 2046 | /// -pix_fmt yuv422p -f yuv4mpegpipe - > tsrc128.y4m |
| 2047 | /// aomenc --codec=av1 --profile=2 --input-chroma-subsampling-x=1 \ |
| 2048 | /// --input-chroma-subsampling-y=0 --passes=1 --end-usage=q --cq-level=62 \ |
| 2049 | /// --cpu-used=0 --threads=1 --row-mt=0 --sb-size=128 \ |
| 2050 | /// --min-partition-size=128 --max-partition-size=128 \ |
| 2051 | /// --enable-rect-partitions=0 --enable-ab-partitions=0 \ |
| 2052 | /// --enable-1to4-partitions=0 --enable-palette=0 --enable-intrabc=0 \ |
| 2053 | /// --deltaq-mode=0 --enable-tx-size-search=0 --enable-interintra-comp=1 \ |
| 2054 | /// --enable-interintra-wedge=1 --enable-smooth-interintra=1 --obu -o X |
| 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 | |
| 2088 | |
| 2089 | |
| 2090 | |
| 2091 | |
| 2092 | |
| 2093 | |
| 2094 | |
| 2095 | |
| 2096 | |
| 2097 | |
| 2098 | |
| 2099 | |
| 2100 | |
| 2101 | |
| 2102 | |
| 2103 | |
| 2104 | |
| 2105 | |
| 2106 | |
| 2107 | |
| 2108 | |
| 2109 | |
| 2110 | |
| 2111 | |
| 2112 | |
| 2113 | |
| 2114 | |
| 2115 | |
| 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 | /// lane-av1muchunk422b: the **intra-in-inter** `side > 64` mu-chunk walk -- |
| 2159 | /// per-unit chroma allocation of the intra-in-inter arm (site 8 of |
| 2160 | /// `lanes/av1muchunk422.report.md`). This is the ONE stream of the eight |
| 2161 | /// this lane generated that is BYTE-EXACT against the ffmpeg/aom oracle |
| 2162 | /// (`i6_grad128_iis`), so unlike its compound twin this gate asserts |
| 2163 | /// pixel-exactness over every decode-order frame AND that the site counter |
| 2164 | /// moved. See the compound test above for the shared reachability and |
| 2165 | /// count-at-the-ALLOCATION argument. |
| 2166 | /// |
| 2167 | /// Recipe (byte-reproducible; same aomenc argv as the compound test except |
| 2168 | /// for the source): |
| 2169 | /// ```text |
| 2170 | /// ffmpeg -v error -f lavfi -i "gradients=size=128x256:c0=0xa1128f:\ |
| 2171 | /// c1=0xd98c48:c2=0x120601:c3=0x4abfba:seed=63:duration=0.24:rate=25,\ |
| 2172 | /// noise=all_seed=63:alls=6:allf=t" -t 0.24 -pix_fmt yuv422p \ |
| 2173 | /// -f yuv4mpegpipe - > grad256.y4m |
| 2174 | /// aomenc --codec=av1 --profile=2 --input-chroma-subsampling-x=1 \ |
| 2175 | /// --input-chroma-subsampling-y=0 --passes=1 --end-usage=q --cq-level=62 \ |
| 2176 | /// --cpu-used=0 --threads=1 --row-mt=0 --sb-size=128 \ |
| 2177 | /// --min-partition-size=128 --max-partition-size=128 \ |
| 2178 | /// --enable-rect-partitions=0 --enable-ab-partitions=0 \ |
| 2179 | /// --enable-1to4-partitions=0 --enable-palette=0 --enable-intrabc=0 \ |
| 2180 | /// --deltaq-mode=0 --enable-tx-size-search=0 --enable-interintra-comp=1 \ |
| 2181 | /// --enable-interintra-wedge=1 --enable-smooth-interintra=1 --obu -o X |
| 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 | /// lane-av1muchunk422iis: the **intra-in-inter** `side > 64` mu-chunk |
| 2275 | /// walk at 128x256 (TWO 128-superblock rows), site 8's second stream. |
| 2276 | /// lane-av1muchunk422class measured this stream diverging with the class |
| 2277 | /// signature -- V-plane-only diffs, first wrong sample V (row 190, col 36) |
| 2278 | /// of shown frame 2 (V index `190 * 64 + 36 = 12196`, ours 147 vs |
| 2279 | /// ffmpeg's 146), a byte-identical decode before and after the compound |
| 2280 | /// fix, and the SAME `dc_sign_ctx` fork the compound fix targeted, on the |
| 2281 | /// TX_32X32 chroma unit of THIS walk. The walk gathered its chroma |
| 2282 | /// context with the plain luma `around_mi` (decode.rs:46820), which at |
| 2283 | /// ss (1, 0) sums `unit_luma_w / MI` above cells where libaom sums |
| 2284 | /// `txb_w_unit` -- twice as many -- flipping the signum whenever the |
| 2285 | /// doubled above vote cancels the left one (see the walk's own comment). |
| 2286 | /// |
| 2287 | /// The fixture is the hunt's `i5_grad256_iis.obu` (sha256 |
| 2288 | /// `64794f278eee738dcc59d90dc0c7c4ef2828c5b7c13724760a33be11f224908e`), |
| 2289 | /// pinned byte-for-byte. Recipe: same aomenc argv as the 128x128 twin |
| 2290 | /// below, source `gradients=size=128x256:...:seed=63:duration=0.24:rate=25, |
| 2291 | /// noise=all_seed=63:alls=6:allf=t` (NOT re-encoded by this lane; the |
| 2292 | /// bytes are the hunted bytes). |
| 2293 | /// |
| 2294 | /// Three halves, in order: (a) the site counter moved AND this stream |
| 2295 | /// never enters the compound walk; (b) an ORACLE-FREE V-plane pin of |
| 2296 | /// shown frame 2 plus the one sample that moved, so the exactness half |
| 2297 | /// cannot silently skip; (c) the required ffmpeg compare -- every plane |
| 2298 | /// of every shown frame byte-exact -- and the decode-order oracle compare |
| 2299 | /// when one is available. |
| 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 | /// lane-av1muchunkluma: the **compound-arm CONTENT** stream that reaches |
| 2406 | /// only the intra-in-inter `side > 64` mu-chunk walk. `aomenc` was driven |
| 2407 | /// with the compound arm's own flags (`--enable-masked-comp=1 |
| 2408 | /// --enable-onesided-comp=1 --auto-alt-ref=1`), so it *is* the compound |
| 2409 | /// hunt's `c3_grad128_comp` -- but its partition search never enters the |
| 2410 | /// compound mu-chunk walk (0 `compound/singleref` probe lines, 16 |
| 2411 | /// `intra_in_inter` ones), so its ONLY mu-chunk walk is site 8. |
| 2412 | /// |
| 2413 | /// lane-av1muchunk422class measured this stream diverging on the |
| 2414 | /// then-current tree: first wrong sample **Y (62, 6) of shown frame 1** |
| 2415 | /// (`62 * 128 + 6 = 7942`, ours 74, ffmpeg 75) and a byte-identical decode |
| 2416 | /// before and after the compound DC-sign fix. lane-av1muchunk422iis's |
| 2417 | /// intra-in-inter gather fix closed it: the pinned halves below are the |
| 2418 | /// exact plane and the exact sample the pre-fix square gather moved. |
| 2419 | /// |
| 2420 | /// Recipe (byte-reproducible; re-encoded by this lane from the frozen |
| 2421 | /// `grad128.y4m`, sha256 `ab8b23137c4efc818884efcf0bb6ccda363bae4b8360f2ca10ca68506cbb777d`, |
| 2422 | /// which itself regenerates byte-for-byte): |
| 2423 | /// ```text |
| 2424 | /// ffmpeg -v error -f lavfi -i "gradients=size=128x128:c0=0xa1128f:\ |
| 2425 | /// c1=0xd98c48:c2=0x120601:c3=0x4abfba:seed=63:duration=0.24:rate=25,\ |
| 2426 | /// noise=all_seed=63:alls=6:allf=t" -t 0.24 -pix_fmt yuv422p \ |
| 2427 | /// -f yuv4mpegpipe - > grad128.y4m |
| 2428 | /// aomenc --codec=av1 --profile=2 --input-chroma-subsampling-x=1 \ |
| 2429 | /// --input-chroma-subsampling-y=0 --passes=1 --end-usage=q --cq-level=40 \ |
| 2430 | /// --cpu-used=0 --threads=1 --row-mt=0 --sb-size=128 \ |
| 2431 | /// --min-partition-size=128 --max-partition-size=128 \ |
| 2432 | /// --enable-rect-partitions=0 --enable-ab-partitions=0 \ |
| 2433 | /// --enable-1to4-partitions=0 --enable-palette=0 --enable-intrabc=0 \ |
| 2434 | /// --deltaq-mode=0 --enable-tx-size-search=0 --limit=6 --lag-in-frames=25 \ |
| 2435 | /// --auto-alt-ref=1 --enable-global-motion=1 --enable-warped-motion=1 \ |
| 2436 | /// --enable-masked-comp=1 --enable-diff-wtd-comp=1 --enable-onesided-comp=1 \ |
| 2437 | /// --obu -o c3_grad128_comp.obu grad128.y4m |
| 2438 | /// ``` |
| 2439 | |
| 2440 | |
| 2441 | |
| 2442 | |
| 2443 | |
| 2444 | |
| 2445 | |
| 2446 | |
| 2447 | |
| 2448 | |
| 2449 | |
| 2450 | |
| 2451 | |
| 2452 | |
| 2453 | |
| 2454 | |
| 2455 | |
| 2456 | |
| 2457 | |
| 2458 | |
| 2459 | |
| 2460 | |
| 2461 | |
| 2462 | |
| 2463 | |
| 2464 | |
| 2465 | |
| 2466 | |
| 2467 | |
| 2468 | |
| 2469 | |
| 2470 | |
| 2471 | |
| 2472 | |
| 2473 | |
| 2474 | |
| 2475 | |
| 2476 | |
| 2477 | |
| 2478 | |
| 2479 | |
| 2480 | |
| 2481 | |
| 2482 | |
| 2483 | |
| 2484 | |
| 2485 | |
| 2486 | |
| 2487 | |
| 2488 | |
| 2489 | |
| 2490 | |
| 2491 | |
| 2492 | |
| 2493 | |
| 2494 | |
| 2495 | |
| 2496 | |
| 2497 | |
| 2498 | |
| 2499 | |
| 2500 | |
| 2501 | |
| 2502 | |
| 2503 | |
| 2504 | |
| 2505 | |
| 2506 | |
| 2507 | |
| 2508 | |
| 2509 | |
| 2510 | |
| 2511 | |
| 2512 | |
| 2513 | |
| 2514 | |
| 2515 | |
| 2516 | |
| 2517 | |
| 2518 | |
| 2519 | |
| 2520 | |
| 2521 | |
| 2522 | |
| 2523 | |
| 2524 | |
| 2525 | |
| 2526 | |
| 2527 | |
| 2528 | |
| 2529 | |
| 2530 | |
| 2531 | |
| 2532 | |
| 2533 | |
| 2534 | |
| 2535 | |
| 2536 | |
| 2537 | |
| 2538 | |
| 2539 | |
| 2540 | |
| 2541 | |
| 2542 | |
| 2543 | |
| 2544 | |
| 2545 | |
| 2546 | |
| 2547 | |
| 2548 | |
| 2549 | |
| 2550 | |
| 2551 | |
| 2552 | |
| 2553 | /// lane-av1muchunkluma: the 128x256 twin of the gate above -- the compound |
| 2554 | /// hunt's `c4_grad256_comp`. Unlike c3 this stream reaches BOTH `side > 64` |
| 2555 | /// mu-chunk walks (16 `intra_in_inter` probe lines, 24 `compound/singleref` |
| 2556 | /// ones with `compound=false`, i.e. the single-reference twin), yet |
| 2557 | /// lane-av1muchunk422class measured it diverging luma-first (first wrong |
| 2558 | /// sample **Y (126, 3) of shown frame 1**, `126 * 128 + 3 = 16131`, ours |
| 2559 | /// 94, ffmpeg 93). This lane re-measured it: still diverging on the |
| 2560 | /// pre-iis-gather tree, byte-exact on current `main`, so the |
| 2561 | /// intra-in-inter gather is what closed it -- its `MU_CHUNK_COMPOUND_UNITS` |
| 2562 | /// delta stays 0 (the counter names the compound arm only), which is why |
| 2563 | /// the gate's site half asserts the intra-in-inter counter. |
| 2564 | /// |
| 2565 | /// Recipe: same `aomenc` argv as the 128x128 gate above with the 128x256 |
| 2566 | /// source (`gradients=size=128x256`, the frozen `grad256.y4m`, sha256 |
| 2567 | /// `03c7fab7a6abc4e6764836cd2d35e76489438ecdba4ca1167fcd868250c0464c`, |
| 2568 | /// which regenerates byte-for-byte). |
| 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 | |
| 2641 | |
| 2642 | |
| 2643 | |
| 2644 | |
| 2645 | |
| 2646 | |
| 2647 | |
| 2648 | |
| 2649 | |
| 2650 | |
| 2651 | |
| 2652 | |
| 2653 | |
| 2654 | |
| 2655 | |
| 2656 | |
| 2657 | |
| 2658 | |
| 2659 | |
| 2660 | |
| 2661 | |
| 2662 | |
| 2663 | |
| 2664 | |
| 2665 | |
| 2666 | |
| 2667 | |
| 2668 | |
| 2669 | |
| 2670 | |
| 2671 | |
| 2672 | |
| 2673 | |
| 2674 | |
| 2675 | |
| 2676 | /// lane-sbpart r2: a real `aomenc` stream whose superblock-level |
| 2677 | /// partition decision is genuinely HORZ/VERT (not NONE/SPLIT) must |
| 2678 | /// decode pixel-exact through [`crate::decode::decode_block_rect64`] -- |
| 2679 | /// `sb_rect_hits() > 0` is a HARD assert (this round's rule: a removed |
| 2680 | /// refusal needs a firing gate in the same commit, not a green suite |
| 2681 | /// that never took the new path). Recipe = the charter's own, verified |
| 2682 | /// live by r1: `--min/max-partition-size=32/64` keeps the RD search |
| 2683 | /// from ever recursing below 32x32, so every SB-level decision is |
| 2684 | /// genuinely NONE/SPLIT/HORZ/VERT; a `gradients` source blended with |
| 2685 | /// `testsrc2` (lavfi `blend=all_mode=average`) keeps the content from |
| 2686 | /// being flat enough that the search stops at NONE every time. |
| 2687 | |
| 2688 | |
| 2689 | |
| 2690 | |
| 2691 | |
| 2692 | |
| 2693 | |
| 2694 | |
| 2695 | |
| 2696 | |
| 2697 | |
| 2698 | |
| 2699 | |
| 2700 | |
| 2701 | |
| 2702 | |
| 2703 | |
| 2704 | |
| 2705 | |
| 2706 | |
| 2707 | |
| 2708 | |
| 2709 | |
| 2710 | |
| 2711 | |
| 2712 | |
| 2713 | |
| 2714 | |
| 2715 | |
| 2716 | |
| 2717 | |
| 2718 | |
| 2719 | |
| 2720 | |
| 2721 | |
| 2722 | |
| 2723 | |
| 2724 | |
| 2725 | |
| 2726 | |
| 2727 | |
| 2728 | |
| 2729 | |
| 2730 | |
| 2731 | |
| 2732 | |
| 2733 | |
| 2734 | |
| 2735 | |
| 2736 | |
| 2737 | |
| 2738 | |
| 2739 | |
| 2740 | |
| 2741 | |
| 2742 | |
| 2743 | |
| 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 | |
| 2821 | |
| 2822 | |
| 2823 | |
| 2824 | |
| 2825 | |
| 2826 | |
| 2827 | |
| 2828 | /// lane-golomb r2 gate: a 32x32-level block that STRADDLES the frame edge |
| 2829 | /// and whose partition is the gathered edge bit's `PARTITION_HORZ` (bottom |
| 2830 | /// edge) / `PARTITION_VERT` (right edge). Since r1 that bit can name |
| 2831 | /// HORZ/VERT instead of always inferring SPLIT, so the second 32x16/16x32 |
| 2832 | /// half is out of frame and must NOT be decoded (libaom `decode_partition`: |
| 2833 | /// `case PARTITION_HORZ: decode_block(top); if (has_rows) decode_block(bottom)`). |
| 2834 | /// The AB and 1:4 arms need no such guard: at an edge libaom's |
| 2835 | /// `ec_read_partition_impl` can only yield HORZ/VERT/SPLIT, so those arms |
| 2836 | /// are unreachable there. |
| 2837 | /// |
| 2838 | /// Geometry: 192x80 (mi_rows=20 -- the second SB row is 16 px tall, so its |
| 2839 | /// 32-level blocks at y=64 have `has_rows32 == false`) and 80x192 for the |
| 2840 | /// right edge. Natural content (`testsrc2`); `smptebars`-style screen |
| 2841 | /// content trips the palette/screen-content refusal before the edge is |
| 2842 | /// reached. cq sweep, 8-bit and 10-bit, plus a 5-frame inter arm. |
| 2843 | /// Counters are sampled per attempt and summed only over attempts that |
| 2844 | /// decoded AND pixel-compared (class `counter-from-refused-stream`). |
| 2845 | |
| 2846 | |
| 2847 | |
| 2848 | |
| 2849 | |
| 2850 | |
| 2851 | |
| 2852 | |
| 2853 | /// lane-golomb r2 OPEN DEFECT, pinned as a runnable test: with the 16-px |
| 2854 | /// straddling band left FLAT the encoder answers the 32-level edge bit |
| 2855 | /// with HORZ (`edge32=[2, 0, 2, 0]` on 192x80 cq40 8-bit), the guard added |
| 2856 | /// this round keeps the stream in entropy sync -- every pixel outside the |
| 2857 | /// two edge strips matches ffmpeg -- but the strips themselves |
| 2858 | /// reconstruct wrong: `plane Y: 1081 pixels differ, first at row 62 col |
| 2859 | /// 128`, diffs confined to rows 62..79 over ~64 columns (exactly the two |
| 2860 | /// 32x16 strips plus the deblock bleed above them). That is a |
| 2861 | /// reconstruction defect inside the strip (prediction/availability), not |
| 2862 | /// the partition guard. Un-ignored 2026-09-04: that reconstruction defect is gone and the two edge strips decode exactly. |
| 2863 | |
| 2864 | |
| 2865 | |
| 2866 | |
| 2867 | |
| 2868 | |
| 2869 | |
| 2870 | |
| 2871 | /// lane-golomb r9 OPEN DEFECT, pinned as a runnable test: a frame whose |
| 2872 | /// height (192x68) or width (68x192) is not a multiple of 8 leaves a 4-px |
| 2873 | /// straddling band inside the mi-rounded plane, and every INTER frame's |
| 2874 | /// output is +-1 wrong across that band and the columns/rows next to it |
| 2875 | /// (`68x192 cq35 8-bit: frame 1 plane Y: 145 pixels differ, first at row 0 |
| 2876 | /// col 64`, mass in columns 64..67). r9 bisected it stage by stage against |
| 2877 | /// the instrumented aomdec on that exact stream: |
| 2878 | /// * `EC_AV1_PREFILT_DUMP` frame 1 is BYTE-IDENTICAL over the cropped |
| 2879 | /// 68 columns -- reconstruction and inter prediction are exact, so the |
| 2880 | /// charter's "MC reads past the crop" hypothesis is refuted a second time. |
| 2881 | /// * `EC_AV1_POSTDEBLOCK_DUMP` with `EC_AV1_DEBUG_SKIP_CDEF=1` also matches |
| 2882 | /// aomdec's own post-deblock dump (which is 72 columns wide, i.e. it |
| 2883 | /// exposes the straddling band) -- the deblock, including its |
| 2884 | /// `frame_width` clip, is correct. |
| 2885 | /// * The divergence therefore enters in CDEF, at the last 8x8 CDEF block |
| 2886 | /// column/row, which is the one that straddles the crop edge. |
| 2887 | /// lane-cdef r2: CLOSED, and un-ignored. r1 rooted the luma half in |
| 2888 | /// `apply_cdef`'s direction search, which clamped at the CROPPED frame |
| 2889 | /// edge while libaom runs `cdef_find_dir` over `cdef_prepare_fb`'s buffer |
| 2890 | /// -- whose columns/rows past the MI-ROUNDED extent (`hsize = nhb << |
| 2891 | /// mi_wide_l2`, `cdef.c:164-167`, and the `frame_boundary[RIGHT]` |
| 2892 | /// CDEF_VERY_LARGE fill at `cdef.c:249-256`) are CDEF_VERY_LARGE, not the |
| 2893 | /// last real sample. The chroma half was lane-golomb r8's loop-restoration |
| 2894 | /// plane size (LR is the one post-decode filter sized by the CROP, not the |
| 2895 | /// mi grid) plus its reference-size fix; merging both branches takes all |
| 2896 | /// four arms to 0 differing pixels on Y, U and V. |
| 2897 | /// |
| 2898 | /// Arms: 192x68 and 68x192 (a 4-px straddling band on one axis), 5 frames, |
| 2899 | /// 8-bit and 10-bit, plus a `--tile-columns=1` twin of each (COMMON's |
| 2900 | /// neighbour-map rule -- the skip band CDEF reads is a per-mi side band). |
| 2901 | /// RE-MEASURED lane-t900 r15 on the merged tip: all 64 attempts (8 arms x |
| 2902 | /// 8 cq levels, single- and multi-tile alike) decode pixel-exact with ZERO |
| 2903 | /// named refusals -- on 2026-09-02 all 32 multi-tile attempts still refused |
| 2904 | /// by name, so that half compared nothing (class |
| 2905 | /// `counter-from-refused-stream`). `compared_multi_tile` is asserted below |
| 2906 | /// so the multi-tile twins can never silently go back to comparing |
| 2907 | /// nothing. |
| 2908 | /// Hard-asserts `decode::cdef_straddle_units()` grew: a FILTERED 8x8 CDEF |
| 2909 | /// unit whose extent crosses the crop edge is the only shape for which |
| 2910 | /// clamping and padding differ, so a zero delta would make these arms |
| 2911 | /// vacuous for this defect. |
| 2912 | |
| 2913 | |
| 2914 | |
| 2915 | |
| 2916 | |
| 2917 | /// lane-sqchroma r1 gate: a plain SQUARE-partition intra key frame with |
| 2918 | /// REAL chroma (no `hue=s=0` guard) and aomenc's tx-size search left at |
| 2919 | /// its own DEFAULT (on) -- the combination the user's films hit |
| 2920 | /// everywhere and that no gate in this file covered: every older recipe |
| 2921 | /// pins `--enable-tx-size-search=0`, and the one that does not |
| 2922 | /// (`a_real_aomenc_stream_with_a_split_transform_horz_vert_strip_decodes_pixel_exact`) |
| 2923 | /// desaturates its fixture. With the search on, RD gives a square block a |
| 2924 | /// luma transform smaller than its own side while chroma keeps the |
| 2925 | /// block's single `side/2` transform and its own `uv_mode`-derived |
| 2926 | /// `tx_type` -- the pair [`crate::decode::sq_chroma_tx_hits`] counts and |
| 2927 | /// this gate hard-asserts, so a stream whose split-transform blocks all |
| 2928 | /// landed on `DC_PRED` chroma cannot pass for free. |
| 2929 | /// |
| 2930 | /// Sweeps seeds 8-bit and finishes with one 10-bit stream of the same |
| 2931 | /// recipe (his films are `yuv420p10le`), whose sequence header's |
| 2932 | /// `bit_depth` is asserted before any pixel is compared. Only a missing |
| 2933 | /// tool SKIPs: a decode error that is not a named refusal, and every |
| 2934 | /// pixel mismatch, FAIL. |
| 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 | /// lane-rectsplit r1 gate (a): a real `aomenc` key frame whose 32x32 |
| 3129 | /// quadrants split HORZ/VERT into true 32x16/16x32 strips, with the |
| 3130 | /// tx-size search left at aomenc's own default (ON) -- every sibling |
| 3131 | /// recipe in this file pins `--enable-tx-size-search=0`, which is exactly |
| 3132 | /// why the split-transform strip was never exercised. RD is then free to |
| 3133 | /// give a strip a transform smaller than its own size, the case |
| 3134 | /// [`crate::decode::decode_block_rect`] refused by name ("a HORZ/VERT |
| 3135 | /// intra strip with a split transform (per-unit rect prediction is not |
| 3136 | /// ported)") until this round ported the per-transform-unit predict-and- |
| 3137 | /// reconstruct loop. Hard-asserts a nonzero `rect_split_tx_hits()` delta: |
| 3138 | /// without it a stream that resolved every `tx_depth` to 0 would |
| 3139 | /// pixel-match by construction and prove nothing. A decode error that is |
| 3140 | /// not a named refusal, and any pixel mismatch, FAIL -- only a missing |
| 3141 | /// tool skips. |
| 3142 | |
| 3143 | |
| 3144 | |
| 3145 | |
| 3146 | |
| 3147 | |
| 3148 | |
| 3149 | |
| 3150 | |
| 3151 | |
| 3152 | |
| 3153 | |
| 3154 | |
| 3155 | |
| 3156 | |
| 3157 | |
| 3158 | |
| 3159 | |
| 3160 | |
| 3161 | |
| 3162 | |
| 3163 | |
| 3164 | |
| 3165 | |
| 3166 | |
| 3167 | |
| 3168 | |
| 3169 | |
| 3170 | |
| 3171 | |
| 3172 | |
| 3173 | |
| 3174 | |
| 3175 | |
| 3176 | |
| 3177 | |
| 3178 | |
| 3179 | |
| 3180 | |
| 3181 | |
| 3182 | |
| 3183 | |
| 3184 | |
| 3185 | |
| 3186 | |
| 3187 | |
| 3188 | |
| 3189 | |
| 3190 | |
| 3191 | |
| 3192 | |
| 3193 | |
| 3194 | |
| 3195 | |
| 3196 | |
| 3197 | |
| 3198 | |
| 3199 | |
| 3200 | |
| 3201 | |
| 3202 | |
| 3203 | |
| 3204 | |
| 3205 | |
| 3206 | |
| 3207 | |
| 3208 | |
| 3209 | |
| 3210 | |
| 3211 | |
| 3212 | |
| 3213 | |
| 3214 | |
| 3215 | |
| 3216 | |
| 3217 | |
| 3218 | |
| 3219 | |
| 3220 | |
| 3221 | |
| 3222 | |
| 3223 | |
| 3224 | |
| 3225 | |
| 3226 | |
| 3227 | |
| 3228 | |
| 3229 | |
| 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 | |
| 3283 | |
| 3284 | |
| 3285 | |
| 3286 | |
| 3287 | |
| 3288 | |
| 3289 | |
| 3290 | |
| 3291 | |
| 3292 | |
| 3293 | |
| 3294 | |
| 3295 | |
| 3296 | |
| 3297 | |
| 3298 | |
| 3299 | |
| 3300 | |
| 3301 | |
| 3302 | |
| 3303 | |
| 3304 | |
| 3305 | |
| 3306 | |
| 3307 | |
| 3308 | |
| 3309 | |
| 3310 | |
| 3311 | |
| 3312 | |
| 3313 | |
| 3314 | |
| 3315 | |
| 3316 | |
| 3317 | |
| 3318 | |
| 3319 | |
| 3320 | |
| 3321 | |
| 3322 | |
| 3323 | |
| 3324 | |
| 3325 | |
| 3326 | |
| 3327 | |
| 3328 | /// lane-rect1d r1 (copied from lane-rectclass r1): the class-correctness measurement for every |
| 3329 | /// RECTANGULAR transform unit this decoder reads. [`crate::decode::read_coeffs_rect`] |
| 3330 | /// handles `TxClass::TwoD` only -- it refuses by name both a coded |
| 3331 | /// `tx_type` symbol and a non-2D default -- so the open question a |
| 3332 | /// verifier raised was whether a real encoder ever puts a |
| 3333 | /// `V_DCT`/`H_DCT` (`TX_CLASS_HORIZ`/`VERT`) type on a rect TU that |
| 3334 | /// reaches this reader. The recipe deliberately maximises the chance: |
| 3335 | /// `--enable-flip-idtx=1` (the flip/identity/1D types are exactly what |
| 3336 | /// `EXT_TX_SET_DTT4_IDTX_1DDCT` and the wider inter sets add), |
| 3337 | /// `--enable-tx-size-search=1`, rect partitions on, small minimum |
| 3338 | /// partition size, both bit depths. Every successful decode is |
| 3339 | /// pixel-compared; the rect-TU counter is folded in PER ATTEMPT and only |
| 3340 | /// after that attempt compared (class `counter-from-refused-stream`), and |
| 3341 | /// the class-1 refusal counter is summed over EVERY attempt including the |
| 3342 | /// refused ones -- a refused attempt is exactly where a 1D class on a |
| 3343 | /// rect TU would show up. |
| 3344 | /// |
| 3345 | /// lane-rect1d: on THIS tree `read_coeffs_rect` no longer refuses a 1D |
| 3346 | /// class -- lane-tx4x8 gave it the mrow/mcol scan and the class-aware |
| 3347 | /// base/br contexts -- so the live pins are `compared_class1 > 0` (the |
| 3348 | /// flag arrived and 1D types were coded) plus the pixel compare itself. |
| 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 | |
| 3465 | |
| 3466 | |
| 3467 | |
| 3468 | |
| 3469 | |
| 3470 | |
| 3471 | |
| 3472 | |
| 3473 | |
| 3474 | |
| 3475 | |
| 3476 | |
| 3477 | |
| 3478 | |
| 3479 | |
| 3480 | |
| 3481 | |
| 3482 | |
| 3483 | |
| 3484 | |
| 3485 | |
| 3486 | |
| 3487 | |
| 3488 | |
| 3489 | |
| 3490 | |
| 3491 | |
| 3492 | |
| 3493 | |
| 3494 | |
| 3495 | |
| 3496 | |
| 3497 | |
| 3498 | |
| 3499 | |
| 3500 | |
| 3501 | |
| 3502 | |
| 3503 | |
| 3504 | |
| 3505 | |
| 3506 | |
| 3507 | |
| 3508 | |
| 3509 | |
| 3510 | |
| 3511 | |
| 3512 | |
| 3513 | |
| 3514 | |
| 3515 | |
| 3516 | |
| 3517 | |
| 3518 | |
| 3519 | |
| 3520 | |
| 3521 | |
| 3522 | |
| 3523 | |
| 3524 | |
| 3525 | |
| 3526 | |
| 3527 | |
| 3528 | |
| 3529 | |
| 3530 | |
| 3531 | |
| 3532 | |
| 3533 | |
| 3534 | |
| 3535 | |
| 3536 | |
| 3537 | |
| 3538 | |
| 3539 | |
| 3540 | |
| 3541 | |
| 3542 | |
| 3543 | |
| 3544 | |
| 3545 | |
| 3546 | |
| 3547 | |
| 3548 | |
| 3549 | |
| 3550 | |
| 3551 | |
| 3552 | |
| 3553 | |
| 3554 | |
| 3555 | |
| 3556 | |
| 3557 | |
| 3558 | |
| 3559 | |
| 3560 | |
| 3561 | |
| 3562 | |
| 3563 | |
| 3564 | |
| 3565 | |
| 3566 | |
| 3567 | |
| 3568 | |
| 3569 | |
| 3570 | |
| 3571 | |
| 3572 | |
| 3573 | |
| 3574 | |
| 3575 | |
| 3576 | |
| 3577 | |
| 3578 | |
| 3579 | |
| 3580 | |
| 3581 | |
| 3582 | |
| 3583 | |
| 3584 | |
| 3585 | |
| 3586 | |
| 3587 | |
| 3588 | |
| 3589 | |
| 3590 | |
| 3591 | |
| 3592 | |
| 3593 | |
| 3594 | |
| 3595 | |
| 3596 | |
| 3597 | |
| 3598 | |
| 3599 | |
| 3600 | /// lane-rectsplit r1 gate (c): gate (a)'s recipe with |
| 3601 | /// `--enable-filter-intra=1` (every sibling gate here pins it to 0), so |
| 3602 | /// aomenc's RD is free to pick `use_filter_intra` on a 32x16/16x32 strip |
| 3603 | /// -- the case [`crate::decode::decode_block_rect`] refused by name |
| 3604 | /// ("filter intra on a HORZ/VERT strip (this decoder predicts |
| 3605 | /// square-only)") until this round gave `predict_filter_intra` its own |
| 3606 | /// `bw`x`bh`. Hard-asserts a nonzero `filter_intra_rect_hits()` delta: |
| 3607 | /// a stream where RD never picked filter intra on a strip would |
| 3608 | /// pixel-match by construction and prove nothing. |
| 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 | |
| 3691 | |
| 3692 | |
| 3693 | |
| 3694 | |
| 3695 | |
| 3696 | |
| 3697 | |
| 3698 | |
| 3699 | |
| 3700 | |
| 3701 | |
| 3702 | |
| 3703 | |
| 3704 | |
| 3705 | |
| 3706 | |
| 3707 | |
| 3708 | |
| 3709 | |
| 3710 | |
| 3711 | |
| 3712 | |
| 3713 | |
| 3714 | |
| 3715 | |
| 3716 | |
| 3717 | |
| 3718 | |
| 3719 | |
| 3720 | |
| 3721 | |
| 3722 | |
| 3723 | |
| 3724 | |
| 3725 | |
| 3726 | |
| 3727 | |
| 3728 | |
| 3729 | |
| 3730 | |
| 3731 | |
| 3732 | |
| 3733 | |
| 3734 | |
| 3735 | |
| 3736 | |
| 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 | |
| 3774 | |
| 3775 | |
| 3776 | |
| 3777 | |
| 3778 | |
| 3779 | |
| 3780 | |
| 3781 | |
| 3782 | |
| 3783 | |
| 3784 | |
| 3785 | |
| 3786 | |
| 3787 | |
| 3788 | |
| 3789 | |
| 3790 | |
| 3791 | |
| 3792 | |
| 3793 | |
| 3794 | |
| 3795 | |
| 3796 | |
| 3797 | |
| 3798 | |
| 3799 | |
| 3800 | |
| 3801 | |
| 3802 | |
| 3803 | |
| 3804 | |
| 3805 | |
| 3806 | |
| 3807 | |
| 3808 | |
| 3809 | |
| 3810 | |
| 3811 | |
| 3812 | |
| 3813 | |
| 3814 | |
| 3815 | |
| 3816 | |
| 3817 | |
| 3818 | |
| 3819 | |
| 3820 | |
| 3821 | |
| 3822 | |
| 3823 | |
| 3824 | |
| 3825 | |
| 3826 | |
| 3827 | |
| 3828 | |
| 3829 | |
| 3830 | |
| 3831 | |
| 3832 | |
| 3833 | /// lane-fistrip r1, the 10-bit arm of the strip gate (his films are |
| 3834 | /// yuv420p10le). Same ceiling as its 8-bit twin, lifted in lane-rectsplitx |
| 3835 | /// r3 (the split arm's `smooth_neighbor_uv`); before that, MEASURED over seeds |
| 3836 | /// 42..61 the 8x16/16x8 strips aomenc writes filter intra on are |
| 3837 | /// `skip=0`, which `decode_leaf_rect` refuses, so |
| 3838 | /// `filter_intra_rect_sub16_hits` never reaches a pixel compare. |
| 3839 | /// lane-fistrip r2 adds seeds 49 and 213 to the window: those are the two |
| 3840 | /// seeds measured to fire the feature on the 8-BIT twin's recipe (this |
| 3841 | /// arm's 10-bit encode is a different stream, so they are a widening, not |
| 3842 | /// a measured firing set for this recipe). Green since r3. |
| 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 | /// lane-fistrip r1, the pinned half of this lane's proof: one real |
| 3891 | /// `aomenc` stream (recipe below, byte-reproducible -- md5 |
| 3892 | /// ac3a64773e5454ee9b5d8650507063cd, hashed twice) whose key frame |
| 3893 | /// carries four `BLOCK_16X8` DC_PRED leaves, one of which sets |
| 3894 | /// `use_filter_intra`. `av1_filter_intra_allowed_bsize` allows 16x8, so |
| 3895 | /// aomenc writes that flag; before this round `filter_intra_size_class_rect` |
| 3896 | /// had no row for the shape, the symbol was never read, and the tile |
| 3897 | /// desynced ON THAT BLOCK -- observable as a DIFFERENT named refusal |
| 3898 | /// ("a HORZ/VERT intra strip below 16x16 with a split transform", a |
| 3899 | /// `tx_depth` read out of a desynced stream) instead of this one. |
| 3900 | /// |
| 3901 | /// The stream cannot be pixel-compared yet: the 16x8 strip that carries |
| 3902 | /// the flag is `skip=0`, and a coded rect strip below 16x16 has no |
| 3903 | /// residual path here (its own refusal, another lane's ceiling). What |
| 3904 | /// this test pins is the SYMBOL: the flag is read, the counter fires |
| 3905 | /// once, and the decode stops at the coded-strip ceiling rather than |
| 3906 | /// wandering off a desynced stream. |
| 3907 | /// |
| 3908 | /// Fixture recipe (`crates/ec-av1/fixtures/filter_intra_8x16_strip_seed49.obu`): |
| 3909 | /// `ffmpeg -f lavfi -i gradients=size=192x128:c0=0x986ae1:c1=0xd3e49a: |
| 3910 | /// c2=0x0b1e53:c3=0x42980c:seed=49:duration=0.04:rate=25 -pix_fmt yuv420p` |
| 3911 | /// into `aomenc --codec=av1 --passes=1 --end-usage=q --cq-level=25 |
| 3912 | /// --cpu-used=0 --threads=1 --row-mt=0 --sb-size=64 |
| 3913 | /// --enable-rect-partitions=1 --enable-ab-partitions=0 |
| 3914 | /// --enable-1to4-partitions=0 --min-partition-size=8 |
| 3915 | /// --max-partition-size=32 --enable-restoration=0 --enable-palette=0 |
| 3916 | /// --deltaq-mode=0 --enable-filter-intra=1 --enable-cfl-intra=0 |
| 3917 | /// --enable-intrabc=0 --obu`. |
| 3918 | |
| 3919 | |
| 3920 | |
| 3921 | |
| 3922 | |
| 3923 | |
| 3924 | |
| 3925 | |
| 3926 | |
| 3927 | |
| 3928 | |
| 3929 | |
| 3930 | |
| 3931 | |
| 3932 | |
| 3933 | |
| 3934 | |
| 3935 | |
| 3936 | |
| 3937 | |
| 3938 | |
| 3939 | |
| 3940 | |
| 3941 | |
| 3942 | |
| 3943 | |
| 3944 | |
| 3945 | |
| 3946 | |
| 3947 | |
| 3948 | |
| 3949 | |
| 3950 | |
| 3951 | |
| 3952 | |
| 3953 | |
| 3954 | |
| 3955 | |
| 3956 | |
| 3957 | |
| 3958 | |
| 3959 | |
| 3960 | |
| 3961 | |
| 3962 | /// lane-fistrip r1: the filter-intra strip gate above, one partition |
| 3963 | /// level DOWN (`--min-partition-size=8`, so a 16x16 HORZ/VERT splits |
| 3964 | /// into 8x16/16x8 leaves). `av1_filter_intra_allowed_bsize` is |
| 3965 | /// `wide <= 32 && high <= 32`, which both of those satisfy, so aomenc |
| 3966 | /// writes a `use_filter_intra` flag on every DC_PRED one of them -- |
| 3967 | /// `filter_intra_size_class_rect` had no row for either shape and |
| 3968 | /// [`crate::decode::read_intra_mode_rect`] therefore never READ that |
| 3969 | /// symbol (class `symbol-consumption-gap`, a silent desync rather than |
| 3970 | /// a refusal). Hard-asserts |
| 3971 | /// [`crate::decode::filter_intra_rect_sub16_hits`], not the wider |
| 3972 | /// `filter_intra_rect_hits`: a 32x16 strip firing filter intra would |
| 3973 | /// satisfy that one and prove nothing about the new shapes. |
| 3974 | /// MEASURED (lane-fistrip r1, seeds 42..=241; r2 re-ran 50..=241), which |
| 3975 | /// is why the window carries the two firing seeds: over those 200 seeds at |
| 3976 | /// cq 25 aomenc put filter intra on an 8x16/16x8 strip exactly TWICE -- |
| 3977 | /// **seed 49 and seed 213** -- and both times that strip was `skip=0`, so |
| 3978 | /// the attempt refused at the coded-rect-strip-below-16x16 ceiling before |
| 3979 | /// any pixel compare (r1: 177 pixel-exact matches, 23 refusals, compared |
| 3980 | /// sub16 delta 0, all-attempt delta 2; r2 seeds 50..=241: 172 matches, 20 |
| 3981 | /// refusals, the one all-attempt hit at seed 213). BOTH firing seeds are |
| 3982 | /// appended to this gate's seed window below, so it compares two real |
| 3983 | /// hits. UN-IGNORED lane-rectsplitx r3: the ceiling lifted with the split |
| 3984 | /// refusal, and the residual chroma defect was the split arm of |
| 3985 | /// [`crate::decode::decode_leaf_rect`] passing `smooth_neighbor_uv: false` |
| 3986 | /// where the unsplit arm passes the neighbour's real answer. The symbol |
| 3987 | /// itself stays pinned by |
| 3988 | /// [`a_pinned_aomenc_16x8_strip_reads_its_use_filter_intra_flag`]. |
| 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 | |
| 4055 | |
| 4056 | |
| 4057 | |
| 4058 | |
| 4059 | |
| 4060 | |
| 4061 | |
| 4062 | |
| 4063 | |
| 4064 | |
| 4065 | |
| 4066 | |
| 4067 | |
| 4068 | |
| 4069 | |
| 4070 | |
| 4071 | |
| 4072 | |
| 4073 | |
| 4074 | |
| 4075 | |
| 4076 | |
| 4077 | |
| 4078 | |
| 4079 | |
| 4080 | |
| 4081 | |
| 4082 | |
| 4083 | |
| 4084 | |
| 4085 | |
| 4086 | |
| 4087 | |
| 4088 | |
| 4089 | |
| 4090 | |
| 4091 | |
| 4092 | |
| 4093 | |
| 4094 | |
| 4095 | |
| 4096 | |
| 4097 | |
| 4098 | |
| 4099 | |
| 4100 | |
| 4101 | |
| 4102 | |
| 4103 | |
| 4104 | |
| 4105 | |
| 4106 | |
| 4107 | |
| 4108 | |
| 4109 | |
| 4110 | |
| 4111 | |
| 4112 | |
| 4113 | |
| 4114 | |
| 4115 | |
| 4116 | |
| 4117 | |
| 4118 | |
| 4119 | |
| 4120 | |
| 4121 | |
| 4122 | |
| 4123 | |
| 4124 | |
| 4125 | |
| 4126 | |
| 4127 | |
| 4128 | |
| 4129 | |
| 4130 | |
| 4131 | |
| 4132 | |
| 4133 | |
| 4134 | |
| 4135 | |
| 4136 | |
| 4137 | |
| 4138 | |
| 4139 | |
| 4140 | |
| 4141 | |
| 4142 | |
| 4143 | |
| 4144 | |
| 4145 | |
| 4146 | |
| 4147 | |
| 4148 | |
| 4149 | |
| 4150 | |
| 4151 | |
| 4152 | |
| 4153 | |
| 4154 | |
| 4155 | |
| 4156 | |
| 4157 | |
| 4158 | |
| 4159 | |
| 4160 | |
| 4161 | |
| 4162 | |
| 4163 | |
| 4164 | |
| 4165 | |
| 4166 | |
| 4167 | |
| 4168 | |
| 4169 | |
| 4170 | |
| 4171 | |
| 4172 | |
| 4173 | /// lane-rectsplit r1 gate (b): [`a_real_aomenc_stream_with_a_superblock_level_horz_vert_partition_decodes_pixel_exact`]'s |
| 4174 | /// own recipe (`--sb-size=64`, `--min/max-partition-size=32/64`, so every |
| 4175 | /// SB-level decision is genuinely NONE/SPLIT/HORZ/VERT) with its |
| 4176 | /// `--enable-tx-size-search=0` DROPPED: the 64x32/32x64 strips may then |
| 4177 | /// carry a split transform, which [`crate::decode::decode_block_rect64`] |
| 4178 | /// refused by name ("a superblock-level HORZ/VERT strip with a split |
| 4179 | /// transform") until lane-rectsplit r2 lifted it. |
| 4180 | /// |
| 4181 | /// The hard assert is on [`crate::decode::rect_split_sb_interior_tu_hits`], |
| 4182 | /// NOT the shared `rect_split_tx_hits()` gate (a) uses: that counter also |
| 4183 | /// counts 32x32-level and depth-1 strips, whose units are all in the |
| 4184 | /// first transform-unit row/column. Only a superblock-level strip split |
| 4185 | /// past depth 1 has an INTERIOR unit (`row_off > 0 && col_off > 0`), |
| 4186 | /// which is the per-unit availability rule this port exists for, and no |
| 4187 | /// gate fired one before this round. |
| 4188 | /// |
| 4189 | /// This gate was `#[ignore]`d RED through r3 (seed 50 luma (171,56)). |
| 4190 | /// Root cause, r4, TWO defects, neither of them availability -- the |
| 4191 | /// strip's own per-unit prediction was exact all along: |
| 4192 | /// 1. `av1_nz_map_ctx_offset` is indexed by libaom's COLUMN-major |
| 4193 | /// `coeff_idx = col * 32 + row`, so [`crate::decode::base_ctx`] read |
| 4194 | /// the `TX_32X64`/`TX_64X32` offset tables transposed (r2 saw this and |
| 4195 | /// r3 reverted it, because "fixing" it turned the merged SB HORZ/VERT |
| 4196 | /// gate RED at seed 43); |
| 4197 | /// 2. that seed-43 RED was a SECOND defect the first one had been hiding |
| 4198 | /// behind a refusal: `EOB_PT_512_CHROMA` was transcribed from |
| 4199 | /// `av1_default_eob_multi512_cdfs`'s `eob_multi_ctx = 1` row (the flat |
| 4200 | /// `V_DCT`/`H_DCT` distribution), so the first real 32x16 chroma |
| 4201 | /// transform read `eob_pt` 7 where aomdec read 2. With both fixed, |
| 4202 | /// seeds 43 and 50 are pixel-exact. |
| 4203 | |
| 4204 | |
| 4205 | |
| 4206 | |
| 4207 | |
| 4208 | |
| 4209 | |
| 4210 | |
| 4211 | |
| 4212 | |
| 4213 | |
| 4214 | |
| 4215 | |
| 4216 | |
| 4217 | |
| 4218 | |
| 4219 | |
| 4220 | |
| 4221 | |
| 4222 | |
| 4223 | |
| 4224 | |
| 4225 | |
| 4226 | |
| 4227 | |
| 4228 | |
| 4229 | |
| 4230 | |
| 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 | /// lane-part32 r4: a real `aomenc` stream whose superblock-level |
| 4391 | /// partition decision is one of the four AB arms (`PARTITION_HORZ_A`/ |
| 4392 | /// `_B`/`VERT_A`/`_B` at 64x64: two 32x32 squares plus one 64x32/32x64 |
| 4393 | /// strip) must decode pixel-exact. Same recipe as the HORZ/VERT sibling |
| 4394 | /// above with `--enable-ab-partitions=1`; `sb_ab_hits() > 0` is a HARD |
| 4395 | /// assert, so a run where aomenc's RD never picked an AB arm fails |
| 4396 | /// rather than passing vacuously. |
| 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 | |
| 4469 | |
| 4470 | |
| 4471 | |
| 4472 | |
| 4473 | |
| 4474 | |
| 4475 | |
| 4476 | |
| 4477 | |
| 4478 | |
| 4479 | |
| 4480 | |
| 4481 | |
| 4482 | |
| 4483 | |
| 4484 | |
| 4485 | |
| 4486 | |
| 4487 | |
| 4488 | |
| 4489 | |
| 4490 | |
| 4491 | |
| 4492 | |
| 4493 | |
| 4494 | |
| 4495 | |
| 4496 | |
| 4497 | |
| 4498 | |
| 4499 | |
| 4500 | |
| 4501 | |
| 4502 | |
| 4503 | |
| 4504 | |
| 4505 | |
| 4506 | |
| 4507 | |
| 4508 | |
| 4509 | |
| 4510 | |
| 4511 | |
| 4512 | |
| 4513 | |
| 4514 | |
| 4515 | |
| 4516 | |
| 4517 | |
| 4518 | |
| 4519 | |
| 4520 | |
| 4521 | |
| 4522 | |
| 4523 | |
| 4524 | |
| 4525 | |
| 4526 | |
| 4527 | |
| 4528 | |
| 4529 | |
| 4530 | |
| 4531 | |
| 4532 | |
| 4533 | |
| 4534 | |
| 4535 | |
| 4536 | |
| 4537 | |
| 4538 | |
| 4539 | |
| 4540 |