CPC H04N 19/52 (2014.11) [H04N 19/124 (2014.11); H04N 19/159 (2014.11); H04N 19/176 (2014.11); H04N 19/463 (2014.11); H04N 19/513 (2014.11)] | 8 Claims |
1. A method of decoding video data in merge mode, comprising:
constructing a merge candidate list using available spatial and temporal merge candidates, wherein the spatial and temporal merge candidates are motion information of spatial and temporal merge candidate blocks;
deriving motion information of a current block using a merge index and the merge candidate list;
generating a prediction block using the motion information;
generating a residual block by inverse-quantizing a quantized block using a quantization parameter and a quantization matrix and by inverse-transforming the inverse quantized block; and
generating a reconstructed block using the residual block and the prediction block,
wherein the quantization parameter is generated per quantization unit and a minimum size of the quantization unit is adjusted per picture,
the quantization parameter is generated using a quantization parameter predictor and a differential quantization parameter,
wherein the quantization parameter predictor is generated using at most two quantization parameters, the at most two parameters comprising:
a left quantization parameter and an above quantization parameter when both of the left and above quantization parameters are available,
the above quantization parameter and a previous quantization parameter when the left quantization parameter is not available,
the left quantization parameter and the previous quantization parameter when the above quantization parameter is not available, and
the previous quantization parameter when both of the left and above quantization parameters are not available,
wherein available blocks of a left block, an above block, an above-right block and an left-below block are set as available spatial merge candidate blocks, and an available above-left block is added as an available merger candidate block when at least one of the left block, the above block, the above-right block, and the left-below block is unavailable, and
wherein the differential quantization parameter is generated by restoring a bin string indicating an absolute value of the differential quantization parameter and a bin indicating a sign of the differential quantization parameter.
|