Commit c0520380 authored by Ronald S. Bultje's avatar Ronald S. Bultje

Don't apply QM on lossless blocks

Similar to use of 'lossless' variable in setup_segmentation_dequant()
in libaom. Fixes #226 and #228.
parent cd57a9a0
Pipeline #3699 passed with stages
in 5 minutes and 8 seconds
......@@ -206,7 +206,8 @@ static int decode_coefs(Dav1dTileContext *const t,
// residual and sign
int dc_sign = 1;
const uint16_t *const dq_tbl = ts->dq[b->seg_id][plane];
const uint8_t *const qm_tbl = f->qm[is_1d || *txtp == IDTX][tx][plane];
const uint8_t *const qm_tbl = f->qm[f->frame_hdr->segmentation.lossless[b->seg_id] ||
is_1d || *txtp == IDTX][tx][plane];
const int dq_shift = imax(0, t_dim->ctx - 2);
const int bitdepth = BITDEPTH == 8 ? 8 : f->cur.p.bpc;
const int cf_min = -(1 << (7 + bitdepth));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment