mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-27 11:24:05 +00:00
[DepQuant] Fix
This commit is contained in:
parent
c6087230a8
commit
505c26eef3
|
@ -805,7 +805,7 @@ int uvg_quantize_residual_avx2(encoder_state_t *const state,
|
||||||
void uvg_dequant_avx2(const encoder_state_t * const state, coeff_t *q_coef, coeff_t *coef, int32_t width, int32_t height,color_t color, int8_t block_type, int8_t transform_skip)
|
void uvg_dequant_avx2(const encoder_state_t * const state, coeff_t *q_coef, coeff_t *coef, int32_t width, int32_t height,color_t color, int8_t block_type, int8_t transform_skip)
|
||||||
{
|
{
|
||||||
const encoder_control_t * const encoder = state->encoder_control;
|
const encoder_control_t * const encoder = state->encoder_control;
|
||||||
if (encoder->cfg.dep_quant) {
|
if (encoder->cfg.dep_quant && !transform_skip) {
|
||||||
uvg_dep_quant_dequant(state, block_type, width, height, color, q_coef, coef, encoder->cfg.scaling_list);
|
uvg_dep_quant_dequant(state, block_type, width, height, color, q_coef, coef, encoder->cfg.scaling_list);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -511,7 +511,7 @@ int uvg_quantize_residual_generic(encoder_state_t *const state,
|
||||||
// Quantize coeffs. (coeff -> coeff_out)
|
// Quantize coeffs. (coeff -> coeff_out)
|
||||||
|
|
||||||
int abs_sum = 0;
|
int abs_sum = 0;
|
||||||
if (!false && state->encoder_control->cfg.dep_quant) {
|
if (!use_trskip && state->encoder_control->cfg.dep_quant) {
|
||||||
uvg_dep_quant(
|
uvg_dep_quant(
|
||||||
state,
|
state,
|
||||||
cur_cu,
|
cur_cu,
|
||||||
|
@ -618,7 +618,7 @@ int uvg_quantize_residual_generic(encoder_state_t *const state,
|
||||||
void uvg_dequant_generic(const encoder_state_t * const state, coeff_t *q_coef, coeff_t *coef, int32_t width, int32_t height,color_t color, int8_t block_type, int8_t transform_skip)
|
void uvg_dequant_generic(const encoder_state_t * const state, coeff_t *q_coef, coeff_t *coef, int32_t width, int32_t height,color_t color, int8_t block_type, int8_t transform_skip)
|
||||||
{
|
{
|
||||||
const encoder_control_t * const encoder = state->encoder_control;
|
const encoder_control_t * const encoder = state->encoder_control;
|
||||||
if(encoder->cfg.dep_quant) {
|
if(encoder->cfg.dep_quant && !transform_skip) {
|
||||||
uvg_dep_quant_dequant(state, block_type, width, height, color, q_coef, coef, encoder->cfg.scaling_list);
|
uvg_dep_quant_dequant(state, block_type, width, height, color, q_coef, coef, encoder->cfg.scaling_list);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue