edith_codecs
Clone
https://git.tahinli.com/Tahinli/edith_codecs.git
0 watching0 forksRust370.3 MiB9b67700Tahinli3 days ago4021 commits
| 1 | use *; |
| 2 | |
| 3 | /// The level-0 luma 4x4 corner, read off the C file by eye as well as by |
| 4 | /// the extractor: a table that shifted a chunk boundary moves this. |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | /// Chroma matrices are DIFFERENT data at the same level, not a re-read |
| 16 | /// of the luma ones (`iwt_matrix_ref[q][c >= 1]`). |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 | /// Every level selects a matrix below 15 and nothing does at 15 (the |
| 29 | /// flat sentinel libaom stores as NULL), for every stored shape and |
| 30 | /// both plane kinds; the shape lengths follow the walk. |
| 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 | /// The 64-axis clamps (`av1_get_adjusted_tx_size`): 64x64/64x32/32x64 |
| 68 | /// read the 32x32 matrix, 64x16 the 32x16 one, 16x64 the 16x32 one -- |
| 69 | /// the same slice as their adjusted shapes. |
| 70 | |
| 71 | |
| 72 | |
| 73 | |
| 74 | |
| 75 | |
| 76 | |
| 77 | |
| 78 | |
| 79 | |
| 80 | |
| 81 | |
| 82 | |
| 83 | |
| 84 | |
| 85 | |
| 86 | |
| 87 | |
| 88 | /// `dqv_at` is libaom's `get_dqv` verbatim: an entry of 32 (`1 << |
| 89 | /// AOM_QM_BITS`) is the identity, rounding is half-up into the shift, |
| 90 | /// and a position on a later ROW of a true-w raster re-strides onto the |
| 91 | /// matrix stride. |
| 92 | |
| 93 | |
| 94 | |
| 95 | |
| 96 | |
| 97 | |
| 98 | |
| 99 | |
| 100 | |
| 101 | |
| 102 | |
| 103 | |
| 104 | |
| 105 | |
| 106 |