edith_codecs
Clone
https://git.tahinli.com/Tahinli/edith_codecs.git
0 watching0 forksRust370.3 MiBb7434a2Tahinli1 month ago3896 commits
| 1 | use *; |
| 2 | |
| 3 | /// lane-split census (`EC_AV1_SPLIT_CENSUS=1`): the split decision itself, |
| 4 | /// bucketed by site (0 = intra `tx_depth`, 1 = inter var-tx), frame type |
| 5 | /// (0 = key, 1 = inter) and block side (8/16/32/64). Ten counters per bucket: |
| 6 | /// trials offered, trials the split won, then the (rate, distortion) of the |
| 7 | /// split and flat arms summed apart for the split-won and flat-won trials -- |
| 8 | /// rate scaled by 64 into an integer counter, as [`TXRD_STATS`] is. |
| 9 | pub static SPLIT_CENSUS: = |
| 10 | ; |
| 11 | |
| 12 | /// Whether [`SPLIT_CENSUS`] is armed, read once. |
| 13 | pub |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | /// Where one (site, frame type, block side) bucket starts in [`SPLIT_CENSUS`]. |
| 20 | /// Sides below 8 and above 64 fold into the end rows, which no caller offers. |
| 21 | pub |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | /// Records one split trial into [`SPLIT_CENSUS`]. `split` and `flat` are each |
| 27 | /// `(rate in bits, distortion as squared error)`. |
| 28 | pub |
| 29 | |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | |
| 37 | |
| 38 | |
| 39 | |
| 40 | |
| 41 | |
| 42 | |
| 43 | |
| 44 | |
| 45 | |
| 46 | |
| 47 | |
| 48 | |
| 49 | |
| 50 | |
| 51 | |
| 52 | |
| 53 | |
| 54 | |
| 55 | |
| 56 | |
| 57 | |
| 58 | |
| 59 | /// Prints [`SPLIT_CENSUS`] to stderr when `EC_AV1_SPLIT_CENSUS=1`. Called at |
| 60 | /// the end of every `Av1Encoder::encode_frames` call and NOT reset, so the |
| 61 | /// last table a run prints is the whole encode's total (there is no flush |
| 62 | /// hook the encoder API guarantees to reach). |
| 63 | pub |
| 64 | |
| 65 | |
| 66 | |
| 67 | |
| 68 | |
| 69 | |
| 70 | |
| 71 | |
| 72 | |
| 73 | |
| 74 | |
| 75 | |
| 76 | |
| 77 | |
| 78 | |
| 79 | |
| 80 | |
| 81 | |
| 82 | |
| 83 | |
| 84 | |
| 85 | |
| 86 | |
| 87 | |
| 88 | |
| 89 | |
| 90 | |
| 91 | |
| 92 | |
| 93 | |
| 94 | |
| 95 | |
| 96 | |
| 97 | |
| 98 | |
| 99 | |
| 100 | /// lane-newmv: a multiplier on the mv RATE term of the BLOCK-level inter |
| 101 | /// decision only -- the `NEWMV` candidate's own mv residual + DRL bits, not |
| 102 | /// its mode/reference syntax and not the search's own cost function |
| 103 | /// ([`crate::motion`]'s `EC_AV1_MV_SEARCH_LAMBDA` is that one). `1.0` is the |
| 104 | /// control; below 1 a coded vector is charged less and `NEWMV` wins more |
| 105 | /// blocks. `EC_AV1_MV_LAMBDA`, class `rd-rate-term-calibration`. |
| 106 | pub |
| 107 | |
| 108 | |
| 109 | |
| 110 | |
| 111 | |
| 112 | |
| 113 | |
| 114 | |
| 115 | |
| 116 | /// The shipped value of [`mv_lambda_mult`]. See lanes/newmv.report.md. |
| 117 | pub const MV_LAMBDA: f64 = 1.0; |
| 118 | |
| 119 | /// What a `NEWMV` candidate is charged ON TOP of its own priced mv syntax |
| 120 | /// bits, `(EC_AV1_MV_LAMBDA - 1) * mv_bits` (added to the candidate's bits, |
| 121 | /// which the RD cost multiplies by lambda). Zero at the default weight. |
| 122 | pub |
| 123 | |
| 124 | |
| 125 | |
| 126 | /// lane-newmv census (`EC_AV1_NEWMV_CENSUS=1`): the block-level `NEWMV` |
| 127 | /// decision, bucketed by block side (8/16/32/64). Eight counters per bucket: |
| 128 | /// 0 blocks that ran a `LAST` motion search, 1 of those whose vector the |
| 129 | /// writer could name (offered to RD), 2 blocks `NEWMV` won, 3 the summed RD |
| 130 | /// cost it won by, 4 the summed cost it lost by, 5 the summed |
| 131 | /// `|mv - nearest_mv|` (1/8-pel units, both axes), 6 blocks whose searched |
| 132 | /// vector IS the stack's `NEARESTMV`, 7 the summed mv syntax bits (x64, as |
| 133 | /// [`SPLIT_CENSUS`]'s rate terms are). Four globals follow at 32: extra- |
| 134 | /// reference searches offered/skipped by [`EXTRA_NEW_SKIP_MARGIN`], leaf |
| 135 | /// second-reference searches offered/skipped by [`LEAF_SECOND_NEW_MARGIN`]. |
| 136 | pub static NEWMV_CENSUS: = |
| 137 | ; |
| 138 | |
| 139 | /// Whether [`NEWMV_CENSUS`] is armed, read once. |
| 140 | pub |
| 141 | |
| 142 | |
| 143 | |
| 144 | |
| 145 | |
| 146 | /// Bumps one of [`NEWMV_CENSUS`]'s four global counters (32..36). |
| 147 | pub |
| 148 | |
| 149 | |
| 150 | |
| 151 | |
| 152 | |
| 153 | /// Records one block's `NEWMV` decision into [`NEWMV_CENSUS`]. `other_cost` |
| 154 | /// is the best cost the block had WITHOUT the `NEWMV` candidate (its |
| 155 | /// `NEAREST`/`NEAR`/`GLOBAL`/intra winner), `new_cost` the `NEWMV` |
| 156 | /// candidate's own; both `f64::INFINITY` is a block that offered neither. |
| 157 | pub |
| 158 | |
| 159 | |
| 160 | |
| 161 | |
| 162 | |
| 163 | |
| 164 | |
| 165 | |
| 166 | |
| 167 | |
| 168 | |
| 169 | |
| 170 | |
| 171 | |
| 172 | |
| 173 | |
| 174 | |
| 175 | |
| 176 | |
| 177 | |
| 178 | |
| 179 | |
| 180 | |
| 181 | |
| 182 | |
| 183 | |
| 184 | |
| 185 | |
| 186 | |
| 187 | |
| 188 | |
| 189 | |
| 190 | |
| 191 | |
| 192 | |
| 193 | |
| 194 | |
| 195 | /// Prints [`NEWMV_CENSUS`] to stderr when `EC_AV1_NEWMV_CENSUS=1`, on the |
| 196 | /// same guard [`dump_split_census`] rides (cumulative, so the last table a |
| 197 | /// run prints is the whole encode's). |
| 198 | pub |
| 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 | |
| 241 | |
| 242 | |
| 243 | |
| 244 | |
| 245 | |
| 246 | |
| 247 | |
| 248 | |
| 249 | |
| 250 | |
| 251 | |
| 252 | |
| 253 | |
| 254 | |
| 255 | |
| 256 | |
| 257 | |
| 258 | |
| 259 | |
| 260 | |
| 261 | |
| 262 | |
| 263 | |
| 264 | |
| 265 | |
| 266 | |
| 267 | /// [`TX_TYPE_HITS`] for the INTER luma units (lane-txset2), counted apart so |
| 268 | /// the intra witness's fire count stays its own. |
| 269 | pub static INTER_TX_TYPE_HITS: = |
| 270 | ; |
| 271 | |
| 272 | /// lane-txrd: a multiplier on the rate term of the TRANSFORM-TYPE decision |
| 273 | /// only (`EC_AV1_TXRD_LAMBDA`, default 1.0 = the mode search's own weight). |
| 274 | /// `0` compares types on reconstruction error alone, which is what separates |
| 275 | /// a rate-term calibration (class `rd-rate-term-calibration`) from a |
| 276 | /// distortion the trial mis-measures. |
| 277 | pub |
| 278 | |
| 279 | |
| 280 | |
| 281 | |
| 282 | |
| 283 | |
| 284 | |
| 285 | |
| 286 | |
| 287 | /// lane-txi: what a non-`DCT_DCT` transform type is charged ON TOP of its own |
| 288 | /// priced bits -- `(EC_AV1_TXRD_LAMBDA - 1) * lambda * bits`, zero at the |
| 289 | /// default weight of 1 and for `DCT_DCT` itself. The instrument the film |
| 290 | /// question needs: at weight 1 the five-type intra search spends 1.2% more |
| 291 | /// bytes for 0.04 dB on both film rows, so what it under-charges is the rate |
| 292 | /// of the type it picks. |
| 293 | pub |
| 294 | |
| 295 | |
| 296 | |
| 297 | |
| 298 | |
| 299 | |
| 300 | |
| 301 | /// lane-txrd instrument: over the FLAT inter luma decision, the summed |
| 302 | /// reconstruction error and priced bits of the type the search chose against |
| 303 | /// the `DCT_DCT` trial it was compared with. Both are `* 64` so they fit an |
| 304 | /// integer counter. `EC_AV1_TXRD_CENSUS`. |
| 305 | pub static TXRD_STATS: = |
| 306 | |
| 307 | |
| 308 | |
| 309 | |
| 310 | |
| 311 | |
| 312 | |
| 313 | ; |
| 314 | |
| 315 | /// Reads [`TXRD_STATS`] and zeroes it. Only the gate reads it, so the lib |
| 316 | /// build would warn `dead_code` (class from lane-txset2's `coeff_bits`). |
| 317 | |
| 318 | pub |
| 319 | |
| 320 | |
| 321 | |
| 322 | /// Reads [`INTER_TX_TYPE_HITS`] and zeroes it. |
| 323 | |
| 324 | pub |
| 325 | |
| 326 | |
| 327 | |
| 328 | /// How many luma transform units resolved to each [`TxType`], indexed by the |
| 329 | /// enum's own discriminant (lane-txset): the fire count a witness asserts on, |
| 330 | /// and the instrument that says which types the search actually reaches. |
| 331 | pub static TX_TYPE_HITS: = |
| 332 | ; |
| 333 | |
| 334 | /// Reads [`TX_TYPE_HITS`] and zeroes it, so a gate or a test attributes the |
| 335 | /// counts to its own encode. |
| 336 | |
| 337 | pub |
| 338 | |
| 339 | |
| 340 | |
| 341 | /// How many blocks resolved to each `tx_depth`, the fire count that says |
| 342 | /// whether the depth search below reaches its candidates at all. |
| 343 | pub static TX_DEPTH_HITS: = |
| 344 | ; |
| 345 | |
| 346 | /// Reads [`TX_DEPTH_HITS`] and zeroes it, so a gate can attribute the counts |
| 347 | /// to its own encode. |
| 348 | |
| 349 | pub |
| 350 | |
| 351 | |
| 352 | |
| 353 | /// How many inter blocks resolved to each var-tx depth (0 = one transform |
| 354 | /// over the whole block, 1 = its four halves), the fire count a gate prints |
| 355 | /// to see the split search reach its candidates at all. Indexed |
| 356 | /// `(block is 32x32) * 4 + (block is compound) * 2 + depth`, so one census |
| 357 | /// says which of the four block classes the split reaches -- the 32x32 root |
| 358 | /// and the compound blocks are this lane's two new ones. |
| 359 | pub static INTER_TX_SPLIT_HITS: = |
| 360 | ; |
| 361 | |
| 362 | /// Whether a 32x32 inter winner searches its own var-tx depth (the four |
| 363 | /// 16x16 units against the flat transform) instead of coding depth 0 blind. |
| 364 | /// ON by default; `EC_AV1_TX32_DEPTH=0` turns it off. |
| 365 | /// |
| 366 | /// Rejected three times on the bars rows of the native gate (flat to +0.3). |
| 367 | /// lane-av1resweep re-judged it on the two REAL film crops at |
| 368 | /// [`LAMBDA_SCALE`] 0.05, where it is the largest single lever in this file |
| 369 | /// (BD vs libaom / vs rav1e, shipped -> `EC_AV1_TX32_DEPTH=1`): |
| 370 | /// |
| 371 | /// | clip | shipped | tx32 depth | + [`compound_var_tx`] | |
| 372 | /// |---|---|---|---| |
| 373 | /// | bars 1080p | +15.6 / -1.7 | +15.7 / -1.5 | +15.6 / -1.6 | |
| 374 | /// | bars 2160p | +46.5 / +18.8 | +46.5 / +18.8 | +46.6 / +18.8 | |
| 375 | /// | film A | +69.0 / +37.5 | +67.9 / +36.3 | +65.5 / +34.7 | |
| 376 | /// | film B | +100.0 / +61.5 | +96.6 / +58.4 | +94.5 / +56.9 | |
| 377 | /// | screen | +51.0 / -14.5 | +50.7 / -14.4 | +50.2 / -14.6 | |
| 378 | /// |
| 379 | /// The bars rows are ~90% zero-intra-cost cells, so the split never had |
| 380 | /// residual to reach there -- the tool was being judged on content that |
| 381 | /// cannot pay for it (class `gate-blind-to-feature`). `EC_AV1_TX32_DEPTH`. |
| 382 | pub |
| 383 | |
| 384 | |
| 385 | |
| 386 | |
| 387 | |
| 388 | |
| 389 | |
| 390 | |
| 391 | /// Whether a COMPOUND inter winner is offered the var-tx split at all: its |
| 392 | /// trial units have to be predicted from BOTH references |
| 393 | /// ([`mc_trial_compound`]) or the split would re-predict them by single- |
| 394 | /// reference translation, which is not what the decoder reconstructs. |
| 395 | /// ON by default (the table on [`tx32_depth_search`]: on real film it is |
| 396 | /// worth a further -2.4/-1.6 on film A and -2.1/-1.5 on film B on top of the |
| 397 | /// 32x32 depth search); `EC_AV1_COMP_VARTX=0` turns it off. |
| 398 | /// `EC_AV1_COMP_VARTX`. |
| 399 | pub |
| 400 | |
| 401 | |
| 402 | |
| 403 | |
| 404 | |
| 405 | |
| 406 | |
| 407 | |
| 408 | /// How many 32x32-and-below inter blocks each reference frame won, indexed by |
| 409 | /// `ref_frame` (`crate::mvstack::LAST_FRAME` = 1 .. `ALTREF_FRAME` = 7), the |
| 410 | /// fire count a gate prints to see an extra reference reach a block at all |
| 411 | /// ([[gate-blind-to-feature]]: a pyramid whose backward `ALTREF` is never |
| 412 | /// chosen is a pyramid that costs bytes and buys nothing). |
| 413 | pub static REF_FRAME_HITS: = |
| 414 | ; |
| 415 | |
| 416 | /// Reads [`REF_FRAME_HITS`] and zeroes it. |
| 417 | |
| 418 | pub |
| 419 | |
| 420 | |
| 421 | |
| 422 | /// Reads [`INTER_TX_SPLIT_HITS`] and zeroes it. |
| 423 | |
| 424 | pub |
| 425 | |
| 426 | |
| 427 | |
| 428 | /// What the `txfm_split` symbols of one inter block cost at `depth`, priced |
| 429 | /// off the neighbour-free context row the way [`tx_depth_bits`] is: depth 0 |
| 430 | /// is one flag, depth 1 is a split root plus one unsplit flag per child |
| 431 | /// (decode.rs `read_var_tx_size` stops symbol-free only at `MAX_VARTX_DEPTH` |
| 432 | /// or a 4x4 sub-size). |
| 433 | pub |
| 434 | |
| 435 | |
| 436 | |
| 437 | |
| 438 | |
| 439 | |
| 440 | |
| 441 | |
| 442 | |
| 443 | |
| 444 | |
| 445 | |
| 446 | |
| 447 | |
| 448 | |
| 449 | |
| 450 | |
| 451 | /// spec 5.11.40 / libaom `av1_get_tx_type`: an INTER block's chroma transform |
| 452 | /// type is never coded -- the decoder takes the LUMA type of the block's |
| 453 | /// chroma-reference position and reduces it to the set the chroma size allows |
| 454 | /// ([`crate::decode::reduce_inherited_chroma_tx_type`]). This encoder |
| 455 | /// quantised chroma under a `DCT_DCT` basis whatever luma chose, so every |
| 456 | /// non-`DCT_DCT` luma winner had its chroma levels inverse-transformed on a |
| 457 | /// basis they were never produced for: on the bars gate row the luma of the |
| 458 | /// unconditional tx-type arm came out BETTER on every frame (53.66 -> 53.70 |
| 459 | /// dB) while V lost seven decibels (52.52 -> 45.53) -- the whole 20-point BD |
| 460 | /// collapse two lanes attributed to the type PRICE (class |
| 461 | /// `parsed then discarded` / `override slot on one arm`: a decoder-derived |
| 462 | /// field the encoder never mirrored). |
| 463 | /// |
| 464 | /// Re-codes the two chroma planes of a committed inter block at the type the |
| 465 | /// decoder will use, `None` when the inherited type reduces to `DCT_DCT` and |
| 466 | /// the trials the caller already holds are right. |
| 467 | |
| 468 | pub |
| 469 | |
| 470 | |
| 471 | |
| 472 | |
| 473 | |
| 474 | |
| 475 | |
| 476 | |
| 477 | |
| 478 | |
| 479 | |
| 480 | |
| 481 | |
| 482 | |
| 483 | |
| 484 | |
| 485 | |
| 486 | |
| 487 | |
| 488 | |
| 489 | |
| 490 | |
| 491 | |
| 492 | |
| 493 | |
| 494 | |
| 495 | |
| 496 | |
| 497 | |
| 498 | |
| 499 | |
| 500 | |
| 501 | |
| 502 | |
| 503 | |
| 504 | |
| 505 | |
| 506 | |
| 507 | |
| 508 | |
| 509 | |
| 510 | |
| 511 | |
| 512 | |
| 513 | |
| 514 | |
| 515 | |
| 516 | |
| 517 | |
| 518 | |
| 519 | |
| 520 | |
| 521 | |
| 522 | |
| 523 | /// The inter block's own var-tx decision, once its motion vector is settled: |
| 524 | /// its residual as ONE transform over the whole block, or as the four |
| 525 | /// transforms of half the side the tree's first halving names. The prediction |
| 526 | /// is the same motion compensation either way, so the split trial |
| 527 | /// re-transforms the identical residual in four pieces -- it wins where four |
| 528 | /// small transforms carry a locally varying residual cheaper than one big |
| 529 | /// one. Commits the winner into `luma` and hands back its block-coordinate |
| 530 | /// levels, the depth the writer codes and the cost the winner adds to (or |
| 531 | /// takes off) the caller's already-computed flat cost. |
| 532 | /// |
| 533 | /// Only for a block wholly inside the frame: past the true edge the reader's |
| 534 | /// var-tx recursion skips the units that fall outside |
| 535 | /// (decode.rs `read_var_tx_size`'s `max_w_mi`/`max_h_mi` guard), which would |
| 536 | /// leave the residual units this writes unpaired. |
| 537 | |
| 538 | pub |
| 539 | |
| 540 | |
| 541 | |
| 542 | |
| 543 | |
| 544 | |
| 545 | |
| 546 | |
| 547 | |
| 548 | |
| 549 | |
| 550 | |
| 551 | |
| 552 | |
| 553 | |
| 554 | |
| 555 | |
| 556 | |
| 557 | |
| 558 | |
| 559 | |
| 560 | |
| 561 | |
| 562 | |
| 563 | |
| 564 | |
| 565 | |
| 566 | |
| 567 | |
| 568 | |
| 569 | |
| 570 | |
| 571 | |
| 572 | |
| 573 | |
| 574 | |
| 575 | |
| 576 | |
| 577 | |
| 578 | |
| 579 | |
| 580 | |
| 581 | |
| 582 | |
| 583 | |
| 584 | |
| 585 | |
| 586 | |
| 587 | |
| 588 | |
| 589 | |
| 590 | |
| 591 | |
| 592 | |
| 593 | |
| 594 | |
| 595 | |
| 596 | |
| 597 | |
| 598 | |
| 599 | |
| 600 | |
| 601 | |
| 602 | |
| 603 | |
| 604 | |
| 605 | |
| 606 | |
| 607 | |
| 608 | |
| 609 | |
| 610 | |
| 611 | |
| 612 | |
| 613 | |
| 614 | |
| 615 | |
| 616 | |
| 617 | |
| 618 | |
| 619 | |
| 620 | |
| 621 | |
| 622 | |
| 623 | |
| 624 | |
| 625 | |
| 626 | |
| 627 | |
| 628 | |
| 629 | |
| 630 | |
| 631 | |
| 632 | |
| 633 | |
| 634 | |
| 635 | |
| 636 | |
| 637 | |
| 638 | |
| 639 | |
| 640 | |
| 641 | |
| 642 | |
| 643 | |
| 644 | |
| 645 | |
| 646 | |
| 647 | |
| 648 | |
| 649 | |
| 650 | |
| 651 | |
| 652 | |
| 653 | |
| 654 | |
| 655 | |
| 656 | |
| 657 | |
| 658 | |
| 659 | |
| 660 | |
| 661 | |
| 662 | |
| 663 | |
| 664 | |
| 665 | |
| 666 | |
| 667 | |
| 668 | |
| 669 | |
| 670 | |
| 671 | |
| 672 | |
| 673 | |
| 674 | |
| 675 | |
| 676 | |
| 677 | |
| 678 | |
| 679 | |
| 680 | |
| 681 | |
| 682 | |
| 683 | |
| 684 | |
| 685 | |
| 686 | |
| 687 | |
| 688 | |
| 689 | |
| 690 | |
| 691 | |
| 692 | |
| 693 | |
| 694 | |
| 695 | |
| 696 | |
| 697 | |
| 698 | |
| 699 | |
| 700 | |
| 701 | |
| 702 | |
| 703 | |
| 704 | |
| 705 | |
| 706 | |
| 707 | |
| 708 | |
| 709 | |
| 710 | |
| 711 | |
| 712 | |
| 713 | |
| 714 | |
| 715 | |
| 716 | |
| 717 | |
| 718 | |
| 719 | |
| 720 | |
| 721 | |
| 722 | |
| 723 | |
| 724 | |
| 725 | |
| 726 | |
| 727 | |
| 728 | |
| 729 | |
| 730 | |
| 731 | |
| 732 | |
| 733 | |
| 734 | |
| 735 | |
| 736 | |
| 737 | |
| 738 | |
| 739 | |
| 740 | |
| 741 | |
| 742 | |
| 743 | |
| 744 | |
| 745 | |
| 746 | |
| 747 | |
| 748 | |
| 749 | |
| 750 | |
| 751 | |
| 752 | |
| 753 | |
| 754 | |
| 755 | |
| 756 | |
| 757 | |
| 758 | |
| 759 | |
| 760 | |
| 761 | |
| 762 | |
| 763 | |
| 764 | |
| 765 | |
| 766 | |
| 767 | |
| 768 | |
| 769 | |
| 770 | |
| 771 | |
| 772 | |
| 773 | |
| 774 | |
| 775 | |
| 776 | |
| 777 | |
| 778 | |
| 779 | |
| 780 | |
| 781 | |
| 782 | |
| 783 | |
| 784 | |
| 785 | |
| 786 | |
| 787 | |
| 788 | |
| 789 | |
| 790 | |
| 791 | |
| 792 | |
| 793 | |
| 794 | |
| 795 | |
| 796 | |
| 797 | |
| 798 | |
| 799 | |
| 800 | |
| 801 | |
| 802 | |
| 803 | |
| 804 | |
| 805 | |
| 806 | |
| 807 | |
| 808 | |
| 809 | |
| 810 | |
| 811 | |
| 812 | |
| 813 | |
| 814 | |
| 815 | |
| 816 | |
| 817 | |
| 818 | |
| 819 | |
| 820 | |
| 821 | |
| 822 | |
| 823 | |
| 824 | |
| 825 | |
| 826 | |
| 827 | /// The largest distinct-colour count a block may hold and still be offered a |
| 828 | /// palette candidate at all: past it the k-means quantisation costs more |
| 829 | /// error than the map saves rate, and every trial is wasted wall. |
| 830 | /// |
| 831 | /// Swept on the gate's own screen capture (lane-av1pal2, the |
| 832 | /// `unswept-decision-constants` class): 32 (the value this lane inherited) |
| 833 | /// finds 515 palette blocks and scores +66.4%/+10.3% vs libaom/rav1e, 64 |
| 834 | /// finds 1264 and scores +57.1%/+3.2%, 128 finds 1102 and scores |
| 835 | /// +56.9%/+2.3%, and 256 is byte-identical to 128 -- above 128 the bound |
| 836 | /// binds on nothing this content holds. 128 ships: best BD against both |
| 837 | /// references and no wall cost at all (6.1s, the same as at 32, because the |
| 838 | /// blocks it newly admits are ones the RD then keeps). |
| 839 | /// `EC_AV1_PAL_MAXCOLORS`. |
| 840 | pub |
| 841 | |
| 842 | |
| 843 | |
| 844 | |
| 845 | |
| 846 | |
| 847 | |
| 848 | |
| 849 | |
| 850 | /// The palettes worth trying for one block's luma, in the shape libaom's |
| 851 | /// `av1_k_means` picks them: a block holding at most `PALETTE_MAX_SIZE` |
| 852 | /// distinct colours takes them ALL (the prediction is then exact and the |
| 853 | /// residual empty), and a busier one is quantised to 8 and to 4 colours by a |
| 854 | /// one-dimensional Lloyd iteration seeded evenly across its range -- both |
| 855 | /// offered, because which wins is an RD question the caller answers. |
| 856 | /// `block` is `side*side` source samples, row-major. |
| 857 | pub |
| 858 | |
| 859 | |
| 860 | |
| 861 | |
| 862 | |
| 863 | |
| 864 | |
| 865 | |
| 866 | |
| 867 | |
| 868 | |
| 869 | |
| 870 | |
| 871 | |
| 872 | |
| 873 | |
| 874 | |
| 875 | |
| 876 | |
| 877 | |
| 878 | |
| 879 | |
| 880 | |
| 881 | |
| 882 | |
| 883 | |
| 884 | |
| 885 | |
| 886 | |
| 887 | |
| 888 | |
| 889 | |
| 890 | |
| 891 | |
| 892 | |
| 893 | |
| 894 | |
| 895 | |
| 896 | |
| 897 | |
| 898 | |
| 899 | |
| 900 | |
| 901 | |
| 902 | |
| 903 | |
| 904 | |
| 905 | |
| 906 | |
| 907 | |
| 908 | |
| 909 | |
| 910 | |
| 911 | |
| 912 | |
| 913 | |
| 914 | |
| 915 | |
| 916 | |
| 917 | |
| 918 | |
| 919 | |
| 920 | |
| 921 | |
| 922 | |
| 923 | |
| 924 | |
| 925 | |
| 926 | |
| 927 | |
| 928 | |
| 929 | |
| 930 | |
| 931 | |
| 932 | |
| 933 | |
| 934 | |
| 935 | |
| 936 | |
| 937 | |
| 938 | // --------------------------------------------------------------------------- |
| 939 | // lane-av1ibc: intra block copy (spec 5.11.13 `use_intrabc`, 7.11.4 DV |
| 940 | // validity). A key frame that detected screen content and finds enough exact |
| 941 | // repeats in its own source sets `allow_intrabc`, which the spec forces every |
| 942 | // in-loop filter OFF for (frame.rs:194/210/252/272) -- so the bit only earns |
| 943 | // its place when the copied blocks pay back the deblock/CDEF/LR the frame |
| 944 | // gives up. `EC_AV1_INTRABC=0` turns the whole arm off. |
| 945 | // --------------------------------------------------------------------------- |
| 946 | |
| 947 | /// Whether intra block copy is offered at all. **Off by default** -- |
| 948 | /// `EC_AV1_INTRABC=1` turns it on. The syntax is complete and proven against |
| 949 | /// ffmpeg (`a_repeated_pattern_key_frame_codes_intrabc_blocks_ffmpeg_decodes_exactly`), |
| 950 | /// but on the gate's real screen capture it MEASURED WORSE: setting |
| 951 | /// `allow_intrabc` costs the key frame its deblocking, CDEF and loop |
| 952 | /// restoration (spec 5.9.11/5.9.19/5.9.20) and the copied blocks do not pay |
| 953 | /// that back -- screen BD +59.1/+5.1 against the +54.5/+1.1 base (lane-av1ibc, |
| 954 | /// `probe_intrabc_key_frame` has the per-key-frame table). Also off on a frame |
| 955 | /// that detected no screen content. |
| 956 | pub |
| 957 | |
| 958 | |
| 959 | |
| 960 | |
| 961 | |
| 962 | |
| 963 | |
| 964 | thread_local! |
| 965 | |
| 966 | |
| 967 | |
| 968 | |
| 969 | |
| 970 | |
| 971 | |
| 972 | // read only from the `#[cfg(test)]` gates |
| 973 | pub |
| 974 | |
| 975 | |
| 976 | |
| 977 | /// How many of a screen frame's 16x16 blocks must have an exact repeat |
| 978 | /// somewhere else in the source before `allow_intrabc` is worth the in-loop |
| 979 | /// filters it costs, in percent (`EC_AV1_INTRABC_PCT`). Unswept-decision- |
| 980 | /// constant class: `probe_intrabc_threshold` measures the arm at several |
| 981 | /// values. |
| 982 | pub |
| 983 | |
| 984 | |
| 985 | |
| 986 | |
| 987 | |
| 988 | |
| 989 | |
| 990 | |
| 991 | |
| 992 | /// The pixel grid intrabc source positions are hashed on |
| 993 | /// (`EC_AV1_INTRABC_STEP`): every DV this encoder writes is a multiple of it, |
| 994 | /// which keeps the block-hash table (and so the search) linear in the frame |
| 995 | /// at a `step`-th of the density. It must stay EVEN -- a chroma plane copies |
| 996 | /// at `dv / 2` full pel, so an odd DV would land half-pel and need the |
| 997 | /// bilinear interpolation decode.rs applies but this encoder does not. |
| 998 | pub |
| 999 | |
| 1000 | |
| 1001 | |
| 1002 | |
| 1003 | |
| 1004 | |
| 1005 | |
| 1006 | |
| 1007 | |
| 1008 | |
| 1009 | /// The side of the luma square the block-hash table is keyed on. |
| 1010 | pub const IBC_HASH: usize = 16; |
| 1011 | |
| 1012 | /// libaom `INTRABC_DELAY_PIXELS / 64` -- how many 64x64 superblocks behind |
| 1013 | /// the current one the source's bottom-right corner must already be. Under |
| 1014 | /// 128 superblocks the same 256 pixels are two superblocks, which |
| 1015 | /// [`Ibc::dv_valid`] derives from the size itself. |
| 1016 | pub const INTRABC_DELAY_SB64: i32 = 4; |
| 1017 | |
| 1018 | /// FNV-1a over one `IBC_HASH`-square of `plane` at `(x, y)`. |
| 1019 | pub |
| 1020 | |
| 1021 | |
| 1022 | |
| 1023 | |
| 1024 | |
| 1025 | |
| 1026 | |
| 1027 | |
| 1028 | |
| 1029 | |
| 1030 | |
| 1031 | /// Every `intrabc_step()`-aligned position of `plane` inside |
| 1032 | /// `(x0, y0)..(x1, y1)`, keyed by [`ibc_hash`]. |
| 1033 | pub |
| 1034 | |
| 1035 | |
| 1036 | |
| 1037 | |
| 1038 | |
| 1039 | |
| 1040 | |
| 1041 | |
| 1042 | |
| 1043 | |
| 1044 | |
| 1045 | |
| 1046 | |
| 1047 | |
| 1048 | |
| 1049 | |
| 1050 | |
| 1051 | |
| 1052 | |
| 1053 | |
| 1054 | |
| 1055 | |
| 1056 | |
| 1057 | |
| 1058 | /// Whether `screen`-detected source `y` repeats itself enough to be worth |
| 1059 | /// `allow_intrabc` -- the share of its 16-aligned 16x16 blocks whose exact |
| 1060 | /// content appears at some other position, against [`intrabc_pct`]. Returns |
| 1061 | /// the share as well, for the gate's own print. |
| 1062 | pub |
| 1063 | |
| 1064 | |
| 1065 | |
| 1066 | |
| 1067 | |
| 1068 | |
| 1069 | |
| 1070 | |
| 1071 | |
| 1072 | |
| 1073 | |
| 1074 | |
| 1075 | |
| 1076 | |
| 1077 | |
| 1078 | |
| 1079 | |
| 1080 | |
| 1081 | |
| 1082 | |
| 1083 | |
| 1084 | |
| 1085 | |
| 1086 | |
| 1087 | |
| 1088 | |
| 1089 | |
| 1090 | |
| 1091 | |
| 1092 | |
| 1093 | /// One tile's intrabc search state: a block-hash table over the part of the |
| 1094 | /// tile's own reconstruction that is already final (whole superblock rows -- |
| 1095 | /// the in-loop filters are off on this frame, so a coded superblock row never |
| 1096 | /// changes again), plus the last DV chosen, which the RD price uses as its |
| 1097 | /// predictor estimate. |
| 1098 | pub |
| 1099 | |
| 1100 | |
| 1101 | |
| 1102 | |
| 1103 | |
| 1104 | |
| 1105 | |
| 1106 | |
| 1107 | |
| 1108 | |
| 1109 | |
| 1110 | |
| 1111 | |
| 1112 | |
| 1113 | |
| 1114 | |
| 1115 | |
| 1116 | |
| 1117 | |
| 1118 | |
| 1119 | |
| 1120 | |
| 1121 | |
| 1122 | |
| 1123 | |
| 1124 | |
| 1125 | |
| 1126 | |
| 1127 | |
| 1128 | |
| 1129 | |
| 1130 | |
| 1131 | |
| 1132 | |
| 1133 | |
| 1134 | |
| 1135 | |
| 1136 | |
| 1137 | |
| 1138 | |
| 1139 | |
| 1140 | |
| 1141 | |
| 1142 | |
| 1143 | |
| 1144 | |
| 1145 | |
| 1146 | |
| 1147 | |
| 1148 | |
| 1149 | |
| 1150 | |
| 1151 | |
| 1152 | |
| 1153 | |
| 1154 | |
| 1155 | |
| 1156 | |
| 1157 | |
| 1158 | |
| 1159 | |
| 1160 | |
| 1161 | |
| 1162 | |
| 1163 | |
| 1164 | |
| 1165 | |
| 1166 | |
| 1167 | |
| 1168 | |
| 1169 | |
| 1170 | |
| 1171 | |
| 1172 | |
| 1173 | |
| 1174 | |
| 1175 | |
| 1176 | |
| 1177 | |
| 1178 | |
| 1179 | |
| 1180 | |
| 1181 | |
| 1182 | |
| 1183 | |
| 1184 | |
| 1185 | |
| 1186 | |
| 1187 | |
| 1188 | |
| 1189 | |
| 1190 | |
| 1191 | |
| 1192 | /// How many block searches ran, how many found at least one VALID candidate, |
| 1193 | /// and how many won on rate-distortion -- the hash hit rate a gate prints |
| 1194 | /// (class `gate-blind-to-feature`: "the search ran" and "the search found |
| 1195 | /// something" and "the block took it" are three different claims). |
| 1196 | pub static IBC_SEARCH: = |
| 1197 | ; |
| 1198 | |
| 1199 | |
| 1200 | |
| 1201 | |
| 1202 | |
| 1203 | |
| 1204 | |
| 1205 | |
| 1206 | |
| 1207 | |
| 1208 | |
| 1209 | |
| 1210 | /// Reads [`IBC_SEARCH`] and zeroes it, so a gate can attribute the counts to |
| 1211 | /// its own encode. |
| 1212 | // read only from the `#[cfg(test)]` gates |
| 1213 | pub |
| 1214 | |
| 1215 | |
| 1216 | |
| 1217 | /// [`crate::tile::write_dv_component`]'s static price -- the same shape as |
| 1218 | /// [`mv_component_bits`] without the `mv_fr` symbol, which `force_integer_mv` |
| 1219 | /// infers rather than codes. |
| 1220 | pub |
| 1221 | |
| 1222 | |
| 1223 | |
| 1224 | |
| 1225 | |
| 1226 | |
| 1227 | |
| 1228 | |
| 1229 | |
| 1230 | |
| 1231 | |
| 1232 | |
| 1233 | |
| 1234 | |
| 1235 | |
| 1236 | |
| 1237 | /// What one block vector costs against `pred`, plus the `skip` and |
| 1238 | /// `use_intrabc` flags the block carries and the ordinary intra block does |
| 1239 | /// not pay in this currency. |
| 1240 | pub |
| 1241 | |
| 1242 | |
| 1243 | |
| 1244 | |
| 1245 | |
| 1246 | |
| 1247 | |
| 1248 | |
| 1249 | |
| 1250 | |
| 1251 | |
| 1252 | |
| 1253 | |
| 1254 | |
| 1255 | |
| 1256 | |
| 1257 | |
| 1258 | /// The squared error of copying the `side`-square block at `(sx, sy)` of each |
| 1259 | /// plane's reconstruction onto the source block at `(x, y)`, luma and both |
| 1260 | /// chroma planes together -- what an intrabc block's whole (residual-free) |
| 1261 | /// distortion is. |
| 1262 | pub |
| 1263 | |
| 1264 | |
| 1265 | |
| 1266 | |
| 1267 | |
| 1268 | |
| 1269 | |
| 1270 | |
| 1271 | |
| 1272 | |
| 1273 | |
| 1274 | |
| 1275 | |
| 1276 | |
| 1277 | |
| 1278 | |
| 1279 | |
| 1280 | |
| 1281 | |
| 1282 | |
| 1283 | |
| 1284 | |
| 1285 | |
| 1286 | |
| 1287 | |
| 1288 | |
| 1289 | |
| 1290 | |
| 1291 | |
| 1292 | |
| 1293 | |
| 1294 | |
| 1295 | |
| 1296 | |
| 1297 | |
| 1298 | |
| 1299 | |
| 1300 | |
| 1301 | |
| 1302 | |
| 1303 | /// Copies the `side`-square block at `(sx, sy)` of each plane's |
| 1304 | /// reconstruction onto `(x, y)` -- an intrabc block's whole reconstruction, |
| 1305 | /// since it carries no residual (`skip`). Full-pel in both planes by |
| 1306 | /// construction ([`intrabc_step`] keeps every DV even), which is what makes |
| 1307 | /// this a plain copy where decode.rs runs the bilinear kernel over the same |
| 1308 | /// samples. |
| 1309 | pub |
| 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 | /// Searches this block's own DV: every hash-table position whose 16x16 luma |
| 1336 | /// square equals the block's source square, plus the previous block's DV as a |
| 1337 | /// local fallback, scored by [`ibc_sse`] against the DV's own price. Returns |
| 1338 | /// the winning `(dv, cost)`, or `None` when nothing valid was found. |
| 1339 | pub |
| 1340 | |
| 1341 | |
| 1342 | |
| 1343 | |
| 1344 | |
| 1345 | |
| 1346 | |
| 1347 | |
| 1348 | |
| 1349 | |
| 1350 | |
| 1351 | |
| 1352 | |
| 1353 | |
| 1354 | |
| 1355 | |
| 1356 | |
| 1357 | |
| 1358 | |
| 1359 | |
| 1360 | |
| 1361 | |
| 1362 | |
| 1363 | |
| 1364 | |
| 1365 | |
| 1366 | |
| 1367 | |
| 1368 | |
| 1369 | |
| 1370 | |
| 1371 | |
| 1372 | |
| 1373 | |
| 1374 | |
| 1375 | |
| 1376 | |
| 1377 | |
| 1378 | |
| 1379 | |
| 1380 | |
| 1381 | |
| 1382 | |
| 1383 | |
| 1384 | |
| 1385 | |
| 1386 | |
| 1387 | |
| 1388 | |
| 1389 | |
| 1390 | |
| 1391 | // Spec-shaped signature; bundling the operands would obscure the spec mapping. |
| 1392 | |
| 1393 | pub |
| 1394 | |
| 1395 | |
| 1396 | |
| 1397 | |
| 1398 | |
| 1399 | |
| 1400 | |
| 1401 | |
| 1402 | |
| 1403 | |
| 1404 | |
| 1405 | |
| 1406 | |
| 1407 | |
| 1408 | |
| 1409 | |
| 1410 | |
| 1411 | |
| 1412 | |
| 1413 | |
| 1414 | |
| 1415 | |
| 1416 | |
| 1417 | |
| 1418 | |
| 1419 | |
| 1420 | |
| 1421 | |
| 1422 | |
| 1423 | |
| 1424 | |
| 1425 | |
| 1426 | |
| 1427 | |
| 1428 | |
| 1429 | |
| 1430 | |
| 1431 | |
| 1432 | |
| 1433 | |
| 1434 | |
| 1435 | |
| 1436 | |
| 1437 | |
| 1438 | |
| 1439 | |
| 1440 | |
| 1441 | |
| 1442 | |
| 1443 | |
| 1444 | |
| 1445 | |
| 1446 | |
| 1447 | |
| 1448 | |
| 1449 | |
| 1450 | |
| 1451 | |
| 1452 | |
| 1453 | |
| 1454 | |
| 1455 | |
| 1456 | |
| 1457 | |
| 1458 | |
| 1459 | |
| 1460 | |
| 1461 | |
| 1462 | |
| 1463 | |
| 1464 | |
| 1465 | |
| 1466 | |
| 1467 | |
| 1468 | |
| 1469 | |
| 1470 | |
| 1471 | |
| 1472 | |
| 1473 | |
| 1474 | |
| 1475 | |
| 1476 | |
| 1477 | |
| 1478 | |
| 1479 | |
| 1480 | |
| 1481 | |
| 1482 | |
| 1483 | |
| 1484 | |
| 1485 | |
| 1486 | |
| 1487 | |
| 1488 | |
| 1489 | |
| 1490 | |
| 1491 | |
| 1492 | |
| 1493 | |
| 1494 | |
| 1495 | |
| 1496 | |
| 1497 | |
| 1498 | |
| 1499 | |
| 1500 | |
| 1501 | |
| 1502 | |
| 1503 | |
| 1504 | |
| 1505 | |
| 1506 | |
| 1507 | |
| 1508 | |
| 1509 | |
| 1510 | |
| 1511 | |
| 1512 | |
| 1513 | |
| 1514 | |
| 1515 | |
| 1516 | |
| 1517 | |
| 1518 | |
| 1519 | |
| 1520 | |
| 1521 | |
| 1522 | |
| 1523 | |
| 1524 | |
| 1525 | |
| 1526 | |
| 1527 | |
| 1528 | |
| 1529 | |
| 1530 | |
| 1531 | |
| 1532 | |
| 1533 | |
| 1534 | |
| 1535 | |
| 1536 | |
| 1537 | |
| 1538 | |
| 1539 | |
| 1540 | |
| 1541 | |
| 1542 | |
| 1543 | |
| 1544 | |
| 1545 | |
| 1546 | |
| 1547 | |
| 1548 | |
| 1549 | |
| 1550 | |
| 1551 | |
| 1552 | |
| 1553 | |
| 1554 | |
| 1555 | |
| 1556 | |
| 1557 | |
| 1558 | |
| 1559 | |
| 1560 | |
| 1561 | |
| 1562 | |
| 1563 | |
| 1564 | |
| 1565 | |
| 1566 | |
| 1567 | |
| 1568 | |
| 1569 | |
| 1570 | |
| 1571 | |
| 1572 | |
| 1573 | |
| 1574 | |
| 1575 | |
| 1576 | |
| 1577 | |
| 1578 | |
| 1579 | |
| 1580 | |
| 1581 | |
| 1582 | |
| 1583 | |
| 1584 | |
| 1585 | |
| 1586 | |
| 1587 | |
| 1588 | |
| 1589 | |
| 1590 | |
| 1591 | |
| 1592 | |
| 1593 | |
| 1594 | |
| 1595 | |
| 1596 | |
| 1597 | |
| 1598 | |
| 1599 | |
| 1600 | |
| 1601 | |
| 1602 | |
| 1603 | |
| 1604 | |
| 1605 | |
| 1606 | |
| 1607 | |
| 1608 | |
| 1609 | |
| 1610 | |
| 1611 | |
| 1612 | |
| 1613 | |
| 1614 | |
| 1615 | |
| 1616 | |
| 1617 | |
| 1618 | |
| 1619 | |
| 1620 | |
| 1621 | |
| 1622 | |
| 1623 | |
| 1624 | |
| 1625 | |
| 1626 | |
| 1627 | |
| 1628 | |
| 1629 | |
| 1630 | |
| 1631 | |
| 1632 | |
| 1633 | |
| 1634 | |
| 1635 | |
| 1636 | |
| 1637 | |
| 1638 | |
| 1639 | |
| 1640 | |
| 1641 | |
| 1642 | |
| 1643 | |
| 1644 | |
| 1645 | |
| 1646 | |
| 1647 | |
| 1648 | |
| 1649 | |
| 1650 | |
| 1651 | |
| 1652 | |
| 1653 | |
| 1654 | |
| 1655 | |
| 1656 | |
| 1657 | |
| 1658 | |
| 1659 | |
| 1660 | |
| 1661 | |
| 1662 | |
| 1663 | |
| 1664 | |
| 1665 | |
| 1666 | |
| 1667 | |
| 1668 | |
| 1669 | |
| 1670 | |
| 1671 | |
| 1672 | |
| 1673 | |
| 1674 | |
| 1675 | |
| 1676 | |
| 1677 | |
| 1678 | |
| 1679 | |
| 1680 | |
| 1681 | |
| 1682 | |
| 1683 | |
| 1684 | |
| 1685 | |
| 1686 | |
| 1687 | |
| 1688 | |
| 1689 | |
| 1690 | |
| 1691 | |
| 1692 | |
| 1693 | |
| 1694 | |
| 1695 | |
| 1696 | |
| 1697 | |
| 1698 | |
| 1699 | |
| 1700 | |
| 1701 | |
| 1702 | |
| 1703 | |
| 1704 | |
| 1705 | |
| 1706 | |
| 1707 | |
| 1708 | |
| 1709 | /// The chroma modes the search offers, and the only ones it may offer: each |
| 1710 | /// predicts from the row directly above and the column directly to the left |
| 1711 | /// and nothing further, so none of them needs the above-right/below-left |
| 1712 | /// `Reach` a chroma block is coded with `Reach::none()` for. The eight |
| 1713 | /// directional modes do read past that, and `UV_CFL_PRED` needs the luma |
| 1714 | /// reconstruction and its own alpha syntax; both are left out here. |
| 1715 | pub const CHROMA_MODES: = |
| 1716 | |
| 1717 | |
| 1718 | |
| 1719 | |
| 1720 | |
| 1721 | |
| 1722 | |
| 1723 | ; |
| 1724 | |
| 1725 | /// The thirteen intra mode names, for the chroma fire count's print. |
| 1726 | |
| 1727 | pub const UV_MODE_NAMES: = |
| 1728 | |
| 1729 | |
| 1730 | ; |
| 1731 | |
| 1732 | /// How many blocks each chroma mode has won, indexed by the mode itself -- |
| 1733 | /// the fire count that says whether the search below reaches its candidates |
| 1734 | /// at all (the `gate-blind-to-feature` class), printed once per gate run. |
| 1735 | pub static UV_MODE_HITS: = |
| 1736 | ; |
| 1737 | |
| 1738 | /// How many blocks each CfL alpha magnitude (`1..=16`, indexed `mag - 1`) has |
| 1739 | /// won, summed over both chroma planes -- the alpha histogram the gate prints |
| 1740 | /// beside the CfL share (`gate-blind-to-feature`: a tool that fires at one |
| 1741 | /// magnitude only is a search that never left its first candidate). |
| 1742 | pub static CFL_ALPHA_HITS: = |
| 1743 | ; |
| 1744 | |
| 1745 | /// Reads [`CFL_ALPHA_HITS`] and zeroes it. Index 0 is "this plane took alpha |
| 1746 | /// zero on a CfL block", `1..=16` the magnitudes. |
| 1747 | |
| 1748 | pub |
| 1749 | |
| 1750 | |
| 1751 | |
| 1752 | /// How many directional luma blocks won at each `angle_delta_y`, indexed |
| 1753 | /// `delta + 3` -- the histogram that says whether the refinement below ever |
| 1754 | /// leaves zero (`gate-blind-to-feature`). |
| 1755 | pub static ANGLE_DELTA_HITS: = |
| 1756 | ; |
| 1757 | |
| 1758 | /// Reads [`ANGLE_DELTA_HITS`] and zeroes it. |
| 1759 | |
| 1760 | pub |
| 1761 | |
| 1762 | |
| 1763 | |
| 1764 | /// Whether the luma search refines a directional winner's `angle_delta_y` |
| 1765 | /// (`EC_AV1_ANGLE=0` switches it off, the lane's own on/off pair). |
| 1766 | pub |
| 1767 | |
| 1768 | |
| 1769 | |
| 1770 | |
| 1771 | |
| 1772 | /// Whether the chroma search offers `UV_CFL_PRED` at all (`EC_AV1_CFL=0` |
| 1773 | /// switches it off, which is how the lane measured its own on/off pair). |
| 1774 | pub |
| 1775 | |
| 1776 | |
| 1777 | |
| 1778 | |
| 1779 | |
| 1780 | // Whether the intra search offers the five recursive filter-intra modes at |
| 1781 | // all, and with them whether the sequence header sets `enable_filter_intra` |
| 1782 | // (`EC_AV1_FILTER_INTRA=0` switches both off, which is how the lane measured |
| 1783 | // its own on/off pair -- and how every byte pin written before it still |
| 1784 | // reproduces). It is also a speed lever: on at preset 0, off above it. |
| 1785 | // lane-sb128: `use_128x128_superblock` (spec 5.5.1). `EC_AV1_SB128=0` turns |
| 1786 | // it off for the whole process (a sequence-header field, so it cannot change |
| 1787 | // mid-stream anyway), the same env-flag shape `EC_AV1_FILTER_INTRA` uses. |
| 1788 | // NOT an `EncoderConfig` field: that struct is built by 90 literal sites in |
| 1789 | // this workspace. |
| 1790 | |
| 1791 | /// Whether a sequence codes 128x128 superblocks when the environment says |
| 1792 | /// nothing. ON since lane-b128 gave the 128 root a real `PARTITION_NONE` |
| 1793 | /// candidate ([`search_root_128`]): with SPLIT-only roots the size was pure |
| 1794 | /// cost (lane-sb128b measured film B +24.9 -> +37.5 vs libaom), and with the |
| 1795 | /// 128x128 block in it every row of the native BD gate is down or flat on |
| 1796 | /// both columns (BD-rate vs libaom cpu-6 / rav1e s6, 12 frames): |
| 1797 | /// |
| 1798 | /// | row | 64 superblocks | 128 + the 128 root | |
| 1799 | /// |---|---|---| |
| 1800 | /// | bars 1080p | -3.1 / -18.7 | **-3.7 / -19.2** | |
| 1801 | /// | bars 2160p | +9.1 / -13.3 | **+8.5 / -13.8** | |
| 1802 | /// | film A | +20.3 / -5.0 | **+20.1 / -5.2** | |
| 1803 | /// | film B | +24.6 / -2.0 | **+24.3 / -2.2** | |
| 1804 | /// | screen capture | +14.6 / -33.2 | **+14.4 / -33.2** | |
| 1805 | /// |
| 1806 | /// and the long-GOP gate agrees (film A +24.0/-7.6 -> +23.6/-7.9, film B |
| 1807 | /// +85.8/+7.1 -> +85.1/+6.6). Both arms re-run on lane-b128m's own base. |
| 1808 | /// |
| 1809 | /// ON since lane-b128m closed the eleven 128-superblock desyncs that held it |
| 1810 | /// off (the delta_q unit at the 128 superblock, the superblock size travelling |
| 1811 | /// with a `FrameCtx` copy into a tile search worker, the writer's intrabc DV |
| 1812 | /// predictor and wavefront, and seven test harnesses that handed the encoder a |
| 1813 | /// 64-superblock context). `EC_AV1_SB128=0` turns it off. |
| 1814 | pub const SB128_DEFAULT: bool = true; |
| 1815 | |
| 1816 | /// Whether this process's sequences code 128x128 superblocks. An ENCODER |
| 1817 | /// knob (like `speed::SPEED`), never read by a decode: read through a |
| 1818 | /// process-global (not a thread-local) because the tile writers run on |
| 1819 | /// worker threads; `2` is "the environment has not been read yet". |
| 1820 | pub static ENC_SB128: AtomicU8 = new; |
| 1821 | |
| 1822 | /// Whether this process's sequences code 128x128 superblocks. |
| 1823 | pub |
| 1824 | |
| 1825 | |
| 1826 | |
| 1827 | |
| 1828 | |
| 1829 | |
| 1830 | |
| 1831 | |
| 1832 | |
| 1833 | |
| 1834 | |
| 1835 | |
| 1836 | |
| 1837 | /// Forces [`sb128_on`] for the rest of the process -- the superblock size is |
| 1838 | /// a SEQUENCE field, so a gate that flips it must run alone (`#[ignore]`), |
| 1839 | /// exactly like the speed-preset gates. |
| 1840 | |
| 1841 | pub |
| 1842 | |
| 1843 | |
| 1844 | |
| 1845 | /// The luma loop-restoration unit size this sequence codes: a 128 superblock |
| 1846 | /// cannot signal the 64 unit at all (spec `lr_params` reads ONE bit there, |
| 1847 | /// `RESTORATION_TILESIZE_MAX >> (2 - (shift + 1))`, so the smallest unit is |
| 1848 | /// 128), which is the one filter parameter the superblock size moves. |
| 1849 | pub |
| 1850 | |
| 1851 | |
| 1852 | |
| 1853 | pub |
| 1854 | |
| 1855 | |
| 1856 | |
| 1857 | |
| 1858 | |
| 1859 | |
| 1860 | |
| 1861 | |
| 1862 | |
| 1863 | |
| 1864 | |
| 1865 | |
| 1866 | /// Reads [`UV_MODE_HITS`] and zeroes it, so a gate can attribute the counts |
| 1867 | /// to its own encode. |
| 1868 | |
| 1869 | pub |
| 1870 | |
| 1871 | |
| 1872 | |
| 1873 | /// Searches both chroma planes over [`CHROMA_MODES`] under one shared mode -- |
| 1874 | /// `uv_mode` is a single symbol covering U and V -- and commits the cheapest. |
| 1875 | /// Returns each plane's levels, the mode, and what the pair cost (squared |
| 1876 | /// error plus lambda times bits, the same currency the luma search speaks). |
| 1877 | /// |
| 1878 | /// The chroma symbol itself was already priced at `DC_PRED` by [`mode_bits`], |
| 1879 | /// which is what the luma mode decision was taken against, so what a |
| 1880 | /// candidate owes here is only the *difference* from that -- plus, for `V`/`H` |
| 1881 | /// (directional, spec `read_intra_angle_info`), the zero `angle_delta_uv` the |
| 1882 | /// writer then has to code. |
| 1883 | |
| 1884 | /// How many of [`CHROMA_MODES`] the chroma search runs a full trial pair on, |
| 1885 | /// ranked by the SAD of their predictions summed over both planes (`DC_PRED` |
| 1886 | /// always kept, the same rule [`prune_by_sad`] applies to luma). `None` |
| 1887 | /// trials all seven, as before this lever. |
| 1888 | /// |
| 1889 | /// The census (`EC_AV1_CENSUS=1`) is what justifies the lever: chroma was |
| 1890 | /// the search's largest trial population by far -- seven modes times two |
| 1891 | /// planes for every intra block, against 3.7 luma trials -- and the RD |
| 1892 | /// winner sat at SAD rank 0 for 67-77% of blocks and inside the top three |
| 1893 | /// for 88%. `EC_AV1_CHROMA_K` sweeps it in any build. |
| 1894 | pub |
| 1895 | |
| 1896 | |
| 1897 | |
| 1898 | |
| 1899 | |
| 1900 | |
| 1901 | |
| 1902 | |
| 1903 | /// [`chroma_top_k`]'s default. `None`: no `K` cleared the keep rule on the BD |
| 1904 | /// gate. Swept over 2/3/4/5 (vs libaom, base +121.1/+146.1/+79.3): |
| 1905 | /// K=2 is +122.3/+147.5/+79.8 for -7.0/-8.3/-7.9% wall, K=3 +121.4/+146.8/ |
| 1906 | /// +80.6 for -5.4/-5.2/-4.6%, K=4 +120.5/+145.2/+79.3 (BD-neutral or better) |
| 1907 | /// for only -3.4% wall and -2.8% instructions, K=5 +122.0/+145.1/+80.0. The |
| 1908 | /// BD swings by about a point in either direction as near-tie chroma modes |
| 1909 | /// flip, which is the measurement's own sensitivity, not a trend: nothing |
| 1910 | /// here buys >=5% wall at <=+0.3 BD, so the default stays unpruned. |
| 1911 | /// RE-MEASURED on lane-av1rejudge at [`LAMBDA_SCALE`] 0.05 with warp on: |
| 1912 | /// K=4 is +17.1/-0.1, +47.1/+19.2, +51.6/-13.8 against the base's |
| 1913 | /// +16.7/-0.5, +47.0/+19.1, +51.3/-14.3 -- every row worse. Still `None`. |
| 1914 | pub const CHROMA_TOP_K: = None; |
| 1915 | |
| 1916 | // Spec-shaped signature; bundling the operands would obscure the spec mapping. |
| 1917 | |
| 1918 | pub |
| 1919 | |
| 1920 | |
| 1921 | |
| 1922 | |
| 1923 | |
| 1924 | |
| 1925 | |
| 1926 | |
| 1927 | |
| 1928 | |
| 1929 | |
| 1930 | |
| 1931 | |
| 1932 | |
| 1933 | |
| 1934 | |
| 1935 | |
| 1936 | |
| 1937 | |
| 1938 | |
| 1939 | |
| 1940 | |
| 1941 | |
| 1942 | |
| 1943 | |
| 1944 | |
| 1945 | |
| 1946 | |
| 1947 | |
| 1948 | |
| 1949 | |
| 1950 | |
| 1951 | |
| 1952 | |
| 1953 | |
| 1954 | |
| 1955 | |
| 1956 | |
| 1957 | |
| 1958 | |
| 1959 | |
| 1960 | |
| 1961 | |
| 1962 | |
| 1963 | |
| 1964 | |
| 1965 | |
| 1966 | |
| 1967 | |
| 1968 | |
| 1969 | |
| 1970 | |
| 1971 | |
| 1972 | |
| 1973 | |
| 1974 | |
| 1975 | |
| 1976 | |
| 1977 | |
| 1978 | |
| 1979 | |
| 1980 | |
| 1981 | |
| 1982 | |
| 1983 | |
| 1984 | |
| 1985 | |
| 1986 | |
| 1987 | |
| 1988 | |
| 1989 | |
| 1990 | |
| 1991 | |
| 1992 | |
| 1993 | |
| 1994 | |
| 1995 | |
| 1996 | |
| 1997 | |
| 1998 | |
| 1999 | |
| 2000 | |
| 2001 | |
| 2002 | |
| 2003 | |
| 2004 | |
| 2005 | |
| 2006 | |
| 2007 | |
| 2008 | |
| 2009 | |
| 2010 | |
| 2011 | |
| 2012 | |
| 2013 | |
| 2014 | |
| 2015 | |
| 2016 | |
| 2017 | |
| 2018 | |
| 2019 | |
| 2020 | |
| 2021 | |
| 2022 | |
| 2023 | |
| 2024 | |
| 2025 | |
| 2026 | |
| 2027 | |
| 2028 | |
| 2029 | |
| 2030 | |
| 2031 | |
| 2032 | |
| 2033 | |
| 2034 | |
| 2035 | |
| 2036 | |
| 2037 | |
| 2038 | |
| 2039 | |
| 2040 | |
| 2041 | |
| 2042 | |
| 2043 | |
| 2044 | |
| 2045 | |
| 2046 | |
| 2047 | |
| 2048 | |
| 2049 | |
| 2050 | |
| 2051 | |
| 2052 | |
| 2053 | |
| 2054 | |
| 2055 | |
| 2056 | |
| 2057 | |
| 2058 | |
| 2059 | |
| 2060 | |
| 2061 | |
| 2062 | |
| 2063 | |
| 2064 | |
| 2065 | |
| 2066 | |
| 2067 | |
| 2068 | |
| 2069 | |
| 2070 | |
| 2071 | |
| 2072 | |
| 2073 | |
| 2074 | |
| 2075 | |
| 2076 | |
| 2077 | |
| 2078 | |
| 2079 | |
| 2080 | |
| 2081 | |
| 2082 | |
| 2083 | |
| 2084 | |
| 2085 | |
| 2086 | |
| 2087 | |
| 2088 | |
| 2089 | |
| 2090 | |
| 2091 | |
| 2092 | |
| 2093 | |
| 2094 | |
| 2095 | |
| 2096 | |
| 2097 | |
| 2098 | |
| 2099 | |
| 2100 | |
| 2101 | |
| 2102 | |
| 2103 | |
| 2104 | |
| 2105 | |
| 2106 | |
| 2107 | |
| 2108 | |
| 2109 | |
| 2110 | |
| 2111 | |
| 2112 | |
| 2113 | |
| 2114 | |
| 2115 | |
| 2116 | |
| 2117 | |
| 2118 | |
| 2119 | |
| 2120 | |
| 2121 | |
| 2122 | |
| 2123 | |
| 2124 | |
| 2125 | |
| 2126 | |
| 2127 | |
| 2128 | |
| 2129 | |
| 2130 | |
| 2131 | |
| 2132 | |
| 2133 | |
| 2134 | |
| 2135 | |
| 2136 | |
| 2137 | |
| 2138 | |
| 2139 | |
| 2140 | |
| 2141 | |
| 2142 | |
| 2143 | |
| 2144 | |
| 2145 | |
| 2146 | |
| 2147 | |
| 2148 | |
| 2149 | |
| 2150 | |
| 2151 | |
| 2152 | |
| 2153 | |
| 2154 | |
| 2155 | |
| 2156 | |
| 2157 | |
| 2158 | |
| 2159 | |
| 2160 | |
| 2161 | |
| 2162 | |
| 2163 | |
| 2164 | |
| 2165 | |
| 2166 | |
| 2167 | |
| 2168 | |
| 2169 | |
| 2170 | |
| 2171 | |
| 2172 | |
| 2173 | |
| 2174 | |
| 2175 | |
| 2176 | |
| 2177 | |
| 2178 | |
| 2179 | |
| 2180 | |
| 2181 | |
| 2182 | |
| 2183 | |
| 2184 | |
| 2185 | |
| 2186 | |
| 2187 | |
| 2188 | |
| 2189 | |
| 2190 | |
| 2191 | |
| 2192 | |
| 2193 | |
| 2194 | |
| 2195 | |
| 2196 | |
| 2197 | |
| 2198 | |
| 2199 | |
| 2200 | |
| 2201 | |
| 2202 | |
| 2203 | |
| 2204 | |
| 2205 | |
| 2206 | |
| 2207 | |
| 2208 | |
| 2209 | |
| 2210 | |
| 2211 | |
| 2212 | |
| 2213 | |
| 2214 | |
| 2215 | |
| 2216 | |
| 2217 | |
| 2218 | |
| 2219 | |
| 2220 | |
| 2221 | |
| 2222 | |
| 2223 | |
| 2224 | |
| 2225 | |
| 2226 | |
| 2227 | |
| 2228 | |
| 2229 | |
| 2230 | |
| 2231 | |
| 2232 | |
| 2233 | |
| 2234 | |
| 2235 | |
| 2236 | |
| 2237 | |
| 2238 | |
| 2239 | |
| 2240 | |
| 2241 | |
| 2242 | |
| 2243 | |
| 2244 | |
| 2245 | |
| 2246 | |
| 2247 | |
| 2248 | |
| 2249 | |
| 2250 | |
| 2251 | |
| 2252 | |
| 2253 | |
| 2254 | /// Codes one leaf of a straddling quadrant as whichever costs least of intra |
| 2255 | /// ([`code_square`], unchanged) or `NEARESTMV` against `reference` at |
| 2256 | /// `stack.nearest_mv` -- the same NEARESTMV candidate [`search_inter_block`] |
| 2257 | /// prices for a whole 32x32 block, just at this leaf's own `side` (16, for a |
| 2258 | /// 16x16 leaf under a straddling 32x32 quadrant, or 8, for an 8x8 leaf under |
| 2259 | /// a straddling 16x16 -- lane-av1inter8) and through [`TxbSet::Luma16Inter`] |
| 2260 | /// or [`TxbSet::Luma8Inter`]. `NEWMV` (a motion search of its own) is not |
| 2261 | /// attempted here: these leaves only ever fill the sliver of real content a |
| 2262 | /// true edge lands in the middle of a larger block, not a leaf worth a full |
| 2263 | /// search, so `NEARESTMV`-or-intra is this function's deliberate first cut |
| 2264 | /// (see `write_inter_frame_leaf`'s doc comment). |
| 2265 | |
| 2266 | /// The compound MV stack of each `LAST` + extra-reference pair at one leaf, |
| 2267 | /// as [`code_square_inter`] wants them: empty on a frame that codes no |
| 2268 | /// `reference_select`, or when the leaf compound candidates are switched off. |
| 2269 | /// One helper because THREE leaf call sites need it -- the split quadrants |
| 2270 | /// and, since lane-av1comp4, both straddling-edge sites, which used to pass |
| 2271 | /// `&[]` and so coded no compound block anywhere along the frame's true edge. |
| 2272 | pub |
| 2273 | |
| 2274 | |
| 2275 | |
| 2276 | |
| 2277 | |
| 2278 | |
| 2279 | |
| 2280 | |
| 2281 | |
| 2282 | |
| 2283 | |
| 2284 | |
| 2285 | |
| 2286 | |
| 2287 | |
| 2288 | |
| 2289 | |
| 2290 | |
| 2291 | |
| 2292 | |
| 2293 | |
| 2294 | |
| 2295 | |
| 2296 | |
| 2297 | |
| 2298 | |
| 2299 | |
| 2300 | |
| 2301 | |
| 2302 | |
| 2303 | |
| 2304 | |
| 2305 | |
| 2306 | |
| 2307 | |
| 2308 | |
| 2309 | |
| 2310 | |
| 2311 | |
| 2312 | |
| 2313 | |
| 2314 | |
| 2315 | |
| 2316 | /// The OBMC prediction of one square single-reference block: this block's own |
| 2317 | /// translation prediction (`mc::predict`) with every bordering above/left |
| 2318 | /// neighbour blended into the overlap strips by the DECODER's own plan and |
| 2319 | /// blend ([`crate::decode::obmc_plan`] / [`crate::decode::obmc_run`]), so what |
| 2320 | /// the search prices is what a decoder reconstructs -- never a second |
| 2321 | /// implementation of the blend. `None` when the block has no overlappable |
| 2322 | /// neighbour at all (the writer would then code no `motion_mode` symbol) or |
| 2323 | /// when the plan cannot be built (a neighbour naming a reference this encode |
| 2324 | /// does not hold). |
| 2325 | |
| 2326 | pub |
| 2327 | |
| 2328 | |
| 2329 | |
| 2330 | |
| 2331 | |
| 2332 | |
| 2333 | |
| 2334 | |
| 2335 | |
| 2336 | |
| 2337 | |
| 2338 | |
| 2339 | |
| 2340 | |
| 2341 | |
| 2342 | |
| 2343 | |
| 2344 | |
| 2345 | |
| 2346 | |
| 2347 | |
| 2348 | |
| 2349 | |
| 2350 | |
| 2351 | |
| 2352 | |
| 2353 | |
| 2354 | |
| 2355 | |
| 2356 | |
| 2357 | |
| 2358 | |
| 2359 | |
| 2360 | |
| 2361 | |
| 2362 | |
| 2363 | |
| 2364 | |
| 2365 | |
| 2366 | |
| 2367 | |
| 2368 | |
| 2369 | |
| 2370 | |
| 2371 | |
| 2372 | |
| 2373 | |
| 2374 | |
| 2375 | |
| 2376 | |
| 2377 | |
| 2378 | |
| 2379 | |
| 2380 | |
| 2381 | |
| 2382 | |
| 2383 | |
| 2384 | |
| 2385 | |
| 2386 | |
| 2387 | |
| 2388 | |
| 2389 | |
| 2390 | |
| 2391 | |
| 2392 | |
| 2393 | |
| 2394 | |
| 2395 | |
| 2396 | |
| 2397 | |
| 2398 | // Spec-shaped signature; bundling the operands would obscure the spec mapping. |
| 2399 | |
| 2400 | pub |
| 2401 | |
| 2402 | |
| 2403 | |
| 2404 | |
| 2405 | |
| 2406 | |
| 2407 | |
| 2408 | |
| 2409 | |
| 2410 | |
| 2411 | |
| 2412 | |
| 2413 | |
| 2414 | |
| 2415 | |
| 2416 | |
| 2417 | |
| 2418 | |
| 2419 | |
| 2420 | |
| 2421 | |
| 2422 | |
| 2423 | |
| 2424 | |
| 2425 | |
| 2426 | |
| 2427 | |
| 2428 | |
| 2429 | |
| 2430 | |
| 2431 | |
| 2432 | |
| 2433 | |
| 2434 | |
| 2435 | |
| 2436 | |
| 2437 | |
| 2438 | |
| 2439 | |
| 2440 | |
| 2441 | |
| 2442 | |
| 2443 | |
| 2444 | |
| 2445 | |
| 2446 | |
| 2447 | |
| 2448 | |
| 2449 | |
| 2450 | |
| 2451 | |
| 2452 | |
| 2453 | |
| 2454 | |
| 2455 | |
| 2456 | |
| 2457 | |
| 2458 | |
| 2459 | |
| 2460 | |
| 2461 | |
| 2462 | |
| 2463 | |
| 2464 | |
| 2465 | |
| 2466 | |
| 2467 | |
| 2468 | |
| 2469 | |
| 2470 | |
| 2471 | |
| 2472 | |
| 2473 | |
| 2474 | |
| 2475 | |
| 2476 | |
| 2477 | |
| 2478 | |
| 2479 | |
| 2480 | |
| 2481 | |
| 2482 | |
| 2483 | |
| 2484 | |
| 2485 | |
| 2486 | |
| 2487 | |
| 2488 | |
| 2489 | |
| 2490 | |
| 2491 | |
| 2492 | |
| 2493 | |
| 2494 | |
| 2495 | |
| 2496 | |
| 2497 | |
| 2498 | |
| 2499 | |
| 2500 | |
| 2501 | |
| 2502 | |
| 2503 | |
| 2504 | |
| 2505 | |
| 2506 | |
| 2507 | |
| 2508 | |
| 2509 | |
| 2510 | |
| 2511 | |
| 2512 | |
| 2513 | |
| 2514 | |
| 2515 | |
| 2516 | |
| 2517 | |
| 2518 | |
| 2519 | |
| 2520 | |
| 2521 | |
| 2522 | |
| 2523 | |
| 2524 | |
| 2525 | |
| 2526 | |
| 2527 | |
| 2528 | |
| 2529 | |
| 2530 | |
| 2531 | |
| 2532 | |
| 2533 | |
| 2534 | |
| 2535 | |
| 2536 | |
| 2537 | |
| 2538 | |
| 2539 | |
| 2540 | |
| 2541 | |
| 2542 | |
| 2543 | |
| 2544 | |
| 2545 | |
| 2546 | |
| 2547 | |
| 2548 | |
| 2549 | |
| 2550 | |
| 2551 | |
| 2552 | |
| 2553 | |
| 2554 | |
| 2555 | |
| 2556 | |
| 2557 | |
| 2558 | |
| 2559 | |
| 2560 | |
| 2561 | |
| 2562 | |
| 2563 | |
| 2564 | |
| 2565 | |
| 2566 | |
| 2567 | |
| 2568 | |
| 2569 | |
| 2570 | |
| 2571 | |
| 2572 | |
| 2573 | |
| 2574 | |
| 2575 | |
| 2576 | |
| 2577 | |
| 2578 | |
| 2579 | |
| 2580 | |
| 2581 | |
| 2582 | |
| 2583 | |
| 2584 | |
| 2585 | |
| 2586 | |
| 2587 | |
| 2588 | |
| 2589 | |
| 2590 | |
| 2591 | |
| 2592 | |
| 2593 | |
| 2594 | |
| 2595 | |
| 2596 | |
| 2597 | |
| 2598 | |
| 2599 | |
| 2600 | |
| 2601 | |
| 2602 | |
| 2603 | |
| 2604 | |
| 2605 | |
| 2606 | |
| 2607 | |
| 2608 | |
| 2609 | |
| 2610 | |
| 2611 | |
| 2612 | |
| 2613 | |
| 2614 | |
| 2615 | |
| 2616 | |
| 2617 | |
| 2618 | |
| 2619 | |
| 2620 | |
| 2621 | |
| 2622 | |
| 2623 | |
| 2624 | |
| 2625 | |
| 2626 | |
| 2627 | |
| 2628 | |
| 2629 | |
| 2630 | |
| 2631 | |
| 2632 | |
| 2633 | |
| 2634 | |
| 2635 | |
| 2636 | |
| 2637 | |
| 2638 | |
| 2639 | |
| 2640 | |
| 2641 | |
| 2642 | |
| 2643 | |
| 2644 | |
| 2645 | |
| 2646 | |
| 2647 | |
| 2648 | |
| 2649 | |
| 2650 | |
| 2651 | |
| 2652 | |
| 2653 | |
| 2654 | |
| 2655 | |
| 2656 | |
| 2657 | |
| 2658 | |
| 2659 | |
| 2660 | |
| 2661 | |
| 2662 | |
| 2663 | |
| 2664 | |
| 2665 | |
| 2666 | |
| 2667 | |
| 2668 | |
| 2669 | |
| 2670 | |
| 2671 | |
| 2672 | |
| 2673 | |
| 2674 | |
| 2675 | |
| 2676 | |
| 2677 | |
| 2678 | |
| 2679 | |
| 2680 | |
| 2681 | |
| 2682 | |
| 2683 | |
| 2684 | |
| 2685 | |
| 2686 | |
| 2687 | |
| 2688 | |
| 2689 | |
| 2690 | |
| 2691 | |
| 2692 | |
| 2693 | |
| 2694 | |
| 2695 | |
| 2696 | |
| 2697 | |
| 2698 | |
| 2699 | |
| 2700 | |
| 2701 | |
| 2702 | |
| 2703 | |
| 2704 | |
| 2705 | |
| 2706 | |
| 2707 | |
| 2708 | |
| 2709 | |
| 2710 | |
| 2711 | |
| 2712 | |
| 2713 | |
| 2714 | |
| 2715 | |
| 2716 | |
| 2717 | |
| 2718 | |
| 2719 | |
| 2720 | |
| 2721 | |
| 2722 | |
| 2723 | |
| 2724 | |
| 2725 | |
| 2726 | |
| 2727 | |
| 2728 | |
| 2729 | |
| 2730 | |
| 2731 | |
| 2732 | |
| 2733 | |
| 2734 | |
| 2735 | |
| 2736 | |
| 2737 | |
| 2738 | |
| 2739 | |
| 2740 | |
| 2741 | |
| 2742 | |
| 2743 | |
| 2744 | |
| 2745 | |
| 2746 | |
| 2747 | |
| 2748 | |
| 2749 | |
| 2750 | |
| 2751 | |
| 2752 | |
| 2753 | |
| 2754 | |
| 2755 | |
| 2756 | |
| 2757 | |
| 2758 | |
| 2759 | |
| 2760 | |
| 2761 | |
| 2762 | |
| 2763 | |
| 2764 | |
| 2765 | |
| 2766 | |
| 2767 | |
| 2768 | |
| 2769 | |
| 2770 | |
| 2771 | |
| 2772 | |
| 2773 | |
| 2774 | |
| 2775 | |
| 2776 | |
| 2777 | |
| 2778 | |
| 2779 | |
| 2780 | |
| 2781 | |
| 2782 | |
| 2783 | |
| 2784 | |
| 2785 | |
| 2786 | |
| 2787 | |
| 2788 | |
| 2789 | |
| 2790 | |
| 2791 | |
| 2792 | |
| 2793 | |
| 2794 | |
| 2795 | |
| 2796 | |
| 2797 | |
| 2798 | |
| 2799 | |
| 2800 | |
| 2801 | |
| 2802 | |
| 2803 | |
| 2804 | |
| 2805 | |
| 2806 | |
| 2807 | |
| 2808 | |
| 2809 | |
| 2810 | |
| 2811 | |
| 2812 | |
| 2813 | |
| 2814 | |
| 2815 | |
| 2816 | |
| 2817 | |
| 2818 | |
| 2819 | |
| 2820 | |
| 2821 | |
| 2822 | |
| 2823 | |
| 2824 | |
| 2825 | |
| 2826 | |
| 2827 | |
| 2828 | |
| 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 | |
| 2871 | |
| 2872 | |
| 2873 | |
| 2874 | |
| 2875 | |
| 2876 | |
| 2877 | |
| 2878 | |
| 2879 | |
| 2880 | |
| 2881 | |
| 2882 | |
| 2883 | |
| 2884 | |
| 2885 | |
| 2886 | |
| 2887 | |
| 2888 | |
| 2889 | |
| 2890 | |
| 2891 | |
| 2892 | |
| 2893 | |
| 2894 | |
| 2895 | |
| 2896 | |
| 2897 | |
| 2898 | |
| 2899 | |
| 2900 | |
| 2901 | |
| 2902 | |
| 2903 | |
| 2904 | |
| 2905 | |
| 2906 | |
| 2907 | |
| 2908 | |
| 2909 | |
| 2910 | |
| 2911 | |
| 2912 | |
| 2913 | |
| 2914 | |
| 2915 | |
| 2916 | |
| 2917 | |
| 2918 | |
| 2919 | |
| 2920 | |
| 2921 | |
| 2922 | |
| 2923 | |
| 2924 | |
| 2925 | |
| 2926 | |
| 2927 | |
| 2928 | |
| 2929 | |
| 2930 | |
| 2931 | |
| 2932 | |
| 2933 | |
| 2934 | |
| 2935 | |
| 2936 | |
| 2937 | |
| 2938 | |
| 2939 | |
| 2940 | |
| 2941 | |
| 2942 | |
| 2943 | |
| 2944 | |
| 2945 | |
| 2946 | |
| 2947 | |
| 2948 | |
| 2949 | |
| 2950 | |
| 2951 | |
| 2952 | |
| 2953 | |
| 2954 | |
| 2955 | |
| 2956 | |
| 2957 | |
| 2958 | |
| 2959 | |
| 2960 | |
| 2961 | |
| 2962 | |
| 2963 | |
| 2964 | |
| 2965 | |
| 2966 | |
| 2967 | |
| 2968 | |
| 2969 | |
| 2970 | |
| 2971 | |
| 2972 | |
| 2973 | |
| 2974 | |
| 2975 | |
| 2976 | |
| 2977 | |
| 2978 | |
| 2979 | |
| 2980 | |
| 2981 | |
| 2982 | |
| 2983 | |
| 2984 | |
| 2985 | |
| 2986 | |
| 2987 | |
| 2988 | |
| 2989 | |
| 2990 | |
| 2991 | |
| 2992 | |
| 2993 | |
| 2994 | |
| 2995 | |
| 2996 | |
| 2997 | |
| 2998 | |
| 2999 | |
| 3000 | |
| 3001 | |
| 3002 | |
| 3003 | |
| 3004 | |
| 3005 | |
| 3006 | |
| 3007 | |
| 3008 | |
| 3009 | |
| 3010 | |
| 3011 | |
| 3012 | |
| 3013 | |
| 3014 | |
| 3015 | |
| 3016 | |
| 3017 | |
| 3018 | |
| 3019 | |
| 3020 | |
| 3021 | |
| 3022 | |
| 3023 | |
| 3024 | |
| 3025 | |
| 3026 | |
| 3027 | |
| 3028 | |
| 3029 | |
| 3030 | |
| 3031 | |
| 3032 | |
| 3033 | |
| 3034 | |
| 3035 | |
| 3036 | |
| 3037 | |
| 3038 | |
| 3039 | |
| 3040 | |
| 3041 | |
| 3042 | |
| 3043 | |
| 3044 | |
| 3045 | |
| 3046 | |
| 3047 | |
| 3048 | |
| 3049 | |
| 3050 | |
| 3051 | |
| 3052 | |
| 3053 | |
| 3054 | |
| 3055 | |
| 3056 | |
| 3057 | |
| 3058 | |
| 3059 | |
| 3060 | |
| 3061 | |
| 3062 | |
| 3063 | |
| 3064 | |
| 3065 | |
| 3066 | |
| 3067 | |
| 3068 | |
| 3069 | |
| 3070 | |
| 3071 | |
| 3072 | |
| 3073 | |
| 3074 | |
| 3075 | |
| 3076 | |
| 3077 | |
| 3078 | |
| 3079 | |
| 3080 | |
| 3081 | |
| 3082 | |
| 3083 | |
| 3084 | |
| 3085 | |
| 3086 | |
| 3087 | |
| 3088 | |
| 3089 | |
| 3090 | |
| 3091 | |
| 3092 | |
| 3093 | |
| 3094 | |
| 3095 | |
| 3096 | |
| 3097 | |
| 3098 | |
| 3099 | |
| 3100 | |
| 3101 | |
| 3102 | |
| 3103 | |
| 3104 | |
| 3105 | |
| 3106 | |
| 3107 | |
| 3108 | |
| 3109 | |
| 3110 | |
| 3111 | |
| 3112 | |
| 3113 | |
| 3114 | |
| 3115 | |
| 3116 | |
| 3117 | |
| 3118 | |
| 3119 | |
| 3120 | |
| 3121 | |
| 3122 | |
| 3123 | |
| 3124 | |
| 3125 | |
| 3126 | |
| 3127 | |
| 3128 | |
| 3129 | |
| 3130 | |
| 3131 | |
| 3132 | |
| 3133 | |
| 3134 | |
| 3135 | |
| 3136 | |
| 3137 | |
| 3138 | |
| 3139 | |
| 3140 | |
| 3141 | |
| 3142 | |
| 3143 | |
| 3144 | |
| 3145 | |
| 3146 | |
| 3147 | |
| 3148 | |
| 3149 | |
| 3150 | |
| 3151 | |
| 3152 | |
| 3153 | |
| 3154 | |
| 3155 | |
| 3156 | |
| 3157 | |
| 3158 | |
| 3159 | |
| 3160 | |
| 3161 | |
| 3162 | |
| 3163 | |
| 3164 | |
| 3165 | |
| 3166 | |
| 3167 | |
| 3168 | |
| 3169 | |
| 3170 | |
| 3171 | |
| 3172 | |
| 3173 | |
| 3174 | |
| 3175 | |
| 3176 | |
| 3177 | |
| 3178 | |
| 3179 | |
| 3180 | |
| 3181 | |
| 3182 | |
| 3183 | |
| 3184 | |
| 3185 | |
| 3186 | |
| 3187 | |
| 3188 | |
| 3189 | |
| 3190 | |
| 3191 | |
| 3192 | |
| 3193 | |
| 3194 | |
| 3195 | |
| 3196 | |
| 3197 | |
| 3198 | |
| 3199 | |
| 3200 | |
| 3201 | |
| 3202 | |
| 3203 | |
| 3204 | |
| 3205 | |
| 3206 | |
| 3207 | |
| 3208 | |
| 3209 | |
| 3210 | |
| 3211 | |
| 3212 | |
| 3213 | |
| 3214 | |
| 3215 | |
| 3216 | |
| 3217 | |
| 3218 | |
| 3219 | |
| 3220 | |
| 3221 | |
| 3222 | |
| 3223 | |
| 3224 | |
| 3225 | |
| 3226 | |
| 3227 | |
| 3228 | |
| 3229 | |
| 3230 | |
| 3231 | |
| 3232 | |
| 3233 | |
| 3234 | |
| 3235 | |
| 3236 | |
| 3237 | |
| 3238 | |
| 3239 | |
| 3240 | |
| 3241 | |
| 3242 | |
| 3243 | |
| 3244 | |
| 3245 | |
| 3246 | |
| 3247 | |
| 3248 | |
| 3249 | |
| 3250 | |
| 3251 | |
| 3252 | |
| 3253 | |
| 3254 | |
| 3255 | |
| 3256 | |
| 3257 | |
| 3258 | |
| 3259 | |
| 3260 | |
| 3261 | |
| 3262 | |
| 3263 | |
| 3264 | |
| 3265 | |
| 3266 | |
| 3267 | |
| 3268 | |
| 3269 | |
| 3270 | |
| 3271 | |
| 3272 | |
| 3273 | |
| 3274 | |
| 3275 | |
| 3276 | |
| 3277 | |
| 3278 | |
| 3279 | |
| 3280 | |
| 3281 | |
| 3282 | |
| 3283 | |
| 3284 | |
| 3285 | |
| 3286 | |
| 3287 | |
| 3288 | |
| 3289 | |
| 3290 | |
| 3291 | |
| 3292 | |
| 3293 | |
| 3294 | |
| 3295 | |
| 3296 | |
| 3297 | |
| 3298 | |
| 3299 | |
| 3300 | |
| 3301 | |
| 3302 | |
| 3303 | |
| 3304 | |
| 3305 | |
| 3306 | |
| 3307 | |
| 3308 | |
| 3309 | |
| 3310 | |
| 3311 | |
| 3312 | |
| 3313 | |
| 3314 | |
| 3315 | |
| 3316 | |
| 3317 | |
| 3318 | |
| 3319 | |
| 3320 | |
| 3321 | |
| 3322 | |
| 3323 | |
| 3324 | |
| 3325 | |
| 3326 | |
| 3327 | |
| 3328 | |
| 3329 | |
| 3330 | |
| 3331 | |
| 3332 | |
| 3333 | |
| 3334 |