The raw inter-tile decode entry point takes the frame's own tx_select bit
Browse files at this commit52ec5427962dc05f69ab6a8a9417e27df5f8db22Parent: 8cfe3a6- test
- the raw inter-tile decode entry point takes the frame's own tx_select bit
1 changed file +17 -7
- crates/ec-av1/src/decode.rs +17 -7
crates/ec-av1/src/decode.rsmodified+17 -7
| @@ -32632,7 +32632,13 @@ pub(crate) fn decode_inter_frame_tile( | ||
| 32632 | 32632 | force_integer_mv: bool, |
| 32633 | 32633 | interp_fixed: Option<mc::InterpFilterKind>, |
| 32634 | 32634 | enable_dual_filter: bool, |
| 32635 | - reference_select: bool, fctx: &crate::decode::FrameCtx, | |
| 32635 | + reference_select: bool, | |
| 32636 | + // This frame header's `tx_mode == TxMode::Select`: `Encoded::tx_select`. | |
| 32637 | + // Hard-coding `false` here desynced at the first `tx_depth` symbol once | |
| 32638 | + // inter frames coded Select by default (class: test asserts against a | |
| 32639 | + // stale header, second instance). | |
| 32640 | + tx_select: bool, | |
| 32641 | + fctx: &crate::decode::FrameCtx, | |
| 32636 | 32642 | ) -> Result<Picture> { |
| 32637 | 32643 | let single_tile = TileInfo { |
| 32638 | 32644 | mi_col_starts: vec![0, mi_cols], |
| @@ -32670,9 +32676,7 @@ pub(crate) fn decode_inter_frame_tile( | ||
| 32670 | 32676 | false, |
| 32671 | 32677 | [0; 2], |
| 32672 | 32678 | true, |
| 32673 | - // `tx_select`: this raw entry point decodes this crate's own encoder's | |
| 32674 | - // streams, which always write `TxMode::Largest`. | |
| 32675 | - false, | |
| 32679 | + tx_select, | |
| 32676 | 32680 | false, |
| 32677 | 32681 | false, |
| 32678 | 32682 | false, |
| @@ -36763,7 +36767,9 @@ mod tests { | ||
| 36763 | 36767 | false, |
| 36764 | 36768 | Some(mc::InterpFilterKind::Regular), |
| 36765 | 36769 | false, |
| 36766 | - false, fctx, | |
| 36770 | + false, | |
| 36771 | + false, | |
| 36772 | + fctx, | |
| 36767 | 36773 | ) |
| 36768 | 36774 | .unwrap_err(); |
| 36769 | 36775 | let msg = err.to_string(); |
| @@ -37157,7 +37163,9 @@ mod tests { | ||
| 37157 | 37163 | false, |
| 37158 | 37164 | Some(mc::InterpFilterKind::Regular), |
| 37159 | 37165 | false, |
| 37160 | - false, fctx, | |
| 37166 | + false, | |
| 37167 | + frame.tx_select, | |
| 37168 | + fctx, | |
| 37161 | 37169 | ) |
| 37162 | 37170 | .unwrap(); |
| 37163 | 37171 | assert_eq!( |
| @@ -37466,7 +37474,9 @@ mod tests { | ||
| 37466 | 37474 | false, |
| 37467 | 37475 | Some(mc::InterpFilterKind::Regular), |
| 37468 | 37476 | false, |
| 37469 | - false, fctx, | |
| 37477 | + false, | |
| 37478 | + frame.tx_select, | |
| 37479 | + fctx, | |
| 37470 | 37480 | ) |
| 37471 | 37481 | .unwrap(); |
| 37472 | 37482 | assert_eq!(decoded.y, ffmpeg_frames[i].y, "frame {i} luma vs ffmpeg"); |