Price an inter candidate through the inter 32x32 coefficient set
Browse files at this commitc0bc07f76bb340f86225eb4ef744f90885bedc26Parent: 40e1d94- perf
- price an inter candidate through the inter 32x32 coefficient set
1 changed file +6 -2
crates/ec-av1/src/encode.rsmodified+6 -2
| @@ -2616,6 +2616,10 @@ fn search_inter_block( | ||
| 2616 | 2616 | reference: &Picture, |
| 2617 | 2617 | stack: &MvStack, fctx: &crate::decode::FrameCtx, |
| 2618 | 2618 | ) -> BlockCoeffs { |
| 2619 | + // `luma_set` is the INTRA candidates' table; the two inter candidates | |
| 2620 | + // below price their coefficients through `TxbSet::Luma32Inter`, which is | |
| 2621 | + // what `sb_coeff_inter_frame_tile` codes an inter block with (it carries | |
| 2622 | + // the inter `tx_type` symbol `Luma32` has no table for -- lane-av1rd1). | |
| 2619 | 2623 | let (luma_set, chroma_set) = (TxbSet::Luma32, TxbSet::Chroma16); |
| 2620 | 2624 | let reach = Reach::of(BLOCK, x, y, luma.true_width, luma.true_height, fctx); |
| 2621 | 2625 | |
| @@ -2781,7 +2785,7 @@ fn search_inter_block( | ||
| 2781 | 2785 | false, |
| 2782 | 2786 | search.base_q_idx, |
| 2783 | 2787 | search.deadzone, |
| 2784 | - luma_set, fctx, | |
| 2788 | + TxbSet::Luma32Inter, fctx, | |
| 2785 | 2789 | ); |
| 2786 | 2790 | let u = mc_trial( |
| 2787 | 2791 | &chroma[0], |
| @@ -2882,7 +2886,7 @@ fn search_inter_block( | ||
| 2882 | 2886 | false, |
| 2883 | 2887 | search.base_q_idx, |
| 2884 | 2888 | search.deadzone, |
| 2885 | - luma_set, fctx, | |
| 2889 | + TxbSet::Luma32Inter, fctx, | |
| 2886 | 2890 | ); |
| 2887 | 2891 | let u = mc_trial( |
| 2888 | 2892 | &chroma[0], |