CPC H04N 19/119 (2014.11) [H04N 19/117 (2014.11); H04N 19/176 (2014.11); H04N 19/1883 (2014.11); H04N 19/82 (2014.11)] | 6 Claims |
1. An image encoding apparatus capable of encoding an image in units of blocks, the image encoding apparatus comprising:
a first splitting unit configured to split an image into a plurality of coding tree units;
a second splitting unit configured to split a coding tree unit into a plurality of blocks;
a comparing unit configured to compare a division value with a threshold for determining a block group to share a quantization parameter, the division value being a value that increases as a number of times the coding tree unit is split increases, the block group being capable of including at least a plurality of blocks of which the division value is greater than the threshold;
an encoding unit configured to encode data indicating a value of a quantization parameter in accordance with a comparison result obtained by the comparing unit; and
a filtering unit configured to perform deblocking filtering,
wherein, in a case where at least any block included in the block group includes a non-zero coefficient,
the encoding unit is configured to encode first data indicating a first value of a quantization parameter shared in the block group in association with the block including the non-zero coefficient,
wherein, in a case where the block group consists of three blocks and the three blocks included in the block group do not include a non-zero coefficient,
the encoding unit is configured not to encode the first data for the block group, and the filtering unit is configured to perform deblocking filtering on the three blocks included in the block group by using a second value of a quantization parameter which is a value derived by calculating a mean value of quantization parameters for blocks other than the block group, and
wherein the encoding unit is configured to encode, into a bitstream, information for specifying a type of splitting used for the splitting into the plurality of blocks.
|