Quantization for different color sampling schemes
A video coding or decoding method operable to generate blocks of quantized spatial frequency data by quantizing the video data according to a selected quantization step size and a matrix of data modifying the quantization step size for use at different respective block positions within an ordered block of samples, the method being operable with respect to at least two different chrominance subsampling formats.
1. A video decoding method for decoding both video in 4:2:0 video format and 4:4:4 video format, the video decoding method comprising:
generating, by decoding circuitry, blocks of dequantized spatial frequency data by:
dequantizing coefficients representing video data according to a selected quantization step size, and
generating a matrix of data modifying the quantization step size for use at different respective block positions within an ordered block of samples for at least two different block sizes;
determining quantization matrices for use with at least two of the block sizes, the quantization matrices being scaling lists for a 4:4:4 video format;
determining a first quantization matrix for a 32×32 chroma block of samples with respect to a first modification of a first scaling list for quantization of a block of samples smaller than 32×32; and
determining, for blocks of another block size different than the 32×32 chroma block of samples, a second quantization matrix by modifying a second scaling list according to a second modification, wherein
the second scaling list is different from the first scaling list, and
the first scaling list is a reference scaling list for decoding video in 4:2:0 video format.
2. The video decoding method as claimed in claim 1 , further comprising using the first scaling list for decoding video in 4:2:0 video format.
3. The video decoding method as claimed in claim 2 , wherein the reference scaling list is for quantization of a block of samples smaller than 32×32 in respect of video in 4:4:4 video format.
4. The video decoding method as claimed in claim 1 , wherein the modifying the second scaling list comprises sample repeats.
5. The video decoding method as claimed in claim 1 , wherein the first scaling list is for quantization of a block of chroma samples in respect of video in the 4:4:4 video format.
6. The video decoding method as claimed in claim 1 , further comprising retrieving modification indicator data that defines the first and second modifications.
7. The video decoding method as claimed in claim 1 , wherein each of the first and second scaling lists have 8×8 values expressed in a 1×N matrix.
8. The video decoding method as claimed in claim 1 , wherein the first scaling list has 8×8 values expressed in a 1×N matrix and the first modification repeats samples of the first scaling list to form a 32×32 quantization matrix.
9. The video decoding method as claimed in claim 1 , wherein the first scaling list is for quantization of a 16×16 block of samples.
10. The video decoding method as claimed in claim 1 , wherein a third quantization matrix for quantizing an 8×8 block of samples is an 8×8 scaling list.
11. The video decoding method as claimed in claim 1 , wherein
the first modification changes a size of the first scaling list, and
the second modification changes a size of the second scaling list.
12. A non-transitory computer readable medium storing computer executable instructions that, when executed by circuitry of a computer, cause the computer to perform the video decoding method according to claim 1 .
13. A video decoding apparatus, comprising:
decoding circuitry configured to
decode both video in 4:2:0 video format and 4:4:4 video format
generate blocks of dequantized spatial frequency data by:
dequantizing coefficients representing video data according to a selected quantization step size, and
generating a matrix of data modifying the quantization step size for use at different respective block positions within an ordered block of samples for at least two different block sizes;
determine quantization matrices for use with at least two of the block sizes, the quantization matrices being scaling lists for a 4:4:4 video format;
determine a first quantization matrix for a 32×32 chroma block of samples with respect to a first modification of a first scaling list for quantization of a block of samples smaller than 32×32; and
determine, for blocks of another block size different than the 32×32 chroma block of samples, a second quantization matrix by modifying a second scaling list according to a second modification, wherein
the second scaling list is different from the first scaling list, and
the first scaling list is a reference scaling list for decoding video in 4:2:0 video format.
14. The video decoding apparatus as claimed in claim 13 , wherein the decoding circuitry is configured to use the first scaling list for decoding video in 4:2:0 video format.
15. The video decoding apparatus as claimed in claim 14 , wherein the decoding circuitry is configured to quantize of a block of samples smaller than 32×32 in respect of video in 4:4:4 video format using the reference scaling list.
16. The video decoding apparatus as claimed in claim 13 , wherein the decoding circuitry modifies the second scaling list by sample repeats.
17. The video decoding apparatus as claimed in claim 13 , wherein the decoding circuitry is configured to quantize of a block of chroma samples using the first scaling list.
18. The video decoding apparatus as claimed in claim 13 , wherein the decoding circuitry is further configured to retrieve modification indicator data that defines the first and second modifications.
19. The video decoding apparatus as claimed in claim 13 , wherein each of the first and second scaling lists have 8×8 values expressed in a 1×N matrix.
20. The video decoding apparatus as claimed in claim 13 , wherein the first scaling list has 8×8 values expressed in a 1×N matrix and the first modification repeats samples of the first scaling list to form a 32×32 quantization matrix.
21. The video decoding apparatus as claimed in claim 13 , wherein the first scaling list is for quantization of a 16×16 block of samples.
22. The video decoding apparatus as claimed in claim 13 , wherein a third quantization matrix for quantizing an 8×8 block of samples is an 8×8 scaling list.
23. A video receiver comprising the video decoding apparatus as claim in claim 13 .
24. An image capture apparatus comprising:
an image sensor;
a display; and
the video decoding apparatus as claimed in claim 13 outputs decoded video to the display.