摘要 |
The techniques of this disclosure are directed toward the use of modified quantization parameter (QP) values to calculate quantized and dequantized transform coefficients of a video block with uniform QP granularity. Conventionally, when a quantization matrix is used during quantization and dequantization of transform coefficients, the quantization matrix entries act as scale factors of a quantizer step-step corresponding to a base QP value, which results in non-uniform QP granularity. To provide uniform QP granularity across all quantization matrix entries, the techniques include calculating modified QP values for transform coefficients based on associated quantization matrix entries used as offsets to a base QP value. At a video decoder, the techniques include calculating dequantized transform coefficients from quantized transform coefficients based on the modified QP values. At a video encoder, the techniques include calculating quantized transform coefficients from transform coefficients based on the modified QP values. |