Picture encoding device and picture encoding method
There is provided a picture encoding device that encodes a picture and encodes a difference quantization parameter in a unit of a quantization coding block which is divided from the picture and is a management unit of a quantization parameter. A quantization parameter calculator derives a quantization parameter of the quantization coding block to be encoded. A prediction quantization parameter derivation unit derives a prediction quantization parameter using the quantization parameters of a plurality of quantization coding blocks which precede the quantization coding block to be encoded in order of encoding. A difference quantization parameter generator derives a difference quantization parameter of the quantization coding block to be encoded, using a difference between the quantization parameter of the quantization coding block to be encoded and the prediction quantization parameter. A first bitstream generator encodes the difference quantization parameter of the quantization coding block to be encoded.
1. A picture encoding device that encodes a picture and encodes a difference quantization parameter in a unit of a quantization coding block which is divided from the picture and is a management unit of a quantization parameter, comprising:
a quantization parameter derivation unit that derives a quantization parameter of a first quantization coding block;
a prediction quantization parameter derivation unit that derives a prediction quantization parameter using the quantization parameters of two quantization coding blocks which precede the first quantization coding block in order of encoding;
a difference quantization parameter derivation unit that derives a difference quantization parameter of the first quantization coding block, using a difference between the quantization parameter of the first quantization coding block and the prediction quantization parameter; and
an encoder that encodes the difference quantization parameter,
wherein the prediction quantization parameter derivation unit derives the prediction quantization parameter using two quantization parameters: one quantization parameter of a previous quantization coding block which immediately precedes the first quantization coding block to be encoded in order of encoding and another quantization parameter of a quantization coding block which precedes the previous quantization coding block in order of encoding and is not spatially neighboring the first quantization coding block to be encoded.
2. A picture encoding method that encodes a picture and encodes a difference quantization parameter in a unit of a quantization coding block which is divided from the picture and is a management unit of a quantization parameter, comprising:
a quantization parameter derivation step of deriving a quantization parameter of a first quantization coding block;
a prediction quantization parameter derivation step of deriving a prediction quantization parameter using the quantization parameters of two quantization coding blocks which precede the first quantization coding block in order of encoding;
a difference quantization parameter derivation step of deriving a difference quantization parameter of the first quantization coding block, using a difference between the quantization parameter of the first quantization coding block and the prediction quantization parameter; and
an encoding step of encoding the difference quantization parameter,
wherein the prediction quantization parameter derivation step derives the prediction quantization parameter using two quantization parameters: one quantization parameter of a previous quantization coding block which immediately precedes the first quantization coding block to be encoded in order of encoding and another quantization parameter of a quantization coding block which precedes the previous quantization coding block in order of encoding and is not spatially neighboring the first quantization coding block to be encoded.