edith_codecs
Clone
https://git.tahinli.com/Tahinli/edith_codecs.git
0 watching0 forksRust370.3 MiB9b67700Tahinli3 days ago4021 commits
| 1 | use *; |
| 2 | |
| 3 | /// Asymmetric gate on the two new scan tables (class |
| 4 | /// `reference-layout-not-spec`): a transposed pair of tables passes any |
| 5 | /// "is a permutation" check, so this pins the pair AGAINST each other -- |
| 6 | /// `SCAN_8X4[k]` must be `SCAN_4X8[k]` reflected across the diagonal, and |
| 7 | /// both must be bijections of `0..32` in our own row-major indexing. |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 | /// `mrow_scan_4x8`/`mcol_scan_4x8`/`mrow_scan_8x4`/`mcol_scan_8x4` |
| 29 | /// (libaom `scan.c`), converted out of their column-major encoding by |
| 30 | /// `(p % h) * w + p / h` -- the head of each, pinned so the rect |
| 31 | /// `V_DCT`/`H_DCT` walk cannot silently transpose. |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | |
| 37 | |
| 38 | |
| 39 | |
| 40 | |
| 41 | |
| 42 | |
| 43 | |
| 44 | |
| 45 | |
| 46 | |
| 47 | |
| 48 | |
| 49 | |
| 50 | |
| 51 | |
| 52 | /// The 32-position `eob_pt` alphabet: six symbols (one more than the |
| 53 | /// 16-position table, one fewer than the 64-position one), strictly |
| 54 | /// increasing, terminated at 32768 with the adaptation counter after it. |
| 55 | |
| 56 | |
| 57 | |
| 58 | |
| 59 | |
| 60 | |
| 61 | |
| 62 | |
| 63 | |
| 64 | |
| 65 | |
| 66 | |
| 67 | |
| 68 | |
| 69 | |
| 70 | |
| 71 | |
| 72 | |
| 73 | |
| 74 | |
| 75 | |
| 76 | /// `Reach::of_rect` must read libaom's own `has_tr_4x8`/`has_tr_8x4` |
| 77 | /// rows, not the 32x16 pair the two existing rect strips use: the two |
| 78 | /// shapes disagree at a position inside the superblock, which is what |
| 79 | /// makes this an asymmetric check rather than a tautology. |
| 80 | |
| 81 | |
| 82 | |
| 83 | |
| 84 | |
| 85 | |
| 86 | |
| 87 | |
| 88 | |
| 89 |