CPC H04N 19/12 (2014.11) [H04N 19/124 (2014.11); H04N 19/13 (2014.11); H04N 19/176 (2014.11); H04N 19/70 (2014.11)] | 17 Claims |
1. A video decoding method, comprising:
performing entropy decoding processing on a code block of a video image frame of a video image frame sequence, to obtain a quantization coefficient block of residual data corresponding to the code block;
collecting statistics of quantization coefficients in a target region in the quantization coefficient block, to obtain a quantization coefficient statistical value, comprising:
performing a numerical value conversion according to numerical values of the quantization coefficients in the target region, including: converting the numerical values that are odd numbers into a first numerical value, converting the numerical values that are even numbers into a second numerical value, one of the first numerical value and the second numerical value being an even number, and the other one of the first numerical value and the second numerical value being an odd number;
calculating a sum of odd number values or a sum of even number values of the quantization coefficients in the target region after the numerical value conversion, and using the obtained sum as a statistical result; and
determining the quantization coefficient statistical value based on the statistical result;
selecting a transform matrix combination corresponding to the quantization coefficient statistical value based on a parity of the quantization coefficient statistical value; and
performing inverse transform processing on an inverse quantization result of the quantization coefficient block based on the selected transform matrix combination, to obtain reconstructed residual data, the reconstructed residual data being used for video image reconstruction.
|