Video decoding device and method using inverse quantization
There is provided a video encoding device capable of changing a quantization step size frequently while reducing an increase in code rate to enable high-quality moving image encoding, comprising a quantization step size encoding unit 10 for encoding a quantization step size that controls the granularity of quantization, the quantization step size encoding unit 10 includes a step size prediction unit 11 for predicting the quantization step size that controls the granularity of the quantization by using a quantization step size assigned to a neighboring image block already encoded.
1. A decoding device comprising:
a memory storing a software component; and
at least one processor configured to execute the software component to perform:
de-multiplexing a bitstream;
entropy-decoding a difference quantization step size from the de-multiplexed bitstream;
acquiring a first quantization step size that controls a granularity of an inverse quantization, the first quantization step size being assigned to a neighboring image block already decoded;
acquiring a second quantization step size that controls a granularity of the inverse quantization, the second quantization step size being assigned to a most recently decoded image block;
selecting the first quantization step size or the second quantization step size based on an image prediction parameter which is a neighboring block availability for a current image block to be decoded;
calculating, for the current image block to be decoded, a quantization step size by adding the selected quantization step size and the difference quantization step size; and
decoding the current image block based on the calculated quantization step size.
2. A computer-implemented decoding method, comprising:
de-multiplexing a bitstream;
entropy-decoding a difference quantization step size from the de-multiplexed bitstream;
acquiring a first quantization step size that controls a granularity of an inverse quantization, the first quantization step size being assigned to a neighboring image block already decoded;
acquiring a second quantization step size that controls a granularity of the inverse quantization, the second quantization step size being assigned to a most recently decoded image block;
selecting the first quantization step size or the second quantization step size based on an image prediction parameter which is a neighboring block availability for a current image block to be decoded;
calculating, for the current image block to be decoded, a quantization step size by adding the selected quantization step size and the difference quantization step size; and
decoding the current image block based on the calculated quantization step size.
3. A non-transitory computer readable information recording medium storing a decoding program which, when executed by a processor, performs a method for:
de-multiplexing a bitstream;
entropy-decoding a difference quantization step size from the de-multiplexed bitstream;
acquiring a first quantization step size that controls a granularity of an inverse quantization, the first quantization step size being assigned to a neighboring image block already decoded;
acquiring a second quantization step size that controls a granularity of the inverse quantization, the second quantization step size being assigned to a most recently decoded image block;
selecting the first quantization step size or the second quantization step size based on an image prediction parameter which is a neighboring block availability for a current image block to be decoded;
calculating, for the current image block to be decoded, a quantization step size by adding the selected quantization step size and the difference quantization step size; and
decoding the current image block based on the calculated quantization step size.