KR20060079051A - Color image encoding and decoding method and apparatus using a correlation between chrominance components - Google Patents

Color image encoding and decoding method and apparatus using a correlation between chrominance components Download PDF

Info

Publication number
KR20060079051A
KR20060079051A KR20050027827A KR20050027827A KR20060079051A KR 20060079051 A KR20060079051 A KR 20060079051A KR 20050027827 A KR20050027827 A KR 20050027827A KR 20050027827 A KR20050027827 A KR 20050027827A KR 20060079051 A KR20060079051 A KR 20060079051A
Authority
KR
South Korea
Prior art keywords
mode
interprediction
information
plane
predetermined
Prior art date
Application number
KR20050027827A
Other languages
Korean (ko)
Other versions
KR101138392B1 (en
Inventor
김소영
박정훈
이상래
박승란
손유미
Original Assignee
삼성전자주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 삼성전자주식회사 filed Critical 삼성전자주식회사
Priority to US11/219,735 priority Critical patent/US7970219B2/en
Priority to EP05257132A priority patent/EP1696674A3/en
Priority to TW94141845A priority patent/TWI297252B/en
Priority to BRPI0517911-4A priority patent/BRPI0517911A/en
Priority to PCT/KR2005/004543 priority patent/WO2006071037A1/en
Priority to CN2005800388459A priority patent/CN101057506B/en
Priority to JP2007549247A priority patent/JP4855418B2/en
Priority to RU2007122379A priority patent/RU2336663C1/en
Publication of KR20060079051A publication Critical patent/KR20060079051A/en
Priority to HK08102143A priority patent/HK1108258A1/en
Priority to US13/107,051 priority patent/US8260069B2/en
Application granted granted Critical
Publication of KR101138392B1 publication Critical patent/KR101138392B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/13Adaptive entropy coding, e.g. adaptive variable length coding [AVLC] or context adaptive binary arithmetic coding [CABAC]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/124Quantisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/157Assigned coding mode, i.e. the coding mode being predefined or preselected to be further used for selection of another element or parameter
    • H04N19/159Prediction type, e.g. intra-frame, inter-frame or bidirectional frame prediction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/503Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
    • H04N19/51Motion estimation or motion compensation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/90Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using coding techniques not provided for in groups H04N19/10-H04N19/85, e.g. fractals
    • H04N19/93Run-length coding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/64Circuits for processing colour signals

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Color Television Systems (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Abstract

본 발명은 컬러 영상의 색차 성분 간의 상관 관계를 이용하여 보다 적은 데이터량으로 컬러 영상을 부호화하고, 이를 복호화하는 방법 및 그 장치에 관한 것으로서, 본 발명에 따른 부호화 방법은 컬러 영상의 색차 성분을 복수개의 인터 프리딕션 모드 별로 변환하고, 인터 프리딕션 모드 별로 변환된 값들을, 소정의 코스트 함수를 사용하여 각각의 인터 프리딕션 모드 별로 코스트를 계산하고, 계산된 각각의 모드별 코드트에 따라 복수개의 인터 프리딕션 모드 중 하나를 선택한 후, 선택된 모드의 변환값을 출력하고, 출력된 변환값에 대해 엔트로피 부호화를 수행하도록 하여, 화질의 저하 없이 압축 영상의 압축률을 높이는 효과가 있다.The present invention relates to a method and apparatus for encoding and decoding a color image with a smaller data amount by using the correlation between the color difference components of the color image. The encoding method according to the present invention provides a plurality of color difference components of the color image. Converts each of the inter-prediction modes, calculates the cost of each inter-prediction mode using a predetermined cost function, and calculates a plurality of After selecting one of the inter-prediction modes, the transform value of the selected mode is output, and the entropy encoding is performed on the output transform value, thereby increasing the compression ratio of the compressed image without degrading the image quality.

Description

색차 성분의 상관관계를 이용한 컬러 영상의 부호화, 복호화 방법 및 그 장치{Color image encoding and decoding method and apparatus using a correlation between chrominance components}Color image encoding and decoding method and apparatus using a correlation between chrominance components}

도 1은 RGB 포맷의 영상과 YCbCr 포맷의 영상을 구성하는 데이터를 도시한 도면이다.FIG. 1 is a diagram illustrating data constituting an image of an RGB format and an image of a YCbCr format.

도 2는 4:4:4, 4:2:2 및 4:2:0 포맷의 영상 데이터의 구성을 도시한 도면이다.2 is a diagram showing the configuration of video data in 4: 4: 4, 4: 2: 2, and 4: 2: 0 formats.

도 3은 본 발명의 일실시예에 따른 동영상 부호화 장치의 블록도이다.3 is a block diagram of a video encoding apparatus according to an embodiment of the present invention.

도 4는 본 발명의 일실시예에 따른 색차성분 변환값의 계산을 설명하기 위한 참조도이다.4 is a reference diagram for explaining calculation of a color difference component transform value according to an embodiment of the present invention.

도 5는 도 3의 색차성분 변환부(330)의 상세 블록도이다.FIG. 5 is a detailed block diagram of the color difference component converter 330 of FIG. 3.

도 6은 본 발명의 일실시예에 따른 부호화 방법의 흐름도이다.6 is a flowchart of an encoding method according to an embodiment of the present invention.

도 7은 본 발명의 일실시예에 따른 복호화 장치의 블록도이다.7 is a block diagram of a decoding apparatus according to an embodiment of the present invention.

도 8은 본 발명의 일실시예에 따른 복호화 방법의 흐름도이다.8 is a flowchart of a decoding method according to an embodiment of the present invention.

도 9는 본 발명의 일실시예에 적용되는 인터 프리딕션 모드를 나타내는 테이블이다.9 is a table illustrating an interprediction mode applied to an embodiment of the present invention.

도 10은 각각의 인터 프리딕션 모드에 대한 역 인터 프리딕션 방법을 설명하 기 위한 테이블이다.FIG. 10 is a table for explaining a reverse interpretation method for each inter prediction mode.

도 11은 도 3의 색차 성분 변환부(330)의 또 다른 실시예에 따른 상세 블록도이다.FIG. 11 is a detailed block diagram illustrating another example of the color difference component converter 330 of FIG. 3.

도 12는 하나의 픽쳐 내의 각각의 매크로블록에 대해 선택된 인터 프리딕션 모드를 나타내는 블록도이다.12 is a block diagram illustrating a selected interprediction mode for each macroblock in one picture.

도 13(a)(b)(c)(d)(e)는 본 발명에 따른 인터 프리딕션 모드 플레인을 나타내는 도면이다.13 (a) (b) (c) (d) (e) are diagrams showing the interprediction mode plane according to the present invention.

도 14(a) 내지 (d)는 본 발명에 따른 인터 프리딕션 모드 정보의 부호화 방법을 설명하기 위한 도면이다.14 (a) to (d) are diagrams for explaining a method of encoding interprediction mode information according to the present invention.

도 15는 본 발명의 일 실시예에 따른 인터 프리딕션 모드 정보의 부호화 방법을 설명하기 위한 흐름도이다.15 is a flowchart illustrating a method of encoding interprediction mode information according to an embodiment of the present invention.

도 16은 본 발명의 일 실시예에 따른 복호화 방법을 설명하기 위한 흐름도이다. 16 is a flowchart illustrating a decoding method according to an embodiment of the present invention.

본 발명은 컬러 영상 데이터의 부호화 및 복호화에 관한 것으로, 보다 상세하게는 YCbCr 포맷으로 구성된 컬러 영상 데이터의 색차 성분(Cb, Cr)간의 상관관계를 찾아 보다 적은 데이터량으로 컬러 영상 데이터를 부호화하고, 이를 복호화하는 방법 및 그 장치에 관한 것이다.The present invention relates to encoding and decoding of color image data, and more specifically, to find a correlation between color difference components (Cb, Cr) of color image data configured in YCbCr format, to encode color image data with a smaller data amount, The present invention relates to a method and an apparatus for decoding the same.

도 1은 RGB 포맷의 영상과 YCbCr 포맷의 영상을 구성하는 데이터를 도시한 도면이다.FIG. 1 is a diagram illustrating data constituting an image of an RGB format and an image of a YCbCr format.

컬러 영상을 표현하는 포맷의 한 가지로 RGB 포맷이 있는데, RGB 포맷은 영상의 색 성분을 세 가지 색상 성분(Red, Green, Blue, 이하 R, G, B 라고 한다)으로 나누어 표현한다. 이 때 세 가지 색상 성분(R, G, B)은 모두 같은 데이터량으로 구성되어 있다. 예를 들어, 16x16 매크로블록이 있으면, R 성분, G 성분, B 성분도 각각 16x16 크기가 된다. 그러나, 인간의 눈은 색상을 나타내는 색차(chrominance) 성분보다 밝기를 나타내는 휘도(luminance) 성분에 더 민감하게 반응한다. 따라서, 컬러 영상을 휘도 성분과 색차 성분으로 나누어 표현하는 포맷을 사용하여 데이터량을 줄일 수 있는데, 이 포맷을 YCbCr 포맷이라고 한다.One of the formats for expressing a color image is the RGB format, which expresses the color components of the image by dividing the color components into three color components (Red, Green, Blue, hereinafter R, G, and B). At this time, all three color components (R, G, B) are composed of the same data amount. For example, if there are 16x16 macroblocks, the R, G, and B components are each 16x16 in size. However, the human eye is more sensitive to the luminance component that represents brightness than the chrominance component that represents color. Therefore, the data amount can be reduced by using a format in which a color image is divided into a luminance component and a chrominance component, and this format is called a YCbCr format.

YCbCr 포맷에서는 색차 성분보다는 휘도 성분에 더 많은 데이터를 할당한다. 도 1을 참조하면, 16x16 크기의 매크로블록에 대한 RGB 포맷의 영상을 YCbCr 포맷의 영상으로 표현하면, 16x16 크기의 휘도 블록과 8x8 크기의 색차 블록(Cb, Cr)이 됨을 알 수 있다. 이 때, 휘도 성분과 색차 성분인 Y, Cb, Cr 값은 R, G, B값의 가중 조합에 의해 계산된다. 예를 들어, Y = 0.29900R + 0.58700G + 0.11400B, Cb = -0.16874R - 0.33126G + 0.50000B, Cr = 0.50000R - 0.41869G - 0.08131B 과 같은 수식에 의해 Y, Cb, Cr 값이 계산된다. 이와 같이, YCbCr 포맷의 컬러 동영상 데이터는 휘도 성분과 두 개의 색차 성분으로 구성되어 있으며, 부호화시에는 각각의 성분을 따로 따로 부호화한다. 즉, 색차 성분들간의 연관성을 전혀 고려하지 않고 각각 부호화한다.The YCbCr format allocates more data to the luminance component than to the chrominance component. Referring to FIG. 1, when an RGB format image of a 16x16 macroblock is represented as an YCbCr format image, it can be seen that a 16x16 luminance block and an 8x8 chrominance block Cb and Cr are formed. At this time, Y, Cb, Cr values which are luminance components and chrominance components are calculated by weighted combination of R, G, and B values. For example, Y, Cb, Cr values are calculated by the formula Y = 0.29900R + 0.58700G + 0.11400B, Cb = -0.16874R-0.33126G + 0.50000B, Cr = 0.50000R-0.41869G-0.08131B do. As described above, the color video data of the YCbCr format includes a luminance component and two color difference components, and each component is separately encoded during encoding. That is, the coding is performed without considering any correlation between the color difference components.

도 2는 4:4:4, 4:2:2 및 4:2:0 포맷의 영상 데이터의 구성을 도시한 도면이다.2 is a diagram showing the configuration of video data in 4: 4: 4, 4: 2: 2, and 4: 2: 0 formats.

동영상을 부호화할 때, 동영상을 구성하는 픽처의 가로방향의 화소 라인에 포함되는 화소들의 휘도 성분과 색차 성분의 비율을 표시함으로써, 동영상의 컬러포맷을 나타낸다. 이하에서는 휘도 성분을 Y 로 표시하고, 색차 성분을 Cb, Cr로 표시한다. 휘도란 영상의 밝기를 나타내는 정도로써, ITU-R 권고에서 하나의 화소의 휘도는 8 비트로 나타낸다. 색차란 영상의 색을 나타내는 정보로써, 두 개(Cb, Cr)의 8 비트값으로 화소의 색을 나타낸다. 색을 나타내는 좌표계를 색 공간(color space)이라고 부르는데, 동영상 부호화 표준인 MPEG에서는 Y, Cb, Cr 이라는 3개의 8 비트 정보로 동영상의 컬러 포맷을 표현한다.When encoding a moving picture, the color format of the moving picture is represented by displaying a ratio of luminance components and chrominance components of pixels included in horizontal pixel lines of a picture constituting the moving picture. Hereinafter, the luminance component is represented by Y, and the color difference component is represented by Cb and Cr. Luminance refers to the degree of image brightness. In ITU-R recommendation, the luminance of one pixel is represented by 8 bits. The color difference is information representing the color of an image and represents the color of a pixel by two 8-bit values Cb and Cr. The coordinate system that represents color is called a color space. In MPEG, which is a video encoding standard, a color format of a video is represented by three 8-bit information such as Y, Cb, and Cr.

Y, Cb, Cr을 사용하여 컬러 동영상을 표현하는데 있어, 그 비율에 따라서 여러 가지 컬러 포맷이 있을 수 있는데, 서로 다른 컬러 포맷의 경우에도 휘도 성분인 Y 성분은 모두 동일하고 Cb, Cr 성분만 달라진다. 도 2를 참조하면, 4:2:2 포맷의 영상은 4:4:4 포맷의 영상을 가로방향으로 색차성분을 1/2 다운 샘플링하여 얻어지고, 이를 다시 세로 방향으로 1/2 다운 샘플링하면 4:2:0 포맷의 영상이 얻어짐을 알 수 있다.In expressing color video using Y, Cb and Cr, there can be various color formats according to the ratio. Even in different color formats, the Y component, which is the luminance component, is the same and only the Cb and Cr components are different. . Referring to FIG. 2, an image of a 4: 2: 2 format is obtained by ½ down sampling a color difference component of a 4: 4: 4 format image in a horizontal direction. It can be seen that an image of 4: 2: 0 format is obtained.

이와 같이, 종래의 일반적인 코덱(MPEG, H.26x, VC1)에서는 RGB 컬러 영상을 YCbCr 컬러 영상으로 변환하여 휘도 성분과 색차 성분을 분리하여 각각 부호화하였다. 이 때 4:4:4, 4:2:2, 4:2:0 등 여러 가지 포맷을 가질 수 있으나, 일반적으로 MPEG, H.26x, VC1 등에서는 YCbCr이 4:2:0 포맷의 영상 데이터를 입력받아 부호화 한다. 이하에서는 4:2:0 포맷의 영상 데이터를 일예로 설명하기로 한다.As described above, in the conventional general codecs (MPEG, H.26x, and VC1), RGB color images are converted into YCbCr color images, and luminance and chrominance components are separately encoded. At this time, it may have various formats such as 4: 4: 4, 4: 2: 2, 4: 2: 0, etc. In general, YCbCr is 4: 2: 0 format video data in MPEG, H.26x, and VC1. Receives and encodes. Hereinafter, image data of 4: 2: 0 format will be described as an example.

일반적인 동영상 부호화 방법에서는, 입력된 Y, Cb, Cr 성분이 서로 시간적 및 공간적인 중복성(redundancy)이 없도록 부호화된다. 공간적 중복성은 인접 블록과의 예측인 인트라 프리딕션을 통해 제거되고, 시간적 중복성은 이전 픽처와 현재 픽처와의 인터 프리딕션에 의해서 제거된다. 즉, 인트라 프리딕션을 통해 인접 블록과 현재 블록과의 차이성분만을 부호화하고, 인터 프리딕션을 통해 이전 픽처와 현재 픽처와의 차이성분만을 부호화하여 압축효율을 높인다.In a general video encoding method, input Y, Cb, and Cr components are encoded such that there is no temporal and spatial redundancy with each other. Spatial redundancy is eliminated through intra prediction, which is prediction with neighboring blocks, and temporal redundancy is eliminated by interpretation between previous and current pictures. That is, only intra-prediction encodes the difference component between the neighboring block and the current block, and inter-prediction encodes only the difference component between the previous picture and the current picture to increase the compression efficiency.

즉, 종래에는 이와 같이 Y, Cb, Cr 성분 내에서 시간적, 공간적 중복성을 제거하는 예측을 수행할 뿐 Y, Cb, Cr 성분간의 상관관계를 이용한 중복성 제거는 수행되지 않았다. 그러나, H.264 하이 프로파일(high profile)과 같은 고화질 영상을 압축하는데 있어서는 Y, Cb, Cr 성분의 데이터 량이 많아지므로 이를 효율적으로 압축하는 방법이 필요하다.That is, in the related art, prediction is performed to remove temporal and spatial redundancy in the Y, Cb, and Cr components. Thus, redundancy removal using the correlation between the Y, Cb, and Cr components is not performed. However, in order to compress high-definition images such as H.264 high profile, the amount of data of Y, Cb, and Cr components increases, so a method of efficiently compressing them is required.

따라서, 본 발명이 이루고자 하는 기술적 과제는 컬러 영상의 색차 성분을 구성하는 Cb, Cr 성분간의 상관 관계를 이용하여 부호화하고자 하는 데이터의 크기를 줄여 부호화함으로써 부호화 속도를 높인 컬러 영상 부호화 장치 및 방법과, 이를 복호화하는 장치 및 방법을 제공하는 것이다.Accordingly, an object of the present invention is to provide a color image encoding apparatus and method for increasing encoding speed by reducing and encoding a size of data to be encoded using correlation between Cb and Cr components constituting a color difference component of a color image, An apparatus and method for decoding the same are provided.

상기 기술적 과제는 본 발명에 따라, 컬러 영상의 색차성분인 Cb, Cr 값을, 미리 정해진 계수들로 가중치를 주고 조합하여 복수개의 변환값으로 만들고, 만들 어진 변환값들 중 소정의 코스트 함수에 의해 계산된 코스트가 가장 작은 두 개의 변환값을 선택하여 출력하는 색차성분 변환부; 및 상기 선택된 변환값에 대해 엔트로피 부호화를 수행하는 엔트로피 코딩부를 포함하는 것을 특징으로 하는 부호화 장치에 의해 달성된다.According to an embodiment of the present invention, the color difference component Cb and Cr values of a color image are weighted and combined with predetermined coefficients to form a plurality of transformed values, and a predetermined cost function is obtained from the generated transformed values. A color difference component converter for selecting and outputting two transform values having the smallest calculated cost; And an entropy coding unit for performing entropy encoding on the selected transform value.

상기 색차성분 Cb, Cr은 변환 및 양자화가 이미 수행된 것이거나, 상기 색차성분 Cb, Cr이 변환 및 양자화가 수행되기 이전의 값이면, 상기 색차성분 변환부에서 출력된 변환값에 대해 변환 및 양자화를 수행하는 변환 및 양자화부를 더 포함하는 것이 바람직하다.If the chrominance components Cb and Cr have already been converted and quantized, or if the chrominance components Cb and Cr are values before the transform and quantization are performed, the chrominance components Cb and Cr are transformed and quantized with respect to the converted values output from the chrominance component converter. It is preferable to further include a transform and quantization unit for performing the.

상기 색차성분 변환부는 a x Cb + b x Cr + c 에 의해 색차성분의 변환값을 계산하며, 상기 a, b, c 값은 상수이고 복수개의 (a, b, c) 쌍이 사용자에 의해 미리 정해져 있는 것이 바람직하고, 상기 소정의 코스트 함수는 RDcost, SAD, SATD, SSA 및 MAD를 포함하는 것이 바람직하다.The color difference component converting unit calculates a conversion value of the color difference component by ax Cb + bx Cr + c, wherein the a, b, c values are constants, and a plurality of (a, b, c) pairs are predetermined by the user. Preferably, the predetermined cost function preferably includes RDcost, SAD, SATD, SSA and MAD.

또한, 상기 색차성분 변환부는 상기 색차성분 Cb, Cr이 입력되면 복수개의 (a, b, c) 계수들로 가중치를 주고 조합하여 만들어질 수 있는 모든 경우의 변환값을 계산하는 변환값 계산부; 상기 변환된 변환값에 대하여 소정의 코스트 함수에 의해 코스트를 계산하는 코스트 계산부; 및 상기 계산된 코스트 값들 중에서 그 값이 가장 작은 두 개의 경우에서의 변환값을 선택하여 출력하는 판단부를 포함하는 것이 바람직하다.The chrominance component converter may further include: a conversion value calculator configured to calculate a conversion value in all cases that can be made by weighting and combining a plurality of (a, b, c) coefficients when the chrominance components Cb and Cr are input; A cost calculator configured to calculate a cost with respect to the converted value by a predetermined cost function; And a determination unit which selects and outputs a conversion value in two cases having the smallest value among the calculated cost values.

또한, 상기 색차성분 변환부는 코스트가 가장 작은 두 개의 변환값에 대응되는 (a, b, c) 계수에 관한 정보를 run length 부호화 방법에 따라 부호화하는 것이 바람직하다.In addition, the chrominance component converting unit preferably encodes information on coefficients (a, b, c) corresponding to two transform values having the smallest cost according to a run length encoding method.

또한, 상기 기술적 과제는 색차성분 Cb, Cr이 입력되면 복수개의 (a, b, c) 계수들로 가중치를 주고 조합하여 만들어질 수 있는 모든 경우의 변환값을 계산하는 변환값 계산부; 상기 변환된 변환값에 대하여 소정의 코스트 함수에 의해 코스트를 계산하는 코스트 계산부; 상기 계산된 코스트 값들 중에서 그 값이 가장 작은 두 개의 경우에서의 변환값을 선택하여 출력하는 판단부; 및 상기 출력된 변환값을 엔트로피 부호화하는 엔트로피 코딩부를 포함하는 것을 특징으로 하는 부호화 장치에 의해서도 달성된다.In addition, the technical problem is a conversion value calculation unit for calculating a conversion value in all cases that can be made by weighting and combining a plurality of (a, b, c) coefficients when the color difference component Cb, Cr is input; A cost calculator configured to calculate a cost with respect to the converted value by a predetermined cost function; A determination unit which selects and outputs a conversion value in two cases having the smallest value among the calculated cost values; And an entropy coding unit for entropy encoding the output transform value.

또한, 상기 기술적 과제는 (a) 컬러영상의 색차성분인 Cb, Cr 값을, 미리 정해진 계수들로 가중치를 주고 조합하여 복수개의 변환값으로 만들고, 만들어진 변환값들 중 소정의 코스트 함수에 의해 계산된 코스트가 가장 작은 두 개의 변환값을 선택하여 출력하는 단계; 및 (b) 상기 선택된 변환값에 대해 엔트로피 부호화를 수행하는 엔트로피 코딩단계를 포함하는 것을 특징으로 하는 부호화 방법에 의해서도 달성된다.In addition, the technical problem is to (a) weight and combine the Cb, Cr values, which are color difference components of a color image, with predetermined coefficients to form a plurality of transformed values, and calculates a predetermined cost function among the transformed values. Selecting and outputting two converted values having the smallest cost; And (b) an entropy coding step of performing entropy coding on the selected transform value.

상기 (a) 단계는, (a1) 상기 색차성분 Cb, Cr이 입력되면 복수개의 (a, b, c) 계수들로 가중치를 주고 조합하여 만들어질 수 있는 모든 경우의 변환값을 계산하는 단계; (a2) 상기 변환된 변환값에 대하여 소정의 코스트 함수에 의해 코스트를 계산하는 코스트 계산단계; 및 (a3) 상기 계산된 코스트 값들 중에서 그 값이 가장 작은 두 개의 경우에서의 변환값을 선택하여 출력하는 단계를 포함하는 것이 바람직하다.The step (a) may include: (a1) calculating conversion values in all cases that may be made by weighting and combining a plurality of (a, b, c) coefficients when the color difference components Cb and Cr are input; (a2) a cost calculation step of calculating a cost with respect to the converted conversion value by a predetermined cost function; And (a3) selecting and outputting the converted values in two cases having the smallest value among the calculated cost values.

상기 (b) 단계는, 상기 (a) 단계에 의해 정해진 코스트가 가장 작은 두 개의 변환값에 대응되는 (a, b, c) 계수에 관한 정보를 run length 부호화 방법에 따라 부호화하는 것이 바람직하다.In the step (b), it is preferable that the information about the coefficients (a, b, c) corresponding to the two smallest transformed values determined by the step (a) is encoded according to the run length encoding method.

한편, 본 발명의 다른 분야에 따르면, 상기 기술적 과제는 부호화된 비트 스트림을 엔트로피 복호화하는 엔트로피 디코딩부; 및 상기 디코딩된 데이터가 휘도 성분인 경우에는 바이 패스시키고, 색차성분인 경우에는, Cb 및 Cr 성분에 가중치를 주고 조합하는데 사용된 계수들에 관한 정보를 추출하여 원래의 색차 성분 Cb 및 Cr 성분을 만들어 출력하는 색차성분 역변환부를 포함하는 것을 특징으로 하는 복호화 장치에 의해서도 달성된다.On the other hand, according to another field of the present invention, the technical problem is an entropy decoding unit for entropy decoding the encoded bit stream; And bypassing when the decoded data is a luminance component, and extracting information about coefficients used to weight and combine the Cb and Cr components when the decoded data is a luminance component, thereby extracting the original color difference components Cb and Cr components. It is also achieved by a decoding apparatus comprising a color difference component inverse transform unit which is generated and output.

상기 색차성분 역변환부는, 어떠한 (a, b, c) 계수쌍을 사용하여 색차 성분이 부호화되었는가 하는 정보로써, run length 부호화 방법에 따라 부호화되어 전송된 정보를 추출하여 Cb 및 Cr 성분을 계산하는 것이 바람직하다. The color-difference component inverse transform unit is information on which (a, b, c) coefficient pairs are encoded, and calculates the Cb and Cr components by extracting the transmitted and encoded information according to a run length encoding method. desirable.

또한, 상기 기술적 과제는 (a) 부호화된 비트 스트림을 엔트로피 복호화하는 엔트로피 디코딩 단계; 및 (b) 상기 디코딩된 데이터가 휘도 성분인 경우에는 바이 패스시키고, 색차성분인 경우에는, Cb 및 Cr 성분에 가중치를 주고 조합하는데 사용된 계수들에 관한 정보를 추출하여 색차 성분 Cb 및 Cr 성분을 만들어 출력하는 단계를 포함하는 것을 특징으로 하는 복호화 방법에 의해서도 달성된다.In addition, the technical problem is (a) entropy decoding step of entropy decoding the encoded bit stream; And (b) if the decoded data is a luminance component, bypasses it, and in the case of a chrominance component, extracts information about coefficients used to weight and combine the Cb and Cr components to obtain the chrominance components Cb and Cr components. It is also achieved by a decoding method comprising the step of making and outputting the.

또한, 상기 기술적 과제는 본 발명에 따른 컬러 영상의 부호화 장치에 있어서, 컬러 영상의 색차 성분을 2 이상의 인터 프리딕션 모드 별로 변환하고, 상기 모드 별로 변환된 값들을, 소정의 코스트 함수를 사용하여 인터 프리딕션 모드 별 로 코스트를 계산하고, 상기 계산 결과에 따라 상기 2 이상의 인터 프리딕션 모드 중 하나를 선택하여, 선택된 모드의 변환값을 출력하는 색차 성분 변환부; 및 상기 출력된 변환값에 대해 엔트로피 부호화를 수행하는 엔트로피 부호화부를 포함하는 것을 특징으로 하는 부호화 장치에 의해서도 달성된다.In addition, the technical problem is that in the encoding apparatus for a color image according to the present invention, the color difference component of the color image is converted into two or more interprediction modes, and the values converted by the modes are interpolated using a predetermined cost function. A chrominance component converter for calculating a raw cost for each prediction mode, selecting one of the two or more interprediction modes according to the calculation result, and outputting a conversion value of the selected mode; And an entropy encoding unit for performing entropy encoding on the output transform value.

상기 인터 프리딕션 모드의 선택은 소정의 블록 단위로 수행되며, 상기 소정의 블록에 대해 선택된 인터 프리딕션 모드 정보는 복수개의 블록으로 이루어진 그룹 단위로 부호화되는 것이 바람직하다.The selection of the interprediction mode is performed in units of a predetermined block, and the interpretation mode information selected for the predetermined block is encoded in a group unit of a plurality of blocks.

소정의 그룹내의 복수개의 블록에 대한 인터 프리딕션 모드 정보를 각각의 모드 별로 분류한 복수개의 모드 플레인을 생성하고, 상기 생성된 복수개의 모드 플레인을 부호화하는 것이 바람직하다.It is preferable to generate a plurality of mode planes that classify interprediction mode information for a plurality of blocks in a predetermined group for each mode, and to encode the generated plurality of mode planes.

상기 생성된 모드 플레인은, 상기 소정의 블록 별로, 현재 모드 플레인에 해당하는 인터 프리딕션 모드가 적용되었는지 여부를 나타내는 정보를 포함하는 것이 바람직하다.The generated mode plane preferably includes information indicating whether an interprediction mode corresponding to a current mode plane is applied for each of the predetermined blocks.

소정의 모드 플레인은, 현재 모드 플레인에 해당하는 인터 프리딕션 모드가 적용된 블록에 대응하는 모드 정보는 '1'로, 현재 모드 플레인에 해당하는 인터 프리딕션 모드가 적용되지 않은 블록에 대응하는 모드 정보는 '0'으로 설정함으로써 얻어지는 것이 바람직하다.In the predetermined mode plane, the mode information corresponding to the block to which the interprediction mode corresponding to the current mode plane is applied is '1', and the mode information corresponding to the block to which the interprediction mode corresponding to the current mode plane is not applied. Is preferably obtained by setting to '0'.

소정의 그룹내의 복수개의 블록에 대한 인터 프리딕션 모드 정보를 각각의 모드 별로 분류한 복수개의 모드 플레인을 생성하고, 상기 생성된 복수개의 모드 플레인을 선정된 순서로 배열하고, 이전 모드 플레인의 모드 정보에 따라, 다음 모 드 플레인의 정보를 변형하여, 변형된 모드 플레인을 부호화하는 것이 바람직하다.Generates a plurality of mode planes that classify interprediction mode information for a plurality of blocks in a predetermined group for each mode, arranges the generated plurality of mode planes in a predetermined order, and mode information of a previous mode plane. Therefore, it is preferable to transform the information of the next mode plane and to encode the modified mode plane.

상기 생성된 모드 플레인은, 상기 소정의 블록 별로, 현재 모드 플레인에 해당하는 인터 프리딕션 모드가 적용되었는지 여부를 나타내는 정보를 포함하며, 상기 모드 플레인의 정보의 변형은, 상기 이전 모드 플레인의 정보에 기초하여, 다음 모드 플레인의 정보 중 이전 모드 플레인의 인터 프리딕션 모드가 적용된 블록에 대한 정보를 삭제함으로써 이루어지는 것이 바람직하다.The generated mode plane includes information indicating whether or not an interprediction mode corresponding to a current mode plane is applied for each of the predetermined blocks, and the modification of the information of the mode plane is based on the information of the previous mode plane. On the basis of this, it is preferable to delete the information on the block to which the interprediction mode of the previous mode plane is applied among the information of the next mode plane.

소정의 모드 플레인은, 현재 모드 플레인에 해당하는 인터 프리딕션 모드가 적용된 블록에 대응하는 모드 정보는 '1'로, 현재 모드 플레인에 해당하는 인터 프리딕션 모드가 적용되지 않은 블록에 대응하는 모드 정보는 '0'으로 설정함으로써 얻어지는 것이 바람직하다.In the predetermined mode plane, the mode information corresponding to the block to which the interprediction mode corresponding to the current mode plane is applied is '1', and the mode information corresponding to the block to which the interprediction mode corresponding to the current mode plane is not applied. Is preferably obtained by setting to '0'.

상기 이전 모드에 따른 인터 프리딕션 모드가 적용된 블록에 대한 정보의 삭제는, 상기 이전 모드에 따른 인터 프리딕션 모드가 적용된 블록에 대한 정보를 '0'으로 설정함으로써 이루어지는 것이 바람직하다.The deletion of the information on the block to which the interprediction mode according to the previous mode is applied is preferably performed by setting the information on the block to which the interprediction mode according to the previous mode is applied to '0'.

상기 소정의 블록은 매크로블록이며, 상기 그룹은 픽쳐 인 것이 바람직하다.Preferably, the predetermined block is a macroblock, and the group is a picture.

상기 색차 성분 변환부는 2 이상의 인터 프리딕션 모드를 포함하는 인터 프리딕션 모드 테이블을 저장하는 인터 프리딕션 모드 테이블 저장부와; 컬러 영상의 색차성분인 Cb, Cr 값을, 상기 인터 프리딕션 모드 테이블에 기초하여 각각의 모드 별로 변환값을 계산하는 변환값 계산부와; 상기 계산된 변환값 들 중, 소정의 코스트 함수에 의해 계산된 코스트가 가장 작은 인터 프리딕션 모드를 선택하는 모드 선택부를 포함하는 것이 바람직하다.The chrominance component converter may include an interprediction mode table storage unit configured to store an interprediction mode table including two or more interprediction modes; A conversion value calculator configured to calculate Cb and Cr values, which are color difference components of a color image, for each mode based on the interprediction mode table; It is preferable to include a mode selection part which selects the interprediction mode with the smallest cost computed by the predetermined cost function among the calculated conversion values.

상기 선택된 인터 프리딕션 모드 정보에 대해 런 렝스 부호화를 수행하는 런 렝스 부호화부를 더 포함하는 것이 바람직하다.The apparatus may further include a run length encoding unit configured to perform run length encoding on the selected interprediction mode information.

또한, 상기 기술적 과제는 본 발명에 따른 컬러 영상의 부호화 방법에 있어서, 상기 컬러 영상의 색차 성분을 2 이상의 인터 프리딕션 모드 별로 변환하고, 상기 모드 별로 변환된 값들을, 소정의 코스트 함수를 사용하여 모드 별로 코스트를 계산하고, 상기 계산 결과에 따라 상기 2 이상의 인터 프리딕션 모드 중 하나를 선택하여, 선택된 모드의 변환값을 출력하는 단계와; 상기 출력된 변환값에 대해 엔트로피 부호화를 수행하는 단계를 포함하는 부호화 방법에 의해 달성된다.According to another aspect of the present invention, there is provided a method of encoding a color image according to an embodiment of the present invention, wherein the color difference component of the color image is converted into two or more interprediction modes, and the values converted by the modes are converted using a predetermined cost function. Calculating a cost for each mode, selecting one of the two or more interprediction modes according to the calculation result, and outputting a conversion value of the selected mode; It is achieved by the encoding method comprising the step of performing entropy encoding on the output transform value.

또한, 상기 기술적 과제는 부호화된 컬러 영상의 복호화 장치에 있어서, 입력된 비트 스트림을 엔트로피 복호화하는 엔트로피 복호화부; 및 상기 비트 스트림으로부터 추출된, 소정 크기의 현재 블록에 대해 적용된 인터 프리딕션 모드 정보에 기초하여, 원래의 색차 성분을 복원하는 색차 성분 역변환부를 포함하며, 상기 인터 프리딕션 모드 정보는 2 이상의 인터 프리딕션 모드들 중, 상기 현재 블록에 적용된 인터 프리딕션 모드를 나타내며, 상기 원래의 색차 성분은 현재 블록에 적용된 인터 프리딕션 모드에 대응하는 변환값으로부터 얻어지는 것을 특징으로 하는 복호화 장치에 의해 달성된다. In addition, the technical problem is an apparatus for decoding an encoded color image, an entropy decoding unit for entropy decoding the input bit stream; And a chrominance component inverse transform unit for restoring an original chrominance component based on interprediction mode information applied to a current block having a predetermined size extracted from the bit stream, wherein the interprediction mode information includes two or more interpreions. Among the dictation modes, an interprediction mode applied to the current block is indicated, and the original color difference component is obtained from a transform value corresponding to the interprediction mode applied to the current block.

또한, 상기 기술적 과제는 부호화된 컬러 영상의 복호화 방법에 있어서, 입력된 비트 스트림을 엔트로피 복호화하는 단계와; 상기 비트 스트림으로부터 추출된, 소정 크기의 현재 블록에 대해 적용된 인터 프리딕션 모드 정보에 기초하여, 원래의 색차 성분을 복원하는 단계를 포함하며, 상기 인터 프리딕션 모드 정보는 2 이상의 인터 프리딕션 모드들 중, 상기 현재 블록에 적용된 인터 프리딕션 모드를 나타내며, 상기 원래의 색차 성분은 현재 블록에 적용된 인터 프리딕션 모드에 대응하는 변환값으로부터 얻어지는 것을 특징으로 하는 복호화 방법에 의해 달성된다.In addition, the present invention provides a method of decoding an encoded color image, comprising: entropy decoding an input bit stream; Restoring an original chrominance component based on interprediction mode information applied to a current block of a predetermined size extracted from the bit stream, wherein the interprediction mode information includes two or more interprediction modes. Among them, an interprediction mode applied to the current block, wherein the original color difference component is obtained from a transform value corresponding to the interprediction mode applied to the current block.

또한, 상기 기술적 과제는 컬러 영상의 색차 성분을 2 이상의 인터 프리딕션 모드 별로 변환하고, 상기 모드 별로 변환된 값들을, 소정의 코스트 함수를 사용하여 모드 별로 코스트를 계산하고, 상기 계산 결과에 따라 상기 2 이상의 인터 프리딕션 모드 중 하나를 선택하여, 선택된 모드의 변환값을 출력하는 단계와; 상기 출력된 변환값에 대해 엔트로피 부호화를 수행하는 단계를 포함하는 컬러 영상의 부호화 방법을 실행하기 위한 프로그램이 기록된 컴퓨터로 읽을 수 있는 기록 매체에 의해서도 달성된다.In addition, the technical problem is to convert the color difference component of the color image for each of the two or more interprediction mode, and to calculate the cost for each mode by using a predetermined cost function, the value converted for each mode, according to the calculation result Selecting one of two or more interprediction modes and outputting a conversion value of the selected mode; It is also achieved by a computer readable recording medium having recorded thereon a program for executing a method of encoding a color image comprising performing entropy encoding on the output converted value.

또한, 상기 기술적 과제는 입력된 비트 스트림을 엔트로피 복호화하는 단계와; 상기 비트 스트림으로부터 추출된, 소정 크기의 현재 블록에 대해 적용된 인터 프리딕션 모드 정보에 기초하여, 원래의 색차 성분을 복원하는 단계를 포함하며, 상기 인터 프리딕션 모드 정보는 2 이상의 인터 프리딕션 모드들 중, 상기 현재 블록에 적용된 인터 프리딕션 모드를 나타내며, 상기 원래의 색차 성분은 현재 블록에 적용된 인터 프리딕션 모드에 대응하는 변환값으로부터 얻어지는 것을 특징으로 하는 부호화된 컬러 영상의 복호화 방법을 실행하기 위한 프로그램이 기록된 컴퓨터로 읽을 수 있는 기록 매체에 의해서도 달성된다.In addition, the technical problem is the step of entropy decoding the input bit stream; Restoring an original chrominance component based on interprediction mode information applied to a current block of a predetermined size extracted from the bit stream, wherein the interprediction mode information includes two or more interprediction modes. Among them, an interprediction mode applied to the current block, and the original color difference component is obtained from a transform value corresponding to the interprediction mode applied to the current block. It is also achieved by a computer readable recording medium having recorded thereon a program.

이하 첨부된 도면을 참조하여 본 발명의 바람직한 실시예에 대해 상세히 설 명한다.Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings.

도 3은 본 발명의 일실시예에 따른 동영상 부호화 장치의 블록도이다.3 is a block diagram of a video encoding apparatus according to an embodiment of the present invention.

부호화 장치는 움직임 추정부(302), 움직임 보상부(304), 인트라 프리딕션 수행부(306), 변환부(308), 양자화부(310), 재정렬부(312), 엔트로피 코딩부(314), 역양자화부(316), 역변환부(318), 필터(320) 및 프레임 메모리(322)를 구비한다.The encoding apparatus includes a motion estimator 302, a motion compensator 304, an intra prediction performer 306, a transform unit 308, a quantization unit 310, a reordering unit 312, and an entropy coding unit 314. , An inverse quantization unit 316, an inverse transform unit 318, a filter 320, and a frame memory 322.

부호화 장치는 여러 가지 부호화 모드 중에서 선택된 하나의 부호화 모드하에서 현재 픽처의 매크로 블록에 대해서 부호화를 수행한다. 이를 위해서 인터 프리딕션 및 인트라 프리딕션이 가질 수 있는 모든 모드하에서 부호화를 수행하여 율-왜곡 코스트(Rate-Distortion Cost, RDcost)를 계산하여 그 값이 가장 작은 모드를 최적 모드로 정해 그 모드하에서 부호화를 수행한다. 율(Rate, R)은 비트율을 의미하는 것으로 하나의 매크로 블록을 부호화하는데 사용되는 비트수를 나타낸다. 즉 율(Rate)은, 인터 프리딕션 또는 인트라 프리딕션이 수행된 후의 잔차신호(residual)가 부호화되어 얻어진 비트수와, 움직임 벡터 정보가 부호화되어 얻어진 비트수를 모두 더한값이다. 왜곡(Distortion, D)은 부호화가 수행된 영상을 복호화하였을 때의 원래 매크로 블록과 디코딩된 매크로 블록과의 차이이다. 따라서 왜곡(D)은 복호화가 수행되어 원래 매크로 블록이 복원되면 알 수 있는 값이다. The encoding apparatus encodes the macroblock of the current picture in one encoding mode selected from various encoding modes. To this end, encoding is performed under all modes that inter-prediction and intra-prediction can have, and the rate-distortion cost (RDcost) is calculated to determine the mode with the smallest value as the optimal mode and encoding under that mode. Perform Rate (Rate, R) means a bit rate and represents the number of bits used to encode one macroblock. That is, the rate is the sum of the number of bits obtained by encoding the residual signal after the interprediction or intra prediction is performed and the number of bits obtained by encoding the motion vector information. Distortion (D) is the difference between the original macroblock and the decoded macroblock when the encoded image is decoded. Therefore, the distortion D is a value that can be known when decoding is performed and the original macro block is restored.

그러나, 본 발명의 부호화 모드 결정방법에서 최적의 모드를 결정하는 것은 율-왜곡 코스트의 계산에 따라서 뿐만 아니라 다양한 방법에 의할 수 있다. 즉, RDCost 뿐만 아니라, cost의 계산은 여러가지 방법에 의해서 수행될 수 있다. 예를 들어, 사용될 수 있는 코스트 함수는 SAD(sum of absolute value), SATD(sum of absolute transformed difference), SSD(sum of squared difference), MAD(mean of absolute difference), 라그란지 함수(Laglange function) 등이 있다.However, the determination of the optimal mode in the encoding mode determination method of the present invention may be performed by various methods as well as the calculation of the rate-distortion cost. That is, not only the RDCost but also the cost calculation may be performed by various methods. For example, the cost functions that can be used are sum of absolute value (SAD), sum of absolute transformed difference (SATD), sum of squared difference (SSD), mean of absolute difference (MAD), and Laglange function Etc.

인터 프리딕션을 위해 현재 픽처의 매크로 블록의 예측치를 참조 픽처에서 찾는 것은 움직임 추정부(302)에서 수행된다. 그리고, 움직임 보상부(304)는 1/2 화소 또는 1/4 화소 단위로 참조 블록이 찾아진 경우에는 이들 중간 화소값을 계산하여 참조 블록 데이터 값을 정한다. 이렇게 인터 프리딕션은 움직임 추정부(302)와 움직임 보상부(304)에서 수행된다.Finding the predicted value of the macro block of the current picture in the reference picture for interprediction is performed by the motion estimation unit 302. When the reference block is found in units of 1/2 or 1/4 pixels, the motion compensator 304 determines the reference block data value by calculating these intermediate pixel values. In this way, the interprediction is performed by the motion estimator 302 and the motion compensator 304.

또한, 현재 픽처의 매크로 블록의 예측치를 현재 픽처내에서 찾는 인트라 프리딕션이 인트라 프리딕션 수행부(306)에서 수행된다. 현재 매크로 블록에 대해 인터 프리딕션을 수행할 것인가 또는 인트라 프리딕션을 수행할 것인가 하는 것은 모든 부호화 모드하에서의 율-왜곡 코스트를 계산하여 그 값이 가장 작은 모드를 상기 블록의 부호화 모드로 결정하여 매크로 블록에 대한 부호화를 수행한다. In addition, the intra prediction unit 306 that finds the prediction value of the macro block of the current picture in the current picture is performed by the intra prediction unit 306. Whether to perform inter-prediction or intra-prediction on the current macro block is calculated by calculating the rate-distortion cost under all encoding modes and determining the mode in which the value is the smallest as the encoding mode of the block. Perform encoding on.

상술한 바와 같이 인터 프리딕션 또는 인트라 프리딕션이 수행되어 현재 프레임의 매크로 블록이 참조할 예측 데이터가 찾아졌다면, 이를 현재 픽처의 매크로 블록에서 빼서 색차성분 변환부(330)로 입력된다. 색차성분 변환부(330)는 색차 성분이 입력된 경우에는 후술하는 색차 성분 변환방법에 따라 색차 성분을 여러 가지 변환값으로 만들고 그중에서 2개의 변환값을 선택한다. 색차 성분이 아닌 휘도 성분이 입력된 경우에는 그대로 통과된다. 휘도 성분 또는 선택된 색차 성분은 변환부(308)로 입력되어 변환을 수행한 후에 양자화부(310)에서 양자화를 수행한다. 현재 프레임의 매크로 블록에서 움직임 추정된 참조 블록을 뺀 것을 잔차(residual) 라고 하는데 부호화시의 데이터량을 줄이기 위해서 색차 성분 변환부(330)로 입력되는 데이터는 잔차값이다. 양자화된 잔차값은 엔트로피 코딩부(314)에서 인코딩하기 위하여 재정렬부(312)를 거친다.As described above, if inter prediction or intra prediction is performed and prediction data to be referred to by the macro block of the current frame is found, it is input to the color difference component converter 330 by subtracting it from the macro block of the current picture. When the color difference component is input, the color difference component converting unit 330 makes the color difference component into various conversion values according to the color difference component conversion method described later, and selects two conversion values from the color difference component. If a luminance component other than a chrominance component is input, it is passed as it is. The luminance component or the selected color difference component is input to the transform unit 308 to perform the transformation, and then the quantization unit 310 performs quantization. The subtraction of the motion estimation reference block from the macroblock of the current frame is called a residual. The data input to the chrominance component converter 330 to reduce the amount of data during encoding is a residual value. The quantized residual value passes through the reordering unit 312 for encoding by the entropy coding unit 314.

한편, 인터 프리딕션에 사용될 참조 픽처를 얻기 위하여 양자화된 픽처를 역양자화부(316)와 역변환부(318)를 거쳐 현재 픽처를 복원한다. 이렇게 복원된 현재 픽처는 프레임 메모리에 저장되었다가 다음 픽처에 대하여 인터 프리딕션을 수행하는데 사용된다. 복원된 픽처가 필터(320)를 통과하면 원래 픽처에서 약간의 부호화 에러를 포함한 픽처가 된다.Meanwhile, in order to obtain a reference picture to be used for interprediction, the current picture is reconstructed through the inverse quantizer 316 and the inverse transform unit 318. The reconstructed current picture is stored in frame memory and used to perform interprediction on the next picture. When the reconstructed picture passes the filter 320, the picture is a picture including some encoding error in the original picture.

또한, 색차성분 변환부(330)의 상세한 동작을 설명하면 다음과 같다. 휘도 성분인 Cb, Cr 데이터가 입력되면, 다음 수학식 1에 따라 변환값을 계산한다.In addition, the detailed operation of the color difference component conversion unit 330 is as follows. When the Cb and Cr data, which are luminance components, are input, a conversion value is calculated according to the following equation (1).

변환값 = a x Cb + b x Cr + cTransformation = a x Cb + b x Cr + c

여기에서, a, b, c 값은 실험에 의해 정해질 수 있다. 예를 들어 인터 프리딕션의 경우 (a, b, c)를 (1, 0, 0), (0, 1, 0), (-1, 1, 0), (1, 1, 0)라고 하면 변환값은 Cb, Cr, -Cb+Cr, Cb+Cr 이 된다. 그러면, 이 네 개에 대하여 코스트를 계산한다. 코스트의 계산과 사용되는 코스트 함수의 종류는 이미 상술한 바와 같다. 계산된 코스트 중 가장 작은 값을 갖는 (a, b, c) 세트를 2개 선택하여 변환부(308)에 입력한다. 예를 들어, 위의 예에서 Cb, -Cb+Cr이 선택되었다고 하면, 변환부(308)는 Cb, -Cb+Cr 성분을 변환한다. 이 경우가 코스트가 가장 작으므로 Cb와 -Cb+Cr 성분의 값이 가장 작고 이에 따라 부호화에 소요되는 비트량도 적다. 한편 인트라 프리딕션에서의 매크로 블록의 경우 (a, b, c)는 (-1, 1, 14), (1, 1, -250), (1, 0, 14), (0, 1, 14) 등이 될 수 있다. 인트라 프리딕션에서의 매크로 블록의 경우에도 인터 프리딕션에서의 매크로 블록의 경우와 마찬가지로 상기 (a, b, c) 계수쌍에 대하여 코스트를 계산하고 코스트가 가장 작을 때의 (a, b, c)에 의해 정해지는 색차성분을 찾아 부호화한다.Here, a, b and c values can be determined by experiment. For example, in the case of interpretation, if (a, b, c) is (1, 0, 0), (0, 1, 0), (-1, 1, 0), (1, 1, 0) The conversion values are Cb, Cr, -Cb + Cr, and Cb + Cr. Then, the costs are calculated for these four. The calculation of the cost and the kind of the cost function used have already been described above. Two sets of (a, b, c) having the smallest value among the calculated costs are selected and input to the converter 308. For example, in the above example, if Cb and -Cb + Cr are selected, the conversion unit 308 converts the Cb and -Cb + Cr components. In this case, since the cost is the smallest, the values of the Cb and -Cb + Cr components are the smallest, and therefore the amount of bits required for encoding is small. On the other hand, for macro blocks in intra prediction, (a, b, c) is (-1, 1, 14), (1, 1, -250), (1, 0, 14), (0, 1, 14). ), Etc. In the case of the macro block in the intra prediction, as in the case of the macro block in the interpretation, the cost is calculated for the (a, b, c) coefficient pair and (a, b, c) when the cost is the smallest. Find and encode the color difference component determined by.

한편, 색차성분 변환부(330)는 변환부(308)와 양자화부(310) 이후에 위치할 수도 있다. 즉, 공간 도메인(spatial domain)이 아닌 주파수 도메인(frequency domain) 상에 주파수 변환된 Cb와 Cr 성분을 이용하여 코스트를 계산하여 재정렬 및 엔트로피 부호화를 수행할 수 있다.Meanwhile, the color difference component converter 330 may be located after the converter 308 and the quantizer 310. That is, reordering and entropy encoding may be performed by calculating a cost using Cb and Cr components that are frequency-converted on a frequency domain rather than a spatial domain.

도 4는 본 발명의 일실시예에 따른 색차성분 변환값의 계산을 설명하기 위한 참조도이다.4 is a reference diagram for explaining calculation of a color difference component transform value according to an embodiment of the present invention.

도 4를 참조하면, Cb 블록과 Cr 블록에서 각각 하나의 화소값을 읽어와 상술한 수학식 1에 따라 (a, b, c) 값을 곱하거나 더하여 변환값을 계산함을 알 수 있다.Referring to FIG. 4, it can be seen that one pixel value is read from the Cb block and the Cr block, and the converted value is calculated by multiplying or adding (a, b, c) values according to Equation 1 described above.

도 5는 도 3의 색차성분 변환부(330)의 상세 블록도이다.FIG. 5 is a detailed block diagram of the color difference component converter 330 of FIG. 3.

색차성분 변환부(330)는 변환값 계산부(510), 코스트 계산부(520) 및 판단부(530)를 포함한다. 변환값 계산부(510)는 색차성분 Cb, Cr이 입력되면 주어진 (a, b, c) 계수 세트를 이용하여 만들어질 수 있는 모든 경우의 변환값을 수학식 1에 따라 계산한다. 코스트 계산부(520)는 계산된 각 경우에 대해 코스트를 계산한다. 판단부(530)는 상기 계산된 코스트 값이 가장 작은 두 개의 경우를 선택하여 그 때 의 변환값을 출력한다.The color difference component converter 330 includes a conversion value calculator 510, a cost calculator 520, and a determiner 530. When the chrominance components Cb and Cr are input, the conversion value calculator 510 calculates the conversion values in all cases that can be made using the given (a, b, c) coefficient set according to Equation (1). The cost calculator 520 calculates a cost for each case calculated. The determination unit 530 selects two cases in which the calculated cost value is the smallest and outputs the converted value at that time.

도 6은 본 발명의 일실시예에 따른 부호화 방법의 흐름도이다.6 is a flowchart of an encoding method according to an embodiment of the present invention.

영상 데이터가 입력되면, 인터 프리딕션 경우에 움직임 추정(S610)과 움직임 예측(S620)이 수행된다. 인트라 프리딕션인 경우에는 움직임 추정 단계(S610) 및 움직임 예측 단계(S620)는 생략된다. 움직임 추정과 움직임 예측의 수행은 도 3을 참조하여 상술한 바와 같다. 움직임 예측이 수행된 후, 미리 정해진 (a, b, c) 계수를 사용하여 얻을 수 있는 모든 경우에 대해서 도 4 및 도 5를 참조하여 상술한 바와 같이 코스트를 계산한다(S630). 코스트를 계산한 후 이중에서 그 값이 가장 작은 두 개의 경우를 선택한다(S640). 선택된 경우에 대하여 변환 단계(S650)와 양자화 단계(S660) 및 엔트로피 코딩을 수행한다(S670). 이에 의해 종래에는 색차성분 Cb, Cr을 부호화하였으나, S630 및 S640 단계에 의해 색차성분 Cb, Cr 간의 중복성을 제거한 변환된 색차성분을 부호화하여 부호화에 소요되는 비트수를 줄인다.When the image data is input, motion estimation (S610) and motion prediction (S620) are performed in the case of inter prediction. In the case of intra prediction, the motion estimation step S610 and the motion prediction step S620 are omitted. Performing motion estimation and motion prediction is as described above with reference to FIG. 3. After the motion prediction is performed, the cost is calculated as described above with reference to FIGS. 4 and 5 for all cases obtainable using the predetermined (a, b, c) coefficients (S630). After calculating the cost, two cases having the smallest value are selected (S640). A transform step (S650), a quantization step (S660), and entropy coding are performed for the selected case (S670). As a result, the color difference components Cb and Cr are encoded in the related art, but the number of bits required for encoding is reduced by encoding the converted color difference components which eliminated the redundancy between the color difference components Cb and Cr in steps S630 and S640.

한편 선택된 (a, b, c) 계수 정보도 부호화하여 전송된다. 각 매크로 블록마다 어떠한 색차성분이 부호화되어 전송되었는가를 나타내기 위해서 각 매크로 블록마다 픽처 헤더에, 선택된 계수 정보를 기록한다. 상술한 인터 프리딕션의 예에서 (1, 0, 0), (0, 1, 0), (-1, 1, 0), (1, 1, 0) 계수 중에서 첫 번째 및 세 번째 계수가 선택되었다면, 이 정보를 run length coding 한다.Meanwhile, the selected (a, b, c) coefficient information is also encoded and transmitted. The selected coefficient information is recorded in the picture header for each macro block to indicate what color difference component is coded and transmitted for each macro block. In the example of interpretation described above, the first and third coefficients are selected from the coefficients (1, 0, 0), (0, 1, 0), (-1, 1, 0), and (1, 1, 0). If so, run length code this information.

보다 상세하게 설명하면, 색차성분 블록이 부호화된 경우에 한해서 선택된 계수정보를 run length 부호화하는데 이때 종래의 신택스인 색차 부호화 블록 패턴이나 CBPC(Coded Block Pattern for Chrominance)와 더불어 사용 할 수 있다. (run, length) 형식으로 부호화할 때, run에 할당되는 bit 수는 몇 개의 셋(set)을 사용하는지에 따라 달라지며, length에 할당되는 bit 수는 얼마나 연속된 run을 하나로 코딩할 것인가에 따라 달라진다. 예를 들어, 셋의 개수가 S1, S2, S3, S4로 총 4가지로 이루어져 있을 경우, A는 2 bit, B를 5 bit으로 할 경우 하나의 (run, length)는 7bit으로 부호화 된다. 즉, S1이 연달아 11번 나왔다고 하면 (S1, 10)은 "0001010"으로 부호화 할 수 있다. 각 매크로 블록별로 선택된 (a, b, c) 계수 정보는 인접 매크로 블록의 계수 정보와 유사한 값을 가질 가능성이 높으므로 run length 부호화 방법을 사용하면 부호화에 소요되는 비트수를 줄일 수 있다. 이와 더불어 색차 부호화 블록 패턴이나 CBPC를 사용하여 블록 단위로 색차 블록을 부호화 되는지의 여부를 알리는 정보를 전송한다. In more detail, the selected coefficient information is run length encoded only when the chrominance component block is encoded. In this case, the coefficient information may be used together with the conventional syntax of the chrominance coding block pattern or the CBPC (Coded Block Pattern for Chrominance). When encoding in (run, length) format, the number of bits assigned to a run depends on how many sets you use, and the number of bits assigned to length depends on how many consecutive runs you want to code into one. Different. For example, if the number of sets consists of four types, S1, S2, S3, and S4, A is 2 bits, and if B is 5 bits, one (run, length) is encoded as 7 bits. That is, if S1 comes out 11 times in a row, (S1, 10) can be encoded as "0001010". Since the (a, b, c) coefficient information selected for each macro block is likely to have a value similar to that of the neighboring macro block, the run length encoding method may reduce the number of bits required for encoding. In addition, information indicating whether a color difference block is encoded in units of blocks using a color difference coding block pattern or a CBPC is transmitted.

각 매크로 블록별로 선택된 (a, b, c) 계수 정보는 인접 매크로 블록의 계수 정보와 유사한 값을 가질 가능성이 높으므로 run length 부호화 방법을 사용하면 부호화에 소요되는 비트수를 줄일 수 있다.Since the (a, b, c) coefficient information selected for each macro block is likely to have a value similar to that of the neighboring macro block, the run length encoding method may reduce the number of bits required for encoding.

도 7은 본 발명의 일실시예에 따른 복호화 장치의 블록도이다.7 is a block diagram of a decoding apparatus according to an embodiment of the present invention.

복호화 장치는 엔트로피 디코딩부(702), 재정렬부(704), 역양자화부(706), 역변환부(708), 색차성분 역변환부(710), 움직임 보상부(712), 인트라 프리딕션 수행부(714), 필터(716) 및 프레임 메모리(718)을 포함한다. 부호화된 비트 스트림이 복호화 장치에 입력되면, 엔트로피 디코딩, 재정렬, 역변환을 거쳐 색차성분 역변환부(708)에 입력된다. 입력된 데이터가 휘도 성분인 경우에는 바이 패스시키고, 색차성분인 경우에는, 색차성분 역변환부(708)는 어떠한 (a, b, c) 계수로 색차 성 분이 구성되어 부호화되었는가 하는 것을 알아내서 색차 성분 Cb, Cr 성분을 만든다. 어떠한 (a, b, c) 계수로 색차 성분이 부호화되어 전송되었는가 하는 정보도 run length 부호화 방법에 따라 부호화되어 전송되기 때문에 색차 성분 역변환부(710)는 이 정보를 복호화하여 Cb, Cr 성분을 만든다. 한편, 도 3의 부호화 장치의 경우와 마찬가지로, 색차성분 역변환부(710)는 역양자화부(706) 및 역변환부(708) 이전에 위치할 수도 있다. The decoding apparatus includes an entropy decoding unit 702, a reordering unit 704, an inverse quantization unit 706, an inverse transform unit 708, a chrominance component inverse transform unit 710, a motion compensator 712, an intra prediction unit ( 714, filter 716, and frame memory 718. When the encoded bit stream is input to the decoding apparatus, the encoded bit stream is input to the color difference component inverse transform unit 708 through entropy decoding, reordering, and inverse transformation. If the inputted data is a luminance component, bypass the color difference component. If the input data is a chrominance component, the chrominance component inverse transform unit 708 finds out by which (a, b, c) coefficients the chrominance component is formed and encoded. Make Cb and Cr ingredients. Since the information on which (a, b, c) chrominance components are encoded and transmitted is also encoded and transmitted according to the run length encoding method, the chrominance component inverse transform unit 710 decodes this information to produce Cb and Cr components. . Meanwhile, as in the case of the encoding apparatus of FIG. 3, the color difference component inverse transform unit 710 may be positioned before the inverse quantization unit 706 and the inverse transform unit 708.

도 8은 본 발명의 일실시예에 따른 복호화 방법의 흐름도이다.8 is a flowchart of a decoding method according to an embodiment of the present invention.

엔트로피 디코딩 단계(S810), 역 양자화 단계(S820) 및 역변환 단계(S830)를 거친 후, 수신한 (a, b, c) 계수 정보를 디코딩하고, 어떤 Cb, Cr 성분의 조합이 부호화되었는가를 찾아 이를 역변환하여 Cb, Cr 성분을 찾아낸다(S840). 그리고 움직임 보상을 통해 복호화한다(S850). 인트라 프리딕션의 경우에는 움직임 보상 단계(S850)는 생략된다.After the entropy decoding step (S810), the inverse quantization step (S820), and the inverse transform step (S830), the received (a, b, c) coefficient information is decoded, and a combination of Cb and Cr components is found. The reverse conversion thereof finds the Cb and Cr components (S840). And it decodes through motion compensation (S850). In the case of intra prediction, the motion compensation step S850 is omitted.

이하에서는 도 9 내지 도 15를 참조하여 본 발명의 또 다른 실시예에 따른 부호화 방법을 설명한다.Hereinafter, an encoding method according to another embodiment of the present invention will be described with reference to FIGS. 9 to 15.

도 9는 본 발명의 일 실시예에 적용되는 인터 프리딕션 모드를 나타내는 테이블이다. 도 9를 참조하면, 각각의 매크로블록에 대해 적용되는 인터 프리딕션 모드는 0 - 4의 5가지 모드로 설정되어 있으며, 도 12에 도시된 바와 같이 각각의 매크로블록 단위로 인터 프리딕션 모드가 선택된다. 선택된 모드 및 도 9에 도시된 테이블에 따라 Cb 및 Cr 블록은 변환값 1 및 변환값 2로 대체된다. 도 9에 도시된 각각의 인터 프리딕션 모드들에서의 변환값들 및 Cb, Cr 값들 간의 관계는 예 시적인 것이며, 선택적으로 다른 관계를 갖는 모드를 추가하거나, 모드를 제거하는 것이 가능하다.9 is a table illustrating an interprediction mode applied to an embodiment of the present invention. Referring to FIG. 9, the interprediction mode applied to each macroblock is set to five modes of 0 to 4, and as shown in FIG. 12, the interprediction mode is selected in each macroblock unit. do. Cb and Cr blocks are replaced with transform value 1 and transform value 2 according to the selected mode and the table shown in FIG. The relationship between the conversion values and the Cb and Cr values in the respective interprediction modes shown in FIG. 9 is exemplary, and it is possible to selectively add or remove a mode having another relationship.

예를 들어, 소정의 매크로블록에 대해 선택된 인터 프리딕션 모드가 0인 경우, 변환값 1은 Cb 블록의 Cb 값 그 자체가 되고, 변환값 2는 Cr 블록의 Cr 값 그 자체가 된다. 또한, 선택된 인터 프리딕션 모드가 1인 경우, 변환값 1은 Cb 블록의 Cb 값 그 자체가 되고, 변환값 2는 복원된 Cb값인 Cb'에서 Cr 블록의 Cr 값을 뺀값이 된다. 도 9의 인터 프리딕션 모드 테이블에서 복원된 Cb 값 및 Cr 값을 사용하는 이유는, 복호화 단계에서 보다 정확한 Cb 및 Cr 값을 복원하기 위해서이다. 선택적으로, 복원된 Cb 및 Cr 값 대신에 원래의 Cb 및 Cr 값을 사용하는 것도 가능하다. 여기에서 복원된 Cb 및 Cr 값은 변환 및 양자화 과정을 수행한 후, 다시 역양자화 및 역변환을 수행하여 얻어진 값을 의미하며, 원래의 Cb 및 Cr 값은 변환 및 양자화 과정이 수행되기 이전 값을 의미한다.For example, when the selected interprediction mode for a given macroblock is 0, the transform value 1 becomes the Cb value of the Cb block itself, and the transform value 2 becomes the Cr value of the Cr block itself. In addition, when the selected interprediction mode is 1, the transform value 1 becomes the Cb value itself of the Cb block, and the transform value 2 becomes the value obtained by subtracting the Cr value of the Cr block from the restored Cb value Cb '. The reason for using the restored Cb value and Cr value in the interprediction mode table of FIG. 9 is to recover more accurate Cb and Cr values in the decoding step. Alternatively, it is also possible to use the original Cb and Cr values instead of the restored Cb and Cr values. Here, the restored Cb and Cr values mean values obtained by performing inverse quantization and inverse transformation after performing the transformation and quantization processes, and the original Cb and Cr values mean values before the transformation and quantization processes are performed. do.

도 10은 각각의 모드에 대한 역 인터 프리딕션 방법(inverse inter prediction method)을 설명하기 위한 테이블이다. 도 10을 참조하면, 하나의 매크로블록의 인터 프리딕션 모드가 0인 경우, 해당 매크로블록의 Cb 및 Cr 값은 변환값 1 및 변환값 2로부터 바로 얻어진다. 한편, 인터 프리딕션 모드가 1인 경우, 해당 매크로블록의 Cb 값은 변환값 1로부터 바로 얻어지지만, Cr 값은 변환값 1을 복원한 값 (Cb')에서 변환값 2(Cb'-Cr)를 뺀값으로부터 얻어진다. 이때, 변환값 1을 복원한 값에서 변환값 2를 빼는 이유는, 변환값 2가 Cb'를 포함하고 있기 때문이다.FIG. 10 is a table for explaining an inverse inter prediction method for each mode. Referring to FIG. 10, when the interprediction mode of one macroblock is 0, the Cb and Cr values of the macroblock are directly obtained from the transform value 1 and the transform value 2. On the other hand, when the interprediction mode is 1, the Cb value of the macroblock is directly obtained from the transform value 1, while the Cr value is converted value 2 (Cb'-Cr) from the value (Cb ') restored from the transform value 1. Is obtained by subtracting. At this time, the reason why the converted value 2 is subtracted from the restored value of the converted value 1 is that the converted value 2 includes Cb '.

도 11은 도 3의 색차성분 변환부(330)의 또 다른 실시예에 따른 상세 블록도이다.FIG. 11 is a detailed block diagram of another embodiment of the color difference component converter 330 of FIG. 3.

색차 성분 변환부(330)는 변환값 계산부(1110), 인터 프리딕션 모드 테이블 저장부(1112), 코스트 계산부(1120), 모드 선택 및 변환값 출력부(1130), 및 선택 모드 저장부(1132)를 포함한다. The color difference component converter 330 may include a conversion value calculator 1110, an interprediction mode table storage 1112, a cost calculator 1120, a mode selection and conversion value output unit 1130, and a selection mode storage unit. 1132.

변환값 계산부(1110)는 색차성분 Cb, Cr이 입력되면, 인터 프리딕션 모드 테이블 저장부(1112)에 저장된 인터 프리딕션 모드별로 변환값 1 및 변환값 2를 계산한다. 예를 들어, 도 9에 도시된 모드별로, 변환값 1 및 변환값 2를 생성한다. 또한, 본 실시예에서는, 인터 프리딕션 모드 테이블은 변환값 계산부(1110)와 별도로 존재하는 인터 프리딕션 모드 테이블(1112)에 저장되지만, 선택적으로 인터 프리딕션 모드 테이블을 변환값 계산부(1110)의 소정의 장소에 저장하는 것도 가능하다.When the color difference components Cb and Cr are input, the conversion value calculator 1110 calculates the conversion value 1 and the conversion value 2 for each interpretation mode stored in the interprediction mode table storage 1112. For example, the conversion value 1 and the conversion value 2 are generated for each mode shown in FIG. In addition, in the present embodiment, the interprediction mode table is stored in the interprediction mode table 1112, which is separate from the conversion value calculation unit 1110, but the interpretation mode table is optionally converted into the conversion value calculation unit 1110. Can be stored in a predetermined place.

코스트 계산부(1120)는 각 모드별로 계산된 변환값들에 대해 코스트를 계산한다. The cost calculator 1120 calculates a cost for the converted values calculated for each mode.

모드 선택 및 변환값 출력부(1130)는 상기 계산된 코스트 값이 가장 작은 모드를 선택하고, 그 때의 변환값들을 출력한다. 예를 들어, 도 9에 도시된 인터 프리딕션 모드 테이블에 따라 모드 1이 선택된 경우, Cb 및 Cb'-Cr 값을 변환값 1 및 변환값 2로서 출력한다.The mode selection and conversion value output unit 1130 selects the mode having the smallest calculated cost value, and outputs the conversion values at that time. For example, when mode 1 is selected according to the interprediction mode table shown in FIG. 9, Cb and Cb'-Cr values are output as conversion value 1 and conversion value 2.

선택 모드 저장부(1132)는 모드 선택 및 변환값 출력부(1130)에서 선택된 각각의 매크로블록에 대한 모드 정보를 저장한다. 선택 모드 저장부(1132)에 저장 된 각 매크로블록에 대한 모드 정보는 도 12에 도시된 픽쳐 단위의 인터 프리딕션 모드 테이블을 생성하기 위해 사용된다. 또한, 본 실시예에서는, 각각의 매크로블록 단위로 선택된 모드 정보는 선택 모드 저장부(1132)에 저장되지만, 선택적으로 선택된 모드에 대한 정보는 모드 선택 및 변환값 출력부(1132)의 소정의 장소에 저장하는 것도 가능하다.The selection mode storage unit 1132 stores mode information for each macroblock selected by the mode selection and conversion value output unit 1130. Mode information for each macroblock stored in the selection mode storage unit 1132 is used to generate an interprediction mode table in picture units shown in FIG. 12. In addition, in this embodiment, the mode information selected in each macroblock unit is stored in the selection mode storage unit 1132, but the information on the selectively selected mode is a predetermined place of the mode selection and conversion value output unit 1132. It is also possible to save to.

모드 선택 및 변환값 출력부(1130)로부터 출력된 변환값들은 도 3에 도시된 바와 같이, 변환부(308) 및 양자화부(310)로 출력되어, 변환 및 양자화 과정이 수행된다.The transform values output from the mode selection and transform value output unit 1130 are output to the transform unit 308 and the quantization unit 310, as shown in FIG. 3, to perform a transform and quantization process.

이와 같이, 선택된 모드에 따라 변환값이 결정되고, 결정된 변환값에 따라 부호화가 수행되기 때문에, 각각의 매크로블록에 대해 어떠한 인터 프리딕션 모드가 선택되었는지를 복호화부에 알려주는 것이 필요하다. 이하에서는 도 12 내지 도 14를 참조하여, 각각의 매크로블록에 대해 선택된 인터 프리딕션 모드 정보를 전송하기 위한 방법을 설명한다. As described above, since the transform value is determined according to the selected mode and the encoding is performed according to the determined transform value, it is necessary to inform the decoder which interprediction mode is selected for each macroblock. Hereinafter, a method for transmitting selected interprediction mode information for each macroblock will be described with reference to FIGS. 12 to 14.

도 12는 하나의 픽쳐 내의 각각의 매크로블록에 대해 선택된 인터 프리딕션 모드를 나타낸다. 각각의 위치에서의 값은, 0, 1, 2, 3, 4의 값을 가지며, 이는 해당 위치에 대응하는 매크로블록에 대해 적용되는 인터 프리딕션 모드를 나타낸다. 예를 들어, 최상단최좌측 위치의 값 '0'는 대응 매크로블록에 대해 테이블 9에서의 인터 프리딕션 모드 0에 따라 Cb 및 Cr을 대체, 즉 변환값 1 = Cb, 변환값 2 = Cr 임을 나타낸다. 또한, 최상단의 그 다음 매크로블록들에 해당하는 값들 '2 2'는 이들 위치에 해당하는 매크로블록들이 도 9에서의 인터 프리딕션 모드 2에 따 라 Cb 및 Cr을 대체, 즉 변환값 1 = Cb, 변환값 2 = Cb'+Cr임을 나타낸다. 12 shows the selected interprediction mode for each macroblock in one picture. The value at each position has a value of 0, 1, 2, 3, 4, which indicates the interprediction mode applied to the macroblock corresponding to that position. For example, the value '0' at the leftmostmost position indicates that Cb and Cr are replaced, i.e., conversion value 1 = Cb, conversion value 2 = Cr, according to interprediction mode 0 in Table 9 for the corresponding macroblock. . In addition, the values '2 2' corresponding to the next macroblocks at the top are substituted for Cb and Cr according to the interprediction mode 2 in FIG. 9, that is, the conversion value 1 = Cb. , Conversion value 2 = Cb '+ Cr.

도 13(a)(b)(c)(d)(e)는 도 12에 도시된 매크로블록별 인터 프리딕션 모드값을 각각의 인터 프리딕션 모드 플레인(inter prediction mode plane)별로 나타낸 도면이다. 13 (a), (b), (c), (d), and (e) are diagrams illustrating interprediction mode values for each macroblock shown in FIG. 12 for each inter prediction mode plane.

도 13(a)는 도 12에 도시된 인터 프리딕션 모드 테이블 중, 모드 0를 나타내는 매크로블록에 대해서는 1, 모드 0를 나타내지 않는 나머지 매크로블록에 대해서는 0을 나타내도록 재구성한 모드 0 플레인(mode 0 plane)이다. 예를 들어, 최상단 값들 중, 도 12에 도시된 인터 프리딕션 모드 값들 중, 0값을 갖는, 1, 4, 5, 7, 8, 10, 및 14 번째 값들은 1로 설정되고, 나머지 값들은 0으로 설정된다.FIG. 13A illustrates a mode 0 plane reconfigured to indicate 1 for a macroblock indicating mode 0 and 0 for the remaining macroblocks not indicating mode 0 in the interprediction mode table shown in FIG. 12. plane). For example, among the top values, 1, 4, 5, 7, 8, 10, and 14th values having a 0 value among the interprediction mode values shown in FIG. 12 are set to 1, and the remaining values are Is set to zero.

도 13(b)는 도 12에 도시된 인터 프리딕션 모드 테이블 중, 모드 1를 나타내는 매크로블록에 대해서는 1, 모드 0를 나타내지 않는 나머지 매크로블록에 대해서는 0을 나타내도록 재구성한 모드 1 플레인(mode 1 plane)이다. 예를 들어, 도 12에 도시된 인터 프리딕션 모드 테이블의 최상단 값들 중, 1값을 갖는 6 및 9 번째 값들은 1로 설정되고, 나머지 값들은 0으로 설정된다.FIG. 13B shows a mode 1 plane reconfigured to show 1 for a macroblock indicating mode 1 and 0 for the remaining macroblocks not indicating mode 0 in the interprediction mode table shown in FIG. plane). For example, of the top values of the interprediction mode table shown in FIG. 12, the sixth and ninth values having a value of 1 are set to 1, and the remaining values are set to 0. FIG.

도 13(c)는 도 12에 도시된 인터 프리딕션 모드 테이블 중, 모드 2를 나타내는 매크로블록에 대해서는 1, 모드 0를 나타내지 않는 나머지 매크로블록에 대해서는 0을 나타내도록 재구성한 모드 2 플레인 (mode 2 plane)이다. 예를 들어, 도 12에 도시된 인터 프리딕션 모드 테이블의 최상단 값들 중, 2값을 갖는 2, 3, 13, 15, 17, 18, 19, 20, 21, 및 22번째 값들은 1로 설정되고, 나머지 값들은 0으로 설정된다.FIG. 13C illustrates a mode 2 plane reconfigured to show 1 for a macroblock indicating mode 2 and 0 for the remaining macroblocks not indicating mode 0 in the interprediction mode table shown in FIG. plane). For example, of the top values of the interprediction mode table shown in FIG. 12, 2, 3, 13, 15, 17, 18, 19, 20, 21, and 22nd values having 2 values are set to 1 and , The remaining values are set to zero.

도 13(d)는 도 12에 도시된 인터 프리딕션 모드 테이블 중, 모드 3을 나타내는 매크로블록에 대해서는 1, 모드 0를 나타내지 않는 나머지 매크로블록에 대해서는 0을 나타내도록 재구성한 모드 3 플레인(mode 3 plane)이다. 예를 들어, 도 12에 도시된 인터 프리딕션 모드 값들 중, 최상단 값들 중에는 3값을 갖는 값이 없기 때문에, 모두 0으로 설정된다.FIG. 13D illustrates a mode 3 plane reconfigured to show 1 for a macroblock indicating mode 3 and 0 for the remaining macroblocks not indicating mode 0 in the interprediction mode table shown in FIG. plane). For example, among the interpretation mode values shown in FIG. 12, since none of the highest values have a value of 3, all are set to zero.

도 13(e)는 도 12에 도시된 인터 프리딕션 모드 테이블 중, 모드 4를 나타내는 매크로블록에 대해서는 1, 모드 0를 나타내지 않는 나머지 매크로블록에 대해서는 0을 나타내도록 재구성한 모드 4 플레인(mode 4 plane)이다. 예를 들어, 도 10에 도시된 인터 프리딕션 모드 테이블의 최상단 값들 중, 4값을 갖는 11, 12, 및 16 번째 값들은 1로 설정되고, 나머지 값들은 0으로 설정된다.FIG. 13E illustrates a mode 4 plane reconfigured to show 1 for a macroblock indicating mode 4 and 0 for the remaining macroblocks not indicating mode 0 in the interprediction mode table shown in FIG. plane). For example, among the top values of the interprediction mode table shown in FIG. 10, the 11th, 12th, and 16th values having 4 values are set to 1, and the remaining values are set to 0. FIG.

이와 같이, 도 12에 도시된 인터 프리딕션 모드 테이블을 도 13(a) 내지 (e)에 도시된 바와 같이 각각의 모드 플레인으로 분할하는 경우, 0 런의 길이(length of 0 run)는 더 길어진다.As such, when the interprediction mode table shown in FIG. 12 is divided into the respective mode planes as shown in FIGS. 13A to 13E, the length of 0 run is longer. Lose.

도 14(a) 내지 (d)는 본 발명에 따른 인터 프리딕션 모드 정보의 부호화 방법을 설명하기 위한 도면이다. 도 14(a) 내지 (d)는 본 발명에 따른 모드 플레인 제거 방법(mode plane reduction scheme)을 채용하여, 도 13(a) 내지 (e)에 도시된 각각의 모드 플레인에서의 1 런의 길이(length of 1 run)를 보다 더 길게 만든 변형된 모드 플레인을 나타낸다. 14 (a) to (d) are diagrams for explaining a method of encoding interprediction mode information according to the present invention. 14A to 14D show a mode plane reduction scheme in accordance with the present invention, and the length of one run in each mode plane shown in FIGS. 13A to 13E. Represents a modified mode plane that makes (length of 1 run) longer.

도 14(a)는 도 13(b)의 모드 1 플레인에서, 도 13(a)의 모드 0 플레인에서의 값이 1인 매크로블록들에 대응하는'0'값들을 삭제한, 변형된 모드 1 플레인을 도시 한다. 도 14(a)에 도시된 바와 같이, 원래의 모드 1 플레인을 도시하는 도 13(b)의 최상단의 22비트'0000010010000000000000'는, 모드 0 플레인에서의 값이 1인, 1, 4, 5, 7, 8, 10, 14번째 '0'값이 제거된, 15비트의'001100000000000'로 변형된다. 변형된 모드 1 플레인은 원래의 모드 1 플레인에 비해, 감소된 비트량 및 길어진 런을 갖는다.FIG. 14 (a) shows a modified mode 1 in the mode 1 plane of FIG. 13 (b), which deletes '0' values corresponding to macroblocks with a value of 1 in the mode 0 plane of FIG. 13 (a). Show the plane. As shown in Fig. 14 (a), the uppermost 22 bits '0000010010000000000000' of Fig. 13 (b) showing the original Mode 1 plane are 1, 4, 5, The seventh, eighth, tenth, and fourteenth '0' values are transformed into 15-bit '001100000000000', which is removed. The modified mode 1 plane has a reduced amount of bits and longer runs compared to the original mode 1 plane.

도 14(b)는 도 13(c)의 모드 2 플레인에서, 모드 0 플레인 및 모드 1 플레인에서의 값이 1인 매크로블록들에 대응하는'0'값들을 삭제한, 변형된 모드 2 플레인을 나타낸다. 도 14(b)에 도시된 바와 같이, 원래의 모드 2 플레인을 도시하는 도 13(c)의 최상단의 22비트'0110000000001010111111'은 모드 0 플레인에서의 값이 1인, 1, 4, 5, 7, 8, 10, 14번째 '0'값 및 모드 1 플레인에서의 값이 1인, 6 및 9번째 '0'값이 제거된, 13비트의'1100110111111'로 변형된다. 변형된 모드 2 플레인은 원래의 모드 2 플레인에 비해, 감소된 비트량 및 길어진 런을 갖는다.FIG. 14 (b) shows a modified mode 2 plane in the mode 2 plane of FIG. 13 (c), with the '0' values deleted corresponding to macroblocks having a value of 1 in the mode 0 plane and the mode 1 plane. Indicates. As shown in FIG. 14 (b), the top 22 bits of FIG. 13 (c) showing the original mode 2 plane '0110000000001010111111' are 1, 4, 5, 7 with a value of 1 in the mode 0 plane. The 8th, 10th, and 14th '0' values and the 6th and 9th '0' values of 1 in the mode 1 plane are transformed to 13 bits of '1100110111111'. The modified mode 2 plane has a reduced amount of bits and longer runs compared to the original mode 2 plane.

도 14(c)는 도 13(d)의 모드 3 플레인에서, 모드 0 플레인, 모드 1 플레인, 및 모드 2 플레인에서의 값이 1인 매크로블록들에 대응하는'0'값들을 삭제한, 변형된 모드 3 플레인을 나타낸다. 도 14(c)에 도시된 바와 같이, 원래의 모드 3 플레인을 도시하는 도 13(d)의 최상단의 22비트'0000000000000000000000'은 모드 0 플레인에서의 값이 1인, 1, 4, 5, 7, 8, 10, 14번째 '0'값, 모드 1 플레인에서의 값이 1인, 6 및 9번째 '0'값, 및 모드 2 플레인에서의 값이 1인 2, 3, 13, 15, 17, 18, 19, 20, 21, 22에서의 '0'값이 제거된, 3비트의'000'로 변형된다. 변형된 모드 3 플레인은 원래의 모드 3 플레인에 비해, 감소된 비트량을 갖는다.FIG. 14 (c) is a modification of '0' values corresponding to macroblocks having a value of 1 in a mode 0 plane, a mode 1 plane, and a mode 2 plane in the mode 3 plane of FIG. 13 (d). Mode 3 plane. As shown in Fig. 14 (c), the top 22 bits '0000000000000000000000' of Fig. 13 (d) showing the original mode 3 plane are 1, 4, 5, 7 with a value of 1 in the mode 0 plane. , 8, 10, 14th '0' value, 2, 3, 13, 15, 17 with value 1 in mode 1 plane, 6th and 9th '0' value, and 1 in mode 2 plane The value '0' at, 18, 19, 20, 21, 22 is transformed into a three-bit '000' that has been removed. The modified mode 3 plane has a reduced bit amount compared to the original mode 3 plane.

도 14(d)는 도 13(e)의 모드 4 플레인에서, 모드 0 플레인, 모드 1 플레인, 모드 2 플레인, 및 모드 3 플레인에서의 값이 1인 매크로블록들에 대응하는'0'값들을 삭제한, 변형된 모드 4 플레인을 나타낸다. 도 14(d)에 도시된 바와 같이, 원래의 모드 4 플레인을 도시하는 도 13(e)의 최상단의 22비트'0000000000110001000000'은 모드 0 플레인에서의 값이 1인, 1, 4, 5, 7, 8, 10, 14번째'0'값, 모드 1 플레인에서의 값이 1인, 6 및 9번째 '0'값, 및 모드 2 플레인에서의 값이 1인 2, 3, 13, 15, 17, 18, 19, 20, 21, 22에서의 '0'값이 제거된 3비트의'111'로 변형된다. 변형된 모드 4 플레인은 원래의 모드 3 플레인에 비해, 감소된 비트량 및 길어진 런을 갖는다. 또한, 변형된 모드 4 플레인은 모두 1 값을 가지기 때문에 부호화가 필요하지 않게 된다.14 (d) shows '0' values corresponding to macroblocks having a value of 1 in a mode 0 plane, a mode 1 plane, a mode 2 plane, and a mode 3 plane in the mode 4 plane of FIG. 13E. Represents a modified Mode 4 plane that has been deleted. As shown in Fig. 14 (d), the top 22 bits of Fig. 13 (e) showing the original mode 4 plane '0000000000110001000000' are 1, 4, 5, 7 with a value of 1 in the mode 0 plane. , 8, 10, 14th '0' value, 2, 3, 13, 15, 17 with value 1 in mode 1 plane, 6th and 9th '0' value, and 1 in mode 2 plane The '0' values at, 18, 19, 20, 21, and 22 are transformed into 3 bits of '111' removed. The modified mode 4 plane has a reduced amount of bits and longer runs compared to the original mode 3 plane. In addition, since all of the modified mode 4 planes have a value of 1, coding is not necessary.

본 실시예에서는 원래 모드 0 플레인 및 '1' 런이 길어진 변형된 모드 1-4 플레인들을 런 렝스 부호화하여 전송함으로써, 전송될 데이터량을 감소시키는 것이 가능하다. 또한, 선택적으로 원래 모드 플레인들에 대해 런 렝스 부호화를 수행하여 전송하는 것도 가능하다.In this embodiment, it is possible to reduce the amount of data to be transmitted by performing run length coding on the original mode 0 plane and the modified mode 1-4 planes in which the '1' run is lengthened. It is also possible to optionally perform run length coding on the original mode planes and transmit.

복호화부에서는 도 13(b) 내지 (e)의 원래의 모드 플레인들을 생성하기 위해, 도 14 (a) 내지 도 14 (d)의 모드 1 플레인부터 모드 4 플레인을 차례로 복원한다. 또한, 복원된 도 13 (a) 내지 (e)의 모드 플레인들에 기초하여, 도 12의 인터 프리딕션 모드 테이블을 복원하고, 이에 기초하여, 변환값들로부터 원래의 Cb 및 Cr 값을 복원한다.In order to generate the original mode planes of FIGS. 13 (b) to 13 (e), the decoder sequentially restores the mode 4 planes from the mode 1 planes of FIGS. 14 (a) to 14 (d). Further, based on the reconstructed mode planes of FIGS. 13A to 13E, the interprediction mode table of FIG. 12 is restored, and based thereon, the original Cb and Cr values are restored from the converted values. .

도 15는 본원 발명의 일 실시예에 따른 도 14 (a) 내지 (d)에 도시된 변형된 모드 플레인의 생성 방법 및 인터 프리딕션 모드 정보 부호화 방법을 설명하기 위한 흐름도이다.FIG. 15 is a flowchart illustrating a method of generating a modified mode plane and an interprediction mode information encoding method illustrated in FIGS. 14A to 14D according to an embodiment of the present invention.

단계 1510에선 모드 0 플레인에 대해 런 렝스 부호화를 수행한다.In step 1510, run length coding is performed on the mode 0 plane.

단계 1520에서는 모드 0 플레인에 대한 런 렝스 부호화가 수행된 후, 도 13(b) 내지 (e)의 모드 플레인들에서, 모드 0 플레인에서의 값이 1인 매크로블록들에 대응하는 '0' 값들을 제거하고, 1차 변형된 모드 플레인들을 생성한다. 이후, 1차 변형된 모드 1 플레인, 즉 도 14(a)에 도시된 변형된 모드 1 플레인에 대해 런 렝스 부호화를 수행한다.In step 1520, after run length coding is performed on the mode 0 plane, in the mode planes of FIGS. 13 (b) to (e), a value of '0' corresponding to macroblocks having a value of 1 in the mode 0 plane is 1. Remove them, and create the first modified mode planes. Thereafter, run length coding is performed on the first modified mode 1 plane, that is, the modified mode 1 plane shown in FIG.

단계 1530에서는 변형된 모드 1 플레인에 대한 런 렝스 부호화가 수행된 후, 1차 변형된 모드 2, 3, 및 4 플레인들에서, 모드 1 플레인에서의 값이 1인 매크로블록들에 대응하는 '0'값들을 제거하고, 2차 변형된 모드 플레인들을 생성한다. 이후, 2차 변형된 모드 2 플레인, 즉 도 14(b)에 도시된 변형된 모드 2 플레인에 대해 런 렝스 부호화를 수행한다.In step 1530, after run length coding is performed on the modified mode 1 plane, '0' corresponding to macroblocks having a value of 1 in the mode 1 plane is performed in the first, second, and third modified modes. Remove the values and create the second modified mode planes. Thereafter, run length coding is performed on the secondary modified mode 2 plane, that is, the modified mode 2 plane shown in FIG. 14B.

단계 1540에서는 변형된 모드 2 플레인에 대한 런 렝스 부호화가 수행된 후, 2차 변형된 모드 3 및 4 플레인들에서, 모드 2 플레인에서의 값이 1인 매크로블록들에 대응하는 '0'값들을 제거하고, 3차 변형된 모드 플레인들을 생성한다. 이후, 3차 변형된 모드 3 플레인, 즉 도 14(c)에 도시된 변형된 모드 3 플레인에 대해 런 렝스 부호화를 수행한다.In step 1540, after run length coding is performed on the modified mode 2 plane, '0' values corresponding to macroblocks having a value of 1 in the mode 2 plane are generated in the 2nd modified mode 3 and 4 planes. Remove and create third-order modified mode planes. Then, run length coding is performed on the third-order modified mode 3 plane, that is, the modified mode 3 plane shown in FIG. 14C.

단계 1550에서는 변형된 모드 3 플레인에 대한 런 렝스 부호화가 수행된 후, 3차 변형된 모드 4 플레인에서, 모드 3 플레인에서의 값이 1인 값들을 제거하고, 4 차 변형된 모드 4 플레인을 생성한다. 이후, 4차 변형된 모드 4 플레인, 즉 도 14(d)에 도시된 변형된 모드 3 플레인에 대해 런 렝스 부호화를 수행한다. 선택적으로, 마지막 모드 플레인에서의 값들은 모두 '1' 값을 가지기 때문에, 변형된 모드 4 플레인에 정보가 없더라도 나머지 변형된 모드에서의 정보 만으로 원래 모드 플레인들을 복원하는 것이 가능하기 때문에, 변형된 모드 4 플레인에 대해서는 별도의 압축 부호화를 수행하지 않는 것도 가능하다. 또한, 선택적으로 단계 1550을 수행하지 않고 스킵하는 것도 가능하다. In step 1550, after run length coding is performed on the modified mode 3 plane, in the third-order modified mode 4 plane, values having a value of 1 in the mode 3 plane are removed and a fourth-order modified mode 4 plane is generated. do. Thereafter, run length coding is performed on the fourth-order modified mode 4 plane, that is, the modified mode 3 plane shown in FIG. 14 (d). Optionally, since the values in the last mode plane all have a value of '1', it is possible to restore the original mode planes only with information in the remaining modified modes, even if there is no information in the modified mode 4 planes. It is also possible not to perform separate compression coding for four planes. It is also possible to optionally skip without performing step 1550.

선택적으로, 변형된 모드 플레인들을 본 실시예에서와 다른 순서로 생성하는 것도 가능하다.Alternatively, it is also possible to create modified mode planes in a different order than in this embodiment.

단계 1510 내지 단계 1550을 수행한 후, 런 렝스 부호화된 인터 프리딕션 정보를 비트 스트림의 픽쳐 헤더에 삽입하여 전송한다.After performing steps 1510 to 1550, the run length encoded interprediction information is inserted into the picture header of the bit stream and transmitted.

이하에서는, 도 7을 참조하여, 본 발명의 또 다른 실시예에 따른 복호화 장치를 설명한다.Hereinafter, a decoding apparatus according to another embodiment of the present invention will be described with reference to FIG. 7.

부호화된 비트 스트림이 복호화 장치에 입력되면, 엔트로피 디코딩, 재정렬, 역변환을 거쳐 색차 성분 역변환부(708)에 입력된다. 입력된 데이터가 휘도 성분인 경우에는 바이 패스시키고, 색차성분인 경우에는, 색차성분 역변환부(710)로 입력한다.When the encoded bit stream is input to the decoding apparatus, it is input to the color difference component inverse transform unit 708 through entropy decoding, reordering, and inverse transform. When the input data is a luminance component, the input signal is bypassed. When the input data is a luminance component, the input data is input to the color difference component inverse converter 710.

인터 프리딕션 모드 결정부(도시되지 않음)는 입력된 비트스트림의 픽쳐 헤더로부터 추출된, 런 렝스 부호화된 모드 플레인들을 복원하고, 모드 플레인 0부터 차례로 복원한 후, 도 12에 도시된 픽쳐 단위의 인터 프리딕션 모드 테이블을 생성 하고, 이에 기초하여 각각의 매크로블록 단위로 적용된 인터 프리딕션 모드를 결정하여, 색차 성분 역변환부(710)로 입력한다.The interprediction mode determiner (not shown) reconstructs the run length coded mode planes extracted from the picture header of the input bitstream, reconstructs them in order from the mode plane 0, and then, in the picture unit of FIG. 12. The inter-prediction mode table is generated, and the inter-prediction mode applied in units of macroblocks is determined based on the inter-prediction mode table, and input to the chrominance component inverse transform unit 710.

색차 성분 역변환부(710)는 결정된 인터 프리딕션 모드 정보를 이용하여, 복호화된 변환값들로부터 Cb, Cr 성분을 만든다. The color difference component inverse transform unit 710 generates Cb and Cr components from the decoded transform values using the determined interprediction mode information.

도 16은 본 발명의 일실시예에 따른 복호화 방법의 흐름도이다.16 is a flowchart of a decoding method according to an embodiment of the present invention.

엔트로피 디코딩 단계(S1610), 역 양자화 단계(S1620) 및 역변환 단계(S1630)를 거친 후, 복호화된 도 13에 도시된 변환 모드 플레인들로부터 원래의 모드 플레인들을 복원하고, 이로부터 소정 단위, 예를 들어 픽쳐 단위로 각각의 매크로블록들에 대해 적용된 인터 프리딕션 모드를 나타내는 인터 프리딕션 모드 테이블을 생성한다. After the entropy decoding step S1610, the inverse quantization step S1620, and the inverse transform step S1630, the original mode planes are recovered from the decoded transform mode planes shown in FIG. For example, an interprediction mode table indicating an interprediction mode applied to each macroblock in a picture unit is generated.

생성된 인터 프리딕션 모드 테이블로부터, 해당 매크로블록에 대해 적용된 인터 프리딕션 모드를 결정하고, 결정된 인터 프리딕션 모드에 따라 복호화된 변환값들을 역변환하여 Cb, Cr 성분을 계산한다 (S1640). 그리고 움직임 보상을 통해 복호화한다(S1650). 인트라 프리딕션의 경우에는 움직임 보상 단계(S1650)는 생략된다.From the generated inter-prediction mode table, the inter-prediction mode applied to the macroblock is determined, and Cb and Cr components are calculated by inversely transforming the decoded transform values according to the determined inter-prediction mode (S1640). And it decodes through motion compensation (S1650). In the case of intra prediction, the motion compensation step S1650 is omitted.

한편, 전술한 부호화 및 복호화 방법은 컴퓨터 프로그램으로 작성 가능하다. 상기 프로그램을 구성하는 코드들 및 코드 세그먼트들은 당해 분야의 컴퓨터 프로그래머에 의하여 용이하게 추론될 수 있다. 또한, 상기 프로그램은 컴퓨터가 읽을 수 있는 정보저장매체(computer readable media)에 저장되고, 컴퓨터에 의하여 읽혀지고 실행됨으로써 부호화 및 복호화 방법을 구현한다. 상기 정보저장매체는 자 기 기록매체, 광 기록매체, 및 캐리어 웨이브 매체를 포함한다.On the other hand, the above-described encoding and decoding method can be created by a computer program. Codes and code segments constituting the program can be easily inferred by a computer programmer in the art. In addition, the program is stored in a computer readable media, and read and executed by a computer to implement an encoding and decoding method. The information storage medium includes a magnetic recording medium, an optical recording medium, and a carrier wave medium.

이제까지 본 발명에 대하여 그 바람직한 실시예들을 중심으로 살펴보았다. 본 발명이 속하는 기술 분야에서 통상의 지식을 가진 자는 본 발명이 본 발명의 본질적인 특성에서 벗어나지 않는 범위에서 변형된 형태로 구현될 수 있음을 이해할 수 있을 것이다. 그러므로 개시된 실시예들은 한정적인 관점이 아니라 설명적인 관점에서 고려되어야 한다. 본 발명의 범위는 전술한 설명이 아니라 특허청구범위에 나타나 있으며, 그와 동등한 범위 내에 있는 모든 차이점은 본 발명에 포함된 것으로 해석되어야 할 것이다.So far I looked at the center of the preferred embodiment for the present invention. Those skilled in the art will appreciate that the present invention can be implemented in a modified form without departing from the essential features of the present invention. Therefore, the disclosed embodiments should be considered in descriptive sense only and not for purposes of limitation. The scope of the present invention is shown in the claims rather than the foregoing description, and all differences within the scope will be construed as being included in the present invention.

전술한 바와 같이 본 발명에 따르면, 동영상의 색차 성분간의 상관관계를 찾아 불필요한 성분을 제거함으로써, 동영상의 압축률을 높이는 효과가 있다. 또한, 상관관계를 찾아 불필요한 성분 제거를 위해 Cb, Cr 성분의 조합을 구성하는 계수 정보를 run length 부호화 방법으로 부호화함으로써 부호화에 소요되는 비트 수를 크게 줄인다. 또한, 각각의 인터 프리딕션 모드 별로 Cb 및 Cr 성분을 변환하고, 변환을 위해 적용된 모드를 나타내는 정보를 각각의 모드 플레인으로 분할하고 이를 런 렝스 부호화함으로써 보다 효율적인 런 렝스 부호화가 가능하다는 효과가 있다.As described above, according to the present invention, the correlation between the color difference components of the video is found and unnecessary components are removed, thereby increasing the compression ratio of the video. In addition, the number of bits required for encoding is greatly reduced by encoding coefficient information constituting a combination of Cb and Cr components using a run length coding method to find correlation and remove unnecessary components. In addition, by converting the Cb and Cr components for each inter-prediction mode, by splitting the information indicating the mode applied for the conversion into each mode plane and run length coding, there is an effect that more efficient run length coding is possible.

Claims (84)

컬러 영상의 색차성분인 Cb, Cr 값을, 미리 정해진 계수들로 가중치를 주고 조합하여 복수개의 변환값으로 만들고, 만들어진 변환값들 중 소정의 코스트 함수에 의해 계산된 코스트가 가장 작은 두 개의 변환값을 선택하여 출력하는 색차성분 변환부; 및Cb and Cr values, which are color difference components of a color image, are weighted and combined with predetermined coefficients to form a plurality of transformed values, and two transformed values having the smallest cost calculated by a predetermined cost function among the generated transformed values A color difference component converter for selecting and outputting the color difference component; And 상기 선택된 변환값에 대해 엔트로피 부호화를 수행하는 엔트로피 코딩부를 포함하는 것을 특징으로 하는 부호화 장치.And an entropy coding unit for performing entropy encoding on the selected transform value. 제1항에 있어서, The method of claim 1, 상기 색차성분 Cb, Cr은 변환 및 양자화가 이미 수행된 것임을 특징으로 하는 부호화 장치. And the chrominance components Cb and Cr have already been transformed and quantized. 제1항에 있어서,The method of claim 1, 상기 색차성분 Cb, Cr이 변환 및 양자화가 수행되기 이전의 값이면, 상기 색차성분 변환부에서 출력된 변환값에 대해 변환 및 양자화를 수행하는 변환 및 양자화부를 더 포함하는 것을 특징으로 하는 부호화 장치.And a transformation and quantization unit configured to perform transformation and quantization on the transform value output from the chrominance component conversion unit if the chrominance components Cb and Cr are values before the transformation and quantization are performed. 제1항에 있어서,The method of claim 1, 인터 프리딕션을 수행하기 위한 움직임 추정 및 보상부를 더 포함하는 것을 특징으로 하는 부호화 장치.And a motion estimation and compensation unit for performing interprediction. 제1항에 있어서,The method of claim 1, 상기 색차성분 변환부는 a x Cb + b x Cr + c 에 의해 색차성분의 변환값을 계산하며, 상기 a, b, c 값은 상수이고 복수개의 (a, b, c) 쌍이 사용자에 의해 미리 정해져 있는 것을 특징으로 하는 부호화 장치.The color difference component converting unit calculates a conversion value of the color difference component by ax Cb + bx Cr + c, wherein the a, b, c values are constants, and a plurality of (a, b, c) pairs are predetermined by the user. An encoding device characterized by the above-mentioned. 제1항에 있어서,The method of claim 1, 상기 소정의 코스트 함수는 RDcost, SAD, SATD, SSA 및 MAD를 포함하는 것을 특징으로 하는 부호화 장치.And the predetermined cost function comprises RDcost, SAD, SATD, SSA and MAD. 제1항에 있어서, 상기 색차성분 변환부는The method of claim 1, wherein the color difference component conversion unit 상기 색차성분 Cb, Cr이 입력되면 복수개의 (a, b, c) 계수들로 가중치를 주고 조합하여 만들어질 수 있는 모든 경우의 변환값을 계산하는 변환값 계산부;A conversion value calculator which calculates a conversion value for all the cases in which the color difference components Cb and Cr are input and weighted and combined with a plurality of (a, b, c) coefficients; 상기 변환된 변환값에 대하여 소정의 코스트 함수에 의해 코스트를 계산하는 코스트 계산부; 및A cost calculator configured to calculate a cost with respect to the converted value by a predetermined cost function; And 상기 계산된 코스트 값들 중에서 그 값이 가장 작은 두 개의 경우에서의 변환값을 선택하여 출력하는 판단부를 포함하는 것을 특징으로 하는 부호화 장치.And a determination unit which selects and outputs a transform value in two cases having the smallest value among the calculated cost values. 제1항에 있어서, 상기 색차성분 변환부는The method of claim 1, wherein the color difference component conversion unit 코스트가 가장 작은 두 개의 변환값에 대응되는 (a, b, c) 계수에 관한 정보를 run length 부호화 방법에 따라 부호화하는 것을 특징으로 하는 부호화 장치.And encoding information about the coefficients (a, b, c) corresponding to two transform values having the smallest cost according to a run length encoding method. (a) 컬러영상의 색차성분인 Cb, Cr 값을, 미리 정해진 계수들로 가중치를 주고 조합하여 복수개의 변환값으로 만들고, 만들어진 변환값들 중 소정의 코스트 함수에 의해 계산된 코스트가 가장 작은 두 개의 변환값을 선택하여 출력하는 단계; 및(a) Cb and Cr values, which are color difference components of a color image, are weighted and combined with predetermined coefficients to form a plurality of transformed values, and two of the transformed transformed values having the smallest cost calculated by a predetermined cost function Selecting and outputting two conversion values; And (b) 상기 선택된 변환값에 대해 엔트로피 부호화를 수행하는 엔트로피 코딩단계를 포함하는 것을 특징으로 하는 부호화 방법.(b) an entropy coding step of performing entropy coding on the selected transform value. 제9항에 있어서, The method of claim 9, 상기 색차성분 Cb, Cr은 변환 및 양자화가 이미 수행된 것임을 특징으로 하는 부호화 방법. And the chrominance components Cb and Cr have already been transformed and quantized. 제9항에 있어서,The method of claim 9, (b0) 상기 색차성분 Cb, Cr이 변환 및 양자화가 수행되기 이전의 값이면, 상기 (a) 단계에서 출력된 변환값에 대해 변환 및 양자화를 수행하는 변환 및 양자화 단계를 더 포함하는 것을 특징으로 하는 부호화 방법.(b0) if the chrominance components Cb and Cr are values before transform and quantization are performed, further comprising a transform and quantization step of performing transform and quantization on the transform value output in step (a). Coding method. 제9항에 있어서, (a) 단계 이전에The method of claim 9, further comprising: 인터 프리딕션을 수행하기 위한 움직임 추정 및 보상을 수행하는 단계를 더 포함하는 것을 특징으로 하는 부호화 방법.And performing motion estimation and compensation for performing interprediction. 제9항에 있어서,The method of claim 9, 상기 (a) 단계에서 변환값은 a x Cb + b x Cr + c 에 의해 색차성분의 변환값이 계산되며, 상기 a, b, c 값은 상수이고 복수개의 (a, b, c) 쌍이 사용자에 의해 미리 정해져 있는 것을 특징으로 하는 부호화 방법.In the step (a), the conversion value of the color difference component is calculated by ax Cb + bx Cr + c. The a, b, and c values are constants, and a plurality of (a, b, c) pairs are determined by the user. A coding method characterized in that predetermined. 제9항에 있어서,The method of claim 9, 상기 소정의 코스트 함수는 RDcost, SAD, SATD, SSD 및 MAD를 포함하는 것을 특징으로 하는 부호화 방법.And the predetermined cost function comprises RDcost, SAD, SATD, SSD and MAD. 제9항에 있어서, 상기 (a) 단계는The method of claim 9, wherein step (a) (a1) 상기 색차성분 Cb, Cr이 입력되면 복수개의 (a, b, c) 계수들로 가중치를 주고 조합하여 만들어질 수 있는 모든 경우의 변환값을 계산하는 단계;(a1) calculating conversion values in all cases that may be generated by weighting and combining a plurality of (a, b, c) coefficients when the color difference components Cb and Cr are input; (a2) 상기 변환된 변환값에 대하여 소정의 코스트 함수에 의해 코스트를 계산하는 코스트 계산단계; 및(a2) a cost calculation step of calculating a cost with respect to the converted conversion value by a predetermined cost function; And (a3) 상기 계산된 코스트 값들 중에서 그 값이 가장 작은 두 개의 경우에서의 변환값을 선택하여 출력하는 단계를 포함하는 것을 특징으로 하는 부호화 방법.and (a3) selecting and outputting a transform value in two cases having the smallest value among the calculated cost values. 제9항에 있어서, 상기 (b) 단계는The method of claim 9, wherein step (b) 상기 (a) 단계에 의해 정해진 코스트가 가장 작은 두 개의 변환값에 대응되는 (a, b, c) 계수에 관한 정보를 run length 부호화 방법에 따라 부호화하는 것을 특징으로 하는 부호화 방법.And encoding information about the coefficients (a, b, c) corresponding to the two smallest transformed values determined by the step (a) according to the run length encoding method. 부호화된 비트 스트림을 엔트로피 복호화하는 엔트로피 디코딩부; 및An entropy decoding unit for entropy decoding the encoded bit stream; And 상기 디코딩된 데이터가 휘도 성분인 경우에는 바이 패스시키고, 색차성분인 경우에는, Cb 및 Cr 성분에 가중치를 주고 조합하는데 사용된 계수들에 관한 정보를 추출하여 원래의 색차 성분 Cb 및 Cr 성분을 만들어 출력하는 색차성분 역변환부를 포함하는 것을 특징으로 하는 복호화 장치.If the decoded data is a luminance component, bypass it, and in the case of a chrominance component, information about coefficients used to weight and combine the Cb and Cr components is extracted to form an original chrominance component Cb and Cr components. And a color difference component inverse transform unit to be output. 제17항에 있어서,The method of claim 17, 상기 엔트로피 디코딩된 데이터에 대해 역양자화 및 역변환을 수행하는 역양자화 및 역변환부를 더 포함하는 것을 특징으로 하는 복호화 장치.And an inverse quantization and inverse transform unit for performing inverse quantization and inverse transformation on the entropy decoded data. 제17항에 있어서,The method of claim 17, 인터 프리딕션을 수행하기 위한 움직임 보상부를 더 포함하는 것을 특징으로 하는 복호화 장치.And a motion compensator for performing interprediction. 제17항에 있어서, 상기 색차성분 역변환부는18. The apparatus of claim 17, wherein the color difference component inverse transform unit 어떠한 (a, b, c) 계수쌍을 사용하여 색차 성분이 부호화되었는가 하는 정보로써, run length 부호화 방법에 따라 부호화되어 전송된 정보를 추출하여 Cb 및 Cr 성분을 계산하는 것을 특징으로 하는 복호화 장치.16. A decoding apparatus comprising information on which (a, b, c) coefficient pairs are encoded to calculate Cb and Cr components by extracting transmitted and encoded information according to a run length encoding method. (a) 부호화된 비트 스트림을 엔트로피 복호화하는 엔트로피 디코딩 단계; 및(a) an entropy decoding step of entropy decoding the encoded bit stream; And (b) 상기 디코딩된 데이터가 휘도 성분인 경우에는 바이 패스시키고, 색차성분인 경우에는, Cb 및 Cr 성분에 가중치를 주고 조합하는데 사용된 계수들에 관한 정보를 추출하여 색차 성분 Cb 및 Cr 성분을 만들어 출력하는 단계를 포함하는 것을 특징으로 하는 복호화 방법.(b) When the decoded data is a luminance component, bypasses it, and in the case of a chrominance component, extracts information about coefficients used to weight and combine the Cb and Cr components to obtain the chrominance components Cb and Cr components. And generating and outputting. 제21항에 있어서,The method of claim 21, (b0) 상기 엔트로피 디코딩된 데이터에 대해 역양자화 및 역변환을 수행하는 단계를 더 포함하는 것을 특징으로 하는 복호화 방법.(b0) performing inverse quantization and inverse transformation on the entropy decoded data. 제21항에 있어서,The method of claim 21, (c) 인터 프리딕션을 수행하기 위한 움직임 보상단계를 더 포함하는 것을 특징으로 하는 복호화 방법.(c) a motion compensation step for performing interprediction. 제21항에 있어서, (b) 단계는The method of claim 21, wherein step (b) 어떠한 (a, b, c) 계수쌍을 사용하여 색차 성분이 부호화되었는가 하는 정보 로써, run length 부호화 방법에 따라 부호화되어 전송된 정보를 이용하여 Cb 및 Cr 성분을 계산하는 것을 특징으로 하는 복호화 방법.A method of decoding a Cb and Cr component using information transmitted by encoding according to a run length coding method using information on which (a, b, c) coefficient pairs are encoded. 컬러 영상의 부호화 장치에 있어서, In the encoding apparatus of a color image, 컬러 영상의 색차 성분을 2 이상의 인터 프리딕션 모드 별로 변환하고, 상기 모드 별로 변환된 값들을, 소정의 코스트 함수를 사용하여 인터 프리딕션 모드 별로 코스트를 계산하고, 상기 계산 결과에 따라 상기 2 이상의 인터 프리딕션 모드 중 하나를 선택하여, 선택된 모드의 변환값을 출력하는 색차 성분 변환부; 및The color difference component of the color image is converted for each of two or more inter prediction modes, and the values converted for each mode are calculated for each inter prediction mode using a predetermined cost function, and the two or more inters according to the calculation result. A color difference component converter for selecting one of the predicate modes and outputting a converted value of the selected mode; And 상기 출력된 변환값에 대해 엔트로피 부호화를 수행하는 엔트로피 부호화부를 포함하는 것을 특징으로 하는 부호화 장치.And an entropy encoder that performs entropy encoding on the output transform value. 제25항에 있어서, 상기 인터 프리딕션 모드의 선택은 소정의 블록 단위로 수행되며, 상기 소정의 블록에 대해 선택된 인터 프리딕션 모드 정보는 복수개의 블록으로 이루어진 그룹 단위로 부호화되는 것을 특징으로 하는 부호화 장치.The encoding method according to claim 25, wherein the selection of the interprediction mode is performed in a predetermined block unit, and the interpretation mode information selected for the predetermined block is encoded in a group unit consisting of a plurality of blocks. Device. 제26항에 있어서, 소정의 그룹내의 복수개의 블록에 대한 인터 프리딕션 모드 정보를 각각의 모드 별로 분류한 복수개의 모드 플레인을 생성하고, 상기 생성된 복수개의 모드 플레인을 부호화하는 것을 특징으로 하는 부호화 장치. 27. The encoding method according to claim 26, wherein a plurality of mode planes in which interprediction mode information of a plurality of blocks in a predetermined group are classified for each mode is generated, and the generated plurality of mode planes are encoded. Device. 제27항에 있어서, 상기 생성된 모드 플레인은, 상기 소정의 블록 별로, 현재 모드 플레인에 해당하는 인터 프리딕션 모드가 적용되었는지 여부를 나타내는 정보를 포함하는 것을 특징으로 하는 부호화 장치.The encoding apparatus of claim 27, wherein the generated mode plane includes information indicating whether an interprediction mode corresponding to a current mode plane is applied for each of the predetermined blocks. 제27항에 있어서, 소정의 모드 플레인은, 현재 모드 플레인에 해당하는 인터 프리딕션 모드가 적용된 블록에 대응하는 모드 정보는 '1'로, 현재 모드 플레인에 해당하는 인터 프리딕션 모드가 적용되지 않은 블록에 대응하는 모드 정보는 '0'으로 설정함으로써 얻어지는 것을 특징으로 하는 부호화 장치. 28. The method of claim 27, wherein the predetermined mode plane has mode information corresponding to the block to which the interprediction mode corresponding to the current mode plane is applied is '1', and the interprediction mode corresponding to the current mode plane is not applied. The encoding apparatus characterized in that the mode information corresponding to the block is obtained by setting to '0'. 제26항에 있어서, 소정의 그룹내의 복수개의 블록에 대한 인터 프리딕션 모드 정보를 각각의 모드 별로 분류한 복수개의 모드 플레인을 생성하고, 상기 생성된 복수개의 모드 플레인을 선정된 순서로 배열하고, 이전 모드 플레인의 모드 정보에 따라, 다음 모드 플레인의 정보를 변형하여, 변형된 모드 플레인을 부호화하는 것을 특징으로 하는 부호화 장치. 27. The method of claim 26, further comprising: generating a plurality of mode planes in which the interprediction mode information of a plurality of blocks in a predetermined group is classified for each mode, and arranging the generated plurality of mode planes in a predetermined order; And encoding the modified mode plane by modifying the information of the next mode plane according to the mode information of the previous mode plane. 제30항에 있어서, 상기 생성된 모드 플레인은, 상기 소정의 블록 별로, 현재 모드 플레인에 해당하는 인터 프리딕션 모드가 적용되었는지 여부를 나타내는 정보를 포함하며, 상기 모드 플레인의 정보의 변형은, 상기 이전 모드 플레인의 정보에 기초하여, 다음 모드 플레인의 정보 중 이전 모드 플레인의 인터 프리딕션 모드가 적용된 블록에 대한 정보를 삭제함으로써 이루어지는 것을 특징으로 하는 부호화 장치.The method of claim 30, wherein the generated mode plane includes information indicating whether or not an interprediction mode corresponding to a current mode plane has been applied for each of the predetermined blocks, wherein the modification of the information of the mode plane includes: And encoding information on the block to which the interprediction mode of the previous mode plane is applied among the information of the next mode plane based on the information of the previous mode plane. 제31항에 있어서, 소정의 모드 플레인은, 현재 모드 플레인에 해당하는 인터 프리딕션 모드가 적용된 블록에 대응하는 모드 정보는 '1'로, 현재 모드 플레인에 해당하는 인터 프리딕션 모드가 적용되지 않은 블록에 대응하는 모드 정보는 '0'으로 설정함으로써 얻어지는 것을 특징으로 하는 부호화 장치. 32. The method of claim 31, wherein the predetermined mode plane has mode information corresponding to a block to which the interprediction mode corresponding to the current mode plane is applied is '1', and the interprediction mode corresponding to the current mode plane is not applied. The encoding apparatus characterized in that the mode information corresponding to the block is obtained by setting to '0'. 제32항에 있어서, 상기 이전 모드에 따른 인터 프리딕션 모드가 적용된 블록에 대한 정보의 삭제는, 상기 이전 모드에 따른 인터 프리딕션 모드가 적용된 블록에 대한 정보를 '0'으로 설정함으로써 이루어지는 것을 특징으로 하는 부호화 장치.33. The method of claim 32, wherein the deleting of the information about the block to which the interprediction mode is applied according to the previous mode is performed by setting the information on the block to which the interprediction mode is applied according to the previous mode is set to '0'. An encoding device. 제26항에 있어서, 상기 소정의 블록은 매크로블록이며, 상기 그룹은 픽쳐 인 것을 특징으로 하는 부호화 장치.27. The encoding apparatus of claim 26, wherein the predetermined block is a macroblock, and the group is a picture. 제25항에 있어서, The method of claim 25, 상기 색차 성분은 Cb, Cr이며, 상기 색차 성분 Cb, Cr은 변환 및 양자화가 이미 수행된 것임을 특징으로 하는 부호화 장치. Wherein the chrominance components are Cb and Cr, and the chrominance components Cb and Cr have already been converted and quantized. 제25항에 있어서,The method of claim 25, 상기 색차 성분 Cb, Cr이 변환 및 양자화가 수행되기 이전의 값이면, 상기 색차 성분 변환부에서 출력된 변환값에 대해 변환 및 양자화를 수행하는 변환 및 양자화부를 더 포함하는 것을 특징으로 하는 부호화 장치.And a transformation and quantization unit configured to perform transformation and quantization on the transform value output from the chrominance component conversion unit if the chrominance components Cb and Cr are values before the transformation and quantization are performed. 제25항에 있어서,The method of claim 25, 인터 프리딕션을 수행하기 위한 움직임 추정 및 보상부를 더 포함하는 것을 특징으로 하는 부호화 장치.And a motion estimation and compensation unit for performing interprediction. 제25항에 있어서,The method of claim 25, 상기 소정의 코스트 함수는 RDcost, SAD, SATD, SSA 및 MAD를 포함하는 것을 특징으로 하는 부호화 장치.And the predetermined cost function comprises RDcost, SAD, SATD, SSA and MAD. 제25항에 있어서, 상기 색차 성분 변환부는The method of claim 25, wherein the color difference component conversion unit 2 이상의 인터 프리딕션 모드를 포함하는 인터 프리딕션 모드 테이블을 저장하는 인터 프리딕션 모드 테이블 저장부와;An inter-prediction mode table storage unit for storing an inter-prediction mode table including at least two inter-prediction modes; 컬러 영상의 색차성분인 Cb, Cr 값을, 상기 인터 프리딕션 모드 테이블에 기초하여 각각의 모드 별로 변환값을 계산하는 변환값 계산부와;A conversion value calculator configured to calculate Cb and Cr values, which are color difference components of a color image, for each mode based on the interprediction mode table; 상기 계산된 변환값 들 중, 소정의 코스트 함수에 의해 계산된 코스트가 가장 작은 인터 프리딕션 모드를 선택하는 모드 선택부를 포함하는 것을 특징으로 하는 부호화 장치.And a mode selection unit for selecting an interprediction mode having the smallest cost calculated by a predetermined cost function among the calculated conversion values. 제25항에 있어서,The method of claim 25, 상기 선택된 인터 프리딕션 모드 정보에 대해 런 렝스 부호화를 수행하는 런 렝스 부호화부를 더 포함하는 것을 특징으로 하는 부호화 장치.And a run length encoder configured to perform run length encoding on the selected interprediction mode information. 컬러 영상의 부호화 방법에 있어서, In the encoding method of a color image, 상기 컬러 영상의 색차 성분을 2 이상의 인터 프리딕션 모드 별로 변환하고, 상기 모드 별로 변환된 값들을, 소정의 코스트 함수를 사용하여 모드 별로 코스트를 계산하고, 상기 계산 결과에 따라 상기 2 이상의 인터 프리딕션 모드 중 하나를 선택하여, 선택된 모드의 변환값을 출력하는 단계와;The color difference component of the color image is converted for each of two or more interprediction modes, and the values converted for each mode are calculated for each mode using a predetermined cost function, and the two or more interpredictions are calculated according to the calculation result. Selecting one of the modes and outputting a conversion value of the selected mode; 상기 출력된 변환값에 대해 엔트로피 부호화를 수행하는 단계를 포함하는 것을 특징으로 하는 부호화 방법.And performing entropy encoding on the output transform value. 제41항에 있어서, 상기 인터 프리딕션 모드의 선택은 소정의 블록 단위로 수행되며, 상기 소정의 블록에 대해 선택된 인터 프리딕션 모드 정보는 복수개의 블록으로 이루어진 그룹 단위로 부호화되는 것을 특징으로 하는 부호화 방법.43. The method of claim 41, wherein the selection of the interprediction mode is performed in units of a predetermined block, and the interpretation mode information selected for the predetermined block is encoded in a group unit consisting of a plurality of blocks. Way. 제42항에 있어서, 소정의 그룹내의 복수개의 블록에 대한 인터 프리딕션 모드 정보를 각각의 모드 별로 분류한 복수개의 모드 플레인을 생성하고, 상기 생성된 복수개의 모드 플레인을 부호화하는 것을 특징으로 하는 부호화 방법. 43. The encoding method of claim 42, wherein a plurality of mode planes in which interprediction mode information of a plurality of blocks in a predetermined group are classified for each mode is generated, and the generated plurality of mode planes are encoded. Way. 제43항에 있어서, 상기 생성된 모드 플레인은, 상기 소정의 블록 별로, 현재 모드 플레인에 해당하는 인터 프리딕션 모드가 적용되었는지 여부를 나타내는 정보를 포함하는 것을 특징으로 하는 부호화 방법.The encoding method of claim 43, wherein the generated mode plane includes information indicating whether an interprediction mode corresponding to a current mode plane is applied for each of the predetermined blocks. 제43항에 있어서, 소정의 모드 플레인은, 현재 모드 플레인에 해당하는 인터 프리딕션 모드가 적용된 블록에 대응하는 모드 정보는 '1'로, 현재 모드 플레인에 해당하는 인터 프리딕션 모드가 적용되지 않은 블록에 대응하는 모드 정보는 '0'으로 설정함으로써 얻어지는 것을 특징으로 하는 부호화 방법. 44. The method of claim 43, wherein the predetermined mode plane has mode information corresponding to a block to which the interprediction mode corresponding to the current mode plane is applied is '1', and the interprediction mode corresponding to the current mode plane is not applied. Encoding method characterized in that the mode information corresponding to the block is obtained by setting to '0'. 제42항에 있어서, 소정의 그룹내의 복수개의 블록에 대한 인터 프리딕션 모드 정보를 각각의 모드 별로 분류한 복수개의 모드 플레인을 생성하고, 상기 생성된 복수개의 모드 플레인을 선정된 순서로 배열하고, 이전 모드 플레인의 모드 정보에 따라, 다음 모드 플레인의 정보를 변형하여, 변형된 모드 플레인을 부호화하는 것을 특징으로 하는 부호화 방법. 43. The method of claim 42, further comprising: generating a plurality of mode planes that classify interprediction mode information for a plurality of blocks in a predetermined group for each mode, and arranging the generated plurality of mode planes in a predetermined order; And encoding the modified mode plane by modifying the information of the next mode plane according to the mode information of the previous mode plane. 제46항에 있어서, 상기 생성된 모드 플레인은, 상기 소정의 블록 별로, 현재 모드 플레인에 해당하는 인터 프리딕션 모드가 적용되었는지 여부를 나타내는 정보를 포함하며, 상기 모드 플레인의 정보의 변형은, 상기 이전 모드 플레인의 정보에 기초하여, 다음 모드 플레인의 정보 중 이전 모드 플레인의 인터 프리딕션 모드가 적용된 블록에 대한 정보를 삭제함으로써 이루어지는 것을 특징으로 하는 부호화 방법.47. The method of claim 46, wherein the generated mode plane includes information indicating whether or not an interprediction mode corresponding to a current mode plane is applied for each of the predetermined blocks. And deleting information on a block to which the interprediction mode of the previous mode plane is applied among the information of the next mode plane based on the information of the previous mode plane. 제47항에 있어서, 소정의 모드 플레인은, 현재 모드 플레인에 해당하는 인터 프리딕션 모드가 적용된 블록에 대응하는 모드 정보는'1'로, 현재 모드 플레인에 해당하는 인터 프리딕션 모드가 적용되지 않은 블록에 대응하는 모드 정보는 '0'으로 설정함으로써 얻어지는 것을 특징으로 하는 부호화 방법. 48. The method of claim 47, wherein the predetermined mode plane, the mode information corresponding to the block to which the interprediction mode corresponding to the current mode plane is applied is '1', the interprediction mode corresponding to the current mode plane is not applied. Encoding method characterized in that the mode information corresponding to the block is obtained by setting to '0'. 제48항에 있어서, 상기 이전 모드에 따른 인터 프리딕션 모드가 적용된 블록에 대한 정보의 삭제는, 상기 이전 모드에 따른 인터 프리딕션 모드가 적용된 블록에 대한 정보를 '0'으로 설정함으로써 이루어지는 것을 특징으로 하는 부호화 방법.49. The method of claim 48, wherein the deleting of the information on the block to which the interprediction mode is applied according to the previous mode is performed by setting the information on the block to which the interprediction mode is applied according to the previous mode is set to '0'. An encoding method. 제42항에 있어서, 상기 소정의 블록은 매크로블록이며, 상기 그룹은 픽쳐 인 것을 특징으로 하는 부호화 방법.43. The encoding method according to claim 42, wherein the predetermined block is a macroblock and the group is a picture. 제41항에 있어서, The method of claim 41, wherein 상기 색차 성분은 Cb, Cr이며, 상기 색차 성분 Cb, Cr은 변환 및 양자화가 이미 수행된 것임을 특징으로 하는 부호화 방법. And the chrominance components are Cb and Cr, and the chrominance components Cb and Cr have already been converted and quantized. 제41항에 있어서,The method of claim 41, wherein 상기 색차 성분 Cb, Cr이 변환 및 양자화가 수행되기 이전의 값이면, 상기 색차 성분 변환부에서 출력된 변환값에 대해 변환 및 양자화를 수행하는 단계를 더 포함하는 것을 특징으로 하는 부호화 방법.And if the chrominance components Cb and Cr are values before transformation and quantization are performed, performing transformation and quantization on the transform values output from the chrominance component converter. 제41항에 있어서,The method of claim 41, wherein 인터 프리딕션을 수행하기 위한 움직임 추정 및 보상 단계를 더 포함하는 것을 특징으로 하는 부호화 방법.And a motion estimation and compensation step for performing interprediction. 제41항에 있어서,The method of claim 41, wherein 상기 소정의 코스트 함수는 RDcost, SAD, SATD, SSA 및 MAD를 포함하는 것을 특징으로 하는 부호화 방법.And the predetermined cost function comprises RDcost, SAD, SATD, SSA and MAD. 제41항에 있어서, 상기 부호화 방법은The method of claim 41, wherein the encoding method 컬러 영상의 색차성분인 Cb, Cr 값을, 각각의 모드 별로 변환값을 계산하는 단계와;Calculating conversion values of Cb and Cr, which are color difference components of the color image, for each mode; 상기 계산된 변환값 들 중, 소정의 코스트 함수에 의해 계산된 코스트가 가장 작은 인터 프리딕션 모드를 선택하는 단계를 더 포함하는 것을 특징으로 하는 부호화 방법.And selecting an interprediction mode having the smallest cost calculated by a predetermined cost function among the calculated transform values. 제41항에 있어서,The method of claim 41, wherein 상기 선택된 인터 프리딕션 모드 정보에 대해 런 렝스 부호화를 수행하는 단계를 더 포함하는 것을 특징으로 하는 부호화 방법.And performing run length coding on the selected interprediction mode information. 부호화된 컬러 영상의 복호화 장치에 있어서, In the decoding apparatus of the encoded color image, 입력된 비트 스트림을 엔트로피 복호화하는 엔트로피 복호화부; 및An entropy decoding unit for entropy decoding the input bit stream; And 상기 비트 스트림으로부터 추출된, 소정 크기의 현재 블록에 대해 적용된 인터 프리딕션 모드 정보에 기초하여, 원래의 색차 성분을 복원하는 색차 성분 역변환부를 포함하며, A chrominance component inverse transform unit for restoring an original chrominance component based on interprediction mode information applied to a current block having a predetermined size extracted from the bit stream, 상기 인터 프리딕션 모드 정보는 2 이상의 인터 프리딕션 모드들 중, 상기 현재 블록에 적용된 인터 프리딕션 모드를 나타내며, 상기 원래의 색차 성분은 현재 블록에 적용된 인터 프리딕션 모드에 대응하는 변환값으로부터 얻어지는 것을 특징으로 하는 복호화 장치. The inter-prediction mode information indicates an inter-prediction mode applied to the current block among two or more inter-prediction modes, and wherein the original color difference component is obtained from a transform value corresponding to the inter-prediction mode applied to the current block. Decoding apparatus characterized by. 제57항에 있어서, 상기 비트 스트림으로부터 추출된 인터 프리딕션 모드 정보는, 복수개의 블록에 대한 인터 프리딕션 모드 정보를 각각의 모드 별로 분류하여 생성한 복수개의 모드 플레인 인 것을 특징으로 하는 복호화 장치. 58. The decoding apparatus of claim 57, wherein the interprediction mode information extracted from the bit stream is a plurality of mode planes generated by classifying interprediction mode information on a plurality of blocks for each mode. 제58항에 있어서, The method of claim 58, 상기 생성된 모드 플레인은, 상기 소정의 블록 별로, 현재 모드 플레인에 해당하는 인터 프리딕션 모드가 적용되었는지 여부를 나타내는 정보를 포함하는 것을 특징으로 하는 복호화 장치.The generated mode plane includes, for each of the predetermined blocks, information indicating whether an interprediction mode corresponding to a current mode plane is applied. 제58항에 있어서, The method of claim 58, 소정의 모드 플레인은, 현재 모드 플레인에 해당하는 인터 프리딕션 모드가 적용된 블록에 대응하는 모드 정보는 '1'로, 현재 모드 플레인에 해당하는 인터 프리딕션 모드가 적용되지 않은 블록에 대응하는 모드 정보는 '0'으로 설정함으로써 얻어지는 것을 특징으로 하는 복호화 장치. In the predetermined mode plane, the mode information corresponding to the block to which the interprediction mode corresponding to the current mode plane is applied is '1', and the mode information corresponding to the block to which the interprediction mode corresponding to the current mode plane is not applied. Is obtained by setting to '0'. 제58항에 있어서, The method of claim 58, 상기 비트 스트림으로부터 추출된 인터 프리딕션 모드 정보는, 소정의 그룹내의 복수개의 블록에 대한 인터 프리딕션 모드 정보를 각각의 모드 별로 분류하여 생성한 복수개의 모드 플레인을, 선정된 순서로 배열하고, 이전 모드 플레인의 모드 정보에 따라, 다음 모드 플레인의 정보를 변형하여 생성된, 변형된 모드 플레인 것을 특징으로 하는 복호화 장치. The interprediction mode information extracted from the bit stream includes a plurality of mode planes generated by classifying interprediction mode information for a plurality of blocks in a predetermined group for each mode, And a modified mode plane generated by modifying information of a next mode plane according to the mode information of the mode plane. 제61항에 있어서, 62. The method of claim 61, 상기 생성된 모드 플레인은, 상기 소정의 블록 별로, 현재 모드 플레인에 해당하는 인터 프리딕션 모드가 적용되었는지 여부를 나타내는 정보를 포함하며, 상기 모드 플레인의 정보의 변형은, 상기 이전 모드 플레인의 정보에 기초하여, 다음 모드 플레인의 정보 중 이전 모드 플레인의 인터 프리딕션 모드가 적용된 블록에 대한 정보를 삭제함으로써 이루어지며,The generated mode plane includes information indicating whether or not an interprediction mode corresponding to a current mode plane is applied for each of the predetermined blocks, and the modification of the information of the mode plane is based on the information of the previous mode plane. Based on the information on a block to which the interprediction mode of the previous mode plane is applied among the information of the next mode plane, 상기 복호화 장치는 상기 변형된 모드 플레인들을 선정된 순서에 따라 차례로 복원함으로써, 원래의 모드 플레인을 복원하는 것을 특징으로 하는 복호화 장치.And the decoding apparatus restores the original mode plane by sequentially reconstructing the modified mode planes in a predetermined order. 제61항에 있어서, 62. The method of claim 61, 소정의 모드 플레인은, 현재 모드 플레인에 해당하는 인터 프리딕션 모드가 적용된 블록에 대응하는 모드 정보는'1'로, 현재 모드 플레인에 해당하는 인터 프리딕션 모드가 적용되지 않은 블록에 대응하는 모드 정보는 '0'으로 설정함으로써 얻어지는 것을 특징으로 하는 복호화 장치. In the predetermined mode plane, the mode information corresponding to the block to which the interprediction mode corresponding to the current mode plane is applied is '1', and the mode information corresponding to the block to which the interprediction mode corresponding to the current mode plane is not applied. Is obtained by setting to '0'. 제63항에 있어서, The method of claim 63, wherein 상기 이전 모드에 따른 인터 프리딕션 모드가 적용된 블록에 대한 정보의 삭제는, 상기 이전 모드에 따른 인터 프리딕션 모드가 적용된 블록에 대한 정보를 '0'으로 설정함으로써 이루어지는 것을 특징으로 하는 복호화 장치.The deletion of the information on the block to which the interprediction mode is applied according to the previous mode is performed by setting the information on the block to which the interprediction mode is applied according to the previous mode is set to '0'. 제58항에 있어서, The method of claim 58, 상기 소정의 크기의 블록은 매크로블록이며, 상기 모드 플레인은 픽쳐 단위의 매크로블록에 대한 인터 프리딕션 모드 정보를 포함하는 것을 특징으로 하는 복호화 장치.The block having a predetermined size is a macroblock, and the mode plane includes interprediction mode information for a macroblock in a picture unit. 제57항에 있어서, The method of claim 57, 상기 색차 성분은 Cb, Cr 인 것을 특징으로 하는 복호화 장치. The chrominance component is Cb, Cr. 제57항에 있어서,The method of claim 57, 상기 엔트로피 디코딩된 데이터에 대해 역양자화 및 역변환을 수행하는 역양자화 및 역변환부를 더 포함하는 것을 특징으로 하는 복호화 장치.And an inverse quantization and inverse transform unit for performing inverse quantization and inverse transformation on the entropy decoded data. 제57항에 있어서,The method of claim 57, 인터 프리딕션을 수행하기 위한 움직임 보상부를 더 포함하는 것을 특징으로 하는 복호화 장치.And a motion compensator for performing interprediction. 제58항에 있어서, 상기 복호화 장치는 런 렝스 부호화 방법에 따라 부호화되어 전송된 인터 프리딕션 모드 정보를 추출하여, 이에 기초하여 색차 성분을 계산하는 것을 특징으로 하는 복호화 장치.59. The decoding apparatus of claim 58, wherein the decoding apparatus extracts interprediction mode information encoded and transmitted according to a run length coding method, and calculates a color difference component based on the extracted information. 부호화된 컬러 영상의 복호화 방법에 있어서, In the decoding method of the encoded color image, 입력된 비트 스트림을 엔트로피 복호화하는 단계와;Entropy decoding the input bit stream; 상기 비트 스트림으로부터 추출된, 소정 크기의 현재 블록에 대해 적용된 인터 프리딕션 모드 정보에 기초하여, 원래의 색차 성분을 복원하는 단계를 포함하 며,Restoring an original chrominance component based on the interprediction mode information applied to the current block of a predetermined size extracted from the bit stream, 상기 인터 프리딕션 모드 정보는 2 이상의 인터 프리딕션 모드들 중, 상기 현재 블록에 적용된 인터 프리딕션 모드를 나타내며, 상기 원래의 색차 성분은 현재 블록에 적용된 인터 프리딕션 모드에 대응하는 변환값으로부터 얻어지는 것을 특징으로 하는 복호화 방법. The inter-prediction mode information indicates an inter-prediction mode applied to the current block among two or more inter-prediction modes, and wherein the original color difference component is obtained from a transform value corresponding to the inter-prediction mode applied to the current block. A decoding method characterized by the above-mentioned. 제70항에 있어서, The method of claim 70, 상기 비트 스트림으로부터 추출된 인터 프리딕션 모드 정보는, 복수개의 블록에 대한 인터 프리딕션 모드 정보를 각각의 모드 별로 분류하여 생성한 복수개의 모드 플레인 인 것을 특징으로 하는 복호화 방법. And the interprediction mode information extracted from the bit stream is a plurality of mode planes generated by classifying interprediction mode information of a plurality of blocks for each mode. 제71항에 있어서, The method of claim 71, wherein 상기 생성된 모드 플레인은, 상기 소정의 블록 별로, 현재 모드 플레인에 해당하는 인터 프리딕션 모드가 적용되었는지 여부를 나타내는 정보를 포함하는 것을 특징으로 하는 복호화 방법.The generated mode plane includes, for each of the predetermined blocks, information indicating whether an interprediction mode corresponding to a current mode plane is applied. 제71항에 있어서, The method of claim 71, wherein 소정의 모드 플레인은, 현재 모드 플레인에 해당하는 인터 프리딕션 모드가 적용된 블록에 대응하는 모드 정보는 '1'로, 현재 모드 플레인에 해당하는 인터 프리딕션 모드가 적용되지 않은 블록에 대응하는 모드 정보는 '0'으로 설정함으로써 얻어지는 것을 특징으로 하는 복호화 방법. In the predetermined mode plane, the mode information corresponding to the block to which the interprediction mode corresponding to the current mode plane is applied is '1', and the mode information corresponding to the block to which the interprediction mode corresponding to the current mode plane is not applied. Is obtained by setting to '0'. 제71항에 있어서, The method of claim 71, wherein 상기 비트 스트림으로부터 추출된 인터 프리딕션 모드 정보는, 소정의 그룹내의 복수개의 블록에 대한 인터 프리딕션 모드 정보를 각각의 모드 별로 분류하여 생성한 복수개의 모드 플레인을, 선정된 순서로 배열하고, 이전 모드 플레인의 모드 정보에 따라, 다음 모드 플레인의 정보를 변형하여 생성된, 변형된 모드 플레인 것을 특징으로 하는 복호화 방법. The interprediction mode information extracted from the bit stream includes a plurality of mode planes generated by classifying interprediction mode information for a plurality of blocks in a predetermined group for each mode, And a modified mode plane generated by modifying information of a next mode plane according to the mode information of the mode plane. 제74항에 있어서, The method of claim 74, wherein 상기 생성된 모드 플레인은, 상기 소정의 블록 별로, 현재 모드 플레인에 해당하는 인터 프리딕션 모드가 적용되었는지 여부를 나타내는 정보를 포함하며, 상기 모드 플레인의 정보의 변형은, 상기 이전 모드 플레인의 정보에 기초하여, 다음 모드 플레인의 정보 중 이전 모드 플레인의 인터 프리딕션 모드가 적용된 블록에 대한 정보를 삭제함으로써 이루어지며,The generated mode plane includes information indicating whether or not an interprediction mode corresponding to a current mode plane is applied for each of the predetermined blocks, and the modification of the information of the mode plane is based on the information of the previous mode plane. Based on the information on a block to which the interprediction mode of the previous mode plane is applied among the information of the next mode plane, 상기 복호화 장치는 상기 변형된 모드 플레인들을 선정된 순서에 따라 차례로 복원함으로써, 원래의 모드 플레인을 복원하는 것을 특징으로 하는 복호화 방법.And the decoding apparatus restores the original mode plane by sequentially reconstructing the modified mode planes in a predetermined order. 제75항에 있어서, 76. The method of claim 75, 소정의 모드 플레인은, 현재 모드 플레인에 해당하는 인터 프리딕션 모드가 적용된 블록에 대응하는 모드 정보는'1'로, 현재 모드 플레인에 해당하는 인터 프리딕션 모드가 적용되지 않은 블록에 대응하는 모드 정보는 '0'으로 설정함으로써 얻어지는 것을 특징으로 하는 복호화 방법. In the predetermined mode plane, the mode information corresponding to the block to which the interprediction mode corresponding to the current mode plane is applied is '1', and the mode information corresponding to the block to which the interprediction mode corresponding to the current mode plane is not applied. Is obtained by setting to '0'. 제76항에 있어서, 77. The method of claim 76, 상기 이전 모드에 따른 인터 프리딕션 모드가 적용된 블록에 대한 정보의 삭제는, 상기 이전 모드에 따른 인터 프리딕션 모드가 적용된 블록에 대한 정보를 '0'으로 설정함으로써 이루어지는 것을 특징으로 하는 복호화 방법.The deletion of the information on the block to which the interprediction mode is applied according to the previous mode is performed by setting the information on the block to which the interprediction mode is applied according to the previous mode is set to '0'. 제71항에 있어서, The method of claim 71, wherein 상기 소정의 크기의 블록은 매크로블록이며, 상기 모드 플레인은 픽쳐 단위의 매크로블록에 대한 인터 프리딕션 모드 정보를 포함하는 것을 특징으로 하는 복호화 방법.The predetermined size block is a macroblock, and the mode plane includes interprediction mode information for a macroblock of a picture unit. 제70항에 있어서, The method of claim 70, 상기 색차 성분은 Cb, Cr 인 것을 특징으로 하는 복호화 방법. The color difference component is a decoding method characterized in that the Cb, Cr. 제70항에 있어서,The method of claim 70, 상기 엔트로피 디코딩된 데이터에 대해 역양자화 및 역변환을 수행하는 단계 를 더 포함하는 것을 특징으로 하는 복호화 방법.And performing inverse quantization and inverse transformation on the entropy decoded data. 제70항에 있어서,The method of claim 70, 인터 프리딕션을 수행하기 위한 움직임 보상 단계를 더 포함하는 것을 특징으로 하는 복호화 방법.And a motion compensation step for performing interprediction. 제71항에 있어서, 상기 복호화 방법은 런 렝스 부호화 방법에 따라 부호화되어 전송된 인터 프리딕션 모드 정보를 추출하여, 이에 기초하여 색차 성분을 계산하는 것을 특징으로 하는 복호화 방법.72. The decoding method of claim 71, wherein the decoding method extracts the interprediction mode information encoded and transmitted according to the run length coding method, and calculates a color difference component based on the extracted information. 제9항 내지 제16항 및 제41항 내지 56항 중 어느 한 항에 기재된 부호화 방법을 컴퓨터에서 실행시키기 위한 프로그램을 기록한 컴퓨터로 읽을 수 있는 기록매체.A computer-readable recording medium having recorded thereon a program for executing the coding method according to any one of claims 9 to 16 and 41 to 56 on a computer. 제21항 내지 제24항 및 제70항 내지 82항 중 어느 한 항에 기재된 복호화 방법을 컴퓨터에서 실행시키기 위한 프로그램을 기록한 컴퓨터로 읽을 수 있는 기록매체.A computer-readable recording medium having recorded thereon a program for executing the decoding method according to any one of claims 21 to 24 and 70 to 82.
KR20050027827A 2004-12-30 2005-04-02 Color image encoding and decoding method and apparatus using a correlation between chrominance components KR101138392B1 (en)

Priority Applications (10)

Application Number Priority Date Filing Date Title
US11/219,735 US7970219B2 (en) 2004-12-30 2005-09-07 Color image encoding and decoding method and apparatus using a correlation between chrominance components
EP05257132A EP1696674A3 (en) 2004-12-30 2005-11-18 Color image encoding and decoding method and apparatus using a correlation between chrominance components
TW94141845A TWI297252B (en) 2004-12-30 2005-11-29 Color image encoding and decoding method and apparauts using a correlation between chrominance components
PCT/KR2005/004543 WO2006071037A1 (en) 2004-12-30 2005-12-26 Color image encoding and decoding method and apparatus using a correlation between chrominance componet
BRPI0517911-4A BRPI0517911A (en) 2004-12-30 2005-12-26 encoding apparatus, encoding method, decoding apparatus, decoding method, encoding apparatus for encoding a color image, encoding method for encoding a color image, decoding apparatus for decoding a color coded image, decoding method for decoding a color image, a recording medium that can be read on a computer, having configured a computer program to perform an encoding method, a recording medium that can be read on a computer, having configured a computer program for performing a coding method. a coding method for encoding a color image, a recording medium that can be read on a computer, having configured a computer program to perform a decoding method and a recording medium that can be read on a computer, having configured n a computer program to perform a decoding method for decoding a color image
CN2005800388459A CN101057506B (en) 2004-12-30 2005-12-26 Color image encoding and decoding method and apparatus using a correlation between chrominance components
JP2007549247A JP4855418B2 (en) 2004-12-30 2005-12-26 Color video encoding and decoding method and apparatus using correlation of color difference components
RU2007122379A RU2336663C1 (en) 2004-12-30 2005-12-26 Method and device of colour image coding/decoding using chroma signal components correlation
HK08102143A HK1108258A1 (en) 2004-12-30 2008-02-27 Color image encoding and decoding method and apparatus using a correlation between chrominance component
US13/107,051 US8260069B2 (en) 2004-12-30 2011-05-13 Color image encoding and decoding method and apparatus using a correlation between chrominance components

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR1020040116962 2004-12-30
KR20040116962 2004-12-30

Publications (2)

Publication Number Publication Date
KR20060079051A true KR20060079051A (en) 2006-07-05
KR101138392B1 KR101138392B1 (en) 2012-04-26

Family

ID=37170851

Family Applications (1)

Application Number Title Priority Date Filing Date
KR20050027827A KR101138392B1 (en) 2004-12-30 2005-04-02 Color image encoding and decoding method and apparatus using a correlation between chrominance components

Country Status (7)

Country Link
JP (1) JP4855418B2 (en)
KR (1) KR101138392B1 (en)
CN (1) CN101057506B (en)
BR (1) BRPI0517911A (en)
HK (1) HK1108258A1 (en)
RU (1) RU2336663C1 (en)
TW (1) TWI297252B (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011071254A2 (en) * 2009-12-07 2011-06-16 에스케이텔레콤 주식회사 Apparatus and method for encoding/decoding multi-plane images using bi-prediction and recording medium using same
WO2011071321A2 (en) * 2009-12-09 2011-06-16 에스케이텔레콤 주식회사 Apparatus and method for encoding/decoding a multi-plane image, and recording medium for same
WO2012002765A2 (en) * 2010-07-01 2012-01-05 에스케이텔레콤 주식회사 Method and apparatus for predicting a color space, and method and apparatus for encoding/decoding an image using same
WO2012011670A2 (en) * 2010-07-23 2012-01-26 에스케이텔레콤 주식회사 Method and device for predicting color space using plurality of frequency domain weighting prediction filters, and method and device for encoding/decoding image using same
WO2013002589A3 (en) * 2011-06-28 2013-03-14 삼성전자 주식회사 Prediction method and apparatus for chroma component of image using luma component of image
CN105959703A (en) * 2010-04-13 2016-09-21 Ge视频压缩有限责任公司 Cross-plane prediction method
US20170134761A1 (en) 2010-04-13 2017-05-11 Ge Video Compression, Llc Coding of a spatial sampling of a two-dimensional information signal using sub-division
US20180324466A1 (en) 2010-04-13 2018-11-08 Ge Video Compression, Llc Inheritance in sample array multitree subdivision
US20190045201A1 (en) 2012-04-13 2019-02-07 Ge Video Compression, Llc Low delay picture coding
US10248966B2 (en) 2010-04-13 2019-04-02 Ge Video Compression, Llc Region merging and coding parameter reuse via merging
US10743030B2 (en) 2012-06-29 2020-08-11 Ge Video Compression, Llc Video data stream concept
WO2020231225A1 (en) * 2019-05-15 2020-11-19 현대자동차주식회사 Method for restoring chrominance block and apparatus for decoding image

Families Citing this family (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101119500B (en) * 2007-10-22 2011-01-19 天津大学 Chroma replacement method in multi-viewpoint free stereo imaging system
CA2740800A1 (en) * 2008-10-27 2010-05-06 Nippon Telegraph And Telephone Corporation Predicted pixel value generation procedure automatic producing method, image encoding method, image decoding method, apparatus therefor, programs therefor, and storage media whichstore the programs
CN103260018B (en) * 2012-02-16 2017-09-22 乐金电子(中国)研究开发中心有限公司 Intra-frame image prediction decoding method and Video Codec
TWI502550B (en) * 2012-03-30 2015-10-01 Nation United University Differential layered image compression method
GB2501535A (en) * 2012-04-26 2013-10-30 Sony Corp Chrominance Processing in High Efficiency Video Codecs
RU2519445C2 (en) * 2012-08-30 2014-06-10 Общество с ограниченной ответственностью "Н-Система" Method for alphabetical image representation
CN104604225B (en) * 2012-09-10 2018-01-26 太阳专利托管公司 Method for encoding images, picture decoding method, picture coding device, picture decoding apparatus and image encoding/decoding device
PE20171159A1 (en) * 2014-10-03 2017-08-17 Nec Corp VIDEO ENCODING DEVICE, VIDEO DECODING DEVICE, VIDEO ENCODING METHOD, VIDEO AND PROGRAM DECODING METHOD
JP6212530B2 (en) * 2015-11-17 2017-10-11 ジーイー ビデオ コンプレッション エルエルシー Interplane prediction
KR20200100656A (en) 2018-01-16 2020-08-26 삼성전자주식회사 Video decoding method and apparatus, video encoding method and apparatus
WO2020094067A1 (en) 2018-11-06 2020-05-14 Beijing Bytedance Network Technology Co., Ltd. Simplified parameter derivation for intra prediction
CA3085391C (en) 2018-11-23 2023-10-24 Lg Electronics Inc. Method for decoding image on basis of cclm prediction in image coding system, and device therefor
CN113170122B (en) 2018-12-01 2023-06-27 北京字节跳动网络技术有限公司 Parameter derivation for intra prediction
SG11202105759QA (en) 2018-12-07 2021-06-29 Beijing Bytedance Network Technology Co Ltd Context-based intra prediction
BR112021015017B1 (en) 2019-02-24 2022-07-26 Bytedance Inc. METHOD AND DEVICE TO ENCODE VIDEO DATA AND STORAGE MEDIA
US12022060B2 (en) 2019-02-28 2024-06-25 Samsung Electronics Co., Ltd. Video encoding and decoding method for predicting chroma component, and video encoding and decoding device for predicting chroma component
CN113767631B (en) 2019-03-24 2023-12-15 北京字节跳动网络技术有限公司 Conditions in parameter derivation for intra prediction
KR20200132762A (en) * 2019-05-15 2020-11-25 현대자동차주식회사 Method and apparatus for reconstructing chroma block
CN110267044A (en) * 2019-07-16 2019-09-20 吉林工程技术师范学院 A kind of chroma coder method and system of film scene
US11405615B2 (en) * 2020-03-26 2022-08-02 Tencent America LLC Joint transform coding of multiple color components
CN113852820B (en) * 2021-08-30 2023-06-30 电子科技大学 Novel color space conversion matrix generation method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
IL129203A (en) * 1999-03-28 2002-07-25 Univ Ramot Method and system for compression of images
US20030112863A1 (en) * 2001-07-12 2003-06-19 Demos Gary A. Method and system for improving compressed image chroma information

Cited By (83)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011071254A2 (en) * 2009-12-07 2011-06-16 에스케이텔레콤 주식회사 Apparatus and method for encoding/decoding multi-plane images using bi-prediction and recording medium using same
WO2011071254A3 (en) * 2009-12-07 2011-11-03 에스케이텔레콤 주식회사 Apparatus and method for encoding/decoding multi-plane images using bi-prediction and recording medium using same
US9307255B2 (en) 2009-12-07 2016-04-05 Sk Telecom Co., Ltd. Apparatus and method for encoding/decoding multi-plane images using bi-prediction and recording medium using same
WO2011071321A2 (en) * 2009-12-09 2011-06-16 에스케이텔레콤 주식회사 Apparatus and method for encoding/decoding a multi-plane image, and recording medium for same
WO2011071321A3 (en) * 2009-12-09 2011-11-10 에스케이텔레콤 주식회사 Apparatus and method for encoding/decoding a multi-plane image, and recording medium for same
US10721496B2 (en) 2010-04-13 2020-07-21 Ge Video Compression, Llc Inheritance in sample array multitree subdivision
US11765362B2 (en) 2010-04-13 2023-09-19 Ge Video Compression, Llc Inter-plane prediction
US12010353B2 (en) 2010-04-13 2024-06-11 Ge Video Compression, Llc Inheritance in sample array multitree subdivision
US11983737B2 (en) 2010-04-13 2024-05-14 Ge Video Compression, Llc Region merging and coding parameter reuse via merging
US11910030B2 (en) 2010-04-13 2024-02-20 Ge Video Compression, Llc Inheritance in sample array multitree subdivision
US11910029B2 (en) 2010-04-13 2024-02-20 Ge Video Compression, Llc Coding of a spatial sampling of a two-dimensional information signal using sub-division preliminary class
US11900415B2 (en) 2010-04-13 2024-02-13 Ge Video Compression, Llc Region merging and coding parameter reuse via merging
US11856240B1 (en) 2010-04-13 2023-12-26 Ge Video Compression, Llc Coding of a spatial sampling of a two-dimensional information signal using sub-division
US11810019B2 (en) 2010-04-13 2023-11-07 Ge Video Compression, Llc Region merging and coding parameter reuse via merging
US20180324466A1 (en) 2010-04-13 2018-11-08 Ge Video Compression, Llc Inheritance in sample array multitree subdivision
US11785264B2 (en) 2010-04-13 2023-10-10 Ge Video Compression, Llc Multitree subdivision and inheritance of coding parameters in a coding block
US20190089962A1 (en) 2010-04-13 2019-03-21 Ge Video Compression, Llc Inter-plane prediction
US10248966B2 (en) 2010-04-13 2019-04-02 Ge Video Compression, Llc Region merging and coding parameter reuse via merging
US10250913B2 (en) 2010-04-13 2019-04-02 Ge Video Compression, Llc Coding of a spatial sampling of a two-dimensional information signal using sub-division
US20190164188A1 (en) 2010-04-13 2019-05-30 Ge Video Compression, Llc Region merging and coding parameter reuse via merging
CN105959703B (en) * 2010-04-13 2019-06-04 Ge视频压缩有限责任公司 Decoder, encoder, generate data flow method and decoding data stream method
US20190174148A1 (en) 2010-04-13 2019-06-06 Ge Video Compression, Llc Inheritance in sample array multitree subdivision
US20190197579A1 (en) 2010-04-13 2019-06-27 Ge Video Compression, Llc Region merging and coding parameter reuse via merging
US10432978B2 (en) 2010-04-13 2019-10-01 Ge Video Compression, Llc Inheritance in sample array multitree subdivision
US10432979B2 (en) 2010-04-13 2019-10-01 Ge Video Compression Llc Inheritance in sample array multitree subdivision
US10432980B2 (en) 2010-04-13 2019-10-01 Ge Video Compression, Llc Inheritance in sample array multitree subdivision
US10440400B2 (en) 2010-04-13 2019-10-08 Ge Video Compression, Llc Inheritance in sample array multitree subdivision
US10448060B2 (en) 2010-04-13 2019-10-15 Ge Video Compression, Llc Multitree subdivision and inheritance of coding parameters in a coding block
US10460344B2 (en) 2010-04-13 2019-10-29 Ge Video Compression, Llc Region merging and coding parameter reuse via merging
US10621614B2 (en) 2010-04-13 2020-04-14 Ge Video Compression, Llc Region merging and coding parameter reuse via merging
US10672028B2 (en) 2010-04-13 2020-06-02 Ge Video Compression, Llc Region merging and coding parameter reuse via merging
US11778241B2 (en) 2010-04-13 2023-10-03 Ge Video Compression, Llc Coding of a spatial sampling of a two-dimensional information signal using sub-division
US10681390B2 (en) 2010-04-13 2020-06-09 Ge Video Compression, Llc Coding of a spatial sampling of a two-dimensional information signal using sub-division
US10687086B2 (en) 2010-04-13 2020-06-16 Ge Video Compression, Llc Coding of a spatial sampling of a two-dimensional information signal using sub-division
US10764608B2 (en) 2010-04-13 2020-09-01 Ge Video Compression, Llc Coding of a spatial sampling of a two-dimensional information signal using sub-division
US10694218B2 (en) 2010-04-13 2020-06-23 Ge Video Compression, Llc Inheritance in sample array multitree subdivision
US10708629B2 (en) 2010-04-13 2020-07-07 Ge Video Compression, Llc Inheritance in sample array multitree subdivision
US10708628B2 (en) 2010-04-13 2020-07-07 Ge Video Compression, Llc Coding of a spatial sampling of a two-dimensional information signal using sub-division
US10721495B2 (en) 2010-04-13 2020-07-21 Ge Video Compression, Llc Coding of a spatial sampling of a two-dimensional information signal using sub-division
US10803483B2 (en) 2010-04-13 2020-10-13 Ge Video Compression, Llc Region merging and coding parameter reuse via merging
CN105959703A (en) * 2010-04-13 2016-09-21 Ge视频压缩有限责任公司 Cross-plane prediction method
US11765363B2 (en) 2010-04-13 2023-09-19 Ge Video Compression, Llc Inter-plane reuse of coding parameters
US10748183B2 (en) 2010-04-13 2020-08-18 Ge Video Compression, Llc Region merging and coding parameter reuse via merging
US10687085B2 (en) 2010-04-13 2020-06-16 Ge Video Compression, Llc Inheritance in sample array multitree subdivision
US20170134761A1 (en) 2010-04-13 2017-05-11 Ge Video Compression, Llc Coding of a spatial sampling of a two-dimensional information signal using sub-division
US10719850B2 (en) 2010-04-13 2020-07-21 Ge Video Compression, Llc Region merging and coding parameter reuse via merging
US10803485B2 (en) 2010-04-13 2020-10-13 Ge Video Compression, Llc Region merging and coding parameter reuse via merging
US10805645B2 (en) 2010-04-13 2020-10-13 Ge Video Compression, Llc Coding of a spatial sampling of a two-dimensional information signal using sub-division
US10771822B2 (en) 2010-04-13 2020-09-08 Ge Video Compression, Llc Coding of a spatial sampling of a two-dimensional information signal using sub-division
US10848767B2 (en) 2010-04-13 2020-11-24 Ge Video Compression, Llc Inter-plane prediction
US10856013B2 (en) 2010-04-13 2020-12-01 Ge Video Compression, Llc Coding of a spatial sampling of a two-dimensional information signal using sub-division
US10855991B2 (en) 2010-04-13 2020-12-01 Ge Video Compression, Llc Inter-plane prediction
US10855995B2 (en) 2010-04-13 2020-12-01 Ge Video Compression, Llc Inter-plane prediction
US10855990B2 (en) 2010-04-13 2020-12-01 Ge Video Compression, Llc Inter-plane prediction
US10863208B2 (en) 2010-04-13 2020-12-08 Ge Video Compression, Llc Inheritance in sample array multitree subdivision
US10873749B2 (en) 2010-04-13 2020-12-22 Ge Video Compression, Llc Inter-plane reuse of coding parameters
US10880581B2 (en) 2010-04-13 2020-12-29 Ge Video Compression, Llc Inheritance in sample array multitree subdivision
US10880580B2 (en) 2010-04-13 2020-12-29 Ge Video Compression, Llc Inheritance in sample array multitree subdivision
US10893301B2 (en) 2010-04-13 2021-01-12 Ge Video Compression, Llc Coding of a spatial sampling of a two-dimensional information signal using sub-division
US11037194B2 (en) 2010-04-13 2021-06-15 Ge Video Compression, Llc Region merging and coding parameter reuse via merging
US11051047B2 (en) 2010-04-13 2021-06-29 Ge Video Compression, Llc Inheritance in sample array multitree subdivision
US20210211743A1 (en) 2010-04-13 2021-07-08 Ge Video Compression, Llc Coding of a spatial sampling of a two-dimensional information signal using sub-division
US11087355B2 (en) 2010-04-13 2021-08-10 Ge Video Compression, Llc Region merging and coding parameter reuse via merging
US11102518B2 (en) 2010-04-13 2021-08-24 Ge Video Compression, Llc Coding of a spatial sampling of a two-dimensional information signal using sub-division
US11736738B2 (en) 2010-04-13 2023-08-22 Ge Video Compression, Llc Coding of a spatial sampling of a two-dimensional information signal using subdivision
US11546641B2 (en) 2010-04-13 2023-01-03 Ge Video Compression, Llc Inheritance in sample array multitree subdivision
US11546642B2 (en) 2010-04-13 2023-01-03 Ge Video Compression, Llc Coding of a spatial sampling of a two-dimensional information signal using sub-division
US11553212B2 (en) 2010-04-13 2023-01-10 Ge Video Compression, Llc Inheritance in sample array multitree subdivision
US11611761B2 (en) 2010-04-13 2023-03-21 Ge Video Compression, Llc Inter-plane reuse of coding parameters
US11734714B2 (en) 2010-04-13 2023-08-22 Ge Video Compression, Llc Region merging and coding parameter reuse via merging
WO2012002765A2 (en) * 2010-07-01 2012-01-05 에스케이텔레콤 주식회사 Method and apparatus for predicting a color space, and method and apparatus for encoding/decoding an image using same
WO2012002765A3 (en) * 2010-07-01 2012-05-03 에스케이텔레콤 주식회사 Method and apparatus for predicting color space, and method and apparatus for encoding/decoding image using same
KR20120011353A (en) * 2010-07-23 2012-02-08 에스케이 텔레콤주식회사 Method and Apparatus for Color Space Prediction Using Multiple Frequency Domain Weighted Prediction Filter and Method and Apparatus for Encoding/Decoding of Video Data Thereof
WO2012011670A2 (en) * 2010-07-23 2012-01-26 에스케이텔레콤 주식회사 Method and device for predicting color space using plurality of frequency domain weighting prediction filters, and method and device for encoding/decoding image using same
WO2012011670A3 (en) * 2010-07-23 2012-04-05 에스케이텔레콤 주식회사 Method and device for predicting color space using plurality of frequency domain weighting prediction filters, and method and device for encoding/decoding image using same
WO2013002589A3 (en) * 2011-06-28 2013-03-14 삼성전자 주식회사 Prediction method and apparatus for chroma component of image using luma component of image
US9674521B2 (en) 2011-06-28 2017-06-06 Samsung Electronics Co., Ltd. Prediction method and apparatus for chroma component of image using luma component of image
US10674164B2 (en) 2012-04-13 2020-06-02 Ge Video Compression, Llc Low delay picture coding
US11343517B2 (en) 2012-04-13 2022-05-24 Ge Video Compression, Llc Low delay picture coding
US20190045201A1 (en) 2012-04-13 2019-02-07 Ge Video Compression, Llc Low delay picture coding
US10743030B2 (en) 2012-06-29 2020-08-11 Ge Video Compression, Llc Video data stream concept
US11863754B2 (en) 2019-05-15 2024-01-02 Hyundai Motor Company Method and for reconstructing chroma block and video decoding apparatus
WO2020231225A1 (en) * 2019-05-15 2020-11-19 현대자동차주식회사 Method for restoring chrominance block and apparatus for decoding image

Also Published As

Publication number Publication date
JP2008527782A (en) 2008-07-24
RU2336663C1 (en) 2008-10-20
HK1108258A1 (en) 2008-05-02
TW200625970A (en) 2006-07-16
BRPI0517911A (en) 2008-10-21
CN101057506A (en) 2007-10-17
KR101138392B1 (en) 2012-04-26
JP4855418B2 (en) 2012-01-18
CN101057506B (en) 2013-01-02
TWI297252B (en) 2008-05-21

Similar Documents

Publication Publication Date Title
KR101138392B1 (en) Color image encoding and decoding method and apparatus using a correlation between chrominance components
US7970219B2 (en) Color image encoding and decoding method and apparatus using a correlation between chrominance components
JP5047995B2 (en) Video intra prediction encoding and decoding method and apparatus
US8213503B2 (en) Skip modes for inter-layer residual video coding and decoding
KR101311403B1 (en) An video encoding/decoding method and apparatus
JP4991699B2 (en) Scalable encoding and decoding methods for video signals
RU2720975C2 (en) Method of encoding and decoding images, an encoding and decoding device and corresponding computer programs
KR101311402B1 (en) An video encoding/decoding method and apparatus
US20160057442A1 (en) Video encoding device, video decoding device, video encoding method, video decoding method, and program
US8165411B2 (en) Method of and apparatus for encoding/decoding data
WO2010044569A2 (en) Method and apparatus for generating a reference frame, and method and apparatus for image encoding/decoding using same
KR20070009486A (en) Method and apparatus for encoding and decoding image
KR20090087767A (en) Method for predictive intra coding for image data
KR101700410B1 (en) Method and apparatus for image interpolation having quarter pixel accuracy using intra prediction modes
US6804299B2 (en) Methods and systems for reducing requantization-originated generational error in predictive video streams using motion compensation
KR20110048004A (en) Motion vector encoding / decoding method and apparatus using motion vector resolution limitation and image encoding / decoding method using same
JP5742049B2 (en) Color moving picture coding method and color moving picture coding apparatus
RU2808075C1 (en) Method for image coding and decoding, coding and decoding device and corresponding computer programs
JP2005184525A (en) Image processor
KR101365566B1 (en) Method and apparatus for encoding and decoding image
KR20180041833A (en) Video coding method and apparatus using most probable mode list of intra
KR20110087871A (en) Method and apparatus for image interpolation having quarter pixel accuracy using intra prediction modes
KR101934840B1 (en) Method and apparatus for image interpolation having quarter pixel accuracy using intra prediction modes
KR101810198B1 (en) Method and apparatus for image interpolation having quarter pixel accuracy using intra prediction modes
KR20190084929A (en) Method and apparatus for image interpolation having quarter pixel accuracy using intra prediction modes

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20160330

Year of fee payment: 5

LAPS Lapse due to unpaid annual fee