Image processing device and image processing method
View Patent ↗An image processing device including an acquiring section configured to acquire quantization matrix parameters from an encoded stream in which the quantization matrix parameters defining a quantization matrix are set within a parameter set which is different from a sequence parameter set and a picture parameter set, a setting section configured to set, based on the quantization matrix parameters acquired by the acquiring section, a quantization matrix which is used when inversely quantizing data decoded from the encoded stream, and an inverse quantization section configured to inversely quantize the data decoded from the encoded stream using the quantization matrix set by the setting section.
1. An image processing device comprising:
circuitry configured to:
set a first quantization matrix corresponding to first identification information and a second quantization matrix corresponding to second identification information;
quantize image data using the second quantization matrix to generate quantized data; and
encode the quantized data to generate an encoded stream including a parameter indicating whether to reuse the first quantization matrix to generate the second quantization matrix.
2. The image processing device according to claim 1 , wherein
the first quantization matrix is set according to at least one combination of a prediction mode and a color component.
3. The image processing device according to claim 2 , wherein the at least one combination of the prediction mode and the color component includes intra prediction for luma component, intra prediction for chroma component, inter prediction for luma component, and inter prediction for chroma component.
4. The image processing device according to claim 3 , wherein the at least one combination of the prediction mode and the color component includes intra prediction for Y component, intra prediction for Cb component, intra prediction for Cr component, inter prediction for Y component, inter prediction for Cb component, and inter prediction for Cr component.
5. The image processing device according to claim 1 , wherein the parameter is included as a picture parameter set of the encoded stream.
6. The image processing device according to claim 1 , wherein the circuitry is configured to set a value of the first identification information as a value that is different from a value of the second identification information in a case where the parameter indicates that the first quantization matrix is to be used to generate the second quantization matrix.
7. The image processing device according to claim 6 , wherein the circuitry is configured to set the value of the first identification information as a value that is the same as the value of the second identification information in a case where the second quantization matrix is to be set as a default quantization matrix.
8. An image processing method comprising:
setting a first quantization matrix corresponding to first identification information and a second quantization matrix corresponding to second identification information;
quantizing image data using the second quantization matrix to generate quantized data; and
encoding the quantized data to generate an encoded stream including a parameter indicating whether to reuse the first quantization matrix to generate the second quantization matrix.
9. The image processing method according to claim 8 , wherein the first quantization matrix is set according to at least one combination of a prediction mode and a color component.
10. The image processing method according to claim 9 , wherein the at least one combination of the prediction mode and the color component includes intra prediction for luma component, intra prediction for chroma component, inter prediction for luma component, and inter prediction for chroma component.
11. The image processing method according to claim 10 , wherein the at least one combination of the prediction mode and the color component includes intra prediction for Y component, intra prediction for Cb component, intra prediction for Cr component, inter prediction for Y component, inter prediction for Cb component, and inter prediction for Cr component.
12. The image processing method according to claim 8 , wherein the parameter is included as a picture parameter set of the encoded stream.
13. The imaging processing method according to claim 8 , further comprising setting a value of the first identification information as a value that is different from a value of the second identification information in a case where the parameter indicates that the first quantization matrix is to be reused to generate the second quantization matrix.
14. The image processing method according to claim 13 , further comprising setting the value of the first identification information as a value that is the same as the value of the second identification information in a case where the second quantization matrix is to be set as a default quantization matrix.
15. A non-transitory computer-readable storage medium storing computer-readable instructions thereon, which, when executed by a computer, cause the computer to perform an image processing method comprising:
setting a first quantization matrix corresponding to first identification information and a second quantization matrix corresponding to second identification information;
quantizing image data using the second quantization matrix to generate quantized data; and
encoding the quantized data to generate an encoded stream including a parameter indicating whether to reuse the first quantization matrix to generate the second quantization matrix.