Patent ID: 9609354
Date: 2017-03-28
CPC Classifications: H04N

Claim:
1. An apparatus for decoding a moving picture, the apparatus comprising: an entropy decoder configured to restore an intra prediction mode index, motion information and a quantization coefficient sequence; an inverse scanner configured to generate a quantized transform block by inversely scanning the quantized coefficient sequence in a unit of sub-block when a size of the quantized transform block is larger than a predetermined size; an inverse quantizer configured to generate a quantization step size predictor, restore a quantization step size by adding the quantization step size predictor and a remaining quantization step size, and generate a transform block by inversely quantizing the quantized transform block using the quantization step size; an inverse transformer configured to restore a residual block by inversely transforming the transform block; an inter predictor configured to determine a motion vector predictor of a current block based on the motion information, restore a motion vector of the current block using the motion vector predictor, and generate a prediction block of the current block using the motion vector when the current block is coded in inter prediction mode; and an intra predictor configured to restore an intra prediction mode of the current block based on the intra prediction mode index and to generate a prediction block of the current block according to the intra prediction mode when the current block is coded in intra prediction mode, wherein the motion vector predictor is an available spatial motion vector candidate or an available temporal motion vector candidate, and the temporal motion vector candidate is a motion vector of a first available block out of two blocks which exist in a temporal motion vector candidate picture indicated by a reference picture index obtained from the motion information, wherein the two blocks are a first candidate block and a second candidate block, the first candidate block is a below right corner block neighbored to a corresponding block which is co-located with the current block in the temporal motion vector candidate picture or a below right block within the corresponding block, and the second candidate block is a first center block which includes an upper left neighboring pixel with respect to a center position of the corresponding block or a second center block which includes a below right neighboring pixel with respect to the center position of the corresponding block, wherein, when the current block is coded in intra prediction and a size of the transform block is larger than a predetermined size, the inverse scanner restores a plurality of sub-blocks by applying a first scan pattern determined according to the intra prediction mode of the current block on the quantization coefficient sequence, and restores the quantized transform block by applying a second scan pattern determined according to the intra prediction mode of the current block on the plurality of sub-blocks, wherein the first scan pattern for restoring the plurality of sub-blocks from the quantization coefficient sequence is the same as the second scan pattern for restoring the quantized transform block from the plurality of sub-blocks, wherein, when the current block is coded in inter prediction and the size of the transform block is larger than the predetermined size, the inverse scanner restores a plurality of sub-blocks by applying a predetermined scan pattern on the quantization coefficient sequence, and restores the quantized block by applying the predetermined scan pattern on the plurality of sub-blocks, wherein, when the prediction block is encoded in merge mode, the inter predictor generates a merge candidate list using available spatial merge candidates and an available temporal merge candidate, determines a motion vector and a reference picture index of a merge candidate in the merge candidate list indicated by a merge index as a motion vector and a reference picture index of the current block, and generates the prediction block of the current block using the motion vector and the reference picture of the current block, wherein the temporal merge candidate includes a reference picture index and a motion vector, and the reference picture index of the temporal merge candidate is set to 0, and wherein, when a quantization step size of a left coding block of a current coding block and a quantization step size of an above coding block of the current coding block are unavailable, the inverse quantizer determines a quantization step size of a previous coding block according to scan order as the quantization step size predictor of the current coding block.