Description
METHODANDAPPARATUSTOTRANSFORM/INVERSE
TRANSFORMANDQUANTIZE/DEQUANTIZECOLOR
IMAGE,ANDMETHODANDAPPARATUSTO ENCODE/
DECODECOLORIMAGEUSINGIT
Technical Field
[1] The present invention relates to encoding and decoding of a color image, and more particularly, to a method and an apparatus for transforming/inverse transforming and quantizing/dequantizing a residual transformed color image and a method and an apparatus for encoding/decoding the color image using the same .
Background Art
[2] In general, a color image is color transformed and then encoded. Types of color coordinate systems are various. A standard coordinate system is an RGB coordinate system. An RGB image is transformed into an YCbCr image, divided into luminance and chrominance components, and encoded. As a result, since a redundancy of the chrominance components is removed by the transformation, encoding efficiency is increased. In particular, an integer transformation method using a lifting method has been studied. For example, YCoCg-R is developed by Microsoft Corporation.
[3] When a transformed image is encoded, temporal and spatial estimations are performed to remove the redundancy of components so as to obtain a residual image.
[4] In 'Text of ISO/IEC FDIS 14496-10: Information Technology - Coding of audio¬ visual objects - Part 10: Advanced Video Coding', ISO/IEC JTC 1/SC 29/WG 11, N5555, March, 2003 that is H.264/MPEG-4 pt.lO AVC standard technology of Joint Video Team (JVT) of ISO/IEC MPEG and ITU-T VCEG, spatial and temporal estimation encoding is performed using various methods to improve encoding efficiency. However, in a case where temporal and spatial estimations are performed with respect to chrominance components using the same method, a redundancy exists between residual images of chrominance components. To solve this, the residue images of the chrominance components are formed through the temporal and spatial estimations during encoding and transformation is performed with respect to the residue of the chrominance components so as to remove the redundancy of the residue of the chrominance components. Disclosure of Invention
Technical Problem
[5] However, in this case, a residual transformation method cannot be used respect to
intra 4x4 and 8x8 blocks. This is because the use of the residual transformation method can not direct current (DC) transformation, thus it makes quantization inefficient. Thus, the residual transformation method is inefficient in terms of compression efficiency.
Technical Solution
[6] The present invention provides a method and an apparatus for quantizing and transforming a color image by which a residual transformation can be applied in any estimation mode to encode the color image.
[7] The present invention also provides a method and an apparatus for encoding a color image using the method and the apparatus for quantizing and transforming the color image.
[8] The present invention also provides a method and an apparatus for dequantizing and inverse transforming a color image to decode a residual transformed color image in any estimation mode.
[9] The present invention also provides a method and an apparatus for decoding a color image using the method and the apparatus for dequantizing and inverse transforming the color image.
[10] According to an aspect of the present invention, there is provided a method of transforming and quantizing a color image, including: transforming a color image into a frequency domain image; differently applying a transformation for removing a redundancy of direct current components of the frequency domain image depending on whether the color image is residual transformed and a macroblock estimation mode; and quantizing the frequency domain image from which the redundancy has been removed.
[11] Differently applying the transformation for removing the redundancy of the direct current components of the frequency domain image depending on whether the color image is residual transformed and the macroblock estimation mode may include: if in¬ formation residual_colour_transform_flag as to whether a residual transformation is performed indicates a performance of the residual transformation residual_colour_transform_flag=l and the macroblock estimation mode with respect to luma (Y or G component) is a 4x4 intra estimation mode Intra_4x4 or a 8x8 intra estimation mode Intra_8x8, quadruplicating a 4x4 direct current value matrix obtained from the result of the frequency transformation as in Equation below; and
[12] f = c «2 (where, i,j = 0...3)
IJ 1J
[13] if the information residual_colour_transform_flag indicates a non-performance of the residual transformation residual_colour_transform_flag=0 or the macroblock estimation mode with respect to the luma (Y or G component) is not both the 4x4 intra estimation mode Intra_4x4 and the 8x8 intra estimation mode Intra_8x8, Hadamard-
transforming the 4x4 direct current value matrix. Quantizing the frequency domain image from which the redundancy has been removed may include: if the information residual_colour_transform_flag indicates the performance of the residual trans¬ formation residual_colour_transform_flag=l, representing a quantization parameter of a chrominance component as in Equation below:
[14] QP'c = QPc + QpBdOffsetc
[15] wherein QpBdOffsetc = 6*(bit_depth_chroma_minus8 + residual_colour_transform_flag) and QPc denotes a quantization parameter of a chrominance component Cb, Cr, R, or B, where QpBdOffsetc denotes offset of QPc and bit_depth_chroma_minus8 denotes a bit depth of a chrominance array sample per pixel; if the information residual_colour_transform_flag indicates the non- performance of the residual transformation residual_colour_transform_flag=0, rep¬ resenting the quantization parameter of the chrominance component as in Equation below:
[16] QP'c = QPc + QpBdOffsetc
[17] wherein QpBdOffsetc = 6*bit_depth_chroma_minus8; and quantizing the transformed color image data using the QP'c.
[18] According another aspect of the present invention, there is provided an apparatus for transforming and quantizing a color image, including: a domain transformer transforming a color image into a frequency domain image; a redundancy remover differently applying a transformation for removing a redundancy of direct current components of the frequency domain image depending on whether the color image is residual transformed and a macroblock estimation mode; and a quantizer quantizing the frequency domain image from which the redundancy has been removed.
[19] The redundancy remover may include: if information residual_colour_transform_flag as to whether a residual transformation is performed indicates a performance of the residual transformation residual_colour_transform_flag=l and the macroblock estimation mode with respect to luma (Y or G component) is a 4x4 intra estimation mode Intra_4x4 or a 8x8 intra estimation mode Intra_8x8, a direct current value transformer quadruplicating a 4x4 direct current value matrix obtained from the result of the frequency transformation as in Equation below; and
[20] f = c «2 (where, i,j = 0...3)
IJ 1J
[21] if the information residual_colour_transform_flag indicates a non-performance of the residual transformation residual_colour_transform_flag=0 or the macroblock estimation mode with respect to the luma (Y or G component) is not both the 4x4 intra estimation mode Intra_4x4 and the 8x8 intra estimation mode Intra_8x8, a Hadamard transformer Hadamard-transforming the 4x4 direct current value matrix. The quantizer
may include: if the information residual_colour_transform_flag indicates the performance of the residual transformation residual_colour_transform_flag=l, a first quantization parameter transformer representing a quantization parameter of a chrominance component as in Equation below:
[22] QP'c = QPc + QpBdOffsetc
[23] wherein QpBdOffsetc = 6*(bit_depth_chroma_minus8 + residual_colour_transform_flag) and QPc denotes a quantization parameter of a chrominance component Cb, Cr, R, or B, where QpBdOffsetc denotes offset of QPc and bit_depth_chroma_minus8 denotes a bit depth of a chrominance array sample per pixel; if the information residual_colour_transform_flag indicates the non- performance of the residual transformation residual_colour_transform_flag=0, a second quantization parameter transformer representing the quantization parameter of the chrominance component as in Equation below:
[24] QP'c = QPc + QpBdOffsetc
[25] wherein QpBdOffsetc = 6*bit_depth_chroma_minus8; and a color image quantizer quantizing the transformed color image data using the QP'c.
[26] According to still another aspect of the present invention, there is provided a method of encoding a color image, including: temporally (inter) and spatially (intra) estimating an input color image; residual transforming the estimated color image; transforming the color image into a frequency domain image; differently applying a transformation for removing a redundancy of direct current components of the frequency domain image depending on whether the color image is residual transformed and an estimation mode; quantizing the frequency domain image from which the redundancy has bee removed; and entropy encoding the quantized data.
[27] According yet another aspect of the present invention, there is provided an apparatus for encoding a color image, including: an estimator temporally (inter) and spatially (intra) estimating an input color image; a residual transformer residual transforming the estimated color image; a domain transformer transforming the color image into a frequency domain image; a redundancy remover differently applying a transformation for removing a redundancy of direct current components of the frequency domain image depending on whether the color image is residual transformed and a macroblock estimation mode; a quantizer quantizing the frequency domain image from which the redundancy has bee removed; and an entropy encoder entropy encoding the quantized data.
[28] According to yet another aspect of the present invention, there is provided a method of dequantizing and inverse transforming a color image, including: differently setting a quantization parameter of a chrominance component depending on whether the color image is residual transformed to dequantize the quantized color image data;
and differently performing a recovery of a redundancy of direct current components of the color image depending on whether the color image is residual transformed and an estimation mode to frequency inverse transform the dequantized data.
[29] Dequantizing the quantized color image may include: if information residual_colour_transform_flag as to whether a residual transformation is performed indicates a performance of the residual transformation residual_colour_transform_flag=l, representing a quantization parameter of a chrominance component as in Equation below:
[30] QP'c = QPc + QpBdOffsetc
[31] wherein QpBdOffsetc = 6*(bit_depth_chroma_minus8 + residual_colour_transform_flag) and QPc denotes a quantization parameter of a chrominance component Cb, Cr, R, or B, where QpBdOffsetc denotes offset of QPc and bit_depth_chroma_minus8 denotes a bit depth of a chrominance array sample per pixel; if the information residual_colour_transform_flag indicates a non- performance of the residual transformation residual_colour_transform_flag=0, rep¬ resenting the quantization parameter of the chrominance component as in Equation below:
[32] QP'c = QPc + QpBdOffsetc
[33] wherein QpBdOffsetc = 6*bit_depth_chroma_minus8; and dequantizing the transformed color image data using the QP'c.
[34] Frequency inverse transforming the dequantized data may include: if the in¬ formation residual_colour_transform_flag indicates the performance of the residual transformation residual_colour_transform_flag=l and a macroblock estimation mode with respect to luma (Y or G component) is a 4x4 intra estimation mode Intra_4x4 or a 8x8 intra estimation mode Intra_8x8, quadruplicating a transformed 4x4 direct current value matrix obtained from entropy decoded color image data as in Equation below;
[35] f = c «2 (where, i,j = 0...3)
IJ 1J
[36] if the information residual_colour_transform_flag indicates the non-performance of the residual transformation residual_colour_transform_flag=0 or the macroblock estimation mode with respect to the luma (Y or G component) is not both the 4x4 intra estimation mode Intra_4x4 and the 8x8 intra estimation mode Intra_8x8, Hadamard inverse transforming the transformed 4x4 direct current value matrix; and frequency inverse transforming the result value of the quadruplication or the Hadamard inverse transformation and an alternating current value recovered from the entropy decoded color image. The frequency transformation may be an integer inverse transformation of H.264 or an IDCT of MPEG.
[37] According to yet another aspect of the present invention, there is provided an
apparatus for dequantizing and inverse transforming a color image, including: a de- quantizer differently setting a quantization parameter of a chrominance component depending on whether quantized color image data is residual transformed to dequantize the quantized color image data; and a frequency inverse transformer differently performing a recovery of a redundancy of direct current components of a color image depending on whether the color image is residual transformed and an estimation mode to frequency inverse transform the dequantized data.
[38] The dequantizer may include: if information residual_colour_transform_flag as to whether a residual transformation is performed indicates a performance of the residual transformation residual_colour_transform_flag=l, a first dequantization parameter transformer representing a quantization parameter of a chrominance component as in Equation below:
[39] QP'c = QPc + QpBdOffsetc
[40] wherein QpBdOffsetc = 6*(bit_depth_chroma_minus8 + residual_colour_transform_flag) and QPc denotes a quantization parameter of a chrominance component Cb, Cr, R, or B, where QpBdOffsetc denotes offset of QPc and bit_depth_chroma_minus8 denotes a bit depth of a chrominance array sample per pixel; if the information residual_colour_transform_flag indicates a non- performance of the residual transformation residual_colour_transform_flag=0, a second dequantization parameter transformer representing the quantization parameter of the chrominance component as in Equation below:
[41 ] QP'c = QPc + QpBdOffsetc ... (4)
[42] wherein QpBdOffsetc = 6*bit_depth_chroma_minus8; and a color image de- quantizer dequantizing the transformed color image data using the QP'c. The frequency inverse transformer may include: if the information residual_colour_transform_flag indicates the performance of the residual transformation residual_colour_transform_flag=l and a macroblock estimation mode with respect to luma (Y or G component) is a 4x4 intra estimation mode Intra_4x4 or a 8x8 intra estimation mode Intra_8x8, a direct current value inverse transformer quadruplicating a transformed 4x4 direct current value matrix obtained from entropy decoded color image as in Equation below;
[43] f = c «2 (where, i,j = 0...3)
IJ 1J
[44] if the information residual_colour_transform_flag indicates the non-performance of the residual transformation residual_colour_transform_flag=0 or the macroblock estimation mode with respect to the luma (Y or G component) is not both the 4x4 intra estimation mode Intra_4x4 and the 8x8 intra estimation mode Intra_8x8, a Hadamard inverse transformer Hadamard inverse transforming the transformed 4x4 direct current value matrix; and a domain inverse transformer frequency inverse transforming the
result value of the direct current value inverse transformer or the Hadamard inverse transformer and an alternating current value recovered from the entropy decoded color image. The frequency inverse transformation performed by the domain inverse transformer is an integer inverse transformation of H.264 or an IDCT of MPEG.
[45] According to yet another aspect of the present invention, there is provided a method of decoding a color image, including: entropy decoding encoded color image data to recover quantized data; differently setting a quantization parameter of a chrominance component depending on whether the color image is residual transformed to dequantize the quantized data; differently performing a recovery of a redundancy of direct current components of the color image depending on whether the color image is residual transformed and an estimation mode to frequency inverse transform the de- quantized data; residual inverse transforming the frequency inverse transformed data; and performing intra and inter estimation compensations with respect to the residual inverse transformed data.
[46] According to yet another aspect of the present invention, there is provided an apparatus for decoding a color image, including: an entropy decoder entropy decoding encoded color image data to recover quantized data; a dequantizer differently setting a quantization parameter of a chrominance component depending on whether the color image is residual transformed to dequantize the quantized data; a frequency inverse transformer differently performing a recovery of a redundancy of direct current components of the color image depending on whether the color image is residual transformed and a macroblock estimation mode to frequency inverse transform the de- quantized data; a residual inverse transformer residual inverse transforming the frequency inverse transformed data; and an estimation compensator performing intra and inter estimation compensations with respect to the residual inverse transformed data.
[47] According to yet another aspect of the present invention, there is provided a computer readable recording medium having embodied one of the methods as a computer program thereon.
Advantageous Effects
[48] As described above, in a method and an apparatus for quantizing/dequantizing and transforming/inverse transforming a color image and a method and an apparatus for encoding/decoding a color image using the method and the apparatus according to the present invention, a residual transformation can be applied regardless of an inter or intra estimation mode. Thus, compression efficiency can be improved. Also, a quantization appropriate for the residual transformation can be performed. As a result, compression efficiency can be improved.
Description of Drawings
[49] FIG. 1 is a block diagram of an apparatus for transforming and quantizing a color image according to an embodiment of the present invention; [50] FIG. 2 is a block diagram of a redundancy remover shown in FIG. 1 ;
[51] FIG. 3 is a block diagram of a quantizer shown in FIG. 1 ;
[52] FIG. 4 is a flowchart of a method of transforming and quantizing a color image according to an embodiment of the present invention; [53] FIG. 5 is a flowchart of operation 430 of the method of FIG. 4;
[54] FIG. 6 is a flowchart of operation 460 of the method of FIG. 4;
[55] FIG. 7 is a block diagram of an apparatus for encoding a color image using the apparatus for transforming and quantizing the color image according to an embodiment of the present invention; [56] FIG. 8 is a flowchart of a method of encoding a color image using the method of transforming and quantizing the color image according to an embodiment of the present invention; [57] FIG. 9 is a block diagram of an apparatus for dequantizing and inverse transforming a color image according to an embodiment of the present invention; [58] FIG. 10 is a block diagram of a dequantizer shown in FIG. 9;
[59] FIG. 11 is a block diagram of an inverse transformer shown in FIG. 9;
[60] FIG. 12 is a flowchart of a method of dequantizing and inverse transforming a color image according to an embodiment of the present invention;
[61] FIG. 13 is a flowchart of a dequantization of the color image shown in FIG. 12;
[62] FIG. 14 is a flowchart of an inverse transformation of the color image shown in
FIG. 12; [63] FIG. 15 is a block diagram of an apparatus for decoding a color image using the apparatus for dequantizing and inverse transforming the color image according to an embodiment of the present invention; and [64] FIG. 16 is a flowchart of a method of decoding a color image using the method of dequantizing and inverse transforming the color image according to an embodiment of the present invention.
Mode for Invention [65] Hereinafter, a method and an apparatus for transforming/inverse transforming and quantizing/dequantizing a color image that is residual transformed, and a method and an apparatus for encoding/decoding a color image using the method and apparatus will be described in detail with reference to the attached drawings. [66] FIG. 1 is a block diagram of an apparatus for transforming and quantizing a color image according to an embodiment of the present invention. Referring to FIG. 1, the
apparatus includes a domain transformer 100, a redundancy remover 130, and a quantizer 160.
[67] The domain transformer 100 transforms a color image into a frequency domain image. [68] The redundancy remover 130 differently applies a transformation for removing a redundancy of DC components of the frequency domain image depending on whether the color image is residual transformed and a macroblock estimation mode. FIG. 2 is a block diagram of the redundancy remover 130 shown in FIG. 1. Referring to FIG. 2, the redundancy remover 130 includes a DC value transformer 200 and a Hadamard transformer 250. In a case where information residual_colour_transform_flag as to whether a residual transformation is performed indicates a performance of the residual transformation residual_colour_transform_flag=l and the macroblock estimation mode with respect to luma (Y or G component) is a 4x4 intra estimation mode Intra_4x4 or a 8x8 intra estimation mode Intra_8x8, the DC value transformer 200 quadruplicates a 4x4 DC value matrix obtained from the result of the frequency trans¬ formation as in Equation 1 ;
[69] f = c «2 (where, ij = 0...3) ...(l)
IJ 1J [70] In a case where the information residual_colour_transform_flag indicates a non- performance of the residual transformation residual_colour_transform_flag=0 or the macroblock estimation mode with respect to the luma (Y or G component) is not both the 4x4 intra estimation mode Intra_4x4 and the 8x8 intra estimation mode Intra_8x8 , the Hadamard transformer 250 Hadamard-transforms the 4x4 DC value matrix as in Equation 2:
[71]
1 1 1 1] '00 '01 '02 '03 1 1 1 1
1 1 -1 - 1 '10 ' 11 '12 ' 13 1 1 - 1 - 1
/ =
1 -1 -1 1 '.0 ' 21 ' 22 '23 1 - 1 - 1 1
1 1 1 -lj '30 ' 31 '32 '33 1 - 1 1 - 1
...(2)
[72] The quantizer 160 quantizes the frequency domain image from which the redundancy has been removed. FIG. 3 is a block diagram of the quantizer 160 shown in FIG. 1. Referring to FIG. 3, the quantizer 160 includes a first quantization parameter transformer 300, a second quantization parameter transformer 320, and a color image quantizer 340. In a case where the information residual_colour_transform_flag indicates the performance of the residual transformation residual_colour_transform_flag=l, the first quantizer parameter transformer 300
represents a quantization parameter of a chrominance component as in Equation 3:
[73] QP'c = QPc + QpBdOffsetc ... (3)
[74] wherein QpBdOffsetc = 6*(bit_depth_chroma_minus8 + residual_colour_transform_flag) and QPc denotes a quantization parameter of a chrominance component Cb, Cr, R, or B, where QpBdOffsetc denotes an offset of QPc and bit_depth_chroma_minus8 denotes a bit depth of a chrominance array sample per pixel.
[75] In a case where the information residual_colour_transform_flag indicates the non-performance of the residual transformation residual_colour_transform_flag=0, the second quantization parameter transformer 320 represents the quantization parameter of the chrominance component as in Equation 4:
[76] QP'c = QPc + QpBdOffsetc ... (4)
[77] wherein QpBdOffsetc = 6*bit_depth_chroma_minus8.
[78] The color image quantizer 340 quantizes the transformed color image data using the QP'c.
[79] FIG. 4 is a flowchart of a method of transforming and quantizing a color image according to an embodiment of the present invention. A method and an apparatus for transforming and quantizing a color image according to an embodiment of the present invention will now be described with reference to FIGS. 3 and 4.
[80] In operation 400, the domain transformer 100 transforms a color image into a frequency domain image. In operation 430, the redundancy remover 130 differently applies a transformation for removing a redundancy of DC components of the frequency domain image depending on whether the color image is residual transformed and a macroblock estimation mode. FIG. 5 is a flowchart of operation 430 of the method of FIG. 4. If information residual_colour_transform_flag as to whether a residual transformation is performed indicates a performance of the residual trans¬ formation residual_colour_transform_flag=l in operation 500 and the macroblock estimation mode with respect to luma (Y or G component) is a 4x4 intra estimation mode Intra_4x4 or a 8x8 intra estimation mode Intra_8x8 in operation 520, the DC value transformer 200 quadruplicates a 4x4 DC value matrix obtained from the result of the frequency transformation as in Equation 1 above in operation 540.
[81] If the information residual_colour_transform_flag indicates a non-performance of the residual transformation residual_colour_transform_flag=0 in operation 500 or the macroblock estimation mode with respect to the luma (Y or G component) is not both the 4x4 intra estimation mode Intra_4x4 and the 8x8 intra estimation mode Intra_8x8 in operation 520, the Hadamard transformer 250 Hadamard-transforms the 4x4 DC value matrix in operation 560.
[82] If the redundancy of the DC components is removed in operation 430, the quantizer
160 quantizes the frequency domain image from which the redundancy of the DC components has been removed, in operation 460. FIG. 6 is a flowchart of operation 460 of the method of FIG. 4. If the information residual_colour_transform_flag indicates the performance of the residual transformation residual_colour_transform_flag=l in operation 600, the first quantization parameter transformer 300 represents a quantization parameter of a chrominance component as in Equation 3 above in operation 620. If the information residual_colour_transform_flag indicates the non-performance of the residual trans¬ formation residual_colour_transform_flag=0 in operation 600, the second quantization parameter transformer 320 represents the quantization parameter of the chrominance component as in Equation 4 above in operation 640. The color image quantizer 340 quantizes the transformed color image data using the QP'c in operation 660.
[83] An apparatus and a method for encoding a color image using the apparatus and the method for transforming and quantizing the color image will now be described. FIG. 7 is a block diagram of an apparatus for encoding a color image using the apparatus for transforming and quantizing the color image. Referring to FIG. 7, the apparatus includes a temporal and spatial estimator 700, a residual transformer 710, a transformer and quantizer 70, and an entropy encoder 750. The temporal and spatial estimator 700 temporally (inter) and spatially (intra) estimates an input color image. The residual transformer 710 residual transforms the estimated color image. The transformer and quantizer 70 is the same as the apparatus for transforming and quantizing the color image and includes a domain transformer 720, a redundancy remover 730, and a quantizer 740. The domain transformer 720 transforms the color image into a frequency domain image and is the same as the domain transformer 100 shown in FIG. 1. The redundancy remover 730 differently applies a transformation for removing a redundancy of DC components of the frequency domain image depending on whether the color image is residual transformed and a macroblock estimation mode and is the same as the redundancy remover 130 shown in FIG. 1. The quantizer 740 quantizes the frequency domain image from which the redundancy has been removed and is the same as the quantizer 160 shown in FIG. 1. The entropy encoder 750 entropy-encodes the quantized data.
[84] FIG. 8 is a flowchart of a method of encoding a color image using the method of transforming and quantizing the color image according to an embodiment of the present invention. The method of encoding the color image will be described with reference to FIGS. 7 and 8. In operation 800, the temporal and spatial estimator 700 receives and temporally (inter) and spatially (intra) estimates a color image. In operation 810, the residual transformer 710 residual transforms the estimated color
image. In operation 820, the domain transformer 720 transforms the color image into a frequency domain image. In operation 830, the redundancy remover 730 differently applies a transformation for removing a redundancy of DC components of the frequency domain image depending on whether the color image is residual transformed and a macroblock estimation mode. In operation 840, the quantizer 740 quantizes the frequency domain image from which the redundancy has been removed. In operation 850, the entropy encoder 750 entropy-encodes the quantized data. Operations 820, 830, and 840 are the same as those of the method of transforming and quantizing the color image, and thus their detailed description will be omitted.
[85] An apparatus and a method for dequantizing and inverse transforming a color image according to an embodiment of the present invention will now be described. FIG. 9 is a block diagram of an apparatus for dequantizing and inverse transforming a color image according to an embodiment of the present invention. Referring to FIG. 9, the apparatus includes a dequantizer 900 and a frequency inverse transformer 950.
[86] The dequantizer 900 differently sets a quantization parameter of a chrominance component depending on whether quantized color image data is residual transformed to dequantize the quantized color image data. FIG. 10 is a block diagram of the de- quantizer 900 shown in FIG. 9. Referring to FIG. 10, the dequantizer 900 includes a first dequantization parameter transformer 1000, a second dequantization parameter transformer 1020, and a color image dequantizer 1040. If information residual_colour_transform_flag as to whether a residual transformation is performed indicates a performance of the residual transformation residual_colour_transform_flag=l, the first dequantization parameter transformer 1000 represents the quantization parameter of the chrominance as in Equation 3 above. If the information residual_colour_transform_flag indicates a non-performance of the residual transformation residual_colour_transform_flag=0, the second de- quantization parameter transformer 1020 represents the quantization parameter of the chrominance as in Equation 4 above. The color image dequantizer 1040 dequantizes the transformed color image data using the QP'c.
[87] The inverse transformer 950 differently performs a recovery of a redundancy of
DC components of the color image depending on whether the dequantized data is residual transformed and a macroblock estimation mode to frequency inverse transform the dequantized data. FIG. 11 is a block diagram of the inverse transformer 950 shown in FIG. 10. Referring to FIG. 11, the inverse transformer 950 includes a DC value inverse transformer 1100, a Hadamard inverse transformer 1120, and a domain inverse transformer 1140. If information residual_colour_transform_flag as to whether a residual transformation is performed indicates a performance of the residual transformation residual_colour_transform_flag=l and a macroblock estimation
mode with respect to luma (Y or G component) is a 4x4 intra estimation mode Intra_4x4 or a 8x8 intra estimation mode Intra_8x8, the DC value inverse transformer 1100 quadruplicates a transformed 4x4 DC value matrix obtained from entropy decoded color image data as in Equation 1 above.
[88] If the information residual_colour_transform_flag indicates a non-performance of the residual transformation residual_colour_transform_flag=0 or the macroblock estimation mode with respect to the luma (Y or G component) is not both the 4x4 intra estimation mode Intra_4x4 and the 8x8 intra estimation mode Intra_8x8, the Hadamard inverse transformer 1120 Hadamard inverse transforms the transformed 4x4 DC value matrix.
[89] The domain inverse transformer 1140 frequency inverse transforms the result value of the DV value inverse transformer 1100 or the Hadamard inverse transformer 1120 and an alternating current (AC) value recovered from the entropy decoded color image data. The frequency inverse transformation may be integer inverse transformation in H.264 but IDCT in MPEG.
[90] FIG. 12 is a flowchart of a method of dequantizing and inverse transforming a color image according to an embodiment of the present invention. A method and an apparatus for dequantizing and inverse transforming a color image will now be described with reference to FIGS. 11 and 12.
[91] If quantized color image data is input to the dequantizer 900, the dequantizer 900 differently sets a quantization parameter of a chrominance component depending on whether the quantized color image data is residual transformed to dequantize the quantized color image data in operation 1200.
[92] In operation 1250, the frequency inverse transformer 950 differently performs a recovery of a redundancy of DC components of the color image depending on whether the color image is residual transformed and an estimation mode to frequency inverse transform the dequantized data.
[93] FIG 13 is a flowchart of operation 100 of the method of FIG 12. If information residual_colour_transform_flag as to whether a residual transformation is performed indicates a performance of the residual transformation residual_colour_transform_flag=l in operation 1300, the first dequantization parameter transformer 1000 represents a quantization parameter of a chrominance component as in Equation 3 above in operation 1320. If the information residual_colour_transform_flag indicates a non-performance of the residual trans¬ formation residual_colour_transform_flag=0 in operation 1300, the second de- quantization parameter transformer 1020 represents the quantization parameter of the chrominance component as in Equation 4 above in operation 1340. In operation 1360, the color image dequantizer 1040 dequantizes the transformed color image data using
the QP'c.
[94] FIG. 14 is a flowchart of operation 1250 of the method of FIG. 12. If the in¬ formation residual_colour_transform_flag indicates the performance of the residual transformation residual_colour_transform_flag=l in operation 1400 and a macroblock estimation mode with respect to luma (Y or G component) is a 4x4 intra estimation mode Intra_4x4 or a 8x8 intra estimation mode Intra_8x8 in operation 1420, the DC value inverse transformer 1100 quadruplicates a transformed 4x4 DC value matrix obtained from entropy decoded color image data as in Equation 1 above in operation 1440. If the information residual_colour_transform_flag indicates the non-performance of the residual transformation residual_colour_transform_flag=0 in operation 1400 or the macroblock estimation mode with respect to the luma (Y or G component) is not both the 4x4 intra estimation mode Intra_4x4 and the 8x8 intra estimation mode Intra_8x8 in operation 1420, the Hadamard inverse transformer 1120 Hadamard inverse transforms the transformed 4x4 DC value matrix in operation 1460. In operation 1480, the domain inverse transformer 1140 frequency inverse transforms the result value of operation 1440 or 1460 and an AC value recovered from the entropy decoded color image data. The frequency inverse transformation may be integer inverse transformation in H.264 or IDCT in MPEG.
[95] An apparatus and a method for decoding a color image using the apparatus for de- quantizing and inverse transforming the color image will now be described. FIG. 15 is a block diagram of an apparatus for decoding a color image using the apparatus for de- quantizing and inverse transforming the color image according to an embodiment of the present invention. Referring to FIG. 15, the apparatus includes an entropy decoder 1500, a dequantizer and inverse transformer 15, a residual inverse transformer 1560, and an estimation compensator 1580.
[96] The entropy decoder 1500 entropy decodes encoded color image data to recover quantized data.
[97] The dequantizer and inverse transformer 15 is the same as the apparatus for de- quantizing and inverse transforming the color image and includes a dequantizer 1520 and a frequency inverse transformer 1540. The dequantizer 1520 differently sets a quantization parameter of a chrominance component depending on whether the quantization data is residual transformed to dequqntize the quantized data. The de- quantizer 1520 is also the same as the dequantizer 900 shown in FIG. 9, and thus its detailed description will be omitted. The frequency inverse transformer 1540 differently performs a recovery of a redundancy of DC components of a color image depending on whether the color image is residual transformed and a macroblock estimation mode to frequency inverse transform the dequantized data. The frequency inverse transformer 1540 is also the same as the frequency inverse transformer 950
shown in FIG. 9, and thus its detailed description will be omitted.
[98] The residual inverse transformer 1560 residual inverse transforms the frequency inverse transformed data. The estimation compensator 1580 performs intra and inter estimation compensations with respect to the residual inverse transformed data.
[99] FIG. 16 is a flowchart of a method of decoding a color image using the method of dequantizing and inverse transforming the color image according to an embodiment of the present invention.
[100] If encoded color image data is input to the entropy decoder 1500, in operation
1600, the entropy decoder 1500 entropy decodes the encoded color image data to recover quantized data. In operation 1620, the dequantizer 152 differently sets a quantization parameter of a chrominance component depending on whether a color image is residual transformed to dequantize the quantized data. In operation 1640, the frequency inverse transformer 1540 differently performs a recovery of a redundancy of DC components of the color image depending on whether the color image is residual transformed and an estimation mode to frequency inverse transform the dequantized data. In operation 1660, the residual inverse transformer 1560 residual inverse transforms the frequency inverse transformed data. In operation 1680, the estimation compensator 1580 performs intra and inter estimation compensations with respect to the residual inverse transformed data.
[101] Operations 1620 and 1640 are the same as those of the method of dequantizing and inverse transforming the color image shown in FIG. 12, and thus their detailed de¬ scription will be omitted.