Compound reference on by default -- BD down on all three gate clips
Browse files at this commite062d5bb1a397496aa6a4af46d82ad0080e196cbParent: 3cac217- feat
- compound reference on by default -- BD down on all three gate clips
2 changed files +14 -4
crates/ec-av1/src/decode.rsmodified+12 -2
| @@ -37493,7 +37493,12 @@ mod tests { | ||
| 37493 | 37493 | false, |
| 37494 | 37494 | Some(mc::InterpFilterKind::Regular), |
| 37495 | 37495 | false, |
| 37496 | - false, | |
| 37496 | + // The encoder's own `reference_select` (spec 5.9.22): these | |
| 37497 | + // GOP round trips decode a tile the ENCODER wrote, so the | |
| 37498 | + // header bit must be the one it wrote, not a hard-coded | |
| 37499 | + // `false` (stale-header class -- a `reference_select` stream | |
| 37500 | + // reads a `comp_mode` symbol this decode would skip). | |
| 37501 | + crate::encode::reference_select(), | |
| 37497 | 37502 | frame.tx_select, |
| 37498 | 37503 | &frame.loop_restoration, |
| 37499 | 37504 | Some(frame.start_cdfs.0.clone()), |
| @@ -37812,7 +37817,12 @@ mod tests { | ||
| 37812 | 37817 | false, |
| 37813 | 37818 | Some(mc::InterpFilterKind::Regular), |
| 37814 | 37819 | false, |
| 37815 | - false, | |
| 37820 | + // The encoder's own `reference_select` (spec 5.9.22): these | |
| 37821 | + // GOP round trips decode a tile the ENCODER wrote, so the | |
| 37822 | + // header bit must be the one it wrote, not a hard-coded | |
| 37823 | + // `false` (stale-header class -- a `reference_select` stream | |
| 37824 | + // reads a `comp_mode` symbol this decode would skip). | |
| 37825 | + crate::encode::reference_select(), | |
| 37816 | 37826 | frame.tx_select, |
| 37817 | 37827 | &frame.loop_restoration, |
| 37818 | 37828 | Some(frame.start_cdfs.0.clone()), |
crates/ec-av1/src/encode.rsmodified+2 -2
| @@ -3724,7 +3724,7 @@ pub(crate) fn flat_order_hints(order_hint: u32, key_hint: u32, has_altref: bool) | ||
| 3724 | 3724 | /// `EC_AV1_COMPOUND=1` arms it in a test build (which is what the BD gate |
| 3725 | 3725 | /// runs as), and every block still codes SINGLE, so the only cost is one |
| 3726 | 3726 | /// `comp_mode` symbol per inter block. |
| 3727 | -const REFERENCE_SELECT: bool = false; | |
| 3727 | +const REFERENCE_SELECT: bool = true; | |
| 3728 | 3728 | |
| 3729 | 3729 | /// [`REFERENCE_SELECT`], with the test-build environment override. |
| 3730 | 3730 | pub(crate) fn reference_select() -> bool { |
| @@ -8294,7 +8294,7 @@ mod tests { | ||
| 8294 | 8294 | }) |
| 8295 | 8295 | }; |
| 8296 | 8296 | let pins: [(u8, usize, u64); 2] = |
| 8297 | - [(150, 7444, 0x76eb980832d719f1), (60, 27692, 0x8c88f7e73455d439)]; | |
| 8297 | + [(150, 7209, 0xacdd_6952_78c1_49f2), (60, 27353, 0x9be8_7898_f08d_3b77)]; | |
| 8298 | 8298 | for (q, bytes, hash) in pins { |
| 8299 | 8299 | let encoded = encode_sequence(&source, q, 0.5).unwrap(); |
| 8300 | 8300 | assert_eq!( |