CPC H04N 19/124 (2014.11) [H04N 19/119 (2014.11); H04N 19/132 (2014.11); H04N 19/159 (2014.11); H04N 19/176 (2014.11); H04N 19/18 (2014.11)] | 10 Claims |
1. An image decoding apparatus for decoding an image from encoded data, the apparatus comprising:
a decoding unit configured to decode data for indicating a plurality of difference values for a quantization matrix used for inverse quantizing processing which derives transform coefficients from quantized transform coefficients;
a deriving unit configured to derive a plurality of values corresponding to at least a part of elements in the quantization matrix by using the data, and derive the quantization matrix based on the plurality of values; and
an inverse quantizing unit configured to perform the inverse quantizing processing on an object block using the quantization matrix,
wherein, in a case where a width of the object block is 16 samples and a height of the object block is 8 samples, the deriving unit derives the quantization matrix by:
setting a first value among the plurality of values as a first element corresponding to DC component in the quantization matrix, wherein the first value is not set for a plurality of elements in the quantization matrix used for the inverse quantizing processing, and the first value is derived by using difference from a predetermined initial value;
setting a second value among the plurality of values as a second element adjacent to the first element on a right side of the first element, wherein the second value is not set for a plurality of elements in the quantization matrix used for the inverse quantizing processing, and the second value is derived by using difference from the first value; and
setting a third value among the plurality of values as a third element and a fourth element, wherein the third element is adjacent to the first element and is below the first element, the fourth element is adjacent to the second element and is below the second element, and the third value is derived by using difference from the second value, and
wherein, in a case where a width of the object block is 8 samples and a height of the object block is 16 samples, the deriving unit derives the quantization matrix by:
setting a first value among the plurality of values as a first element corresponding to DC component in the quantization matrix, wherein the first value is not set for a plurality of elements in the quantization matrix used for the inverse quantizing processing, and the first value is derived by using difference from a predetermined initial value;
setting a second value among the plurality of values as a second element which is adjacent to the first element and is below the first element, wherein the second value is not set for a plurality of elements in the quantization matrix used for the inverse quantizing processing, and the second value is derived by using difference from the first value; and
setting a third value among the plurality of values as a third element and a fourth element, wherein the third element is adjacent to the second element and is below the second element, the fourth element is adjacent to the third element and is below the third element, and the third value is derived by using difference from the second value.
|