Method and apparatus for encoding and decoding image by using large transformation unit
Disclosed are an image encoding method and apparatus for encoding an image by grouping a plurality of adjacent prediction units into a transformation unit and transforming the plurality of adjacent prediction into a frequency domain, and an image decoding method and apparatus for decoding an image encoded by using the image encoding method and apparatus.
1. An image encoding apparatus comprising:
a transformer which sets a transformation unit in a coding unit, wherein a size of the transformation unit is determined independently from a size of at least one prediction unit in the coding unit, performs transformation on the transformation unit to generate transformation coefficients;
a quantization unit which quantizes the transformation coefficients of the transformation unit; and
an entropy encoder which entropy encodes the quantized transformation coefficients,
wherein:
an image is split into a plurality of maximum coding units, according to information about a maximum size of the coding unit,
the maximum coding unit is hierarchically into one or more coding units of depth including at least one of a current depth and a lower depth, according split information,
when the split information indicates a split for the current depth, the coding unit of the current depth is split into four rectangular coding units of a lower depth, independently from neighboring coding units, and
when the split information indicates a non-split of the lower depth, the at least one prediction unit is obtained from the coding unit of the lower depth.
2. An image decoding method comprising:
performing entropy decoding to generate quantized transformation coefficients of a transformation unit in a coding unit;
inverse quantizing the quantized transformation coefficients to generate transformation coefficients of the transformation unit; and
inverse transforming the transformation coefficients to generate residual components of the transformation unit,
wherein a size of the transformation unit is determined independently from a size of the at least one prediction unit in the coding unit,
an image is split into a plurality of maximum coding units, according to information about a maximum size of the coding unit,
the maximum coding unit is hierarchically into one or more coding units of depth including at least one of a current depth and a lower depth, according to split information,
when the split information indicates a split for the current depth, the coding unit of the current depth is split into four rectangular coding units of a lower depth, independently from neighboring coding units, and
when the split information indicates a non-split of the lower depth, the at least one prediction unit is obtained from the coding unit of the lower depth.
3. The image decoding method of claim 2 , wherein a size of the maximum coding unit is set as one of 16×16, 32×32 and 64×64, a size of the coding units is determined as one of 8×8, 16×16, 32×32 and 64×64, and the prediction units are obtained by splitting at least one of a height and a width of the coding unit.
4. An image decoding apparatus comprising:
an entropy decoder which performs entropy decoding to generate quantized transformation coefficients of a transformation unit in a coding unit;
an inverse-quantization unit which inverse quantizes the quantized transformation coefficients to generate transformation coefficients of the transformation unit; and
an inverse-transformer which inverse transforms the transformation coefficients to generate residual components of the transformation unit,
wherein a size of the transformation unit in a coding unit is determined independently from a size of the at least one prediction unit in the coding unit,
an image is split into a plurality of maximum coding units, according to information about a maximum size of the coding unit,
the maximum coding unit is hierarchically into one or more coding units of depth including at least one of a current depth and a lower depth, according to split information,
when the split information indicates a split for the current depth, the coding unit of the current depth is split into four rectangular coding units of a lower depth, independently from neighboring coding units, and
when the split information indicates a non-split of the lower depth, the coding unit of the lower depth is split into the at least one prediction unit.
5. A non-transitory computer readable recording medium having recorded thereon a program for executing the method of claim 2 .