edith_codecs
Clone
https://git.tahinli.com/Tahinli/edith_codecs.git
0 watching0 forksRust370.3 MiBcbbd6e2Tahinli2 months ago2369 commits
| 1 | //! The default CDF tables of spec section 9.4, in the orientation |
| 2 | //! [`crate::msac`] reads: cumulative probabilities scaled to `1 << 15`, with |
| 3 | //! the alphabet's total as the second-to-last entry and the adaptation counter |
| 4 | //! last. |
| 5 | //! |
| 6 | //! Only the syntax elements the tile writer codes today are here; the rest |
| 7 | //! arrive with the syntax that needs them. |
| 8 | |
| 9 | /// `Default_Partition_W64_Cdf` (spec 9.4): the ten partition types of a |
| 10 | /// 64x64 block, indexed by the context the blocks above and left give. |
| 11 | /// `default_partition_cdf`'s last four contexts (entropymode.c:154, the |
| 12 | /// `AOM_CDF8` rows): the `BLOCK_128X128` root's alphabet is |
| 13 | /// `EXT_PARTITION_TYPES - 2 = 8` -- `PARTITION_HORZ_4`/`_VERT_4` do not exist |
| 14 | /// at 128 (spec `partition_cdf_length`). |
| 15 | pub const PARTITION_W128: = |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | ; |
| 21 | |
| 22 | /// Default CDF table `PARTITION_W64` (AV1 spec 9.4 initial probabilities). |
| 23 | pub const PARTITION_W64: = |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 | |
| 29 | |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | ; |
| 37 | |
| 38 | /// `Default_Skip_Cdf` (spec 9.4): indexed by how many of the blocks above |
| 39 | /// and left were skipped. |
| 40 | /// `default_txfm_partition_cdf` (entropymode.c): an inter block's |
| 41 | /// `txfm_split` flag (spec 5.11.17 `read_var_tx_size`), indexed by |
| 42 | /// `txfm_partition_context` -- `category * 3 + above + left`, 21 contexts. |
| 43 | pub const TXFM_PARTITION: = |
| 44 | |
| 45 | |
| 46 | |
| 47 | |
| 48 | |
| 49 | |
| 50 | |
| 51 | |
| 52 | |
| 53 | |
| 54 | |
| 55 | |
| 56 | |
| 57 | |
| 58 | |
| 59 | |
| 60 | |
| 61 | |
| 62 | |
| 63 | |
| 64 | |
| 65 | ; |
| 66 | |
| 67 | /// Default CDF table `SKIP` (AV1 spec 9.4 initial probabilities). |
| 68 | pub const SKIP: = ; |
| 69 | |
| 70 | /// `Default_Intra_Frame_Y_Mode_Cdf` (spec 9.4): the thirteen luma intra |
| 71 | /// modes of a key frame, indexed by the mode context of the block above and |
| 72 | /// then of the block to the left. |
| 73 | pub const KF_Y_MODE: = |
| 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 | /// `Default_Uv_Mode_Cdf` (spec 9.4) for blocks where chroma from luma is not |
| 187 | /// allowed: the thirteen chroma intra modes, indexed by the luma mode. |
| 188 | pub const UV_MODE_NO_CFL: = |
| 189 | |
| 190 | |
| 191 | |
| 192 | |
| 193 | |
| 194 | |
| 195 | |
| 196 | |
| 197 | |
| 198 | |
| 199 | |
| 200 | |
| 201 | |
| 202 | |
| 203 | |
| 204 | |
| 205 | |
| 206 | |
| 207 | |
| 208 | |
| 209 | |
| 210 | |
| 211 | |
| 212 | |
| 213 | |
| 214 | |
| 215 | |
| 216 | |
| 217 | |
| 218 | |
| 219 | |
| 220 | |
| 221 | |
| 222 | |
| 223 | |
| 224 | |
| 225 | |
| 226 | |
| 227 | |
| 228 | |
| 229 | |
| 230 | |
| 231 | |
| 232 | |
| 233 | |
| 234 | |
| 235 | |
| 236 | |
| 237 | |
| 238 | ; |
| 239 | |
| 240 | // The coefficient CDFs below are the q-context-2 tables (`base_q_idx` 61..=120, |
| 241 | // spec 8.3.2's `Default_..._Cdf[2]`), which is the context the frames this |
| 242 | // crate writes today sit in. The other three sets arrive with the rate control |
| 243 | // that can leave that band. |
| 244 | |
| 245 | /// `Default_Txb_Skip_Cdf[2][4][0]` (spec 9.4): the all-zero flag of a 64x64 |
| 246 | /// luma transform block whose block size is the transform size, so its |
| 247 | /// context is 0. |
| 248 | pub const TXB_SKIP_LUMA_64: = ; |
| 249 | |
| 250 | /// `Default_Txb_Skip_Cdf[2][3][7]` (spec 9.4): the all-zero flag of a 32x32 |
| 251 | /// chroma transform block that covers its whole plane block with no coded |
| 252 | /// neighbour, which is context 7. |
| 253 | pub const TXB_SKIP_CHROMA_32_NONE: = ; |
| 254 | |
| 255 | /// `Default_Eob_Pt_1024_Cdf[2][0][0]` (spec 9.4): the end-of-block position |
| 256 | /// token of a luma transform block with 1024 coded coefficient positions — |
| 257 | /// what a 64x64 transform has, since only its top-left 32x32 is coded. |
| 258 | pub const EOB_PT_1024_LUMA: = |
| 259 | |
| 260 | ; |
| 261 | |
| 262 | /// `Default_Coeff_Base_Eob_Cdf[2][4][0][0]` (spec 9.4): the level of the last |
| 263 | /// coefficient of a 64x64 luma transform block, less one, when that |
| 264 | /// coefficient is the DC. |
| 265 | pub const COEFF_BASE_EOB_LUMA_64_DC: = ; |
| 266 | |
| 267 | /// `av1_default_eob_multi512_cdfs[2][0][0]` (`token_cdfs.h:829-906`, |
| 268 | /// lane-rectwire): the end-of-block group of a luma transform with 512 coded |
| 269 | /// positions -- what a true 32x16/16x32 rectangular transform has |
| 270 | /// (`txsize_log2_minus4` = 5, `common_data.h:346`), distinct from |
| 271 | /// [`EOB_PT_1024_LUMA`]'s 1024-position group a *square* 32x32 reads. |
| 272 | pub const EOB_PT_512_LUMA: = |
| 273 | |
| 274 | ; |
| 275 | /// [`EOB_PT_512_LUMA`], q-context 0 (`base_q_idx` 0..=20). |
| 276 | pub const EOB_PT_512_LUMA_Q0: = |
| 277 | |
| 278 | ; |
| 279 | /// [`EOB_PT_512_LUMA`], q-context 1 (`base_q_idx` 21..=60). |
| 280 | pub const EOB_PT_512_LUMA_Q1: = |
| 281 | |
| 282 | ; |
| 283 | /// [`EOB_PT_512_LUMA`], q-context 3 (`base_q_idx` 121..=255). |
| 284 | pub const EOB_PT_512_LUMA_Q3: = |
| 285 | |
| 286 | ; |
| 287 | |
| 288 | /// `av1_default_eob_multi128_cdfs[2][1][0]` (`token_cdfs.h:829-906`, |
| 289 | /// lane-rectwire): the end-of-block group of a chroma transform with 128 |
| 290 | /// coded positions -- what a true 16x8/8x16 rectangular transform has |
| 291 | /// (`txsize_log2_minus4` = 3), distinct from [`EOB_PT_256_CHROMA`]'s |
| 292 | /// 256-position group a *square* 16x16 reads. |
| 293 | pub const EOB_PT_128_CHROMA: = |
| 294 | |
| 295 | ; |
| 296 | /// [`EOB_PT_128_CHROMA`], q-context 0. |
| 297 | pub const EOB_PT_128_CHROMA_Q0: = |
| 298 | |
| 299 | ; |
| 300 | /// [`EOB_PT_128_CHROMA`], q-context 1. |
| 301 | pub const EOB_PT_128_CHROMA_Q1: = |
| 302 | |
| 303 | ; |
| 304 | /// [`EOB_PT_128_CHROMA`], q-context 3. |
| 305 | pub const EOB_PT_128_CHROMA_Q3: = |
| 306 | |
| 307 | ; |
| 308 | |
| 309 | /// `av1_default_eob_multi128_cdfs[2][0][0]` (`token_cdfs.h:830-849`, |
| 310 | /// lane-rectx): the end-of-block group of a LUMA transform with 128 coded |
| 311 | /// positions -- what a true 16x8/8x16 rectangular transform has |
| 312 | /// (`decode_leaf_rect`'s own leaf, one level below [`EOB_PT_512_LUMA`]'s |
| 313 | /// 32x16/16x32), distinct from [`EOB_PT_256_LUMA`]'s 256-position group a |
| 314 | /// *square* 16x16 reads. Read straight from the plane-0 half of the same |
| 315 | /// `token_cdfs.h` table [`EOB_PT_128_CHROMA`] reads its plane-1 half from. |
| 316 | pub const EOB_PT_128_LUMA: = |
| 317 | |
| 318 | ; |
| 319 | /// [`EOB_PT_128_LUMA`], q-context 0. |
| 320 | pub const EOB_PT_128_LUMA_Q0: = |
| 321 | |
| 322 | ; |
| 323 | /// [`EOB_PT_128_LUMA`], q-context 1. |
| 324 | pub const EOB_PT_128_LUMA_Q1: = |
| 325 | |
| 326 | ; |
| 327 | /// [`EOB_PT_128_LUMA`], q-context 3. |
| 328 | pub const EOB_PT_128_LUMA_Q3: = |
| 329 | |
| 330 | ; |
| 331 | |
| 332 | /// `av1_default_eob_multi32_cdfs[2][1][0]` (`token_cdfs.h:792-808`, |
| 333 | /// lane-rectx): the end-of-block group of a CHROMA transform with 32 coded |
| 334 | /// positions -- what a true 8x4/4x8 rectangular transform has (the chroma |
| 335 | /// plane of a [`decode_leaf_rect`] 16x8/8x16 luma strip), distinct from |
| 336 | /// [`EOB_PT_16_CHROMA`]'s 16-position group a *square* 4x4 reads. |
| 337 | pub const EOB_PT_32_CHROMA: = ; |
| 338 | /// [`EOB_PT_32_CHROMA`], q-context 0. |
| 339 | pub const EOB_PT_32_CHROMA_Q0: = ; |
| 340 | /// [`EOB_PT_32_CHROMA`], q-context 1. |
| 341 | pub const EOB_PT_32_CHROMA_Q1: = ; |
| 342 | /// [`EOB_PT_32_CHROMA`], q-context 3. |
| 343 | pub const EOB_PT_32_CHROMA_Q3: = ; |
| 344 | |
| 345 | /// `av1_default_eob_multi512_cdfs[2][1][0]` (`token_cdfs.h:874-901`, |
| 346 | /// lane-part32 r4): the end-of-block group of a CHROMA transform with 512 |
| 347 | /// coded positions -- what a 32x16/16x32 chroma transform has (the chroma |
| 348 | /// plane of an intra `PARTITION_HORZ`/`VERT` 64x32/32x64 superblock strip, |
| 349 | /// whose luma coefficients truncate to the 64x64-superblock's own 32x32 |
| 350 | /// corner-scan (`TxbSet::Luma64`) but whose *chroma* plane, at 32x16, is |
| 351 | /// small enough that no truncation applies). |
| 352 | /// |
| 353 | /// lane-sbpart originally transcribed the `[1][1]` row -- the |
| 354 | /// `TX_CLASS_HORIZ`/`VERT` (1D) sibling, whose default IS the flat |
| 355 | /// `3277, 6554, ...` ramp at every q-context -- and wrote that flatness into |
| 356 | /// this comment as a property of the whole table. The 2D row this decoder |
| 357 | /// actually reads is q-dependent like every other `EOB_PT_*` family, so a |
| 358 | /// real `--cq-level=45` stream (q-context 3) read the wrong CDF and desynced |
| 359 | /// the tile at the first 32x16 chroma transform of the first SB-level |
| 360 | /// HORZ/VERT strip. |
| 361 | pub const EOB_PT_512_CHROMA: = |
| 362 | |
| 363 | ; |
| 364 | /// [`EOB_PT_512_CHROMA`], q-context 0 (`base_q_idx` 0..=20). |
| 365 | pub const EOB_PT_512_CHROMA_Q0: = |
| 366 | |
| 367 | ; |
| 368 | /// [`EOB_PT_512_CHROMA`], q-context 1 (`base_q_idx` 21..=60). |
| 369 | pub const EOB_PT_512_CHROMA_Q1: = |
| 370 | |
| 371 | ; |
| 372 | /// [`EOB_PT_512_CHROMA`], q-context 3 (`base_q_idx` 121..=255). |
| 373 | pub const EOB_PT_512_CHROMA_Q3: = |
| 374 | |
| 375 | ; |
| 376 | |
| 377 | /// `Default_Dc_Sign_Cdf[2][0]` (spec 9.4): the sign of a luma DC coefficient, |
| 378 | /// indexed by whether the neighbouring blocks' DC signs lean negative (1), |
| 379 | /// positive (2) or neither (0). |
| 380 | pub const DC_SIGN_LUMA: = ; |
| 381 | |
| 382 | /// `Default_Partition_W32_Cdf` (spec 9.4): the ten partition types of a |
| 383 | /// 32x32 block, indexed by the context the blocks above and left give. |
| 384 | pub const PARTITION_W32: = |
| 385 | |
| 386 | |
| 387 | |
| 388 | |
| 389 | |
| 390 | |
| 391 | |
| 392 | |
| 393 | |
| 394 | |
| 395 | |
| 396 | |
| 397 | ; |
| 398 | |
| 399 | /// `Default_Uv_Mode_Cfl_Allowed_Cdf` (spec 9.4): the fourteen chroma intra |
| 400 | /// modes — the thirteen the CFL-free table has, plus chroma from luma — |
| 401 | /// indexed by the luma mode of the same block. A block of 32x32 or smaller is |
| 402 | /// offered CFL, so it reads this table where a 64x64 block reads |
| 403 | /// [`UV_MODE_NO_CFL`]. |
| 404 | pub const UV_MODE_CFL: = |
| 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 | /// `Default_Cfl_Sign_Cdf` (spec 9.4): the joint sign of a `UV_CFL_PRED` |
| 459 | /// block's U/V alpha (spec 5.11.45's `cfl_alpha_signs`) — libaom's |
| 460 | /// `default_cfl_sign_cdf` (entropymode.c), whose `AOM_CDF8(a0..a6)` arguments |
| 461 | /// are this convention's cumulative points verbatim (only the *storage*, not |
| 462 | /// the spec's own table, is `AOM_ICDF`-inverted). |
| 463 | pub const CFL_SIGN: = ; |
| 464 | |
| 465 | /// `default_filter_intra_cdfs` (entropymode.c), the `use_filter_intra` flag's |
| 466 | /// prior, indexed by block-size class: `[0]`=4x4, `[1]`=8x8, `[2]`=16x16, |
| 467 | /// `[3]`=32x32 -- the only square sizes `av1_filter_intra_allowed_bsize` |
| 468 | /// (width and height both <=32) ever offers this decoder's square blocks. |
| 469 | /// `[4]`/`[5]` (lane-intradisp r1) add `BLOCK_32X16`/`BLOCK_16X32`'s own rows |
| 470 | /// (12756/14301, `default_filter_intra_cdfs` index 8/7) -- the two rect |
| 471 | /// strips `PARTITION_HORZ`/`PARTITION_VERT` decode, each with its own |
| 472 | /// distinct default probability from every square class above. |
| 473 | /// `[6]`/`[7]` (lane-rectx r3) add `BLOCK_16X8`/`BLOCK_8X16`'s own rows |
| 474 | /// (9394/12551, `default_filter_intra_cdfs` index 5/4) -- the 16x8/8x16 |
| 475 | /// strips [`crate::decode`]'s `decode_leaf_rect` codes. Missing them meant |
| 476 | /// the flag was never read at that size at all (libaom reads it for every |
| 477 | /// DC_PRED block whose sides are both <= 32), so every DC_PRED 16x8 strip |
| 478 | /// dropped one symbol and desynced the tile from that block on. |
| 479 | /// `[8]`/`[9]` (lane-fi8 r1) add `BLOCK_4X8`/`BLOCK_8X4`'s own rows |
| 480 | /// (6743/5893, `default_filter_intra_cdfs` index 1/2) -- the sub-8 rect |
| 481 | /// leaves [`crate::decode`]'s `decode_leaf_rect8` codes. Both are inside |
| 482 | /// `av1_filter_intra_allowed_bsize`, so the flag is written for every DC_PRED |
| 483 | /// one of them; before this round that read took `BLOCK_4X4`'s row (class 0), |
| 484 | /// the same value with a different interval (class `wrong-alphabet-same-value` |
| 485 | /// / `cdf-row-held-constant`). |
| 486 | /// `[10]`/`[11]` (lane-fi32x8 r1) add `BLOCK_32X8`/`BLOCK_8X32`'s own rows |
| 487 | /// (18101/20229, `default_filter_intra_cdfs` index 19/18 -- generated by |
| 488 | /// `scripts/extract-filter-intra-cdfs.py`): the four 32x8 (or 8x32) strips a |
| 489 | /// 32x32-level `PARTITION_HORZ_4`/`VERT_4` codes are inside |
| 490 | /// `av1_filter_intra_allowed_bsize`'s "both sides <= 32" bound, so libaom |
| 491 | /// reads `use_filter_intra` there too and the missing rows dropped the |
| 492 | /// symbol on every DC_PRED 1:4 strip. |
| 493 | pub const FILTER_INTRA: = |
| 494 | |
| 495 | |
| 496 | |
| 497 | |
| 498 | |
| 499 | |
| 500 | |
| 501 | |
| 502 | |
| 503 | |
| 504 | |
| 505 | |
| 506 | |
| 507 | |
| 508 | |
| 509 | |
| 510 | |
| 511 | |
| 512 | ; |
| 513 | /// `default_filter_intra_mode_cdf` (entropymode.c): which of the five |
| 514 | /// `FILTER_INTRA_MODES` a `use_filter_intra` block picks. |
| 515 | pub const FILTER_INTRA_MODE: = ; |
| 516 | |
| 517 | /// `default_palette_y_size_cdf` (entropymode.c): `PALETTE_SIZES` (2..=8), |
| 518 | /// indexed by `av1_get_palette_bsize_ctx` (0..=6, `PALATTE_BSIZE_CTXS`). |
| 519 | pub const PALETTE_Y_SIZE: = |
| 520 | |
| 521 | |
| 522 | |
| 523 | |
| 524 | |
| 525 | |
| 526 | |
| 527 | ; |
| 528 | /// `default_palette_uv_size_cdf` (entropymode.c): as [`PALETTE_Y_SIZE`], for |
| 529 | /// the chroma plane's own palette size. |
| 530 | pub const PALETTE_UV_SIZE: = |
| 531 | |
| 532 | |
| 533 | |
| 534 | |
| 535 | |
| 536 | |
| 537 | |
| 538 | ; |
| 539 | /// `default_palette_y_mode_cdf` (entropymode.c): whether a `DC_PRED` block |
| 540 | /// uses a palette, indexed `[bsize_ctx][palette_mode_ctx]` |
| 541 | /// (`palette_mode_ctx` from `av1_get_palette_mode_ctx` -- this decoder never |
| 542 | /// completes a decode with a nonzero neighbour `palette_size`, so only row |
| 543 | /// `[.][0]` is ever read, but the whole table is here to match libaom's |
| 544 | /// adaptation shape exactly). |
| 545 | pub const PALETTE_Y_MODE: = |
| 546 | |
| 547 | |
| 548 | |
| 549 | |
| 550 | |
| 551 | |
| 552 | |
| 553 | ; |
| 554 | /// `default_palette_uv_mode_cdf` (entropymode.c): whether a `UV_DC_PRED` |
| 555 | /// block uses a chroma palette, indexed by `palette_uv_mode_ctx` (whether |
| 556 | /// this block's own luma palette was used -- always 0 here, see |
| 557 | /// [`PALETTE_Y_MODE`]'s doc). |
| 558 | pub const PALETTE_UV_MODE: = ; |
| 559 | /// `default_palette_y_color_index_cdf` (entropymode.c): the per-pixel colour |
| 560 | /// index symbol for a palette-Y block, indexed `[n-2][color_ctx]` where `n` |
| 561 | /// is the block's palette size (2..=8, `PALETTE_SIZES`) and `color_ctx` is |
| 562 | /// `av1_get_palette_color_index_context`'s 0..=4 output |
| 563 | /// (`PALETTE_COLOR_INDEX_CONTEXTS`). Each row is transcribed straight from |
| 564 | /// its `AOM_CDFn` macro (`n-1` raw probs, then `32768, 0`) and zero-padded |
| 565 | /// out to width 9 (the `n=8` row's real length); the call site slices |
| 566 | /// `[..=n]`, which only ever touches the real prefix, so the trailing zero |
| 567 | /// padding on shorter rows is never read. |
| 568 | pub const PALETTE_Y_COLOR_INDEX: = |
| 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 | /// `default_palette_uv_color_index_cdf` (entropymode.c): as |
| 620 | /// [`PALETTE_Y_COLOR_INDEX`], for the chroma colour-index map. |
| 621 | pub const PALETTE_UV_COLOR_INDEX: = |
| 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 | /// `default_intrabc_cdf` (entropymode.c): the `use_intrabc` flag on an |
| 673 | /// intra frame with `allow_intrabc` set. |
| 674 | pub const INTRABC: = ; |
| 675 | /// `default_wiener_restore_cdf` (entropymode.c): a `RESTORE_WIENER`-plane |
| 676 | /// LR unit's own `use_wiener` flag (spec 5.11.57 `read_lr_unit`). |
| 677 | pub const RESTORE_WIENER: = ; |
| 678 | /// `default_sgrproj_restore_cdf`: a `RESTORE_SGRPROJ`-plane LR unit's own |
| 679 | /// `use_sgrproj` flag. |
| 680 | pub const RESTORE_SGRPROJ: = ; |
| 681 | /// `default_switchable_restore_cdf`: a `RESTORE_SWITCHABLE`-plane LR unit's |
| 682 | /// own `restoration_type` (3-way: `RESTORE_NONE`/`RESTORE_WIENER`/ |
| 683 | /// `RESTORE_SGRPROJ`). |
| 684 | pub const RESTORE_SWITCHABLE: = ; |
| 685 | |
| 686 | /// `default_delta_q_cdf` (entropymode.c:840-852, lane-realworld r4): the |
| 687 | /// 4-symbol `delta_q_abs` alphabet read once per superblock when |
| 688 | /// `delta_q_present` is set. `default_delta_lf_cdf`/`default_delta_lf_multi_cdf` |
| 689 | /// share this same value (verified against libaom's real source). |
| 690 | /// `Default_Segment_Id_Cdf` (spec 9.4, libaom |
| 691 | /// `default_spatial_pred_seg_tree_cdf`): the `segment_id` symbol's eight |
| 692 | /// segments, indexed by the spec 5.11.8 neighbour-agreement context. |
| 693 | pub const SEGMENT_ID: = |
| 694 | |
| 695 | |
| 696 | |
| 697 | ; |
| 698 | |
| 699 | /// `Default_Segment_Pred_Cdf` (spec 9.4, libaom `default_segment_pred_cdf`): |
| 700 | /// `seg_id_predicted`, indexed by `AboveSegPredContext + LeftSegPredContext`. |
| 701 | pub const SEGMENT_PRED: = ; |
| 702 | |
| 703 | /// Default CDF table `DELTA_Q` (AV1 spec 9.4 initial probabilities). |
| 704 | pub const DELTA_Q: = ; |
| 705 | /// `default_delta_lf_cdf` -- see [`DELTA_Q`]'s doc. |
| 706 | pub const DELTA_LF: = DELTA_Q; |
| 707 | |
| 708 | /// `default_tx_size_cdf[0]` (entropymode.c): an 8x8 block's `tx_depth` flag |
| 709 | /// (`TX8` vs `TX4`), indexed by `tx_size_context` (0..=2). |
| 710 | pub const TX_SIZE_CAT0: = ; |
| 711 | /// `default_tx_size_cdf[1]` (entropymode.c): a 16x16 block's `tx_depth` |
| 712 | /// (`TX16`/`TX8`/`TX4`), indexed by `tx_size_context`. |
| 713 | pub const TX_SIZE_CAT1: = |
| 714 | |
| 715 | |
| 716 | |
| 717 | ; |
| 718 | /// `default_tx_size_cdf[2]` (entropymode.c): a 32x32 block's `tx_depth` |
| 719 | /// (`TX32`/`TX16`/`TX8`), indexed by `tx_size_context`. |
| 720 | pub const TX_SIZE_CAT2: = |
| 721 | |
| 722 | |
| 723 | |
| 724 | ; |
| 725 | /// `default_tx_size_cdf[3]` (entropymode.c): a 64x64 block's `tx_depth` |
| 726 | /// (`TX64`/`TX32`/`TX16`), indexed by `tx_size_context`. |
| 727 | pub const TX_SIZE_CAT3: = |
| 728 | |
| 729 | |
| 730 | |
| 731 | ; |
| 732 | |
| 733 | /// `default_switchable_interp_cdf` (spec 9.4): a `SWITCHABLE`-filter frame's |
| 734 | /// per-block `interp_filter[dir]` (spec 5.11.20's `read_interpolation_filter`, |
| 735 | /// three symbols -- `EIGHTTAP`/`EIGHTTAP_SMOOTH`/`EIGHTTAP_SHARP`, `BILINEAR` |
| 736 | /// is never chosen this way), indexed by `av1_get_pred_context_switchable_interp`'s |
| 737 | /// `ctx_offset + dir * INTER_FILTER_DIR_OFFSET + neighbour_term` |
| 738 | /// (`INTER_FILTER_DIR_OFFSET` = 8; this decoder never codes a compound |
| 739 | /// reference, so `ctx_offset` -- `INTER_FILTER_COMP_OFFSET` on a second |
| 740 | /// reference frame -- is always 0, leaving rows 0..=3 for `dir` 0 and 8..=11 |
| 741 | /// for `dir` 1). |
| 742 | pub const SWITCHABLE_INTERP: = |
| 743 | |
| 744 | |
| 745 | |
| 746 | |
| 747 | |
| 748 | |
| 749 | |
| 750 | |
| 751 | |
| 752 | |
| 753 | |
| 754 | |
| 755 | |
| 756 | |
| 757 | |
| 758 | |
| 759 | ; |
| 760 | |
| 761 | /// `Default_Cfl_Alpha_Cdf` (spec 9.4): a `UV_CFL_PRED` block's per-plane |
| 762 | /// alpha magnitude (spec 5.11.45's `cfl_alpha_u`/`cfl_alpha_v`), indexed by |
| 763 | /// the joint sign's context (`CFL_CONTEXT_U`/`CFL_CONTEXT_V`, |
| 764 | /// libaom's cfl.h) — libaom's `default_cfl_alpha_cdf`. |
| 765 | pub const CFL_ALPHA: = |
| 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 | /// `Default_Txb_Skip_Cdf[2][3][0]` (spec 9.4): the all-zero flag of a 32x32 |
| 793 | /// luma transform block that covers its whole plane block, which is context 0. |
| 794 | pub const TXB_SKIP_LUMA_32: = ; |
| 795 | |
| 796 | /// `Default_Coeff_Base_Cdf[2][3][0]` (spec 9.4): the level of a coefficient |
| 797 | /// of a 32x32 luma transform block, capped at three, for each of the |
| 798 | /// forty-two contexts its neighbours' magnitudes and its own position give. |
| 799 | pub const COEFF_BASE_LUMA_32: = |
| 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 | /// `Default_Coeff_Br_Cdf[2][3][0]` (spec 9.4): a base-range increment in a |
| 845 | /// 32x32 luma transform block, for each of the twenty-one contexts. |
| 846 | pub const COEFF_BR_LUMA_32: = |
| 847 | |
| 848 | |
| 849 | |
| 850 | |
| 851 | |
| 852 | |
| 853 | |
| 854 | |
| 855 | |
| 856 | |
| 857 | |
| 858 | |
| 859 | |
| 860 | |
| 861 | |
| 862 | |
| 863 | |
| 864 | |
| 865 | |
| 866 | |
| 867 | |
| 868 | ; |
| 869 | |
| 870 | /// `Default_Coeff_Base_Eob_Cdf[2][3][0]` (spec 9.4): the level of the last |
| 871 | /// coefficient of a 32x32 luma transform block, less one, for each of the |
| 872 | /// four contexts its position in the scan gives. |
| 873 | pub const COEFF_BASE_EOB_LUMA_32: = |
| 874 | |
| 875 | |
| 876 | |
| 877 | |
| 878 | ; |
| 879 | |
| 880 | /// `Default_Eob_Extra_Cdf[2][3][0]` (spec 9.4): the top bit of the offset |
| 881 | /// into an end-of-block position group, for each group. |
| 882 | pub const EOB_EXTRA_LUMA_32: = |
| 883 | |
| 884 | |
| 885 | |
| 886 | |
| 887 | |
| 888 | |
| 889 | |
| 890 | |
| 891 | |
| 892 | ; |
| 893 | |
| 894 | /// `Av1_Nz_Map_Ctx_Offset` for a 32x32 transform (the position term of the |
| 895 | /// coefficient-level context, spec 8.3.2): row and column clamped to four. |
| 896 | pub const NZ_MAP_CTX_OFFSET_32: = |
| 897 | |
| 898 | |
| 899 | |
| 900 | |
| 901 | |
| 902 | ; |
| 903 | |
| 904 | /// `Av1_Nz_Map_Ctx_Offset[TX_32X64]` (libaom `txb_common.c` |
| 905 | /// `av1_nz_map_ctx_offset_32x64`, row and column clamped to four): the real |
| 906 | /// 32-wide/64-tall transform's own table, used when a superblock-level |
| 907 | /// `PARTITION_VERT` strip's luma corner is read through [`NZ_MAP_CTX_OFFSET_32`]'s |
| 908 | /// scan/CDF-set but the *un-adjusted* block shape (spec `get_txsize_entropy_ctx` |
| 909 | /// resolves the CDF *set* to `TX_64X64`, but `get_nz_map_ctx_from_stats` still |
| 910 | /// indexes this position table by the raw, un-adjusted `tx_size` -- lane-sbpart |
| 911 | /// r8 root cause) is genuinely rectangular, not square. Distinct from |
| 912 | /// [`NZ_MAP_CTX_OFFSET_32`] starting at `(row=1, col=0)`. |
| 913 | // lane-part32 r3: this table was TRANSPOSED (row/col swapped) as landed by |
| 914 | // lane-sbpart r8 -- caught by tracing a real aomenc pin against a patched |
| 915 | // aomdec (added per-symbol `EC_TRACE_COEFF` ctx prints to |
| 916 | // `read_coeffs_reverse{,_2d}` in `~/.cache/aom-oracle`), which showed our own |
| 917 | // `(row=2, col=0)` reading ctx-offset 11 where the real decoder's equivalent |
| 918 | // position read 6. Re-derived straight from libaom's own generating |
| 919 | // comment in `get_nz_map_ctx_from_stats` (`txb_common.h:199-210`): for |
| 920 | // `width < height` (this table, `TX_32X64`), ctx is `11 +` for `row < 2` |
| 921 | // *regardless of col* -- the old table instead special-cased `col < 2`, |
| 922 | // which is the `width > height` (`TX_64X32`) branch. Confirmed against the |
| 923 | // real `av1_nz_map_ctx_offset_32x64`/`_64x32` C arrays in |
| 924 | // `av1/common/txb_common.c`, decoded through libaom's own col-major |
| 925 | // `pos = col*32+row` raster (same convention [`SCAN_32X16`]'s doc comment |
| 926 | // already documents this decoder transcribes out of). |
| 927 | pub const NZ_MAP_CTX_OFFSET_32X64: = |
| 928 | |
| 929 | |
| 930 | |
| 931 | |
| 932 | |
| 933 | ; |
| 934 | |
| 935 | /// [`NZ_MAP_CTX_OFFSET_32X64`]'s `TX_64X32` counterpart (libaom |
| 936 | /// `av1_nz_map_ctx_offset_64x32`): a `PARTITION_HORZ` strip's luma corner. |
| 937 | /// `width > height` here, so the `col < 2` branch (offset 16) fires |
| 938 | /// regardless of row -- transpose of [`NZ_MAP_CTX_OFFSET_32X64`]'s `row < 2` |
| 939 | /// branch, same r3 fix (see that table's doc comment). |
| 940 | pub const NZ_MAP_CTX_OFFSET_64X32: = |
| 941 | |
| 942 | |
| 943 | |
| 944 | |
| 945 | |
| 946 | ; |
| 947 | |
| 948 | /// `Default_Txb_Skip_Cdf[2][2][7..10]` (spec 9.4): the all-zero flag of a |
| 949 | /// 16x16 chroma transform block that covers its whole plane block, for the |
| 950 | /// three contexts its coded neighbours give. |
| 951 | pub const TXB_SKIP_CHROMA_16: = |
| 952 | ; |
| 953 | |
| 954 | /// `Default_Coeff_Base_Cdf[2][2][1]` (spec 9.4): the level of a coefficient |
| 955 | /// of a 16x16 chroma transform block, capped at three, for each of the |
| 956 | /// forty-two contexts its neighbours and its position give. |
| 957 | pub const COEFF_BASE_CHROMA_16: = |
| 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 | /// `Default_Coeff_Br_Cdf[2][2][1]` (spec 9.4): a base-range increment in a |
| 1003 | /// 16x16 chroma transform block, for each of its twenty-one contexts. |
| 1004 | pub const COEFF_BR_CHROMA_16: = |
| 1005 | |
| 1006 | |
| 1007 | |
| 1008 | |
| 1009 | |
| 1010 | |
| 1011 | |
| 1012 | |
| 1013 | |
| 1014 | |
| 1015 | |
| 1016 | |
| 1017 | |
| 1018 | |
| 1019 | |
| 1020 | |
| 1021 | |
| 1022 | |
| 1023 | |
| 1024 | |
| 1025 | |
| 1026 | ; |
| 1027 | |
| 1028 | /// `Default_Coeff_Base_Eob_Cdf[2][2][1]` (spec 9.4): the level of the last |
| 1029 | /// coefficient of a 16x16 chroma transform block, less one, for each of the |
| 1030 | /// four contexts its position in the scan gives. |
| 1031 | pub const COEFF_BASE_EOB_CHROMA_16: = |
| 1032 | |
| 1033 | |
| 1034 | |
| 1035 | |
| 1036 | ; |
| 1037 | |
| 1038 | /// `Default_Eob_Extra_Cdf[2][2][1]` (spec 9.4): the top bit of the offset |
| 1039 | /// into an end-of-block position group of a 16x16 chroma transform block. |
| 1040 | pub const EOB_EXTRA_CHROMA_16: = |
| 1041 | |
| 1042 | |
| 1043 | |
| 1044 | |
| 1045 | |
| 1046 | |
| 1047 | |
| 1048 | |
| 1049 | |
| 1050 | ; |
| 1051 | |
| 1052 | /// `Default_Eob_Pt_256_Cdf[2][1][0]` (spec 9.4): the end-of-block group of a |
| 1053 | /// 256-coefficient chroma transform block with a two-dimensional transform. |
| 1054 | pub const EOB_PT_256_CHROMA: = |
| 1055 | |
| 1056 | ; |
| 1057 | |
| 1058 | /// `Default_Dc_Sign_Cdf[2][1]` (spec 9.4): the sign of a chroma DC |
| 1059 | /// coefficient, indexed the way [`DC_SIGN_LUMA`] is. |
| 1060 | pub const DC_SIGN_CHROMA: = ; |
| 1061 | |
| 1062 | /// `Default_Angle_Delta_Cdf` (spec 9.4): the offset a directional intra mode |
| 1063 | /// is steered by, seven symbols from -3 to +3, one row per directional mode in |
| 1064 | /// the order they follow `V_PRED`. |
| 1065 | pub const ANGLE_DELTA: = |
| 1066 | |
| 1067 | |
| 1068 | |
| 1069 | |
| 1070 | |
| 1071 | |
| 1072 | |
| 1073 | |
| 1074 | ; |
| 1075 | /// `Default_Coeff_Base_Cdf[2][4][0]` (spec 9.4): the level of a coefficient of a 64x64 luma |
| 1076 | /// transform block, capped at three, for each of the forty-two contexts its neighbours and its |
| 1077 | /// position give. |
| 1078 | pub const COEFF_BASE_LUMA_64: = |
| 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 | /// `Default_Coeff_Base_Eob_Cdf[2][4][0]` (spec 9.4): the level of the last coefficient of a |
| 1124 | /// 64x64 luma transform block, less one, for each of the four contexts its position gives. |
| 1125 | pub const COEFF_BASE_EOB_LUMA_64: = |
| 1126 | |
| 1127 | |
| 1128 | |
| 1129 | |
| 1130 | ; |
| 1131 | |
| 1132 | /// `Default_Eob_Extra_Cdf[2][4][0]` (spec 9.4): the top bit of the end-of-block position of a |
| 1133 | /// 64x64 luma transform block, one context per end-of-block group. |
| 1134 | pub const EOB_EXTRA_LUMA_64: = |
| 1135 | |
| 1136 | |
| 1137 | |
| 1138 | |
| 1139 | |
| 1140 | |
| 1141 | |
| 1142 | |
| 1143 | |
| 1144 | ; |
| 1145 | |
| 1146 | /// `Default_Coeff_Base_Cdf[2][3][1]` (spec 9.4): the level of a coefficient of a 32x32 chroma |
| 1147 | /// transform block, capped at three, for each of the forty-two contexts its neighbours and its |
| 1148 | /// position give. |
| 1149 | pub const COEFF_BASE_CHROMA_32: = |
| 1150 | |
| 1151 | |
| 1152 | |
| 1153 | |
| 1154 | |
| 1155 | |
| 1156 | |
| 1157 | |
| 1158 | |
| 1159 | |
| 1160 | |
| 1161 | |
| 1162 | |
| 1163 | |
| 1164 | |
| 1165 | |
| 1166 | |
| 1167 | |
| 1168 | |
| 1169 | |
| 1170 | |
| 1171 | |
| 1172 | |
| 1173 | |
| 1174 | |
| 1175 | |
| 1176 | |
| 1177 | |
| 1178 | |
| 1179 | |
| 1180 | |
| 1181 | |
| 1182 | |
| 1183 | |
| 1184 | |
| 1185 | |
| 1186 | |
| 1187 | |
| 1188 | |
| 1189 | |
| 1190 | |
| 1191 | |
| 1192 | ; |
| 1193 | |
| 1194 | /// `Default_Coeff_Br_Cdf[2][3][1]` (spec 9.4): the base-range tail of a 32x32 chroma transform |
| 1195 | /// block, for each of the twenty-one contexts its neighbours and its position give. |
| 1196 | pub const COEFF_BR_CHROMA_32: = |
| 1197 | |
| 1198 | |
| 1199 | |
| 1200 | |
| 1201 | |
| 1202 | |
| 1203 | |
| 1204 | |
| 1205 | |
| 1206 | |
| 1207 | |
| 1208 | |
| 1209 | |
| 1210 | |
| 1211 | |
| 1212 | |
| 1213 | |
| 1214 | |
| 1215 | |
| 1216 | |
| 1217 | |
| 1218 | ; |
| 1219 | |
| 1220 | /// `Default_Coeff_Base_Eob_Cdf[2][3][1]` (spec 9.4): the level of the last coefficient of a |
| 1221 | /// 32x32 chroma transform block, less one, for each of the four contexts its position gives. |
| 1222 | pub const COEFF_BASE_EOB_CHROMA_32: = |
| 1223 | |
| 1224 | |
| 1225 | |
| 1226 | |
| 1227 | ; |
| 1228 | |
| 1229 | /// `Default_Eob_Extra_Cdf[2][3][1]` (spec 9.4): the top bit of the end-of-block position of a |
| 1230 | /// 32x32 chroma transform block, one context per end-of-block group. |
| 1231 | pub const EOB_EXTRA_CHROMA_32: = |
| 1232 | |
| 1233 | |
| 1234 | |
| 1235 | |
| 1236 | |
| 1237 | |
| 1238 | |
| 1239 | |
| 1240 | |
| 1241 | ; |
| 1242 | |
| 1243 | /// `Default_Txb_Skip_Cdf[2][3][7..10]` (spec 9.4): the all-zero flag of a 32x32 chroma transform |
| 1244 | /// block that covers its whole plane block, for the three contexts its coded neighbours give. |
| 1245 | pub const TXB_SKIP_CHROMA_32: = |
| 1246 | ; |
| 1247 | |
| 1248 | /// `Default_Eob_Pt_1024_Cdf[2][1][0]` (spec 9.4): the end-of-block group of a |
| 1249 | /// 1024-coefficient chroma transform block with a two-dimensional transform. |
| 1250 | pub const EOB_PT_1024_CHROMA: = |
| 1251 | |
| 1252 | ; |
| 1253 | /// `Default_Txb_Skip_Cdf[2][2][0]`: the all-zero flag of a 16x16 luma transform, whose only context is zero because the transform covers its whole block. |
| 1254 | pub const TXB_SKIP_LUMA_16: = ; |
| 1255 | |
| 1256 | /// `Default_Txb_Skip_Cdf[2][1][7..10]`: the all-zero flag of an 8x8 chroma transform. |
| 1257 | pub const TXB_SKIP_CHROMA_8: = |
| 1258 | ; |
| 1259 | |
| 1260 | /// `Default_Eob_Pt_256_Cdf[2][0][0]`: the end-of-block group of a 16x16 luma transform. |
| 1261 | pub const EOB_PT_256_LUMA: = |
| 1262 | ; |
| 1263 | |
| 1264 | /// `Default_Eob_Pt_64_Cdf[2][1][0]`: the end-of-block group of an 8x8 chroma transform. |
| 1265 | pub const EOB_PT_64_CHROMA: = ; |
| 1266 | |
| 1267 | /// `Default_Eob_Extra_Cdf[2][2][0]`: the top offset bit inside a 16x16 luma transform's end-of-block group. |
| 1268 | pub const EOB_EXTRA_LUMA_16: = |
| 1269 | |
| 1270 | |
| 1271 | |
| 1272 | |
| 1273 | |
| 1274 | |
| 1275 | |
| 1276 | |
| 1277 | |
| 1278 | ; |
| 1279 | |
| 1280 | /// `Default_Eob_Extra_Cdf[2][1][1]`: the same, for an 8x8 chroma transform. |
| 1281 | pub const EOB_EXTRA_CHROMA_8: = |
| 1282 | |
| 1283 | |
| 1284 | |
| 1285 | |
| 1286 | |
| 1287 | |
| 1288 | |
| 1289 | |
| 1290 | |
| 1291 | ; |
| 1292 | |
| 1293 | /// `Default_Coeff_Base_Cdf[2][2][0]`: a 16x16 luma coefficient's base level. |
| 1294 | pub const COEFF_BASE_LUMA_16: = |
| 1295 | |
| 1296 | |
| 1297 | |
| 1298 | |
| 1299 | |
| 1300 | |
| 1301 | |
| 1302 | |
| 1303 | |
| 1304 | |
| 1305 | |
| 1306 | |
| 1307 | |
| 1308 | |
| 1309 | |
| 1310 | |
| 1311 | |
| 1312 | |
| 1313 | |
| 1314 | |
| 1315 | |
| 1316 | |
| 1317 | |
| 1318 | |
| 1319 | |
| 1320 | |
| 1321 | |
| 1322 | |
| 1323 | |
| 1324 | |
| 1325 | |
| 1326 | |
| 1327 | |
| 1328 | |
| 1329 | |
| 1330 | |
| 1331 | |
| 1332 | |
| 1333 | |
| 1334 | |
| 1335 | |
| 1336 | |
| 1337 | ; |
| 1338 | |
| 1339 | /// `Default_Coeff_Base_Cdf[2][1][1]`: an 8x8 chroma coefficient's base level. |
| 1340 | pub const COEFF_BASE_CHROMA_8: = |
| 1341 | |
| 1342 | |
| 1343 | |
| 1344 | |
| 1345 | |
| 1346 | |
| 1347 | |
| 1348 | |
| 1349 | |
| 1350 | |
| 1351 | |
| 1352 | |
| 1353 | |
| 1354 | |
| 1355 | |
| 1356 | |
| 1357 | |
| 1358 | |
| 1359 | |
| 1360 | |
| 1361 | |
| 1362 | |
| 1363 | |
| 1364 | |
| 1365 | |
| 1366 | |
| 1367 | |
| 1368 | |
| 1369 | |
| 1370 | |
| 1371 | |
| 1372 | |
| 1373 | |
| 1374 | |
| 1375 | |
| 1376 | |
| 1377 | |
| 1378 | |
| 1379 | |
| 1380 | |
| 1381 | |
| 1382 | |
| 1383 | ; |
| 1384 | |
| 1385 | /// `Default_Coeff_Base_Eob_Cdf[2][2][0]`: the base level of the last coefficient of a 16x16 luma transform. |
| 1386 | pub const COEFF_BASE_EOB_LUMA_16: = |
| 1387 | |
| 1388 | |
| 1389 | |
| 1390 | |
| 1391 | ; |
| 1392 | |
| 1393 | /// `Default_Coeff_Base_Eob_Cdf[2][1][1]`: the same, for an 8x8 chroma transform. |
| 1394 | pub const COEFF_BASE_EOB_CHROMA_8: = |
| 1395 | |
| 1396 | |
| 1397 | |
| 1398 | |
| 1399 | ; |
| 1400 | |
| 1401 | /// `Default_Coeff_Br_Cdf[2][2][0]`: the base-range tail of a 16x16 luma coefficient. |
| 1402 | pub const COEFF_BR_LUMA_16: = |
| 1403 | |
| 1404 | |
| 1405 | |
| 1406 | |
| 1407 | |
| 1408 | |
| 1409 | |
| 1410 | |
| 1411 | |
| 1412 | |
| 1413 | |
| 1414 | |
| 1415 | |
| 1416 | |
| 1417 | |
| 1418 | |
| 1419 | |
| 1420 | |
| 1421 | |
| 1422 | |
| 1423 | |
| 1424 | ; |
| 1425 | |
| 1426 | /// `Default_Coeff_Br_Cdf[2][1][1]`: the base-range tail of an 8x8 chroma coefficient. |
| 1427 | pub const COEFF_BR_CHROMA_8: = |
| 1428 | |
| 1429 | |
| 1430 | |
| 1431 | |
| 1432 | |
| 1433 | |
| 1434 | |
| 1435 | |
| 1436 | |
| 1437 | |
| 1438 | |
| 1439 | |
| 1440 | |
| 1441 | |
| 1442 | |
| 1443 | |
| 1444 | |
| 1445 | |
| 1446 | |
| 1447 | |
| 1448 | |
| 1449 | ; |
| 1450 | |
| 1451 | /// `Default_Partition_Cdf[0..4]`, `PARTITION_W16` format (spec 5.11.4 codes an |
| 1452 | /// 8x8 block's partition as a 4-symbol read that only ever terminates |
| 1453 | /// `PARTITION_NONE` for this writer -- `PARTITION_SPLIT` is illegal at 8x8, so |
| 1454 | /// row 4 of libaom's real (8-symbol) 8x8 table is dropped and only the shared |
| 1455 | /// leading four symbols, common to every partition-symbol alphabet, are kept. |
| 1456 | pub const PARTITION_W8: = |
| 1457 | |
| 1458 | |
| 1459 | |
| 1460 | |
| 1461 | ; |
| 1462 | |
| 1463 | /// `Default_Partition_Cdf[0..4]`: the partition symbol of a 16x16 block. |
| 1464 | pub const PARTITION_W16: = |
| 1465 | |
| 1466 | |
| 1467 | |
| 1468 | |
| 1469 | |
| 1470 | |
| 1471 | |
| 1472 | |
| 1473 | |
| 1474 | |
| 1475 | |
| 1476 | |
| 1477 | ; |
| 1478 | |
| 1479 | /// The transform type of a 16x16 intra luma transform, as an index into the |
| 1480 | /// spec's `Tx_Type_Intra_Inv_Set2`, indexed by the block's luma mode. |
| 1481 | /// |
| 1482 | /// A 16x16 intra transform is the only size this writer's intra path codes |
| 1483 | /// whose transform-type set holds more than one type: 32x32 and 64x64 are |
| 1484 | /// DCT-only for an *intra* block by spec 5.11.48's `get_tx_set` (its |
| 1485 | /// `txSzSqrUp == TX_32X32` case returns `TX_SET_DCTONLY` only in the |
| 1486 | /// `!is_inter` branch). An `is_inter` 32x32 transform takes the other branch |
| 1487 | /// and reads [`INTER_TX_TYPE_SET3_32`] instead. |
| 1488 | pub const INTRA_TX_TYPE_SET2_16: = |
| 1489 | |
| 1490 | |
| 1491 | |
| 1492 | |
| 1493 | |
| 1494 | |
| 1495 | |
| 1496 | |
| 1497 | |
| 1498 | |
| 1499 | |
| 1500 | |
| 1501 | |
| 1502 | ; |
| 1503 | |
| 1504 | /// `Default_Inter_Ext_Tx_Cdf`'s `TX_SET_INTER_3` row for `TX_32X32` (spec |
| 1505 | /// 9.4): the transform type of an `is_inter` 32x32 luma transform, whose |
| 1506 | /// `get_tx_set` (5.11.48) returns `TX_SET_INTER_3` -- `{IDTX, DCT_DCT}` -- |
| 1507 | /// because `txSzSqrUp == TX_32X32` takes the `is_inter` branch there, unlike |
| 1508 | /// an intra block's, which is DCT-only at that size. The writer only ever |
| 1509 | /// uses DCT_DCT, index one of `Tx_Type_Inter_Inv_Set3`. |
| 1510 | pub const INTER_TX_TYPE_SET3_32: = ; |
| 1511 | |
| 1512 | /// `Default_Inter_Ext_Tx_Cdf`'s `TX_SET_INTER_3` row for `TX_16X16` (spec |
| 1513 | /// 9.4): the transform type of an `is_inter` 16x16 luma transform coded under |
| 1514 | /// `reduced_tx_set` (spec 5.11.48's `use_reduced_set` branch forces |
| 1515 | /// `TX_SET_INTER_3` for every inter size below 32x32, the same two-symbol set |
| 1516 | /// [`INTER_TX_TYPE_SET3_32`] reads at 32x32) -- without `reduced_tx_set` a |
| 1517 | /// 16x16 inter transform reads the twelve-symbol `TX_SET_INTER_2` instead, |
| 1518 | /// which this crate does not carry a table for. The writer only ever uses |
| 1519 | /// DCT_DCT, index one of `Tx_Type_Inter_Inv_Set3`, same as the 32x32 table. |
| 1520 | pub const INTER_TX_TYPE_SET3_16: = ; |
| 1521 | |
| 1522 | /// `Default_Inter_Ext_Tx_Cdf`'s `TX_SET_INTER_3` row for `TX_8X8` (spec 9.4): |
| 1523 | /// the transform type of an `is_inter` 8x8 luma transform under |
| 1524 | /// `reduced_tx_set` -- an 8x8 leaf under a straddling 16x16 block |
| 1525 | /// (lane-av1inter8), the same two-symbol set [`INTER_TX_TYPE_SET3_16`] and |
| 1526 | /// [`INTER_TX_TYPE_SET3_32`] read at their own sizes, just its own default |
| 1527 | /// probability and adaptation state (libaom `entropymode.c`'s |
| 1528 | /// `default_inter_ext_tx_cdf[EXT_TX_SET_DCT_IDTX][TX_8X8]`). |
| 1529 | pub const INTER_TX_TYPE_SET3_8: = ; |
| 1530 | |
| 1531 | /// `Default_Inter_Ext_Tx_Cdf`'s `TX_SET_INTER_2` (`EXT_TX_SET_DTT9_IDTX_1DDCT`) |
| 1532 | /// row for `TX_16X16` (lane-cdffwd2, spec 9.4/5.11.48): the twelve-symbol |
| 1533 | /// transform type of an `is_inter` 16x16 luma transform when `reduced_tx_set |
| 1534 | /// == 0` -- `av1_get_ext_tx_set_type`'s `av1_ext_tx_set_lookup[1][1]`, not |
| 1535 | /// [`INTER_TX_TYPE_SET3_16`]'s two-symbol reduced set (libaom |
| 1536 | /// `entropymode.c` `default_inter_ext_tx_cdf[2][TX_16X16]`). |
| 1537 | pub const INTER_TX_TYPE_SET2_16: = |
| 1538 | |
| 1539 | ; |
| 1540 | |
| 1541 | /// `Default_Inter_Ext_Tx_Cdf`'s `TX_SET_INTER_1` (`EXT_TX_SET_ALL16`) row for |
| 1542 | /// `TX_4X4` (lane-txselect): the sixteen-symbol transform type of an |
| 1543 | /// `is_inter` 4x4 luma transform when `reduced_tx_set == 0` (libaom |
| 1544 | /// `entropymode.c` `default_inter_ext_tx_cdf[1][TX_4X4]`). |
| 1545 | pub const INTER_TX_TYPE_SET1_4: = |
| 1546 | |
| 1547 | |
| 1548 | ; |
| 1549 | |
| 1550 | /// `Default_Inter_Ext_Tx_Cdf`'s `TX_SET_INTER_3` (`EXT_TX_SET_DCT_IDTX`) row |
| 1551 | /// for `TX_4X4` (lane-txselect), the reduced two-symbol counterpart of |
| 1552 | /// [`INTER_TX_TYPE_SET1_4`] (`default_inter_ext_tx_cdf[3][TX_4X4]`). |
| 1553 | pub const INTER_TX_TYPE_SET3_4: = ; |
| 1554 | |
| 1555 | /// `Default_Inter_Ext_Tx_Cdf`'s `TX_SET_INTER_1` (`EXT_TX_SET_ALL16`) row for |
| 1556 | /// `TX_8X8` (lane-cdffwd2): the full sixteen-symbol transform type of an |
| 1557 | /// `is_inter` 8x8 luma transform when `reduced_tx_set == 0` |
| 1558 | /// (`av1_ext_tx_set_lookup[1][0]`, libaom `entropymode.c` |
| 1559 | /// `default_inter_ext_tx_cdf[1][TX_8X8]`). |
| 1560 | pub const INTER_TX_TYPE_SET1_8: = |
| 1561 | |
| 1562 | |
| 1563 | ; |
| 1564 | |
| 1565 | // The inter-frame tables below (spec 9.4) support the syntax an inter block |
| 1566 | // needs: whether it is coded as intra at all, which reference frame and |
| 1567 | // motion vector it takes when it is not. The compound-reference tables |
| 1568 | // (`COMP_MODE`/`COMP_REF_TYPE`/`UNI_COMP_REF`/`COMP_REF`/`COMP_BWDREF` above) |
| 1569 | // read once a frame's `reference_select` header bit is set (lane-av1comp); |
| 1570 | // compound *prediction* itself -- `inter_compound_mode`, compound DRL, the |
| 1571 | // mvstack's dual-ref scan, and distance-weighted MC blending -- is not yet |
| 1572 | // ported, so a block that actually reads `COMPOUND_REFERENCE` still refuses. |
| 1573 | |
| 1574 | /// `default_inter_compound_mode_cdf` (entropymode.c): which of the eight |
| 1575 | /// `INTER_COMPOUND_MODES` (`NEAREST_NEARESTMV`..`NEW_NEWMV`) a compound |
| 1576 | /// block takes, indexed by `av1_mode_context_analyzer`'s `comp_ctx` (spec |
| 1577 | /// 5.11.24's `compound_mode`, libaom's `read_inter_compound_mode`) -- |
| 1578 | /// lane-av1comp, symbol read only, not yet wired into MV assignment or MC. |
| 1579 | pub const INTER_COMPOUND_MODE: = |
| 1580 | |
| 1581 | |
| 1582 | |
| 1583 | |
| 1584 | |
| 1585 | |
| 1586 | |
| 1587 | |
| 1588 | ; |
| 1589 | |
| 1590 | /// `compound_mode_ctx_map` (`mvref_common.h`): folds a compound block's |
| 1591 | /// `new_mv_ctx`/`ref_mv_ctx` pair (row = `ref_mv_ctx >> 1`, column = |
| 1592 | /// `min(new_mv_ctx, COMP_NEWMV_CTXS - 1)`, `COMP_NEWMV_CTXS` = 5) down to |
| 1593 | /// the single `comp_ctx` [`INTER_COMPOUND_MODE`] is indexed by -- |
| 1594 | /// `av1_mode_context_analyzer`'s compound branch. |
| 1595 | pub const COMPOUND_MODE_CTX_MAP: = |
| 1596 | ; |
| 1597 | |
| 1598 | /// `Default_Intra_Inter_Cdf` (spec 9.4): whether an inter frame's block is |
| 1599 | /// coded as intra, indexed by whether the block above and left are inter. |
| 1600 | pub const INTRA_INTER: = |
| 1601 | |
| 1602 | |
| 1603 | |
| 1604 | |
| 1605 | ; |
| 1606 | |
| 1607 | /// `Default_Single_Ref_Cdf` (spec 9.4): the six binary decisions that narrow |
| 1608 | /// an inter block's single reference frame down from the seven it can name, |
| 1609 | /// indexed by the reference context of the blocks around it. |
| 1610 | pub const SINGLE_REF: = |
| 1611 | |
| 1612 | |
| 1613 | |
| 1614 | |
| 1615 | |
| 1616 | |
| 1617 | |
| 1618 | |
| 1619 | |
| 1620 | |
| 1621 | |
| 1622 | |
| 1623 | |
| 1624 | |
| 1625 | |
| 1626 | |
| 1627 | |
| 1628 | |
| 1629 | |
| 1630 | |
| 1631 | |
| 1632 | |
| 1633 | |
| 1634 | |
| 1635 | ; |
| 1636 | |
| 1637 | /// `default_skip_mode_cdfs` (entropymode.c, `SKIP_MODE_CONTEXTS` = 3): whether |
| 1638 | /// a block reads `skip_mode` (forced `NEAREST_NEARESTMV` compound, `skip` |
| 1639 | /// forced true, no residual) -- indexed by `av1_get_skip_mode_context` |
| 1640 | /// (`above.skip_mode + left.skip_mode`, `pred_common.h`), only read when this |
| 1641 | /// frame's own `skip_mode_present` header bit is set and the block is at |
| 1642 | /// least 8x8 both dims (`is_comp_ref_allowed`) -- lane-av1comp. |
| 1643 | pub const SKIP_MODE: = ; |
| 1644 | |
| 1645 | /// `default_obmc_cdf` (spec 9.4): `use_obmc`, by square bsize (`BLOCK_8X8`, |
| 1646 | /// `BLOCK_16X16`, `BLOCK_32X32`, `BLOCK_64X64` -- `BLOCK_SIZES_ALL` indices |
| 1647 | /// 3/6/9/12, the only sizes this decoder ever codes). Read only once |
| 1648 | /// `motion_mode_allowed` (spec 5.11.24's `read_motion_mode`) offers |
| 1649 | /// `OBMC_CAUSAL` rather than `WARPED_CAUSAL` -- lane-motionmode round 1 |
| 1650 | /// never reaches the three-way `motion_mode_cdf`, see `decode.rs`. |
| 1651 | pub const OBMC: = |
| 1652 | |
| 1653 | |
| 1654 | |
| 1655 | |
| 1656 | |
| 1657 | |
| 1658 | |
| 1659 | |
| 1660 | |
| 1661 | |
| 1662 | |
| 1663 | |
| 1664 | |
| 1665 | |
| 1666 | |
| 1667 | |
| 1668 | |
| 1669 | |
| 1670 | |
| 1671 | |
| 1672 | |
| 1673 | |
| 1674 | |
| 1675 | |
| 1676 | |
| 1677 | |
| 1678 | |
| 1679 | |
| 1680 | ; |
| 1681 | |
| 1682 | /// `default_motion_mode_cdf` (spec 9.4, `entropymode.c`), the square-bsize |
| 1683 | /// rows only (`BLOCK_8X8`/`16X16`/`32X32`/`64X64` -- indices 3/6/9/12 of |
| 1684 | /// libaom's `BLOCK_SIZES_ALL`, same square subset [`OBMC`] keeps): the |
| 1685 | /// 3-symbol `SIMPLE_TRANSLATION`/`OBMC_CAUSAL`/`WARPED_CAUSAL` alphabet |
| 1686 | /// `read_motion_mode` reads instead of [`OBMC`] whenever `motion_mode_allowed` |
| 1687 | /// (spec 5.11.24) resolves to `WARPED_CAUSAL`-eligible (`num_proj_ref >= 1` |
| 1688 | /// under `allow_warped_motion`) -- lane-warp round 1. |
| 1689 | pub const MOTION_MODE: = |
| 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 | /// `default_interintra_cdf` (spec 9.4): `interintra`, indexed by |
| 1719 | /// `size_group_lookup[bsize]` (0..=3) -- read only when the sequence header's |
| 1720 | /// `enable_interintra_compound` is set and `is_interintra_allowed(mbmi)` |
| 1721 | /// holds (single-ref, `BLOCK_8X8..=BLOCK_32X32`, mode `NEARESTMV..NEWMV`); |
| 1722 | /// lane-sb128 r3: consuming this symbol (even always-refused on `interintra |
| 1723 | /// == 1`) is required to stay bit-aligned with every later block once the |
| 1724 | /// sequence header turns the tool on -- see decode.rs's own read site. |
| 1725 | pub const INTERINTRA: = |
| 1726 | |
| 1727 | |
| 1728 | |
| 1729 | |
| 1730 | ; |
| 1731 | |
| 1732 | /// `default_interintra_mode_cdf` (spec 9.4): `interintra_mode` (II_DC/II_V/ |
| 1733 | /// II_H/II_SMOOTH), indexed by `size_group_lookup[bsize]`, read right after |
| 1734 | /// `interintra == 1` (lane-interintra r1). |
| 1735 | pub const INTERINTRA_MODE: = |
| 1736 | |
| 1737 | |
| 1738 | |
| 1739 | |
| 1740 | ; |
| 1741 | |
| 1742 | /// `default_wedge_interintra_cdf` (spec 9.4): `wedge_interintra`, indexed by |
| 1743 | /// bsize over `BLOCK_SIZES_ALL` -- read for every interintra block whose |
| 1744 | /// size `av1_is_wedge_used` allows (the 8x8..32x32 family), REGARDLESS of |
| 1745 | /// the sequence header's `enable_interintra_wedge` bit (libaom |
| 1746 | /// decodemv.c:1548 gates on block size alone; the seq bit constrains only |
| 1747 | /// the encoder). |
| 1748 | pub const WEDGE_INTERINTRA: = |
| 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 | /// `default_compound_type_cdf` (spec 9.4, libaom `entropymode.c`): |
| 1774 | /// `compound_type` (`MASKED_COMPOUND_TYPES` == 2: `COMPOUND_WEDGE` vs |
| 1775 | /// `COMPOUND_DIFFWTD`), indexed by bsize over `BLOCK_SIZES_ALL`, read only |
| 1776 | /// on the `comp_group_idx == 1` (masked-compound) path -- lane-maskcomp. |
| 1777 | pub const COMPOUND_TYPE: = |
| 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 | /// `default_wedge_idx_cdf` (spec 9.4, libaom `entropymode.c`): `wedge_index` |
| 1803 | /// (16-ary, `MAX_WEDGE_TYPES`), indexed by bsize over `BLOCK_SIZES_ALL` -- |
| 1804 | /// read only when `interinter_comp.type == COMPOUND_WEDGE` (lane-maskcomp). |
| 1805 | pub const WEDGE_IDX: = |
| 1806 | |
| 1807 | |
| 1808 | |
| 1809 | |
| 1810 | |
| 1811 | |
| 1812 | |
| 1813 | |
| 1814 | |
| 1815 | |
| 1816 | |
| 1817 | |
| 1818 | |
| 1819 | |
| 1820 | |
| 1821 | |
| 1822 | |
| 1823 | |
| 1824 | |
| 1825 | |
| 1826 | |
| 1827 | |
| 1828 | |
| 1829 | |
| 1830 | |
| 1831 | |
| 1832 | |
| 1833 | |
| 1834 | |
| 1835 | |
| 1836 | |
| 1837 | |
| 1838 | |
| 1839 | |
| 1840 | |
| 1841 | |
| 1842 | |
| 1843 | |
| 1844 | |
| 1845 | |
| 1846 | |
| 1847 | |
| 1848 | |
| 1849 | |
| 1850 | |
| 1851 | |
| 1852 | |
| 1853 | |
| 1854 | |
| 1855 | |
| 1856 | |
| 1857 | |
| 1858 | |
| 1859 | |
| 1860 | |
| 1861 | |
| 1862 | |
| 1863 | |
| 1864 | |
| 1865 | |
| 1866 | |
| 1867 | |
| 1868 | |
| 1869 | |
| 1870 | |
| 1871 | |
| 1872 | |
| 1873 | |
| 1874 | |
| 1875 | |
| 1876 | |
| 1877 | |
| 1878 | |
| 1879 | |
| 1880 | |
| 1881 | |
| 1882 | |
| 1883 | |
| 1884 | |
| 1885 | |
| 1886 | |
| 1887 | |
| 1888 | |
| 1889 | |
| 1890 | |
| 1891 | |
| 1892 | |
| 1893 | |
| 1894 | ; |
| 1895 | |
| 1896 | /// `Default_Comp_Mode_Cdf` (spec 9.4, `default_comp_inter_cdf`): whether an |
| 1897 | /// inter block reads `SINGLE_REFERENCE` or `COMPOUND_REFERENCE` -- only |
| 1898 | /// reached once `read_ref_frames` knows the frame's `reference_select` |
| 1899 | /// header bit made the choice per-block instead of fixing it, indexed by |
| 1900 | /// `av1_get_reference_mode_context` (lane-av1comp). |
| 1901 | pub const COMP_MODE: = |
| 1902 | |
| 1903 | |
| 1904 | |
| 1905 | |
| 1906 | |
| 1907 | ; |
| 1908 | |
| 1909 | /// `Default_Comp_Ref_Type_Cdf` (spec 9.4, `default_comp_ref_type_cdf`): |
| 1910 | /// unidirectional vs. bidirectional compound reference pair, indexed by |
| 1911 | /// `av1_get_comp_reference_type_context`. |
| 1912 | pub const COMP_REF_TYPE: = |
| 1913 | |
| 1914 | |
| 1915 | |
| 1916 | |
| 1917 | |
| 1918 | ; |
| 1919 | |
| 1920 | /// `Default_Comp_Group_Idx_Cdf` (spec 9.4, libaom `default_comp_group_idx_cdfs`): |
| 1921 | /// whether a compound block's `comp_group_idx` picks masked compound (`1`) |
| 1922 | /// over the plain distance-weighted/simple-average blend (`0`), indexed by |
| 1923 | /// `get_comp_group_idx_context` -- only read when `seq.enable_masked_compound` |
| 1924 | /// and the block size is masked-compound-eligible (lane-av1comp). |
| 1925 | pub const COMP_GROUP_IDX: = |
| 1926 | |
| 1927 | |
| 1928 | |
| 1929 | |
| 1930 | |
| 1931 | |
| 1932 | ; |
| 1933 | |
| 1934 | /// `Default_Compound_Idx_Cdf` (spec 9.4, libaom `default_compound_idx_cdfs`): |
| 1935 | /// whether a compound block's `compound_idx` picks the simple average |
| 1936 | /// (`1`) or [`crate::compound::dist_wtd_comp_weight_assign`]'s distance |
| 1937 | /// weights (`0`), indexed by `get_comp_index_context` -- only read when |
| 1938 | /// `seq.enable_jnt_comp` (lane-av1comp). |
| 1939 | pub const COMPOUND_IDX: = |
| 1940 | |
| 1941 | |
| 1942 | |
| 1943 | |
| 1944 | |
| 1945 | |
| 1946 | ; |
| 1947 | |
| 1948 | /// `Default_Uni_Comp_Ref_Cdf` (spec 9.4, `default_uni_comp_ref_cdf`): the |
| 1949 | /// three binary decisions narrowing a unidirectional compound pair down to |
| 1950 | /// one of `{BWDREF,ALTREF}`/`{LAST,LAST2}`/`{LAST,LAST3}`/`{LAST,GOLDEN}`. |
| 1951 | pub const UNI_COMP_REF: = |
| 1952 | |
| 1953 | |
| 1954 | |
| 1955 | ; |
| 1956 | |
| 1957 | /// `Default_Comp_Ref_Cdf` (spec 9.4, `default_comp_ref_cdf`): the three |
| 1958 | /// binary decisions narrowing a bidirectional pair's forward reference. |
| 1959 | pub const COMP_REF: = |
| 1960 | |
| 1961 | |
| 1962 | |
| 1963 | ; |
| 1964 | |
| 1965 | /// `Default_Comp_Bwdref_Cdf` (spec 9.4, `default_comp_bwdref_cdf`): the two |
| 1966 | /// binary decisions narrowing a bidirectional pair's backward reference. |
| 1967 | pub const COMP_BWDREF: = |
| 1968 | |
| 1969 | |
| 1970 | |
| 1971 | ; |
| 1972 | |
| 1973 | /// `Default_Y_Mode_Cdf` (spec 9.4): the thirteen luma intra modes of an inter |
| 1974 | /// frame's intra block, indexed by the block's size group -- unlike a key |
| 1975 | /// frame's [`KF_Y_MODE`], which is indexed by the neighbours' modes instead. |
| 1976 | pub const Y_MODE: = |
| 1977 | |
| 1978 | |
| 1979 | |
| 1980 | |
| 1981 | |
| 1982 | |
| 1983 | |
| 1984 | |
| 1985 | |
| 1986 | |
| 1987 | |
| 1988 | |
| 1989 | |
| 1990 | |
| 1991 | |
| 1992 | |
| 1993 | ; |
| 1994 | |
| 1995 | /// `Default_New_Mv_Cdf` (spec 9.4): whether an inter block's motion vector is |
| 1996 | /// coded explicitly rather than taken from a neighbour, indexed by how many |
| 1997 | /// neighbours already chose a new vector. |
| 1998 | pub const NEW_MV: = |
| 1999 | |
| 2000 | |
| 2001 | |
| 2002 | |
| 2003 | |
| 2004 | |
| 2005 | ; |
| 2006 | |
| 2007 | /// `Default_Zero_Mv_Cdf` (spec 9.4): whether an inter block's motion vector is |
| 2008 | /// the zero vector, indexed by whether the block's global motion type is |
| 2009 | /// identity. |
| 2010 | pub const ZERO_MV: = ; |
| 2011 | |
| 2012 | /// `Default_Ref_Mv_Cdf` (spec 9.4): which of the block's reference motion |
| 2013 | /// vector candidates it takes, indexed by how many candidates are available. |
| 2014 | pub const REF_MV: = |
| 2015 | |
| 2016 | |
| 2017 | |
| 2018 | |
| 2019 | |
| 2020 | |
| 2021 | ; |
| 2022 | |
| 2023 | /// `Default_Drl_Mode_Cdf` (spec 9.4): the dynamic reference list index a |
| 2024 | /// block's motion vector prediction is drawn from, indexed by the list's |
| 2025 | /// context. |
| 2026 | pub const DRL_MODE: = ; |
| 2027 | |
| 2028 | // The motion vector tables below (spec 9.4's `Default_Mv_*`) are the shared |
| 2029 | // defaults for both components of a vector: [`crate::cdf_state::Cdfs`] holds |
| 2030 | // one owned copy of each per component, seeded from the same constant here, |
| 2031 | // since the spec's default state does not distinguish them -- only adaptation |
| 2032 | // does, once a tile has coded a few vectors. |
| 2033 | |
| 2034 | /// `Default_Mv_Joint_Cdf` (spec 9.4): which of a motion vector's two |
| 2035 | /// components change at all. |
| 2036 | pub const MV_JOINT: = ; |
| 2037 | |
| 2038 | /// `Default_Mv_Class_Cdf` (spec 9.4): the magnitude class of one motion |
| 2039 | /// vector component. |
| 2040 | pub const MV_CLASS: = |
| 2041 | |
| 2042 | ; |
| 2043 | |
| 2044 | /// `Default_Mv_Class0_Bit_Cdf` (spec 9.4): the integer bit of a small-class |
| 2045 | /// motion vector's magnitude. |
| 2046 | pub const MV_CLASS0_BIT: = ; |
| 2047 | |
| 2048 | /// `Default_Mv_Class0_Fr_Cdf` (spec 9.4): the fractional part of a |
| 2049 | /// small-class motion vector's magnitude, indexed by its integer bit. |
| 2050 | pub const MV_CLASS0_FR: = |
| 2051 | |
| 2052 | |
| 2053 | ; |
| 2054 | |
| 2055 | /// `Default_Mv_Class0_Hp_Cdf` (spec 9.4): the half-pel bit of a small-class |
| 2056 | /// motion vector's magnitude. |
| 2057 | pub const MV_CLASS0_HP: = ; |
| 2058 | |
| 2059 | /// `Default_Mv_Bit_Cdf` (spec 9.4): one bit of a motion vector's integer |
| 2060 | /// magnitude above the small-class range, indexed by the bit's position. |
| 2061 | pub const MV_BIT: = |
| 2062 | |
| 2063 | |
| 2064 | |
| 2065 | |
| 2066 | |
| 2067 | |
| 2068 | |
| 2069 | |
| 2070 | |
| 2071 | |
| 2072 | ; |
| 2073 | |
| 2074 | /// `Default_Mv_Fr_Cdf` (spec 9.4): the fractional part of a motion vector's |
| 2075 | /// magnitude, outside the small-class range. |
| 2076 | pub const MV_FR: = ; |
| 2077 | |
| 2078 | /// `Default_Mv_Hp_Cdf` (spec 9.4): the half-pel bit of a motion vector's |
| 2079 | /// magnitude, outside the small-class range. |
| 2080 | pub const MV_HP: = ; |
| 2081 | |
| 2082 | /// `Default_Mv_Sign_Cdf` (spec 9.4): the sign of a motion vector component. |
| 2083 | pub const MV_SIGN: = ; |
| 2084 | |
| 2085 | // q-context 0/1/3 coefficient CDFs (spec 9.4's `Default_..._Cdf[0]`, |
| 2086 | // `[1]` and `[3]`), auto-derived from the same libaom `token_cdfs.h` the |
| 2087 | // q-context-2 tables above were transcribed from, and checked by reproducing |
| 2088 | // every q-context-2 table above byte-for-byte with the same indexing before |
| 2089 | // generating these (see the lane report for the check). |
| 2090 | |
| 2091 | // q-context 0: base_q_idx 0..=20. |
| 2092 | |
| 2093 | /// TXB_SKIP_LUMA_64, q-context 0: the same table as [`TXB_SKIP_LUMA_64`], for `base_q_idx` 0..=20. |
| 2094 | pub const TXB_SKIP_LUMA_64_Q0: = ; |
| 2095 | /// TXB_SKIP_LUMA_32, q-context 0: the same table as [`TXB_SKIP_LUMA_32`], for `base_q_idx` 0..=20. |
| 2096 | pub const TXB_SKIP_LUMA_32_Q0: = ; |
| 2097 | /// TXB_SKIP_LUMA_16, q-context 0: the same table as [`TXB_SKIP_LUMA_16`], for `base_q_idx` 0..=20. |
| 2098 | pub const TXB_SKIP_LUMA_16_Q0: = ; |
| 2099 | /// TXB_SKIP_CHROMA_8, q-context 0: the same table as [`TXB_SKIP_CHROMA_8`], for `base_q_idx` 0..=20. |
| 2100 | pub const TXB_SKIP_CHROMA_8_Q0: = |
| 2101 | ; |
| 2102 | /// TXB_SKIP_CHROMA_16, q-context 0: the same table as [`TXB_SKIP_CHROMA_16`], for `base_q_idx` 0..=20. |
| 2103 | pub const TXB_SKIP_CHROMA_16_Q0: = |
| 2104 | ; |
| 2105 | /// TXB_SKIP_CHROMA_32, q-context 0: the same table as [`TXB_SKIP_CHROMA_32`], for `base_q_idx` 0..=20. |
| 2106 | pub const TXB_SKIP_CHROMA_32_Q0: = |
| 2107 | ; |
| 2108 | /// EOB_EXTRA_LUMA_16, q-context 0: the same table as [`EOB_EXTRA_LUMA_16`], for `base_q_idx` 0..=20. |
| 2109 | pub const EOB_EXTRA_LUMA_16_Q0: = |
| 2110 | |
| 2111 | |
| 2112 | |
| 2113 | |
| 2114 | |
| 2115 | |
| 2116 | |
| 2117 | |
| 2118 | |
| 2119 | ; |
| 2120 | /// EOB_EXTRA_LUMA_32, q-context 0: the same table as [`EOB_EXTRA_LUMA_32`], for `base_q_idx` 0..=20. |
| 2121 | pub const EOB_EXTRA_LUMA_32_Q0: = |
| 2122 | |
| 2123 | |
| 2124 | |
| 2125 | |
| 2126 | |
| 2127 | |
| 2128 | |
| 2129 | |
| 2130 | |
| 2131 | ; |
| 2132 | /// EOB_EXTRA_LUMA_64, q-context 0: the same table as [`EOB_EXTRA_LUMA_64`], for `base_q_idx` 0..=20. |
| 2133 | pub const EOB_EXTRA_LUMA_64_Q0: = |
| 2134 | |
| 2135 | |
| 2136 | |
| 2137 | |
| 2138 | |
| 2139 | |
| 2140 | |
| 2141 | |
| 2142 | |
| 2143 | ; |
| 2144 | /// EOB_EXTRA_CHROMA_8, q-context 0: the same table as [`EOB_EXTRA_CHROMA_8`], for `base_q_idx` 0..=20. |
| 2145 | pub const EOB_EXTRA_CHROMA_8_Q0: = |
| 2146 | |
| 2147 | |
| 2148 | |
| 2149 | |
| 2150 | |
| 2151 | |
| 2152 | |
| 2153 | |
| 2154 | |
| 2155 | ; |
| 2156 | /// EOB_EXTRA_CHROMA_16, q-context 0: the same table as [`EOB_EXTRA_CHROMA_16`], for `base_q_idx` 0..=20. |
| 2157 | pub const EOB_EXTRA_CHROMA_16_Q0: = |
| 2158 | |
| 2159 | |
| 2160 | |
| 2161 | |
| 2162 | |
| 2163 | |
| 2164 | |
| 2165 | |
| 2166 | |
| 2167 | ; |
| 2168 | /// EOB_EXTRA_CHROMA_32, q-context 0: the same table as [`EOB_EXTRA_CHROMA_32`], for `base_q_idx` 0..=20. |
| 2169 | pub const EOB_EXTRA_CHROMA_32_Q0: = |
| 2170 | |
| 2171 | |
| 2172 | |
| 2173 | |
| 2174 | |
| 2175 | |
| 2176 | |
| 2177 | |
| 2178 | |
| 2179 | ; |
| 2180 | /// EOB_PT_1024_LUMA, q-context 0: the same table as [`EOB_PT_1024_LUMA`], for `base_q_idx` 0..=20. |
| 2181 | pub const EOB_PT_1024_LUMA_Q0: = |
| 2182 | |
| 2183 | ; |
| 2184 | /// EOB_PT_1024_CHROMA, q-context 0: the same table as [`EOB_PT_1024_CHROMA`], for `base_q_idx` 0..=20. |
| 2185 | pub const EOB_PT_1024_CHROMA_Q0: = |
| 2186 | |
| 2187 | ; |
| 2188 | /// EOB_PT_256_LUMA, q-context 0: the same table as [`EOB_PT_256_LUMA`], for `base_q_idx` 0..=20. |
| 2189 | pub const EOB_PT_256_LUMA_Q0: = |
| 2190 | ; |
| 2191 | /// EOB_PT_256_CHROMA, q-context 0: the same table as [`EOB_PT_256_CHROMA`], for `base_q_idx` 0..=20. |
| 2192 | pub const EOB_PT_256_CHROMA_Q0: = |
| 2193 | ; |
| 2194 | /// EOB_PT_64_CHROMA, q-context 0: the same table as [`EOB_PT_64_CHROMA`], for `base_q_idx` 0..=20. |
| 2195 | pub const EOB_PT_64_CHROMA_Q0: = ; |
| 2196 | /// COEFF_BASE_LUMA_16, q-context 0: the same table as [`COEFF_BASE_LUMA_16`], for `base_q_idx` 0..=20. |
| 2197 | pub const COEFF_BASE_LUMA_16_Q0: = |
| 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 | /// COEFF_BASE_LUMA_32, q-context 0: the same table as [`COEFF_BASE_LUMA_32`], for `base_q_idx` 0..=20. |
| 2242 | pub const COEFF_BASE_LUMA_32_Q0: = |
| 2243 | |
| 2244 | |
| 2245 | |
| 2246 | |
| 2247 | |
| 2248 | |
| 2249 | |
| 2250 | |
| 2251 | |
| 2252 | |
| 2253 | |
| 2254 | |
| 2255 | |
| 2256 | |
| 2257 | |
| 2258 | |
| 2259 | |
| 2260 | |
| 2261 | |
| 2262 | |
| 2263 | |
| 2264 | |
| 2265 | |
| 2266 | |
| 2267 | |
| 2268 | |
| 2269 | |
| 2270 | |
| 2271 | |
| 2272 | |
| 2273 | |
| 2274 | |
| 2275 | |
| 2276 | |
| 2277 | |
| 2278 | |
| 2279 | |
| 2280 | |
| 2281 | |
| 2282 | |
| 2283 | |
| 2284 | |
| 2285 | ; |
| 2286 | /// COEFF_BASE_LUMA_64, q-context 0: the same table as [`COEFF_BASE_LUMA_64`], for `base_q_idx` 0..=20. |
| 2287 | pub const COEFF_BASE_LUMA_64_Q0: = |
| 2288 | |
| 2289 | |
| 2290 | |
| 2291 | |
| 2292 | |
| 2293 | |
| 2294 | |
| 2295 | |
| 2296 | |
| 2297 | |
| 2298 | |
| 2299 | |
| 2300 | |
| 2301 | |
| 2302 | |
| 2303 | |
| 2304 | |
| 2305 | |
| 2306 | |
| 2307 | |
| 2308 | |
| 2309 | |
| 2310 | |
| 2311 | |
| 2312 | |
| 2313 | |
| 2314 | |
| 2315 | |
| 2316 | |
| 2317 | |
| 2318 | |
| 2319 | |
| 2320 | |
| 2321 | |
| 2322 | |
| 2323 | |
| 2324 | |
| 2325 | |
| 2326 | |
| 2327 | |
| 2328 | |
| 2329 | |
| 2330 | ; |
| 2331 | /// COEFF_BASE_CHROMA_8, q-context 0: the same table as [`COEFF_BASE_CHROMA_8`], for `base_q_idx` 0..=20. |
| 2332 | pub const COEFF_BASE_CHROMA_8_Q0: = |
| 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 | /// COEFF_BASE_CHROMA_16, q-context 0: the same table as [`COEFF_BASE_CHROMA_16`], for `base_q_idx` 0..=20. |
| 2377 | pub const COEFF_BASE_CHROMA_16_Q0: = |
| 2378 | |
| 2379 | |
| 2380 | |
| 2381 | |
| 2382 | |
| 2383 | |
| 2384 | |
| 2385 | |
| 2386 | |
| 2387 | |
| 2388 | |
| 2389 | |
| 2390 | |
| 2391 | |
| 2392 | |
| 2393 | |
| 2394 | |
| 2395 | |
| 2396 | |
| 2397 | |
| 2398 | |
| 2399 | |
| 2400 | |
| 2401 | |
| 2402 | |
| 2403 | |
| 2404 | |
| 2405 | |
| 2406 | |
| 2407 | |
| 2408 | |
| 2409 | |
| 2410 | |
| 2411 | |
| 2412 | |
| 2413 | |
| 2414 | |
| 2415 | |
| 2416 | |
| 2417 | |
| 2418 | |
| 2419 | |
| 2420 | ; |
| 2421 | /// COEFF_BASE_CHROMA_32, q-context 0: the same table as [`COEFF_BASE_CHROMA_32`], for `base_q_idx` 0..=20. |
| 2422 | pub const COEFF_BASE_CHROMA_32_Q0: = |
| 2423 | |
| 2424 | |
| 2425 | |
| 2426 | |
| 2427 | |
| 2428 | |
| 2429 | |
| 2430 | |
| 2431 | |
| 2432 | |
| 2433 | |
| 2434 | |
| 2435 | |
| 2436 | |
| 2437 | |
| 2438 | |
| 2439 | |
| 2440 | |
| 2441 | |
| 2442 | |
| 2443 | |
| 2444 | |
| 2445 | |
| 2446 | |
| 2447 | |
| 2448 | |
| 2449 | |
| 2450 | |
| 2451 | |
| 2452 | |
| 2453 | |
| 2454 | |
| 2455 | |
| 2456 | |
| 2457 | |
| 2458 | |
| 2459 | |
| 2460 | |
| 2461 | |
| 2462 | |
| 2463 | |
| 2464 | |
| 2465 | ; |
| 2466 | /// COEFF_BR_LUMA_16, q-context 0: the same table as [`COEFF_BR_LUMA_16`], for `base_q_idx` 0..=20. |
| 2467 | pub const COEFF_BR_LUMA_16_Q0: = |
| 2468 | |
| 2469 | |
| 2470 | |
| 2471 | |
| 2472 | |
| 2473 | |
| 2474 | |
| 2475 | |
| 2476 | |
| 2477 | |
| 2478 | |
| 2479 | |
| 2480 | |
| 2481 | |
| 2482 | |
| 2483 | |
| 2484 | |
| 2485 | |
| 2486 | |
| 2487 | |
| 2488 | |
| 2489 | ; |
| 2490 | /// COEFF_BR_LUMA_32, q-context 0: the same table as [`COEFF_BR_LUMA_32`], for `base_q_idx` 0..=20. |
| 2491 | pub const COEFF_BR_LUMA_32_Q0: = |
| 2492 | |
| 2493 | |
| 2494 | |
| 2495 | |
| 2496 | |
| 2497 | |
| 2498 | |
| 2499 | |
| 2500 | |
| 2501 | |
| 2502 | |
| 2503 | |
| 2504 | |
| 2505 | |
| 2506 | |
| 2507 | |
| 2508 | |
| 2509 | |
| 2510 | |
| 2511 | |
| 2512 | |
| 2513 | ; |
| 2514 | /// COEFF_BR_CHROMA_8, q-context 0: the same table as [`COEFF_BR_CHROMA_8`], for `base_q_idx` 0..=20. |
| 2515 | pub const COEFF_BR_CHROMA_8_Q0: = |
| 2516 | |
| 2517 | |
| 2518 | |
| 2519 | |
| 2520 | |
| 2521 | |
| 2522 | |
| 2523 | |
| 2524 | |
| 2525 | |
| 2526 | |
| 2527 | |
| 2528 | |
| 2529 | |
| 2530 | |
| 2531 | |
| 2532 | |
| 2533 | |
| 2534 | |
| 2535 | |
| 2536 | |
| 2537 | ; |
| 2538 | /// COEFF_BR_CHROMA_16, q-context 0: the same table as [`COEFF_BR_CHROMA_16`], for `base_q_idx` 0..=20. |
| 2539 | pub const COEFF_BR_CHROMA_16_Q0: = |
| 2540 | |
| 2541 | |
| 2542 | |
| 2543 | |
| 2544 | |
| 2545 | |
| 2546 | |
| 2547 | |
| 2548 | |
| 2549 | |
| 2550 | |
| 2551 | |
| 2552 | |
| 2553 | |
| 2554 | |
| 2555 | |
| 2556 | |
| 2557 | |
| 2558 | |
| 2559 | |
| 2560 | |
| 2561 | ; |
| 2562 | /// COEFF_BR_CHROMA_32, q-context 0: the same table as [`COEFF_BR_CHROMA_32`], for `base_q_idx` 0..=20. |
| 2563 | pub const COEFF_BR_CHROMA_32_Q0: = |
| 2564 | |
| 2565 | |
| 2566 | |
| 2567 | |
| 2568 | |
| 2569 | |
| 2570 | |
| 2571 | |
| 2572 | |
| 2573 | |
| 2574 | |
| 2575 | |
| 2576 | |
| 2577 | |
| 2578 | |
| 2579 | |
| 2580 | |
| 2581 | |
| 2582 | |
| 2583 | |
| 2584 | |
| 2585 | ; |
| 2586 | /// COEFF_BASE_EOB_LUMA_16, q-context 0: the same table as [`COEFF_BASE_EOB_LUMA_16`], for `base_q_idx` 0..=20. |
| 2587 | pub const COEFF_BASE_EOB_LUMA_16_Q0: = |
| 2588 | |
| 2589 | |
| 2590 | |
| 2591 | |
| 2592 | ; |
| 2593 | /// COEFF_BASE_EOB_LUMA_32, q-context 0: the same table as [`COEFF_BASE_EOB_LUMA_32`], for `base_q_idx` 0..=20. |
| 2594 | pub const COEFF_BASE_EOB_LUMA_32_Q0: = |
| 2595 | |
| 2596 | |
| 2597 | |
| 2598 | |
| 2599 | ; |
| 2600 | /// COEFF_BASE_EOB_LUMA_64, q-context 0: the same table as [`COEFF_BASE_EOB_LUMA_64`], for `base_q_idx` 0..=20. |
| 2601 | pub const COEFF_BASE_EOB_LUMA_64_Q0: = |
| 2602 | |
| 2603 | |
| 2604 | |
| 2605 | |
| 2606 | ; |
| 2607 | /// COEFF_BASE_EOB_CHROMA_8, q-context 0: the same table as [`COEFF_BASE_EOB_CHROMA_8`], for `base_q_idx` 0..=20. |
| 2608 | pub const COEFF_BASE_EOB_CHROMA_8_Q0: = |
| 2609 | |
| 2610 | |
| 2611 | |
| 2612 | |
| 2613 | ; |
| 2614 | /// COEFF_BASE_EOB_CHROMA_16, q-context 0: the same table as [`COEFF_BASE_EOB_CHROMA_16`], for `base_q_idx` 0..=20. |
| 2615 | pub const COEFF_BASE_EOB_CHROMA_16_Q0: = |
| 2616 | |
| 2617 | |
| 2618 | |
| 2619 | |
| 2620 | ; |
| 2621 | /// COEFF_BASE_EOB_CHROMA_32, q-context 0: the same table as [`COEFF_BASE_EOB_CHROMA_32`], for `base_q_idx` 0..=20. |
| 2622 | pub const COEFF_BASE_EOB_CHROMA_32_Q0: = |
| 2623 | |
| 2624 | |
| 2625 | |
| 2626 | |
| 2627 | ; |
| 2628 | |
| 2629 | // q-context 1: base_q_idx 21..=60. |
| 2630 | |
| 2631 | /// TXB_SKIP_LUMA_64, q-context 1: the same table as [`TXB_SKIP_LUMA_64`], for `base_q_idx` 21..=60. |
| 2632 | pub const TXB_SKIP_LUMA_64_Q1: = ; |
| 2633 | /// TXB_SKIP_LUMA_32, q-context 1: the same table as [`TXB_SKIP_LUMA_32`], for `base_q_idx` 21..=60. |
| 2634 | pub const TXB_SKIP_LUMA_32_Q1: = ; |
| 2635 | /// TXB_SKIP_LUMA_16, q-context 1: the same table as [`TXB_SKIP_LUMA_16`], for `base_q_idx` 21..=60. |
| 2636 | pub const TXB_SKIP_LUMA_16_Q1: = ; |
| 2637 | /// TXB_SKIP_CHROMA_8, q-context 1: the same table as [`TXB_SKIP_CHROMA_8`], for `base_q_idx` 21..=60. |
| 2638 | pub const TXB_SKIP_CHROMA_8_Q1: = |
| 2639 | ; |
| 2640 | /// TXB_SKIP_CHROMA_16, q-context 1: the same table as [`TXB_SKIP_CHROMA_16`], for `base_q_idx` 21..=60. |
| 2641 | pub const TXB_SKIP_CHROMA_16_Q1: = |
| 2642 | ; |
| 2643 | /// TXB_SKIP_CHROMA_32, q-context 1: the same table as [`TXB_SKIP_CHROMA_32`], for `base_q_idx` 21..=60. |
| 2644 | pub const TXB_SKIP_CHROMA_32_Q1: = |
| 2645 | ; |
| 2646 | /// EOB_EXTRA_LUMA_16, q-context 1: the same table as [`EOB_EXTRA_LUMA_16`], for `base_q_idx` 21..=60. |
| 2647 | pub const EOB_EXTRA_LUMA_16_Q1: = |
| 2648 | |
| 2649 | |
| 2650 | |
| 2651 | |
| 2652 | |
| 2653 | |
| 2654 | |
| 2655 | |
| 2656 | |
| 2657 | ; |
| 2658 | /// EOB_EXTRA_LUMA_32, q-context 1: the same table as [`EOB_EXTRA_LUMA_32`], for `base_q_idx` 21..=60. |
| 2659 | pub const EOB_EXTRA_LUMA_32_Q1: = |
| 2660 | |
| 2661 | |
| 2662 | |
| 2663 | |
| 2664 | |
| 2665 | |
| 2666 | |
| 2667 | |
| 2668 | |
| 2669 | ; |
| 2670 | /// EOB_EXTRA_LUMA_64, q-context 1: the same table as [`EOB_EXTRA_LUMA_64`], for `base_q_idx` 21..=60. |
| 2671 | pub const EOB_EXTRA_LUMA_64_Q1: = |
| 2672 | |
| 2673 | |
| 2674 | |
| 2675 | |
| 2676 | |
| 2677 | |
| 2678 | |
| 2679 | |
| 2680 | |
| 2681 | ; |
| 2682 | /// EOB_EXTRA_CHROMA_8, q-context 1: the same table as [`EOB_EXTRA_CHROMA_8`], for `base_q_idx` 21..=60. |
| 2683 | pub const EOB_EXTRA_CHROMA_8_Q1: = |
| 2684 | |
| 2685 | |
| 2686 | |
| 2687 | |
| 2688 | |
| 2689 | |
| 2690 | |
| 2691 | |
| 2692 | |
| 2693 | ; |
| 2694 | /// EOB_EXTRA_CHROMA_16, q-context 1: the same table as [`EOB_EXTRA_CHROMA_16`], for `base_q_idx` 21..=60. |
| 2695 | pub const EOB_EXTRA_CHROMA_16_Q1: = |
| 2696 | |
| 2697 | |
| 2698 | |
| 2699 | |
| 2700 | |
| 2701 | |
| 2702 | |
| 2703 | |
| 2704 | |
| 2705 | ; |
| 2706 | /// EOB_EXTRA_CHROMA_32, q-context 1: the same table as [`EOB_EXTRA_CHROMA_32`], for `base_q_idx` 21..=60. |
| 2707 | pub const EOB_EXTRA_CHROMA_32_Q1: = |
| 2708 | |
| 2709 | |
| 2710 | |
| 2711 | |
| 2712 | |
| 2713 | |
| 2714 | |
| 2715 | |
| 2716 | |
| 2717 | ; |
| 2718 | /// EOB_PT_1024_LUMA, q-context 1: the same table as [`EOB_PT_1024_LUMA`], for `base_q_idx` 21..=60. |
| 2719 | pub const EOB_PT_1024_LUMA_Q1: = |
| 2720 | |
| 2721 | ; |
| 2722 | /// EOB_PT_1024_CHROMA, q-context 1: the same table as [`EOB_PT_1024_CHROMA`], for `base_q_idx` 21..=60. |
| 2723 | pub const EOB_PT_1024_CHROMA_Q1: = |
| 2724 | |
| 2725 | ; |
| 2726 | /// EOB_PT_256_LUMA, q-context 1: the same table as [`EOB_PT_256_LUMA`], for `base_q_idx` 21..=60. |
| 2727 | pub const EOB_PT_256_LUMA_Q1: = |
| 2728 | ; |
| 2729 | /// EOB_PT_256_CHROMA, q-context 1: the same table as [`EOB_PT_256_CHROMA`], for `base_q_idx` 21..=60. |
| 2730 | pub const EOB_PT_256_CHROMA_Q1: = |
| 2731 | |
| 2732 | ; |
| 2733 | /// EOB_PT_64_CHROMA, q-context 1: the same table as [`EOB_PT_64_CHROMA`], for `base_q_idx` 21..=60. |
| 2734 | pub const EOB_PT_64_CHROMA_Q1: = ; |
| 2735 | /// COEFF_BASE_LUMA_16, q-context 1: the same table as [`COEFF_BASE_LUMA_16`], for `base_q_idx` 21..=60. |
| 2736 | pub const COEFF_BASE_LUMA_16_Q1: = |
| 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 | /// COEFF_BASE_LUMA_32, q-context 1: the same table as [`COEFF_BASE_LUMA_32`], for `base_q_idx` 21..=60. |
| 2781 | pub const COEFF_BASE_LUMA_32_Q1: = |
| 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 | /// COEFF_BASE_LUMA_64, q-context 1: the same table as [`COEFF_BASE_LUMA_64`], for `base_q_idx` 21..=60. |
| 2826 | pub const COEFF_BASE_LUMA_64_Q1: = |
| 2827 | |
| 2828 | |
| 2829 | |
| 2830 | |
| 2831 | |
| 2832 | |
| 2833 | |
| 2834 | |
| 2835 | |
| 2836 | |
| 2837 | |
| 2838 | |
| 2839 | |
| 2840 | |
| 2841 | |
| 2842 | |
| 2843 | |
| 2844 | |
| 2845 | |
| 2846 | |
| 2847 | |
| 2848 | |
| 2849 | |
| 2850 | |
| 2851 | |
| 2852 | |
| 2853 | |
| 2854 | |
| 2855 | |
| 2856 | |
| 2857 | |
| 2858 | |
| 2859 | |
| 2860 | |
| 2861 | |
| 2862 | |
| 2863 | |
| 2864 | |
| 2865 | |
| 2866 | |
| 2867 | |
| 2868 | |
| 2869 | ; |
| 2870 | /// COEFF_BASE_CHROMA_8, q-context 1: the same table as [`COEFF_BASE_CHROMA_8`], for `base_q_idx` 21..=60. |
| 2871 | pub const COEFF_BASE_CHROMA_8_Q1: = |
| 2872 | |
| 2873 | |
| 2874 | |
| 2875 | |
| 2876 | |
| 2877 | |
| 2878 | |
| 2879 | |
| 2880 | |
| 2881 | |
| 2882 | |
| 2883 | |
| 2884 | |
| 2885 | |
| 2886 | |
| 2887 | |
| 2888 | |
| 2889 | |
| 2890 | |
| 2891 | |
| 2892 | |
| 2893 | |
| 2894 | |
| 2895 | |
| 2896 | |
| 2897 | |
| 2898 | |
| 2899 | |
| 2900 | |
| 2901 | |
| 2902 | |
| 2903 | |
| 2904 | |
| 2905 | |
| 2906 | |
| 2907 | |
| 2908 | |
| 2909 | |
| 2910 | |
| 2911 | |
| 2912 | |
| 2913 | |
| 2914 | ; |
| 2915 | /// COEFF_BASE_CHROMA_16, q-context 1: the same table as [`COEFF_BASE_CHROMA_16`], for `base_q_idx` 21..=60. |
| 2916 | pub const COEFF_BASE_CHROMA_16_Q1: = |
| 2917 | |
| 2918 | |
| 2919 | |
| 2920 | |
| 2921 | |
| 2922 | |
| 2923 | |
| 2924 | |
| 2925 | |
| 2926 | |
| 2927 | |
| 2928 | |
| 2929 | |
| 2930 | |
| 2931 | |
| 2932 | |
| 2933 | |
| 2934 | |
| 2935 | |
| 2936 | |
| 2937 | |
| 2938 | |
| 2939 | |
| 2940 | |
| 2941 | |
| 2942 | |
| 2943 | |
| 2944 | |
| 2945 | |
| 2946 | |
| 2947 | |
| 2948 | |
| 2949 | |
| 2950 | |
| 2951 | |
| 2952 | |
| 2953 | |
| 2954 | |
| 2955 | |
| 2956 | |
| 2957 | |
| 2958 | |
| 2959 | ; |
| 2960 | /// COEFF_BASE_CHROMA_32, q-context 1: the same table as [`COEFF_BASE_CHROMA_32`], for `base_q_idx` 21..=60. |
| 2961 | pub const COEFF_BASE_CHROMA_32_Q1: = |
| 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 | /// COEFF_BR_LUMA_16, q-context 1: the same table as [`COEFF_BR_LUMA_16`], for `base_q_idx` 21..=60. |
| 3006 | pub const COEFF_BR_LUMA_16_Q1: = |
| 3007 | |
| 3008 | |
| 3009 | |
| 3010 | |
| 3011 | |
| 3012 | |
| 3013 | |
| 3014 | |
| 3015 | |
| 3016 | |
| 3017 | |
| 3018 | |
| 3019 | |
| 3020 | |
| 3021 | |
| 3022 | |
| 3023 | |
| 3024 | |
| 3025 | |
| 3026 | |
| 3027 | |
| 3028 | ; |
| 3029 | /// COEFF_BR_LUMA_32, q-context 1: the same table as [`COEFF_BR_LUMA_32`], for `base_q_idx` 21..=60. |
| 3030 | pub const COEFF_BR_LUMA_32_Q1: = |
| 3031 | |
| 3032 | |
| 3033 | |
| 3034 | |
| 3035 | |
| 3036 | |
| 3037 | |
| 3038 | |
| 3039 | |
| 3040 | |
| 3041 | |
| 3042 | |
| 3043 | |
| 3044 | |
| 3045 | |
| 3046 | |
| 3047 | |
| 3048 | |
| 3049 | |
| 3050 | |
| 3051 | |
| 3052 | ; |
| 3053 | /// COEFF_BR_CHROMA_8, q-context 1: the same table as [`COEFF_BR_CHROMA_8`], for `base_q_idx` 21..=60. |
| 3054 | pub const COEFF_BR_CHROMA_8_Q1: = |
| 3055 | |
| 3056 | |
| 3057 | |
| 3058 | |
| 3059 | |
| 3060 | |
| 3061 | |
| 3062 | |
| 3063 | |
| 3064 | |
| 3065 | |
| 3066 | |
| 3067 | |
| 3068 | |
| 3069 | |
| 3070 | |
| 3071 | |
| 3072 | |
| 3073 | |
| 3074 | |
| 3075 | |
| 3076 | ; |
| 3077 | /// COEFF_BR_CHROMA_16, q-context 1: the same table as [`COEFF_BR_CHROMA_16`], for `base_q_idx` 21..=60. |
| 3078 | pub const COEFF_BR_CHROMA_16_Q1: = |
| 3079 | |
| 3080 | |
| 3081 | |
| 3082 | |
| 3083 | |
| 3084 | |
| 3085 | |
| 3086 | |
| 3087 | |
| 3088 | |
| 3089 | |
| 3090 | |
| 3091 | |
| 3092 | |
| 3093 | |
| 3094 | |
| 3095 | |
| 3096 | |
| 3097 | |
| 3098 | |
| 3099 | |
| 3100 | ; |
| 3101 | /// COEFF_BR_CHROMA_32, q-context 1: the same table as [`COEFF_BR_CHROMA_32`], for `base_q_idx` 21..=60. |
| 3102 | pub const COEFF_BR_CHROMA_32_Q1: = |
| 3103 | |
| 3104 | |
| 3105 | |
| 3106 | |
| 3107 | |
| 3108 | |
| 3109 | |
| 3110 | |
| 3111 | |
| 3112 | |
| 3113 | |
| 3114 | |
| 3115 | |
| 3116 | |
| 3117 | |
| 3118 | |
| 3119 | |
| 3120 | |
| 3121 | |
| 3122 | |
| 3123 | |
| 3124 | ; |
| 3125 | /// COEFF_BASE_EOB_LUMA_16, q-context 1: the same table as [`COEFF_BASE_EOB_LUMA_16`], for `base_q_idx` 21..=60. |
| 3126 | pub const COEFF_BASE_EOB_LUMA_16_Q1: = |
| 3127 | |
| 3128 | |
| 3129 | |
| 3130 | |
| 3131 | ; |
| 3132 | /// COEFF_BASE_EOB_LUMA_32, q-context 1: the same table as [`COEFF_BASE_EOB_LUMA_32`], for `base_q_idx` 21..=60. |
| 3133 | pub const COEFF_BASE_EOB_LUMA_32_Q1: = |
| 3134 | |
| 3135 | |
| 3136 | |
| 3137 | |
| 3138 | ; |
| 3139 | /// COEFF_BASE_EOB_LUMA_64, q-context 1: the same table as [`COEFF_BASE_EOB_LUMA_64`], for `base_q_idx` 21..=60. |
| 3140 | pub const COEFF_BASE_EOB_LUMA_64_Q1: = |
| 3141 | |
| 3142 | |
| 3143 | |
| 3144 | |
| 3145 | ; |
| 3146 | /// COEFF_BASE_EOB_CHROMA_8, q-context 1: the same table as [`COEFF_BASE_EOB_CHROMA_8`], for `base_q_idx` 21..=60. |
| 3147 | pub const COEFF_BASE_EOB_CHROMA_8_Q1: = |
| 3148 | |
| 3149 | |
| 3150 | |
| 3151 | |
| 3152 | ; |
| 3153 | /// COEFF_BASE_EOB_CHROMA_16, q-context 1: the same table as [`COEFF_BASE_EOB_CHROMA_16`], for `base_q_idx` 21..=60. |
| 3154 | pub const COEFF_BASE_EOB_CHROMA_16_Q1: = |
| 3155 | |
| 3156 | |
| 3157 | |
| 3158 | |
| 3159 | ; |
| 3160 | /// COEFF_BASE_EOB_CHROMA_32, q-context 1: the same table as [`COEFF_BASE_EOB_CHROMA_32`], for `base_q_idx` 21..=60. |
| 3161 | pub const COEFF_BASE_EOB_CHROMA_32_Q1: = |
| 3162 | |
| 3163 | |
| 3164 | |
| 3165 | |
| 3166 | ; |
| 3167 | |
| 3168 | // q-context 3: base_q_idx 121..=255. |
| 3169 | |
| 3170 | /// TXB_SKIP_LUMA_64, q-context 3: the same table as [`TXB_SKIP_LUMA_64`], for `base_q_idx` 121..=255. |
| 3171 | pub const TXB_SKIP_LUMA_64_Q3: = ; |
| 3172 | /// TXB_SKIP_LUMA_32, q-context 3: the same table as [`TXB_SKIP_LUMA_32`], for `base_q_idx` 121..=255. |
| 3173 | pub const TXB_SKIP_LUMA_32_Q3: = ; |
| 3174 | /// TXB_SKIP_LUMA_16, q-context 3: the same table as [`TXB_SKIP_LUMA_16`], for `base_q_idx` 121..=255. |
| 3175 | pub const TXB_SKIP_LUMA_16_Q3: = ; |
| 3176 | /// TXB_SKIP_CHROMA_8, q-context 3: the same table as [`TXB_SKIP_CHROMA_8`], for `base_q_idx` 121..=255. |
| 3177 | pub const TXB_SKIP_CHROMA_8_Q3: = |
| 3178 | ; |
| 3179 | /// TXB_SKIP_CHROMA_16, q-context 3: the same table as [`TXB_SKIP_CHROMA_16`], for `base_q_idx` 121..=255. |
| 3180 | pub const TXB_SKIP_CHROMA_16_Q3: = |
| 3181 | ; |
| 3182 | /// TXB_SKIP_CHROMA_32, q-context 3: the same table as [`TXB_SKIP_CHROMA_32`], for `base_q_idx` 121..=255. |
| 3183 | pub const TXB_SKIP_CHROMA_32_Q3: = |
| 3184 | ; |
| 3185 | |
| 3186 | /// `av1_default_txb_skip_cdfs[q][TX_32X32][10..13]` (token_cdfs.h): libaom's |
| 3187 | /// chroma `txb_skip_ctx` offset is 10 instead of 7 when the plane block is |
| 3188 | /// LARGER than the transform (`get_txb_ctx`), which in AV1 happens only for a |
| 3189 | /// 128x128 block's four TX_32X32 chroma units -- the offset-7 rows above are |
| 3190 | /// every other case (lane-sb128b r3). |
| 3191 | pub const TXB_SKIP_CHROMA_32_BIG_Q0: = ; |
| 3192 | /// Default CDF table `TXB_SKIP_CHROMA_32_BIG_Q1` (AV1 spec 9.4 initial probabilities). |
| 3193 | pub const TXB_SKIP_CHROMA_32_BIG_Q1: = ; |
| 3194 | /// Default CDF table `TXB_SKIP_CHROMA_32_BIG` (AV1 spec 9.4 initial probabilities). |
| 3195 | pub const TXB_SKIP_CHROMA_32_BIG: = ; |
| 3196 | /// Default CDF table `TXB_SKIP_CHROMA_32_BIG_Q3` (AV1 spec 9.4 initial probabilities). |
| 3197 | pub const TXB_SKIP_CHROMA_32_BIG_Q3: = ; |
| 3198 | /// EOB_EXTRA_LUMA_16, q-context 3: the same table as [`EOB_EXTRA_LUMA_16`], for `base_q_idx` 121..=255. |
| 3199 | pub const EOB_EXTRA_LUMA_16_Q3: = |
| 3200 | |
| 3201 | |
| 3202 | |
| 3203 | |
| 3204 | |
| 3205 | |
| 3206 | |
| 3207 | |
| 3208 | |
| 3209 | ; |
| 3210 | /// EOB_EXTRA_LUMA_32, q-context 3: the same table as [`EOB_EXTRA_LUMA_32`], for `base_q_idx` 121..=255. |
| 3211 | pub const EOB_EXTRA_LUMA_32_Q3: = |
| 3212 | |
| 3213 | |
| 3214 | |
| 3215 | |
| 3216 | |
| 3217 | |
| 3218 | |
| 3219 | |
| 3220 | |
| 3221 | ; |
| 3222 | /// EOB_EXTRA_LUMA_64, q-context 3: the same table as [`EOB_EXTRA_LUMA_64`], for `base_q_idx` 121..=255. |
| 3223 | pub const EOB_EXTRA_LUMA_64_Q3: = |
| 3224 | |
| 3225 | |
| 3226 | |
| 3227 | |
| 3228 | |
| 3229 | |
| 3230 | |
| 3231 | |
| 3232 | |
| 3233 | ; |
| 3234 | /// EOB_EXTRA_CHROMA_8, q-context 3: the same table as [`EOB_EXTRA_CHROMA_8`], for `base_q_idx` 121..=255. |
| 3235 | pub const EOB_EXTRA_CHROMA_8_Q3: = |
| 3236 | |
| 3237 | |
| 3238 | |
| 3239 | |
| 3240 | |
| 3241 | |
| 3242 | |
| 3243 | |
| 3244 | |
| 3245 | ; |
| 3246 | /// EOB_EXTRA_CHROMA_16, q-context 3: the same table as [`EOB_EXTRA_CHROMA_16`], for `base_q_idx` 121..=255. |
| 3247 | pub const EOB_EXTRA_CHROMA_16_Q3: = |
| 3248 | |
| 3249 | |
| 3250 | |
| 3251 | |
| 3252 | |
| 3253 | |
| 3254 | |
| 3255 | |
| 3256 | |
| 3257 | ; |
| 3258 | /// EOB_EXTRA_CHROMA_32, q-context 3: the same table as [`EOB_EXTRA_CHROMA_32`], for `base_q_idx` 121..=255. |
| 3259 | pub const EOB_EXTRA_CHROMA_32_Q3: = |
| 3260 | |
| 3261 | |
| 3262 | |
| 3263 | |
| 3264 | |
| 3265 | |
| 3266 | |
| 3267 | |
| 3268 | |
| 3269 | ; |
| 3270 | /// EOB_PT_1024_LUMA, q-context 3: the same table as [`EOB_PT_1024_LUMA`], for `base_q_idx` 121..=255. |
| 3271 | pub const EOB_PT_1024_LUMA_Q3: = |
| 3272 | |
| 3273 | ; |
| 3274 | /// EOB_PT_1024_CHROMA, q-context 3: the same table as [`EOB_PT_1024_CHROMA`], for `base_q_idx` 121..=255. |
| 3275 | pub const EOB_PT_1024_CHROMA_Q3: = |
| 3276 | |
| 3277 | ; |
| 3278 | /// EOB_PT_256_LUMA, q-context 3: the same table as [`EOB_PT_256_LUMA`], for `base_q_idx` 121..=255. |
| 3279 | pub const EOB_PT_256_LUMA_Q3: = |
| 3280 | |
| 3281 | ; |
| 3282 | /// EOB_PT_256_CHROMA, q-context 3: the same table as [`EOB_PT_256_CHROMA`], for `base_q_idx` 121..=255. |
| 3283 | pub const EOB_PT_256_CHROMA_Q3: = |
| 3284 | |
| 3285 | ; |
| 3286 | /// EOB_PT_64_CHROMA, q-context 3: the same table as [`EOB_PT_64_CHROMA`], for `base_q_idx` 121..=255. |
| 3287 | pub const EOB_PT_64_CHROMA_Q3: = ; |
| 3288 | /// COEFF_BASE_LUMA_16, q-context 3: the same table as [`COEFF_BASE_LUMA_16`], for `base_q_idx` 121..=255. |
| 3289 | pub const COEFF_BASE_LUMA_16_Q3: = |
| 3290 | |
| 3291 | |
| 3292 | |
| 3293 | |
| 3294 | |
| 3295 | |
| 3296 | |
| 3297 | |
| 3298 | |
| 3299 | |
| 3300 | |
| 3301 | |
| 3302 | |
| 3303 | |
| 3304 | |
| 3305 | |
| 3306 | |
| 3307 | |
| 3308 | |
| 3309 | |
| 3310 | |
| 3311 | |
| 3312 | |
| 3313 | |
| 3314 | |
| 3315 | |
| 3316 | |
| 3317 | |
| 3318 | |
| 3319 | |
| 3320 | |
| 3321 | |
| 3322 | |
| 3323 | |
| 3324 | |
| 3325 | |
| 3326 | |
| 3327 | |
| 3328 | |
| 3329 | |
| 3330 | |
| 3331 | |
| 3332 | ; |
| 3333 | /// COEFF_BASE_LUMA_32, q-context 3: the same table as [`COEFF_BASE_LUMA_32`], for `base_q_idx` 121..=255. |
| 3334 | pub const COEFF_BASE_LUMA_32_Q3: = |
| 3335 | |
| 3336 | |
| 3337 | |
| 3338 | |
| 3339 | |
| 3340 | |
| 3341 | |
| 3342 | |
| 3343 | |
| 3344 | |
| 3345 | |
| 3346 | |
| 3347 | |
| 3348 | |
| 3349 | |
| 3350 | |
| 3351 | |
| 3352 | |
| 3353 | |
| 3354 | |
| 3355 | |
| 3356 | |
| 3357 | |
| 3358 | |
| 3359 | |
| 3360 | |
| 3361 | |
| 3362 | |
| 3363 | |
| 3364 | |
| 3365 | |
| 3366 | |
| 3367 | |
| 3368 | |
| 3369 | |
| 3370 | |
| 3371 | |
| 3372 | |
| 3373 | |
| 3374 | |
| 3375 | |
| 3376 | |
| 3377 | ; |
| 3378 | /// COEFF_BASE_LUMA_64, q-context 3: the same table as [`COEFF_BASE_LUMA_64`], for `base_q_idx` 121..=255. |
| 3379 | pub const COEFF_BASE_LUMA_64_Q3: = |
| 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 | /// COEFF_BASE_CHROMA_8, q-context 3: the same table as [`COEFF_BASE_CHROMA_8`], for `base_q_idx` 121..=255. |
| 3424 | pub const COEFF_BASE_CHROMA_8_Q3: = |
| 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 | /// COEFF_BASE_CHROMA_16, q-context 3: the same table as [`COEFF_BASE_CHROMA_16`], for `base_q_idx` 121..=255. |
| 3469 | pub const COEFF_BASE_CHROMA_16_Q3: = |
| 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 | /// COEFF_BASE_CHROMA_32, q-context 3: the same table as [`COEFF_BASE_CHROMA_32`], for `base_q_idx` 121..=255. |
| 3514 | pub const COEFF_BASE_CHROMA_32_Q3: = |
| 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 | /// COEFF_BR_LUMA_16, q-context 3: the same table as [`COEFF_BR_LUMA_16`], for `base_q_idx` 121..=255. |
| 3559 | pub const COEFF_BR_LUMA_16_Q3: = |
| 3560 | |
| 3561 | |
| 3562 | |
| 3563 | |
| 3564 | |
| 3565 | |
| 3566 | |
| 3567 | |
| 3568 | |
| 3569 | |
| 3570 | |
| 3571 | |
| 3572 | |
| 3573 | |
| 3574 | |
| 3575 | |
| 3576 | |
| 3577 | |
| 3578 | |
| 3579 | |
| 3580 | |
| 3581 | ; |
| 3582 | /// COEFF_BR_LUMA_32, q-context 3: the same table as [`COEFF_BR_LUMA_32`], for `base_q_idx` 121..=255. |
| 3583 | pub const COEFF_BR_LUMA_32_Q3: = |
| 3584 | |
| 3585 | |
| 3586 | |
| 3587 | |
| 3588 | |
| 3589 | |
| 3590 | |
| 3591 | |
| 3592 | |
| 3593 | |
| 3594 | |
| 3595 | |
| 3596 | |
| 3597 | |
| 3598 | |
| 3599 | |
| 3600 | |
| 3601 | |
| 3602 | |
| 3603 | |
| 3604 | |
| 3605 | ; |
| 3606 | /// COEFF_BR_CHROMA_8, q-context 3: the same table as [`COEFF_BR_CHROMA_8`], for `base_q_idx` 121..=255. |
| 3607 | pub const COEFF_BR_CHROMA_8_Q3: = |
| 3608 | |
| 3609 | |
| 3610 | |
| 3611 | |
| 3612 | |
| 3613 | |
| 3614 | |
| 3615 | |
| 3616 | |
| 3617 | |
| 3618 | |
| 3619 | |
| 3620 | |
| 3621 | |
| 3622 | |
| 3623 | |
| 3624 | |
| 3625 | |
| 3626 | |
| 3627 | |
| 3628 | |
| 3629 | ; |
| 3630 | /// COEFF_BR_CHROMA_16, q-context 3: the same table as [`COEFF_BR_CHROMA_16`], for `base_q_idx` 121..=255. |
| 3631 | pub const COEFF_BR_CHROMA_16_Q3: = |
| 3632 | |
| 3633 | |
| 3634 | |
| 3635 | |
| 3636 | |
| 3637 | |
| 3638 | |
| 3639 | |
| 3640 | |
| 3641 | |
| 3642 | |
| 3643 | |
| 3644 | |
| 3645 | |
| 3646 | |
| 3647 | |
| 3648 | |
| 3649 | |
| 3650 | |
| 3651 | |
| 3652 | |
| 3653 | ; |
| 3654 | /// COEFF_BR_CHROMA_32, q-context 3: the same table as [`COEFF_BR_CHROMA_32`], for `base_q_idx` 121..=255. |
| 3655 | pub const COEFF_BR_CHROMA_32_Q3: = |
| 3656 | |
| 3657 | |
| 3658 | |
| 3659 | |
| 3660 | |
| 3661 | |
| 3662 | |
| 3663 | |
| 3664 | |
| 3665 | |
| 3666 | |
| 3667 | |
| 3668 | |
| 3669 | |
| 3670 | |
| 3671 | |
| 3672 | |
| 3673 | |
| 3674 | |
| 3675 | |
| 3676 | |
| 3677 | ; |
| 3678 | /// COEFF_BASE_EOB_LUMA_16, q-context 3: the same table as [`COEFF_BASE_EOB_LUMA_16`], for `base_q_idx` 121..=255. |
| 3679 | pub const COEFF_BASE_EOB_LUMA_16_Q3: = |
| 3680 | |
| 3681 | |
| 3682 | |
| 3683 | |
| 3684 | ; |
| 3685 | /// COEFF_BASE_EOB_LUMA_32, q-context 3: the same table as [`COEFF_BASE_EOB_LUMA_32`], for `base_q_idx` 121..=255. |
| 3686 | pub const COEFF_BASE_EOB_LUMA_32_Q3: = |
| 3687 | |
| 3688 | |
| 3689 | |
| 3690 | |
| 3691 | ; |
| 3692 | /// COEFF_BASE_EOB_LUMA_64, q-context 3: the same table as [`COEFF_BASE_EOB_LUMA_64`], for `base_q_idx` 121..=255. |
| 3693 | pub const COEFF_BASE_EOB_LUMA_64_Q3: = |
| 3694 | |
| 3695 | |
| 3696 | |
| 3697 | |
| 3698 | ; |
| 3699 | /// COEFF_BASE_EOB_CHROMA_8, q-context 3: the same table as [`COEFF_BASE_EOB_CHROMA_8`], for `base_q_idx` 121..=255. |
| 3700 | pub const COEFF_BASE_EOB_CHROMA_8_Q3: = |
| 3701 | |
| 3702 | |
| 3703 | |
| 3704 | |
| 3705 | ; |
| 3706 | /// COEFF_BASE_EOB_CHROMA_16, q-context 3: the same table as [`COEFF_BASE_EOB_CHROMA_16`], for `base_q_idx` 121..=255. |
| 3707 | pub const COEFF_BASE_EOB_CHROMA_16_Q3: = |
| 3708 | |
| 3709 | |
| 3710 | |
| 3711 | |
| 3712 | ; |
| 3713 | /// COEFF_BASE_EOB_CHROMA_32, q-context 3: the same table as [`COEFF_BASE_EOB_CHROMA_32`], for `base_q_idx` 121..=255. |
| 3714 | pub const COEFF_BASE_EOB_CHROMA_32_Q3: = |
| 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 | |
| 3834 | |
| 3835 | |
| 3836 | |
| 3837 | |
| 3838 | |
| 3839 | |
| 3840 | |
| 3841 | |
| 3842 | |
| 3843 | |
| 3844 | |
| 3845 | |
| 3846 | |
| 3847 | // TX_8X8/TX_4X4 tables (lane-av1-rect): the 8x8 luma and 4x4 chroma coefficient |
| 3848 | // coding CDFs, extracted byte-exact from libaom's Default_*_Cdf tables, needed |
| 3849 | // to let a key frame's straddling 16x16 quadrant split down to an 8x8 leaf. |
| 3850 | |
| 3851 | /// TXB_SKIP_LUMA_8_Q0, q-context 0: the same table as [`TXB_SKIP_LUMA_8`], for `base_q_idx` 0..=20. |
| 3852 | pub const TXB_SKIP_LUMA_8_Q0: = ; |
| 3853 | |
| 3854 | /// TXB_SKIP_LUMA_8_Q1, q-context 1: the same table as [`TXB_SKIP_LUMA_8`], for `base_q_idx` 21..=60. |
| 3855 | pub const TXB_SKIP_LUMA_8_Q1: = ; |
| 3856 | |
| 3857 | /// the all-zero flag of an 8x8 luma transform, whose only context is zero because the transform covers its whole block. |
| 3858 | pub const TXB_SKIP_LUMA_8: = ; |
| 3859 | |
| 3860 | /// TXB_SKIP_LUMA_8_Q3, q-context 3: the same table as [`TXB_SKIP_LUMA_8`], for `base_q_idx` 121..=255. |
| 3861 | pub const TXB_SKIP_LUMA_8_Q3: = ; |
| 3862 | |
| 3863 | /// TXB_SKIP_CHROMA_4_Q0, q-context 0: the same table as [`TXB_SKIP_CHROMA_4`], for `base_q_idx` 0..=20. |
| 3864 | pub const TXB_SKIP_CHROMA_4_Q0: = |
| 3865 | ; |
| 3866 | |
| 3867 | /// TXB_SKIP_CHROMA_4_Q1, q-context 1: the same table as [`TXB_SKIP_CHROMA_4`], for `base_q_idx` 21..=60. |
| 3868 | pub const TXB_SKIP_CHROMA_4_Q1: = |
| 3869 | ; |
| 3870 | |
| 3871 | /// the all-zero flag of a 4x4 chroma transform. |
| 3872 | pub const TXB_SKIP_CHROMA_4: = |
| 3873 | ; |
| 3874 | |
| 3875 | /// TXB_SKIP_CHROMA_4_Q3, q-context 3: the same table as [`TXB_SKIP_CHROMA_4`], for `base_q_idx` 121..=255. |
| 3876 | pub const TXB_SKIP_CHROMA_4_Q3: = |
| 3877 | ; |
| 3878 | |
| 3879 | /// EOB_PT_64_LUMA_Q0, q-context 0: the same table as [`EOB_PT_64_LUMA`], for `base_q_idx` 0..=20. |
| 3880 | pub const EOB_PT_64_LUMA_Q0: = ; |
| 3881 | |
| 3882 | /// EOB_PT_64_LUMA_Q1, q-context 1: the same table as [`EOB_PT_64_LUMA`], for `base_q_idx` 21..=60. |
| 3883 | pub const EOB_PT_64_LUMA_Q1: = ; |
| 3884 | |
| 3885 | /// the end-of-block group of an 8x8 luma transform. |
| 3886 | pub const EOB_PT_64_LUMA: = ; |
| 3887 | |
| 3888 | /// EOB_PT_64_LUMA_Q3, q-context 3: the same table as [`EOB_PT_64_LUMA`], for `base_q_idx` 121..=255. |
| 3889 | pub const EOB_PT_64_LUMA_Q3: = ; |
| 3890 | |
| 3891 | /// The `EOB_PT_64_LUMA` sibling of [`EOB_PT_16_LUMA_CLASS1`] |
| 3892 | /// (`av1_default_eob_multi64_cdfs[q][0][1]`), for an 8x8 luma TU whose |
| 3893 | /// `tx_type` resolves `V_DCT`/`H_DCT`. |
| 3894 | pub const EOB_PT_64_LUMA_CLASS1_Q0: = ; |
| 3895 | /// Default CDF table `EOB_PT_64_LUMA_CLASS1_Q1` (AV1 spec 9.4 initial probabilities). |
| 3896 | pub const EOB_PT_64_LUMA_CLASS1_Q1: = ; |
| 3897 | /// Default CDF table `EOB_PT_64_LUMA_CLASS1` (AV1 spec 9.4 initial probabilities). |
| 3898 | pub const EOB_PT_64_LUMA_CLASS1: = ; |
| 3899 | /// Default CDF table `EOB_PT_64_LUMA_CLASS1_Q3` (AV1 spec 9.4 initial probabilities). |
| 3900 | pub const EOB_PT_64_LUMA_CLASS1_Q3: = ; |
| 3901 | |
| 3902 | /// EOB_PT_16_CHROMA_Q0, q-context 0: the same table as [`EOB_PT_16_CHROMA`], for `base_q_idx` 0..=20. |
| 3903 | pub const EOB_PT_16_CHROMA_Q0: = ; |
| 3904 | |
| 3905 | /// EOB_PT_16_CHROMA_Q1, q-context 1: the same table as [`EOB_PT_16_CHROMA`], for `base_q_idx` 21..=60. |
| 3906 | pub const EOB_PT_16_CHROMA_Q1: = ; |
| 3907 | |
| 3908 | /// the end-of-block group of a 4x4 chroma transform. |
| 3909 | pub const EOB_PT_16_CHROMA: = ; |
| 3910 | |
| 3911 | /// EOB_PT_16_CHROMA_Q3, q-context 3: the same table as [`EOB_PT_16_CHROMA`], for `base_q_idx` 121..=255. |
| 3912 | pub const EOB_PT_16_CHROMA_Q3: = ; |
| 3913 | |
| 3914 | /// EOB_EXTRA_LUMA_8_Q0, q-context 0: the same table as [`EOB_EXTRA_LUMA_8`], for `base_q_idx` 0..=20. |
| 3915 | pub const EOB_EXTRA_LUMA_8_Q0: = |
| 3916 | |
| 3917 | |
| 3918 | |
| 3919 | |
| 3920 | |
| 3921 | |
| 3922 | |
| 3923 | |
| 3924 | |
| 3925 | ; |
| 3926 | |
| 3927 | /// EOB_EXTRA_LUMA_8_Q1, q-context 1: the same table as [`EOB_EXTRA_LUMA_8`], for `base_q_idx` 21..=60. |
| 3928 | pub const EOB_EXTRA_LUMA_8_Q1: = |
| 3929 | |
| 3930 | |
| 3931 | |
| 3932 | |
| 3933 | |
| 3934 | |
| 3935 | |
| 3936 | |
| 3937 | |
| 3938 | ; |
| 3939 | |
| 3940 | /// the top offset bit inside an 8x8 luma transform's end-of-block group. |
| 3941 | pub const EOB_EXTRA_LUMA_8: = |
| 3942 | |
| 3943 | |
| 3944 | |
| 3945 | |
| 3946 | |
| 3947 | |
| 3948 | |
| 3949 | |
| 3950 | |
| 3951 | ; |
| 3952 | |
| 3953 | /// EOB_EXTRA_LUMA_8_Q3, q-context 3: the same table as [`EOB_EXTRA_LUMA_8`], for `base_q_idx` 121..=255. |
| 3954 | pub const EOB_EXTRA_LUMA_8_Q3: = |
| 3955 | |
| 3956 | |
| 3957 | |
| 3958 | |
| 3959 | |
| 3960 | |
| 3961 | |
| 3962 | |
| 3963 | |
| 3964 | ; |
| 3965 | |
| 3966 | /// EOB_EXTRA_CHROMA_4_Q0, q-context 0: the same table as [`EOB_EXTRA_CHROMA_4`], for `base_q_idx` 0..=20. |
| 3967 | pub const EOB_EXTRA_CHROMA_4_Q0: = |
| 3968 | |
| 3969 | |
| 3970 | |
| 3971 | |
| 3972 | |
| 3973 | |
| 3974 | |
| 3975 | |
| 3976 | |
| 3977 | ; |
| 3978 | |
| 3979 | /// EOB_EXTRA_CHROMA_4_Q1, q-context 1: the same table as [`EOB_EXTRA_CHROMA_4`], for `base_q_idx` 21..=60. |
| 3980 | pub const EOB_EXTRA_CHROMA_4_Q1: = |
| 3981 | |
| 3982 | |
| 3983 | |
| 3984 | |
| 3985 | |
| 3986 | |
| 3987 | |
| 3988 | |
| 3989 | |
| 3990 | ; |
| 3991 | |
| 3992 | /// the same, for a 4x4 chroma transform. |
| 3993 | pub const EOB_EXTRA_CHROMA_4: = |
| 3994 | |
| 3995 | |
| 3996 | |
| 3997 | |
| 3998 | |
| 3999 | |
| 4000 | |
| 4001 | |
| 4002 | |
| 4003 | ; |
| 4004 | |
| 4005 | /// EOB_EXTRA_CHROMA_4_Q3, q-context 3: the same table as [`EOB_EXTRA_CHROMA_4`], for `base_q_idx` 121..=255. |
| 4006 | pub const EOB_EXTRA_CHROMA_4_Q3: = |
| 4007 | |
| 4008 | |
| 4009 | |
| 4010 | |
| 4011 | |
| 4012 | |
| 4013 | |
| 4014 | |
| 4015 | |
| 4016 | ; |
| 4017 | |
| 4018 | /// COEFF_BASE_LUMA_8_Q0, q-context 0: the same table as [`COEFF_BASE_LUMA_8`], for `base_q_idx` 0..=20. |
| 4019 | pub const COEFF_BASE_LUMA_8_Q0: = |
| 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 | /// COEFF_BASE_LUMA_8_Q1, q-context 1: the same table as [`COEFF_BASE_LUMA_8`], for `base_q_idx` 21..=60. |
| 4065 | pub const COEFF_BASE_LUMA_8_Q1: = |
| 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 | /// an 8x8 luma coefficient's base level. |
| 4111 | pub const COEFF_BASE_LUMA_8: = |
| 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 | /// COEFF_BASE_LUMA_8_Q3, q-context 3: the same table as [`COEFF_BASE_LUMA_8`], for `base_q_idx` 121..=255. |
| 4157 | pub const COEFF_BASE_LUMA_8_Q3: = |
| 4158 | |
| 4159 | |
| 4160 | |
| 4161 | |
| 4162 | |
| 4163 | |
| 4164 | |
| 4165 | |
| 4166 | |
| 4167 | |
| 4168 | |
| 4169 | |
| 4170 | |
| 4171 | |
| 4172 | |
| 4173 | |
| 4174 | |
| 4175 | |
| 4176 | |
| 4177 | |
| 4178 | |
| 4179 | |
| 4180 | |
| 4181 | |
| 4182 | |
| 4183 | |
| 4184 | |
| 4185 | |
| 4186 | |
| 4187 | |
| 4188 | |
| 4189 | |
| 4190 | |
| 4191 | |
| 4192 | |
| 4193 | |
| 4194 | |
| 4195 | |
| 4196 | |
| 4197 | |
| 4198 | |
| 4199 | |
| 4200 | ; |
| 4201 | |
| 4202 | /// COEFF_BASE_CHROMA_4_Q0, q-context 0: the same table as [`COEFF_BASE_CHROMA_4`], for `base_q_idx` 0..=20. |
| 4203 | pub const COEFF_BASE_CHROMA_4_Q0: = |
| 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 | /// COEFF_BASE_CHROMA_4_Q1, q-context 1: the same table as [`COEFF_BASE_CHROMA_4`], for `base_q_idx` 21..=60. |
| 4249 | pub const COEFF_BASE_CHROMA_4_Q1: = |
| 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 | /// a 4x4 chroma coefficient's base level. |
| 4295 | pub const COEFF_BASE_CHROMA_4: = |
| 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 | /// COEFF_BASE_CHROMA_4_Q3, q-context 3: the same table as [`COEFF_BASE_CHROMA_4`], for `base_q_idx` 121..=255. |
| 4341 | pub const COEFF_BASE_CHROMA_4_Q3: = |
| 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 | /// COEFF_BASE_EOB_LUMA_8_Q0, q-context 0: the same table as [`COEFF_BASE_EOB_LUMA_8`], for `base_q_idx` 0..=20. |
| 4387 | pub const COEFF_BASE_EOB_LUMA_8_Q0: = |
| 4388 | |
| 4389 | |
| 4390 | |
| 4391 | |
| 4392 | ; |
| 4393 | |
| 4394 | /// COEFF_BASE_EOB_LUMA_8_Q1, q-context 1: the same table as [`COEFF_BASE_EOB_LUMA_8`], for `base_q_idx` 21..=60. |
| 4395 | pub const COEFF_BASE_EOB_LUMA_8_Q1: = |
| 4396 | |
| 4397 | |
| 4398 | |
| 4399 | |
| 4400 | ; |
| 4401 | |
| 4402 | /// the last coefficient's base level, for an 8x8 luma transform. |
| 4403 | pub const COEFF_BASE_EOB_LUMA_8: = |
| 4404 | |
| 4405 | |
| 4406 | |
| 4407 | |
| 4408 | ; |
| 4409 | |
| 4410 | /// COEFF_BASE_EOB_LUMA_8_Q3, q-context 3: the same table as [`COEFF_BASE_EOB_LUMA_8`], for `base_q_idx` 121..=255. |
| 4411 | pub const COEFF_BASE_EOB_LUMA_8_Q3: = |
| 4412 | |
| 4413 | |
| 4414 | |
| 4415 | |
| 4416 | ; |
| 4417 | |
| 4418 | /// COEFF_BASE_EOB_CHROMA_4_Q0, q-context 0: the same table as [`COEFF_BASE_EOB_CHROMA_4`], for `base_q_idx` 0..=20. |
| 4419 | pub const COEFF_BASE_EOB_CHROMA_4_Q0: = |
| 4420 | |
| 4421 | |
| 4422 | |
| 4423 | |
| 4424 | ; |
| 4425 | |
| 4426 | /// COEFF_BASE_EOB_CHROMA_4_Q1, q-context 1: the same table as [`COEFF_BASE_EOB_CHROMA_4`], for `base_q_idx` 21..=60. |
| 4427 | pub const COEFF_BASE_EOB_CHROMA_4_Q1: = |
| 4428 | |
| 4429 | |
| 4430 | |
| 4431 | |
| 4432 | ; |
| 4433 | |
| 4434 | /// the same, for a 4x4 chroma transform. |
| 4435 | pub const COEFF_BASE_EOB_CHROMA_4: = |
| 4436 | |
| 4437 | |
| 4438 | |
| 4439 | |
| 4440 | ; |
| 4441 | |
| 4442 | /// COEFF_BASE_EOB_CHROMA_4_Q3, q-context 3: the same table as [`COEFF_BASE_EOB_CHROMA_4`], for `base_q_idx` 121..=255. |
| 4443 | pub const COEFF_BASE_EOB_CHROMA_4_Q3: = |
| 4444 | |
| 4445 | |
| 4446 | |
| 4447 | |
| 4448 | ; |
| 4449 | |
| 4450 | /// COEFF_BR_LUMA_8_Q0, q-context 0: the same table as [`COEFF_BR_LUMA_8`], for `base_q_idx` 0..=20. |
| 4451 | pub const COEFF_BR_LUMA_8_Q0: = |
| 4452 | |
| 4453 | |
| 4454 | |
| 4455 | |
| 4456 | |
| 4457 | |
| 4458 | |
| 4459 | |
| 4460 | |
| 4461 | |
| 4462 | |
| 4463 | |
| 4464 | |
| 4465 | |
| 4466 | |
| 4467 | |
| 4468 | |
| 4469 | |
| 4470 | |
| 4471 | |
| 4472 | |
| 4473 | ; |
| 4474 | |
| 4475 | /// COEFF_BR_LUMA_8_Q1, q-context 1: the same table as [`COEFF_BR_LUMA_8`], for `base_q_idx` 21..=60. |
| 4476 | pub const COEFF_BR_LUMA_8_Q1: = |
| 4477 | |
| 4478 | |
| 4479 | |
| 4480 | |
| 4481 | |
| 4482 | |
| 4483 | |
| 4484 | |
| 4485 | |
| 4486 | |
| 4487 | |
| 4488 | |
| 4489 | |
| 4490 | |
| 4491 | |
| 4492 | |
| 4493 | |
| 4494 | |
| 4495 | |
| 4496 | |
| 4497 | |
| 4498 | ; |
| 4499 | |
| 4500 | /// the base-range tail of an 8x8 luma coefficient. |
| 4501 | pub const COEFF_BR_LUMA_8: = |
| 4502 | |
| 4503 | |
| 4504 | |
| 4505 | |
| 4506 | |
| 4507 | |
| 4508 | |
| 4509 | |
| 4510 | |
| 4511 | |
| 4512 | |
| 4513 | |
| 4514 | |
| 4515 | |
| 4516 | |
| 4517 | |
| 4518 | |
| 4519 | |
| 4520 | |
| 4521 | |
| 4522 | |
| 4523 | ; |
| 4524 | |
| 4525 | /// COEFF_BR_LUMA_8_Q3, q-context 3: the same table as [`COEFF_BR_LUMA_8`], for `base_q_idx` 121..=255. |
| 4526 | pub const COEFF_BR_LUMA_8_Q3: = |
| 4527 | |
| 4528 | |
| 4529 | |
| 4530 | |
| 4531 | |
| 4532 | |
| 4533 | |
| 4534 | |
| 4535 | |
| 4536 | |
| 4537 | |
| 4538 | |
| 4539 | |
| 4540 | |
| 4541 | |
| 4542 | |
| 4543 | |
| 4544 | |
| 4545 | |
| 4546 | |
| 4547 | |
| 4548 | ; |
| 4549 | |
| 4550 | /// COEFF_BR_CHROMA_4_Q0, q-context 0: the same table as [`COEFF_BR_CHROMA_4`], for `base_q_idx` 0..=20. |
| 4551 | pub const COEFF_BR_CHROMA_4_Q0: = |
| 4552 | |
| 4553 | |
| 4554 | |
| 4555 | |
| 4556 | |
| 4557 | |
| 4558 | |
| 4559 | |
| 4560 | |
| 4561 | |
| 4562 | |
| 4563 | |
| 4564 | |
| 4565 | |
| 4566 | |
| 4567 | |
| 4568 | |
| 4569 | |
| 4570 | |
| 4571 | |
| 4572 | |
| 4573 | ; |
| 4574 | |
| 4575 | /// COEFF_BR_CHROMA_4_Q1, q-context 1: the same table as [`COEFF_BR_CHROMA_4`], for `base_q_idx` 21..=60. |
| 4576 | pub const COEFF_BR_CHROMA_4_Q1: = |
| 4577 | |
| 4578 | |
| 4579 | |
| 4580 | |
| 4581 | |
| 4582 | |
| 4583 | |
| 4584 | |
| 4585 | |
| 4586 | |
| 4587 | |
| 4588 | |
| 4589 | |
| 4590 | |
| 4591 | |
| 4592 | |
| 4593 | |
| 4594 | |
| 4595 | |
| 4596 | |
| 4597 | |
| 4598 | ; |
| 4599 | |
| 4600 | /// the base-range tail of a 4x4 chroma coefficient. |
| 4601 | pub const COEFF_BR_CHROMA_4: = |
| 4602 | |
| 4603 | |
| 4604 | |
| 4605 | |
| 4606 | |
| 4607 | |
| 4608 | |
| 4609 | |
| 4610 | |
| 4611 | |
| 4612 | |
| 4613 | |
| 4614 | |
| 4615 | |
| 4616 | |
| 4617 | |
| 4618 | |
| 4619 | |
| 4620 | |
| 4621 | |
| 4622 | |
| 4623 | ; |
| 4624 | |
| 4625 | /// COEFF_BR_CHROMA_4_Q3, q-context 3: the same table as [`COEFF_BR_CHROMA_4`], for `base_q_idx` 121..=255. |
| 4626 | pub const COEFF_BR_CHROMA_4_Q3: = |
| 4627 | |
| 4628 | |
| 4629 | |
| 4630 | |
| 4631 | |
| 4632 | |
| 4633 | |
| 4634 | |
| 4635 | |
| 4636 | |
| 4637 | |
| 4638 | |
| 4639 | |
| 4640 | |
| 4641 | |
| 4642 | |
| 4643 | |
| 4644 | |
| 4645 | |
| 4646 | |
| 4647 | |
| 4648 | ; |
| 4649 | |
| 4650 | /// `Default_Intra_Ext_Tx_Cdf`'s `TX_SET_INTRA_1` (`EXT_TX_SET_DTT4_IDTX_1DDCT`) |
| 4651 | /// row for `TX_8X8` (spec 9.4): the transform type of an intra 8x8 transform |
| 4652 | /// when `reduced_tx_set` is false. Unused while this crate's key frames set |
| 4653 | /// `reduced_tx_set: true` (`get_tx_set`'s intra branch then returns |
| 4654 | /// `TX_SET_INTRA_2` -- [`INTRA_TX_TYPE_SET2_8`] -- at every size up to 16x16, |
| 4655 | /// not only 16x16; r11 lane-av1-rect). Kept named for the day a non-reduced |
| 4656 | /// path exists. |
| 4657 | pub const INTRA_TX_TYPE_SET1_8: = |
| 4658 | |
| 4659 | |
| 4660 | |
| 4661 | |
| 4662 | |
| 4663 | |
| 4664 | |
| 4665 | |
| 4666 | |
| 4667 | |
| 4668 | |
| 4669 | |
| 4670 | |
| 4671 | ; |
| 4672 | |
| 4673 | /// `Default_Intra_Ext_Tx_Cdf`'s `TX_SET_INTRA_2` (`EXT_TX_SET_DTT4_IDTX`) row |
| 4674 | /// for `TX_8X8` (spec 9.4, entropymode.c's `eset==2`/`TX_8X8` slot): the |
| 4675 | /// transform type of an intra 8x8 transform when `reduced_tx_set` is true, |
| 4676 | /// which this crate's key frames always set. libaom leaves this exact slot |
| 4677 | /// at the flat 5-way default (unlike its trained `TX_16X16` neighbour, |
| 4678 | /// [`INTRA_TX_TYPE_SET2_16`]) -- every mode reads the same uniform CDF. |
| 4679 | pub const INTRA_TX_TYPE_SET2_8: = ; |
| 4680 | /// The full luma sub-range of spec `TXB_SKIP_CONTEXTS` (contexts 0..6, the |
| 4681 | /// `plane_bsize != tx_size` `skip_contexts[top][left]` table plus its own |
| 4682 | /// single `plane_bsize == tx_size` context 0), for a `TxMode::Select` block |
| 4683 | /// whose luma transform is split into several transform units smaller than |
| 4684 | /// the block itself -- the single-context `TXB_SKIP_LUMA_*` constants above |
| 4685 | /// stay for every other caller, which only ever reads context 0. |
| 4686 | pub const TXB_SKIP_LUMA_8_Q0_CTX: = |
| 4687 | |
| 4688 | |
| 4689 | |
| 4690 | |
| 4691 | |
| 4692 | |
| 4693 | |
| 4694 | ; |
| 4695 | /// Default CDF table `TXB_SKIP_LUMA_8_Q1_CTX` (AV1 spec 9.4 initial probabilities). |
| 4696 | pub const TXB_SKIP_LUMA_8_Q1_CTX: = |
| 4697 | |
| 4698 | |
| 4699 | |
| 4700 | |
| 4701 | |
| 4702 | |
| 4703 | |
| 4704 | ; |
| 4705 | /// Default CDF table `TXB_SKIP_LUMA_8_CTX` (AV1 spec 9.4 initial probabilities). |
| 4706 | pub const TXB_SKIP_LUMA_8_CTX: = |
| 4707 | |
| 4708 | |
| 4709 | |
| 4710 | |
| 4711 | |
| 4712 | |
| 4713 | |
| 4714 | ; |
| 4715 | /// Default CDF table `TXB_SKIP_LUMA_8_Q3_CTX` (AV1 spec 9.4 initial probabilities). |
| 4716 | pub const TXB_SKIP_LUMA_8_Q3_CTX: = |
| 4717 | |
| 4718 | |
| 4719 | |
| 4720 | |
| 4721 | |
| 4722 | |
| 4723 | |
| 4724 | ; |
| 4725 | /// Default CDF table `TXB_SKIP_LUMA_16_Q0_CTX` (AV1 spec 9.4 initial probabilities). |
| 4726 | pub const TXB_SKIP_LUMA_16_Q0_CTX: = |
| 4727 | |
| 4728 | |
| 4729 | |
| 4730 | |
| 4731 | |
| 4732 | |
| 4733 | |
| 4734 | ; |
| 4735 | /// Default CDF table `TXB_SKIP_LUMA_16_Q1_CTX` (AV1 spec 9.4 initial probabilities). |
| 4736 | pub const TXB_SKIP_LUMA_16_Q1_CTX: = |
| 4737 | |
| 4738 | |
| 4739 | |
| 4740 | |
| 4741 | |
| 4742 | |
| 4743 | |
| 4744 | ; |
| 4745 | /// Default CDF table `TXB_SKIP_LUMA_16_CTX` (AV1 spec 9.4 initial probabilities). |
| 4746 | pub const TXB_SKIP_LUMA_16_CTX: = |
| 4747 | |
| 4748 | |
| 4749 | |
| 4750 | |
| 4751 | |
| 4752 | |
| 4753 | |
| 4754 | ; |
| 4755 | /// Default CDF table `TXB_SKIP_LUMA_16_Q3_CTX` (AV1 spec 9.4 initial probabilities). |
| 4756 | pub const TXB_SKIP_LUMA_16_Q3_CTX: = |
| 4757 | |
| 4758 | |
| 4759 | |
| 4760 | |
| 4761 | |
| 4762 | |
| 4763 | |
| 4764 | ; |
| 4765 | /// Default CDF table `TXB_SKIP_LUMA_32_Q0_CTX` (AV1 spec 9.4 initial probabilities). |
| 4766 | pub const TXB_SKIP_LUMA_32_Q0_CTX: = |
| 4767 | |
| 4768 | |
| 4769 | |
| 4770 | |
| 4771 | |
| 4772 | |
| 4773 | |
| 4774 | ; |
| 4775 | /// Default CDF table `TXB_SKIP_LUMA_32_Q1_CTX` (AV1 spec 9.4 initial probabilities). |
| 4776 | pub const TXB_SKIP_LUMA_32_Q1_CTX: = |
| 4777 | |
| 4778 | |
| 4779 | |
| 4780 | |
| 4781 | |
| 4782 | |
| 4783 | |
| 4784 | ; |
| 4785 | /// Default CDF table `TXB_SKIP_LUMA_32_CTX` (AV1 spec 9.4 initial probabilities). |
| 4786 | pub const TXB_SKIP_LUMA_32_CTX: = |
| 4787 | |
| 4788 | |
| 4789 | |
| 4790 | |
| 4791 | |
| 4792 | |
| 4793 | |
| 4794 | ; |
| 4795 | /// Default CDF table `TXB_SKIP_LUMA_32_Q3_CTX` (AV1 spec 9.4 initial probabilities). |
| 4796 | pub const TXB_SKIP_LUMA_32_Q3_CTX: = |
| 4797 | |
| 4798 | |
| 4799 | |
| 4800 | |
| 4801 | |
| 4802 | |
| 4803 | |
| 4804 | ; |
| 4805 | /// Default CDF table `TXB_SKIP_LUMA_64_Q0_CTX` (AV1 spec 9.4 initial probabilities). |
| 4806 | pub const TXB_SKIP_LUMA_64_Q0_CTX: = |
| 4807 | |
| 4808 | |
| 4809 | |
| 4810 | |
| 4811 | |
| 4812 | |
| 4813 | |
| 4814 | ; |
| 4815 | /// Default CDF table `TXB_SKIP_LUMA_64_Q1_CTX` (AV1 spec 9.4 initial probabilities). |
| 4816 | pub const TXB_SKIP_LUMA_64_Q1_CTX: = |
| 4817 | |
| 4818 | |
| 4819 | |
| 4820 | |
| 4821 | |
| 4822 | |
| 4823 | |
| 4824 | ; |
| 4825 | /// Default CDF table `TXB_SKIP_LUMA_64_CTX` (AV1 spec 9.4 initial probabilities). |
| 4826 | pub const TXB_SKIP_LUMA_64_CTX: = |
| 4827 | |
| 4828 | |
| 4829 | |
| 4830 | |
| 4831 | |
| 4832 | |
| 4833 | |
| 4834 | ; |
| 4835 | /// Default CDF table `TXB_SKIP_LUMA_64_Q3_CTX` (AV1 spec 9.4 initial probabilities). |
| 4836 | pub const TXB_SKIP_LUMA_64_Q3_CTX: = |
| 4837 | |
| 4838 | |
| 4839 | |
| 4840 | |
| 4841 | |
| 4842 | |
| 4843 | |
| 4844 | ; |
| 4845 | |
| 4846 | // The tables below extend the `_LUMA_8`/`Luma8Set1` straddling-16x16 support |
| 4847 | // above to a resolved `TX4` (spec `TX_4X4`) luma transform unit: a |
| 4848 | // `TxMode::Select` 8x8 leaf or 16x16 block whose `tx_depth` read exhausts |
| 4849 | // down to the smallest size (lane-av1tx4). Extracted byte-exact from |
| 4850 | // libaom's `token_cdfs.h` `TX_SIZES` idx0 (`TX_4X4`)/`PLANE_TYPES` idx0 |
| 4851 | // (luma), the same indexing method that verified the `_LUMA_8`/`COEFF_BR_LUMA_8` |
| 4852 | // families above. |
| 4853 | |
| 4854 | /// The full luma sub-range of spec `TXB_SKIP_CONTEXTS` (contexts 0..6) for a |
| 4855 | /// resolved 4x4 luma transform, same convention as [`TXB_SKIP_LUMA_8_CTX`]. |
| 4856 | pub const TXB_SKIP_LUMA_4_Q0_CTX: = |
| 4857 | |
| 4858 | |
| 4859 | |
| 4860 | |
| 4861 | |
| 4862 | |
| 4863 | |
| 4864 | ; |
| 4865 | /// Default CDF table `TXB_SKIP_LUMA_4_Q1_CTX` (AV1 spec 9.4 initial probabilities). |
| 4866 | pub const TXB_SKIP_LUMA_4_Q1_CTX: = |
| 4867 | |
| 4868 | |
| 4869 | |
| 4870 | |
| 4871 | |
| 4872 | |
| 4873 | |
| 4874 | ; |
| 4875 | /// Default CDF table `TXB_SKIP_LUMA_4_CTX` (AV1 spec 9.4 initial probabilities). |
| 4876 | pub const TXB_SKIP_LUMA_4_CTX: = |
| 4877 | |
| 4878 | |
| 4879 | |
| 4880 | |
| 4881 | |
| 4882 | |
| 4883 | |
| 4884 | ; |
| 4885 | /// Default CDF table `TXB_SKIP_LUMA_4_Q3_CTX` (AV1 spec 9.4 initial probabilities). |
| 4886 | pub const TXB_SKIP_LUMA_4_Q3_CTX: = |
| 4887 | |
| 4888 | |
| 4889 | |
| 4890 | |
| 4891 | |
| 4892 | |
| 4893 | |
| 4894 | ; |
| 4895 | |
| 4896 | /// The end-of-block group of a 4x4 luma transform (`av1_default_eob_multi16_cdfs`, |
| 4897 | /// `PLANE_TYPES` idx0 luma). |
| 4898 | pub const EOB_PT_16_LUMA_Q0: = ; |
| 4899 | /// Default CDF table `EOB_PT_16_LUMA_Q1` (AV1 spec 9.4 initial probabilities). |
| 4900 | pub const EOB_PT_16_LUMA_Q1: = ; |
| 4901 | /// Default CDF table `EOB_PT_16_LUMA` (AV1 spec 9.4 initial probabilities). |
| 4902 | pub const EOB_PT_16_LUMA: = ; |
| 4903 | /// Default CDF table `EOB_PT_16_LUMA_Q3` (AV1 spec 9.4 initial probabilities). |
| 4904 | pub const EOB_PT_16_LUMA_Q3: = ; |
| 4905 | |
| 4906 | /// The `TX_CLASS_HORIZ`/`TX_CLASS_VERT` (non-2D-scan) sibling of |
| 4907 | /// [`EOB_PT_16_LUMA`] (`av1_default_eob_multi16_cdfs[q][0][1]`) -- read |
| 4908 | /// instead of the 2D table whenever a 4x4 luma TU's `tx_type` resolves to |
| 4909 | /// `V_DCT`/`H_DCT` (lane-av1tx4 r5: the class dimension libaom always keeps, |
| 4910 | /// this crate never carried at all until a real aomdec trace showed the |
| 4911 | /// desync starting exactly at this read). |
| 4912 | /// `av1_default_eob_multi32_cdfs` (libaom `token_cdfs.h`), luma plane, 2D tx |
| 4913 | /// class: the end-of-block group of a 32-position transform -- the |
| 4914 | /// `TX_4X8`/`TX_8X4` pair this decoder reaches through |
| 4915 | /// [`crate::cdf_state::TxbSet::LumaRect4x8`] (lane-tx4x8). Q-context 2 |
| 4916 | /// (`base_q_idx` 61..=120) is the unsuffixed name, as everywhere else here. |
| 4917 | pub const EOB_PT_32_LUMA_Q0: = ; |
| 4918 | /// [`EOB_PT_32_LUMA_Q0`]'s q-context 1 (`base_q_idx` 21..=60) sibling. |
| 4919 | pub const EOB_PT_32_LUMA_Q1: = ; |
| 4920 | /// [`EOB_PT_32_LUMA_Q0`]'s q-context 2 (`base_q_idx` 61..=120) sibling. |
| 4921 | pub const EOB_PT_32_LUMA: = ; |
| 4922 | /// [`EOB_PT_32_LUMA_Q0`]'s q-context 3 (`base_q_idx` 121..=255) sibling. |
| 4923 | pub const EOB_PT_32_LUMA_Q3: = ; |
| 4924 | /// [`EOB_PT_32_LUMA`]'s `TX_CLASS_HORIZ`/`TX_CLASS_VERT` sibling (the `[1]` |
| 4925 | /// row of the same libaom table), read instead whenever the TU's `tx_type` |
| 4926 | /// is `V_DCT`/`H_DCT` -- reachable at 4x8/8x4 because that size's intra |
| 4927 | /// `tx_type` set is `EXT_TX_SET_DTT4_IDTX_1DDCT`, which carries both. |
| 4928 | pub const EOB_PT_32_LUMA_CLASS1_Q0: = ; |
| 4929 | /// [`EOB_PT_32_LUMA_CLASS1_Q0`]'s q-context 1 sibling. |
| 4930 | pub const EOB_PT_32_LUMA_CLASS1_Q1: = ; |
| 4931 | /// [`EOB_PT_32_LUMA_CLASS1_Q0`]'s q-context 2 sibling. |
| 4932 | pub const EOB_PT_32_LUMA_CLASS1: = ; |
| 4933 | /// [`EOB_PT_32_LUMA_CLASS1_Q0`]'s q-context 3 sibling. |
| 4934 | pub const EOB_PT_32_LUMA_CLASS1_Q3: = ; |
| 4935 | |
| 4936 | /// Default CDF table `EOB_PT_16_LUMA_CLASS1_Q0` (AV1 spec 9.4 initial probabilities). |
| 4937 | pub const EOB_PT_16_LUMA_CLASS1_Q0: = ; |
| 4938 | /// Default CDF table `EOB_PT_16_LUMA_CLASS1_Q1` (AV1 spec 9.4 initial probabilities). |
| 4939 | pub const EOB_PT_16_LUMA_CLASS1_Q1: = ; |
| 4940 | /// Default CDF table `EOB_PT_16_LUMA_CLASS1` (AV1 spec 9.4 initial probabilities). |
| 4941 | pub const EOB_PT_16_LUMA_CLASS1: = ; |
| 4942 | /// Default CDF table `EOB_PT_16_LUMA_CLASS1_Q3` (AV1 spec 9.4 initial probabilities). |
| 4943 | pub const EOB_PT_16_LUMA_CLASS1_Q3: = ; |
| 4944 | |
| 4945 | // EOB_EXTRA_LUMA_4 |
| 4946 | /// Default CDF table `EOB_EXTRA_LUMA_4_Q0` (AV1 spec 9.4 initial probabilities). |
| 4947 | pub const EOB_EXTRA_LUMA_4_Q0: = |
| 4948 | |
| 4949 | |
| 4950 | |
| 4951 | |
| 4952 | |
| 4953 | |
| 4954 | |
| 4955 | |
| 4956 | |
| 4957 | ; |
| 4958 | |
| 4959 | /// Default CDF table `EOB_EXTRA_LUMA_4_Q1` (AV1 spec 9.4 initial probabilities). |
| 4960 | pub const EOB_EXTRA_LUMA_4_Q1: = |
| 4961 | |
| 4962 | |
| 4963 | |
| 4964 | |
| 4965 | |
| 4966 | |
| 4967 | |
| 4968 | |
| 4969 | |
| 4970 | ; |
| 4971 | |
| 4972 | /// Default CDF table `EOB_EXTRA_LUMA_4` (AV1 spec 9.4 initial probabilities). |
| 4973 | pub const EOB_EXTRA_LUMA_4: = |
| 4974 | |
| 4975 | |
| 4976 | |
| 4977 | |
| 4978 | |
| 4979 | |
| 4980 | |
| 4981 | |
| 4982 | |
| 4983 | ; |
| 4984 | |
| 4985 | /// Default CDF table `EOB_EXTRA_LUMA_4_Q3` (AV1 spec 9.4 initial probabilities). |
| 4986 | pub const EOB_EXTRA_LUMA_4_Q3: = |
| 4987 | |
| 4988 | |
| 4989 | |
| 4990 | |
| 4991 | |
| 4992 | |
| 4993 | |
| 4994 | |
| 4995 | |
| 4996 | ; |
| 4997 | |
| 4998 | // COEFF_BASE_LUMA_4 |
| 4999 | /// Default CDF table `COEFF_BASE_LUMA_4_Q0` (AV1 spec 9.4 initial probabilities). |
| 5000 | pub const COEFF_BASE_LUMA_4_Q0: = |
| 5001 | |
| 5002 | |
| 5003 | |
| 5004 | |
| 5005 | |
| 5006 | |
| 5007 | |
| 5008 | |
| 5009 | |
| 5010 | |
| 5011 | |
| 5012 | |
| 5013 | |
| 5014 | |
| 5015 | |
| 5016 | |
| 5017 | |
| 5018 | |
| 5019 | |
| 5020 | |
| 5021 | |
| 5022 | |
| 5023 | |
| 5024 | |
| 5025 | |
| 5026 | |
| 5027 | |
| 5028 | |
| 5029 | |
| 5030 | |
| 5031 | |
| 5032 | |
| 5033 | |
| 5034 | |
| 5035 | |
| 5036 | |
| 5037 | |
| 5038 | |
| 5039 | |
| 5040 | |
| 5041 | |
| 5042 | |
| 5043 | ; |
| 5044 | |
| 5045 | /// Default CDF table `COEFF_BASE_LUMA_4_Q1` (AV1 spec 9.4 initial probabilities). |
| 5046 | pub const COEFF_BASE_LUMA_4_Q1: = |
| 5047 | |
| 5048 | |
| 5049 | |
| 5050 | |
| 5051 | |
| 5052 | |
| 5053 | |
| 5054 | |
| 5055 | |
| 5056 | |
| 5057 | |
| 5058 | |
| 5059 | |
| 5060 | |
| 5061 | |
| 5062 | |
| 5063 | |
| 5064 | |
| 5065 | |
| 5066 | |
| 5067 | |
| 5068 | |
| 5069 | |
| 5070 | |
| 5071 | |
| 5072 | |
| 5073 | |
| 5074 | |
| 5075 | |
| 5076 | |
| 5077 | |
| 5078 | |
| 5079 | |
| 5080 | |
| 5081 | |
| 5082 | |
| 5083 | |
| 5084 | |
| 5085 | |
| 5086 | |
| 5087 | |
| 5088 | |
| 5089 | ; |
| 5090 | |
| 5091 | /// Default CDF table `COEFF_BASE_LUMA_4` (AV1 spec 9.4 initial probabilities). |
| 5092 | pub const COEFF_BASE_LUMA_4: = |
| 5093 | |
| 5094 | |
| 5095 | |
| 5096 | |
| 5097 | |
| 5098 | |
| 5099 | |
| 5100 | |
| 5101 | |
| 5102 | |
| 5103 | |
| 5104 | |
| 5105 | |
| 5106 | |
| 5107 | |
| 5108 | |
| 5109 | |
| 5110 | |
| 5111 | |
| 5112 | |
| 5113 | |
| 5114 | |
| 5115 | |
| 5116 | |
| 5117 | |
| 5118 | |
| 5119 | |
| 5120 | |
| 5121 | |
| 5122 | |
| 5123 | |
| 5124 | |
| 5125 | |
| 5126 | |
| 5127 | |
| 5128 | |
| 5129 | |
| 5130 | |
| 5131 | |
| 5132 | |
| 5133 | |
| 5134 | |
| 5135 | ; |
| 5136 | |
| 5137 | /// Default CDF table `COEFF_BASE_LUMA_4_Q3` (AV1 spec 9.4 initial probabilities). |
| 5138 | pub const COEFF_BASE_LUMA_4_Q3: = |
| 5139 | |
| 5140 | |
| 5141 | |
| 5142 | |
| 5143 | |
| 5144 | |
| 5145 | |
| 5146 | |
| 5147 | |
| 5148 | |
| 5149 | |
| 5150 | |
| 5151 | |
| 5152 | |
| 5153 | |
| 5154 | |
| 5155 | |
| 5156 | |
| 5157 | |
| 5158 | |
| 5159 | |
| 5160 | |
| 5161 | |
| 5162 | |
| 5163 | |
| 5164 | |
| 5165 | |
| 5166 | |
| 5167 | |
| 5168 | |
| 5169 | |
| 5170 | |
| 5171 | |
| 5172 | |
| 5173 | |
| 5174 | |
| 5175 | |
| 5176 | |
| 5177 | |
| 5178 | |
| 5179 | |
| 5180 | |
| 5181 | ; |
| 5182 | |
| 5183 | // COEFF_BASE_EOB_LUMA_4 |
| 5184 | /// Default CDF table `COEFF_BASE_EOB_LUMA_4_Q0` (AV1 spec 9.4 initial probabilities). |
| 5185 | pub const COEFF_BASE_EOB_LUMA_4_Q0: = |
| 5186 | |
| 5187 | |
| 5188 | |
| 5189 | |
| 5190 | ; |
| 5191 | |
| 5192 | /// Default CDF table `COEFF_BASE_EOB_LUMA_4_Q1` (AV1 spec 9.4 initial probabilities). |
| 5193 | pub const COEFF_BASE_EOB_LUMA_4_Q1: = |
| 5194 | |
| 5195 | |
| 5196 | |
| 5197 | |
| 5198 | ; |
| 5199 | |
| 5200 | /// Default CDF table `COEFF_BASE_EOB_LUMA_4` (AV1 spec 9.4 initial probabilities). |
| 5201 | pub const COEFF_BASE_EOB_LUMA_4: = |
| 5202 | |
| 5203 | |
| 5204 | |
| 5205 | |
| 5206 | ; |
| 5207 | |
| 5208 | /// Default CDF table `COEFF_BASE_EOB_LUMA_4_Q3` (AV1 spec 9.4 initial probabilities). |
| 5209 | pub const COEFF_BASE_EOB_LUMA_4_Q3: = |
| 5210 | |
| 5211 | |
| 5212 | |
| 5213 | |
| 5214 | ; |
| 5215 | |
| 5216 | // COEFF_BR_LUMA_4 |
| 5217 | /// Default CDF table `COEFF_BR_LUMA_4_Q0` (AV1 spec 9.4 initial probabilities). |
| 5218 | pub const COEFF_BR_LUMA_4_Q0: = |
| 5219 | |
| 5220 | |
| 5221 | |
| 5222 | |
| 5223 | |
| 5224 | |
| 5225 | |
| 5226 | |
| 5227 | |
| 5228 | |
| 5229 | |
| 5230 | |
| 5231 | |
| 5232 | |
| 5233 | |
| 5234 | |
| 5235 | |
| 5236 | |
| 5237 | |
| 5238 | |
| 5239 | |
| 5240 | ; |
| 5241 | |
| 5242 | /// Default CDF table `COEFF_BR_LUMA_4_Q1` (AV1 spec 9.4 initial probabilities). |
| 5243 | pub const COEFF_BR_LUMA_4_Q1: = |
| 5244 | |
| 5245 | |
| 5246 | |
| 5247 | |
| 5248 | |
| 5249 | |
| 5250 | |
| 5251 | |
| 5252 | |
| 5253 | |
| 5254 | |
| 5255 | |
| 5256 | |
| 5257 | |
| 5258 | |
| 5259 | |
| 5260 | |
| 5261 | |
| 5262 | |
| 5263 | |
| 5264 | |
| 5265 | ; |
| 5266 | |
| 5267 | /// Default CDF table `COEFF_BR_LUMA_4` (AV1 spec 9.4 initial probabilities). |
| 5268 | pub const COEFF_BR_LUMA_4: = |
| 5269 | |
| 5270 | |
| 5271 | |
| 5272 | |
| 5273 | |
| 5274 | |
| 5275 | |
| 5276 | |
| 5277 | |
| 5278 | |
| 5279 | |
| 5280 | |
| 5281 | |
| 5282 | |
| 5283 | |
| 5284 | |
| 5285 | |
| 5286 | |
| 5287 | |
| 5288 | |
| 5289 | |
| 5290 | ; |
| 5291 | |
| 5292 | /// Default CDF table `COEFF_BR_LUMA_4_Q3` (AV1 spec 9.4 initial probabilities). |
| 5293 | pub const COEFF_BR_LUMA_4_Q3: = |
| 5294 | |
| 5295 | |
| 5296 | |
| 5297 | |
| 5298 | |
| 5299 | |
| 5300 | |
| 5301 | |
| 5302 | |
| 5303 | |
| 5304 | |
| 5305 | |
| 5306 | |
| 5307 | |
| 5308 | |
| 5309 | |
| 5310 | |
| 5311 | |
| 5312 | |
| 5313 | |
| 5314 | |
| 5315 | ; |
| 5316 | |
| 5317 | /// `Default_Intra_Ext_Tx_Cdf`'s `TX_SET_INTRA_1` row for `TX_4X4` (spec |
| 5318 | /// 9.4): the transform type of an intra 4x4 transform when `reduced_tx_set` |
| 5319 | /// is false. Same `Luma8`/`Luma8Set1` split as [`INTRA_TX_TYPE_SET1_8`], |
| 5320 | /// kept named for the day a non-reduced path exists. |
| 5321 | pub const INTRA_TX_TYPE_SET1_4: = |
| 5322 | |
| 5323 | |
| 5324 | |
| 5325 | |
| 5326 | |
| 5327 | |
| 5328 | |
| 5329 | |
| 5330 | |
| 5331 | |
| 5332 | |
| 5333 | |
| 5334 | |
| 5335 | ; |
| 5336 | |
| 5337 | /// The `TX_CLASS_HORIZ`/`TX_CLASS_VERT` siblings of [`EOB_PT_256_LUMA`], |
| 5338 | /// [`EOB_PT_256_CHROMA`], [`EOB_PT_64_CHROMA`] and [`EOB_PT_16_CHROMA`] |
| 5339 | /// (`av1_default_eob_multi{256,64,16}_cdfs[q][plane][1]`, `token_cdfs.h`) -- |
| 5340 | /// lane-txselect r2: the class dimension libaom keeps on *every* eob_pt |
| 5341 | /// table. Only 4x4/8x8 luma carried it here, so the first `V_DCT`/`H_DCT` |
| 5342 | /// 16x16 luma TU (a var-tx leaf of a 32x32 inter block, `EXT_TX_SET_ |
| 5343 | /// DTT9_IDTX_1DDCT`) read the 2D table and desynced at its `eob`. 32-point |
| 5344 | /// and larger transforms need no sibling: their tx sets (`DCT_IDTX`, |
| 5345 | /// `DCTONLY`) hold no 1D type. |
| 5346 | pub const EOB_PT_256_LUMA_CLASS1_Q0: = |
| 5347 | ; |
| 5348 | /// Default CDF table `EOB_PT_256_LUMA_CLASS1_Q1` (AV1 spec 9.4 initial probabilities). |
| 5349 | pub const EOB_PT_256_LUMA_CLASS1_Q1: = |
| 5350 | ; |
| 5351 | /// Default CDF table `EOB_PT_256_LUMA_CLASS1` (AV1 spec 9.4 initial probabilities). |
| 5352 | pub const EOB_PT_256_LUMA_CLASS1: = |
| 5353 | ; |
| 5354 | /// Default CDF table `EOB_PT_256_LUMA_CLASS1_Q3` (AV1 spec 9.4 initial probabilities). |
| 5355 | pub const EOB_PT_256_LUMA_CLASS1_Q3: = |
| 5356 | ; |
| 5357 | |
| 5358 | /// Default CDF table `EOB_PT_256_CHROMA_CLASS1_Q0` (AV1 spec 9.4 initial probabilities). |
| 5359 | pub const EOB_PT_256_CHROMA_CLASS1_Q0: = |
| 5360 | ; |
| 5361 | /// Default CDF table `EOB_PT_256_CHROMA_CLASS1_Q1` (AV1 spec 9.4 initial probabilities). |
| 5362 | pub const EOB_PT_256_CHROMA_CLASS1_Q1: = |
| 5363 | ; |
| 5364 | /// Default CDF table `EOB_PT_256_CHROMA_CLASS1` (AV1 spec 9.4 initial probabilities). |
| 5365 | pub const EOB_PT_256_CHROMA_CLASS1: = |
| 5366 | ; |
| 5367 | /// Default CDF table `EOB_PT_256_CHROMA_CLASS1_Q3` (AV1 spec 9.4 initial probabilities). |
| 5368 | pub const EOB_PT_256_CHROMA_CLASS1_Q3: = |
| 5369 | ; |
| 5370 | |
| 5371 | /// Default CDF table `EOB_PT_64_CHROMA_CLASS1_Q0` (AV1 spec 9.4 initial probabilities). |
| 5372 | pub const EOB_PT_64_CHROMA_CLASS1_Q0: = |
| 5373 | ; |
| 5374 | /// Default CDF table `EOB_PT_64_CHROMA_CLASS1_Q1` (AV1 spec 9.4 initial probabilities). |
| 5375 | pub const EOB_PT_64_CHROMA_CLASS1_Q1: = |
| 5376 | ; |
| 5377 | /// Default CDF table `EOB_PT_64_CHROMA_CLASS1` (AV1 spec 9.4 initial probabilities). |
| 5378 | pub const EOB_PT_64_CHROMA_CLASS1: = |
| 5379 | ; |
| 5380 | /// Default CDF table `EOB_PT_64_CHROMA_CLASS1_Q3` (AV1 spec 9.4 initial probabilities). |
| 5381 | pub const EOB_PT_64_CHROMA_CLASS1_Q3: = |
| 5382 | ; |
| 5383 | |
| 5384 | /// Default CDF table `EOB_PT_16_CHROMA_CLASS1_Q0` (AV1 spec 9.4 initial probabilities). |
| 5385 | pub const EOB_PT_16_CHROMA_CLASS1_Q0: = ; |
| 5386 | /// Default CDF table `EOB_PT_16_CHROMA_CLASS1_Q1` (AV1 spec 9.4 initial probabilities). |
| 5387 | pub const EOB_PT_16_CHROMA_CLASS1_Q1: = ; |
| 5388 | /// Default CDF table `EOB_PT_16_CHROMA_CLASS1` (AV1 spec 9.4 initial probabilities). |
| 5389 | pub const EOB_PT_16_CHROMA_CLASS1: = ; |
| 5390 | /// Default CDF table `EOB_PT_16_CHROMA_CLASS1_Q3` (AV1 spec 9.4 initial probabilities). |
| 5391 | pub const EOB_PT_16_CHROMA_CLASS1_Q3: = ; |
| 5392 | |
| 5393 | /// `EOB_PT_128_LUMA`'s class-1 sibling (`av1_default_eob_multi128_cdfs[q][0][1]`), |
| 5394 | /// read by a 16x8/8x16 luma transform whose inherited `tx_type` is 1D |
| 5395 | /// (`TxbSet::LumaRect16x8`) -- machine-extracted, scripts/extract-eob-class1.py. |
| 5396 | pub const EOB_PT_128_LUMA_CLASS1_Q0: = ; |
| 5397 | /// Default CDF table `EOB_PT_128_LUMA_CLASS1_Q1` (AV1 spec 9.4 initial probabilities). |
| 5398 | pub const EOB_PT_128_LUMA_CLASS1_Q1: = ; |
| 5399 | /// Default CDF table `EOB_PT_128_LUMA_CLASS1` (AV1 spec 9.4 initial probabilities). |
| 5400 | pub const EOB_PT_128_LUMA_CLASS1: = ; |
| 5401 | /// Default CDF table `EOB_PT_128_LUMA_CLASS1_Q3` (AV1 spec 9.4 initial probabilities). |
| 5402 | pub const EOB_PT_128_LUMA_CLASS1_Q3: = ; |
| 5403 | |
| 5404 | /// `EOB_PT_32_CHROMA`'s class-1 sibling (`av1_default_eob_multi32_cdfs[q][1][1]`), |
| 5405 | /// read by an 8x4/4x8 chroma transform under a 1D luma `tx_type` |
| 5406 | /// (`TxbSet::ChromaRect8x4`) -- machine-extracted, scripts/extract-eob-class1.py. |
| 5407 | pub const EOB_PT_32_CHROMA_CLASS1_Q0: = ; |
| 5408 | /// Default CDF table `EOB_PT_32_CHROMA_CLASS1_Q1` (AV1 spec 9.4 initial probabilities). |
| 5409 | pub const EOB_PT_32_CHROMA_CLASS1_Q1: = ; |
| 5410 | /// Default CDF table `EOB_PT_32_CHROMA_CLASS1` (AV1 spec 9.4 initial probabilities). |
| 5411 | pub const EOB_PT_32_CHROMA_CLASS1: = ; |
| 5412 | /// Default CDF table `EOB_PT_32_CHROMA_CLASS1_Q3` (AV1 spec 9.4 initial probabilities). |
| 5413 | pub const EOB_PT_32_CHROMA_CLASS1_Q3: = ; |
| 5414 | |
| 5415 | /// `EOB_PT_128_CHROMA`'s class-1 sibling (`av1_default_eob_multi128_cdfs[q][1][1]`). |
| 5416 | pub const EOB_PT_128_CHROMA_CLASS1_Q0: = ; |
| 5417 | /// Default CDF table `EOB_PT_128_CHROMA_CLASS1_Q1` (AV1 spec 9.4 initial probabilities). |
| 5418 | pub const EOB_PT_128_CHROMA_CLASS1_Q1: = ; |
| 5419 | /// Default CDF table `EOB_PT_128_CHROMA_CLASS1` (AV1 spec 9.4 initial probabilities). |
| 5420 | pub const EOB_PT_128_CHROMA_CLASS1: = ; |
| 5421 | /// Default CDF table `EOB_PT_128_CHROMA_CLASS1_Q3` (AV1 spec 9.4 initial probabilities). |
| 5422 | pub const EOB_PT_128_CHROMA_CLASS1_Q3: = ; |
| 5423 | |
| 5424 | /// `EOB_PT_512_LUMA`'s class-1 sibling (`av1_default_eob_multi512_cdfs[q][0][1]`). |
| 5425 | pub const EOB_PT_512_LUMA_CLASS1_Q0: = ; |
| 5426 | /// Default CDF table `EOB_PT_512_LUMA_CLASS1_Q1` (AV1 spec 9.4 initial probabilities). |
| 5427 | pub const EOB_PT_512_LUMA_CLASS1_Q1: = ; |
| 5428 | /// Default CDF table `EOB_PT_512_LUMA_CLASS1` (AV1 spec 9.4 initial probabilities). |
| 5429 | pub const EOB_PT_512_LUMA_CLASS1: = ; |
| 5430 | /// Default CDF table `EOB_PT_512_LUMA_CLASS1_Q3` (AV1 spec 9.4 initial probabilities). |
| 5431 | pub const EOB_PT_512_LUMA_CLASS1_Q3: = ; |
| 5432 | |
| 5433 | /// `EOB_PT_512_CHROMA`'s class-1 sibling (`av1_default_eob_multi512_cdfs[q][1][1]`). |
| 5434 | pub const EOB_PT_512_CHROMA_CLASS1_Q0: = ; |
| 5435 | /// Default CDF table `EOB_PT_512_CHROMA_CLASS1_Q1` (AV1 spec 9.4 initial probabilities). |
| 5436 | pub const EOB_PT_512_CHROMA_CLASS1_Q1: = ; |
| 5437 | /// Default CDF table `EOB_PT_512_CHROMA_CLASS1` (AV1 spec 9.4 initial probabilities). |
| 5438 | pub const EOB_PT_512_CHROMA_CLASS1: = ; |
| 5439 | /// Default CDF table `EOB_PT_512_CHROMA_CLASS1_Q3` (AV1 spec 9.4 initial probabilities). |
| 5440 | pub const EOB_PT_512_CHROMA_CLASS1_Q3: = ; |
| 5441 | |
| 5442 | /// `EOB_PT_1024_LUMA`'s class-1 sibling (`av1_default_eob_multi1024_cdfs[q][0][1]`). |
| 5443 | pub const EOB_PT_1024_LUMA_CLASS1_Q0: = ; |
| 5444 | /// Default CDF table `EOB_PT_1024_LUMA_CLASS1_Q1` (AV1 spec 9.4 initial probabilities). |
| 5445 | pub const EOB_PT_1024_LUMA_CLASS1_Q1: = ; |
| 5446 | /// Default CDF table `EOB_PT_1024_LUMA_CLASS1` (AV1 spec 9.4 initial probabilities). |
| 5447 | pub const EOB_PT_1024_LUMA_CLASS1: = ; |
| 5448 | /// Default CDF table `EOB_PT_1024_LUMA_CLASS1_Q3` (AV1 spec 9.4 initial probabilities). |
| 5449 | pub const EOB_PT_1024_LUMA_CLASS1_Q3: = ; |
| 5450 | |
| 5451 | /// `EOB_PT_1024_CHROMA`'s class-1 sibling (`av1_default_eob_multi1024_cdfs[q][1][1]`). |
| 5452 | pub const EOB_PT_1024_CHROMA_CLASS1_Q0: = ; |
| 5453 | /// Default CDF table `EOB_PT_1024_CHROMA_CLASS1_Q1` (AV1 spec 9.4 initial probabilities). |
| 5454 | pub const EOB_PT_1024_CHROMA_CLASS1_Q1: = ; |
| 5455 | /// Default CDF table `EOB_PT_1024_CHROMA_CLASS1` (AV1 spec 9.4 initial probabilities). |
| 5456 | pub const EOB_PT_1024_CHROMA_CLASS1: = ; |
| 5457 | /// Default CDF table `EOB_PT_1024_CHROMA_CLASS1_Q3` (AV1 spec 9.4 initial probabilities). |
| 5458 | pub const EOB_PT_1024_CHROMA_CLASS1_Q3: = ; |
| 5459 |