Added rdoq-skip to quant-generic.c

This commit is contained in:
Eemeli Kallio 2016-08-18 12:14:31 +03:00
parent d20ac03ca2
commit 1fb4755f31

View file

@ -213,7 +213,7 @@ int kvz_quantize_residual_generic(encoder_state_t *const state,
}
// Quantize coeffs. (coeff -> quant_coeff)
if (state->encoder_control->rdoq_enable) {
if (state->encoder_control->rdoq_enable && !skip_rdoq(state, coeff, quant_coeff, width, width, (color == COLOR_Y ? 0 : 2), scan_order, cur_cu->type)) {
int8_t tr_depth = cur_cu->tr_depth - cur_cu->depth;
tr_depth += (cur_cu->part_size == SIZE_NxN ? 1 : 0);
kvz_rdoq(state, coeff, quant_coeff, width, width, (color == COLOR_Y ? 0 : 2),