Commit c538d681 authored by Luc Trudeau's avatar Luc Trudeau Committed by Yushin Cho
Browse files

[PVQ] Don't transform if block skipped

The forward transforms required for PVQ are only performed if the block
is not skipped.

Change-Id: I22de3c7855ed800578a60aa06992cebea8bda119
parent b8e6f2ce
......@@ -673,6 +673,10 @@ void av1_xform_quant(const AV1_COMMON *cm, MACROBLOCK *x, int plane, int block,
// PVQ for inter mode block
if (!x->skip_block) {
(void)xform_quant_idx;
fwd_txfm(src_int16, coeff, diff_stride, &fwd_txfm_param);
fwd_txfm(pred, ref_coeff, diff_stride, &fwd_txfm_param);
PVQ_SKIP_TYPE ac_dc_coded =
av1_pvq_encode_helper(x,
coeff, // target original vector
......
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