CPC H04N 19/119 (2014.11) [H04N 19/124 (2014.11); H04N 19/129 (2014.11); H04N 19/182 (2014.11); H04N 19/436 (2014.11); H04N 19/625 (2014.11); H04N 19/63 (2014.11); H04N 19/70 (2014.11); H04N 19/91 (2014.11)] | 5 Claims |
1. A video decoding apparatus for decoding a current block corresponding to a two dimensional frequency conversion unit having a size larger than or equal to a 8×8 pixel size, the apparatus comprising:
a decoder, implemented by a processor, configured to reconstruct frequency coefficients of a frequency conversion unit by decoding a bitstream, to generate a frequency conversion block having a size of the frequency conversion unit, wherein the frequency conversion unit is a unit of transforming residual signals that are differences between original pixel values and predicted pixel values, and the frequency coefficients are values generated by transform of the residual signals from a spatial domain into a frequency domain;
an inverse transformer, implemented by a processor, configured to inversely transform the frequency conversion block from the frequency domain into the spatial domain by using a transform size identical to the size of the frequency conversion unit, to reconstruct a residual block;
a predictor, implemented by a processor, configured to generate a predicted block by intra-predicting the current block using pre-reconstructed neighboring pixels of the current block; and
an adder, implemented by a processor, configured to add the reconstructed residual block to the predicted block, to thereby reconstruct the current block,
wherein the decoder is configured to generate the frequency conversion block by reconstructing and inversely scanning, in the unit of two dimensional subblocks divided from the frequency conversion unit, the frequency coefficients of the frequency conversion unit, all of the subblocks divided from the frequency conversion unit being equal-sized square blocks which have a 4×4 pixel size regardless of the size of the frequency conversion unit,
wherein the decoder is configured to reconstruct and inversely scan the frequency coefficients in the unit of the subblocks by:
decoding, from the bitstream, subblock encoding information indicating whether a subblock of the 4×4 pixel size corresponding thereto has at least one non-zero frequency coefficient, wherein:
a value of the decoded subblock encoding information is 0 when the subblock does not have at least one non-zero frequency coefficient, and
the value of the decoded subblock encoding information is 1 when the subblock has at least one non-zero frequency coefficient;
reconstructing from the bitstream and inversely scanning frequency coefficients corresponding to the subblock, when the decoded subblock encoding information indicates that the subblock has at least one non-zero frequency coefficient; and
setting all frequency coefficients corresponding to the subblock to 0, when the decoded subblock encoding information indicates that the subblock does not have at least one non-zero frequency coefficient,
wherein each of the subblocks includes frequency coefficients corresponding to a frequency range, the frequency range of each of the subblocks being different from each other,
wherein the frequency coefficients which are located at different positions in each of the subblocks are values in the frequency domain which correspond to different frequencies.
|