KR20110036401A - Method and apparatus for encoding video, and method and apparatus for decoding video - Google Patents

Method and apparatus for encoding video, and method and apparatus for decoding video Download PDF

Info

Publication number
KR20110036401A
KR20110036401A KR1020090094050A KR20090094050A KR20110036401A KR 20110036401 A KR20110036401 A KR 20110036401A KR 1020090094050 A KR1020090094050 A KR 1020090094050A KR 20090094050 A KR20090094050 A KR 20090094050A KR 20110036401 A KR20110036401 A KR 20110036401A
Authority
KR
South Korea
Prior art keywords
pixel
prediction
coding unit
unit
value
Prior art date
Application number
KR1020090094050A
Other languages
Korean (ko)
Other versions
KR101464538B1 (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 KR1020090094050A priority Critical patent/KR101464538B1/en
Publication of KR20110036401A publication Critical patent/KR20110036401A/en
Application granted granted Critical
Publication of KR101464538B1 publication Critical patent/KR101464538B1/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/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • 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/103Selection of coding mode or of prediction mode
    • H04N19/105Selection of the reference unit for prediction within a chosen coding or prediction mode, e.g. adaptive choice of position and number of pixels used for prediction
    • 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/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/182Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being a pixel

Abstract

PURPOSE: An image coding method, image encoding method, and apparatus thereof are provided to increase the efficiency of image compression through the process of predicted image data. CONSTITUTION: A first predictive encoding unit is generated by a current encoding unit(2110). A second predictive encoding unit is generated by changing a pixel value of each pixel that consists of a first predictive encoding unit. The difference between a current encoding unit and a second predictive encoding unit is encoded.

Description

영상의 부호화 방법 및 장치, 그 복호화 방법 및 장치{Method and apparatus for encoding video, and method and apparatus for decoding video}Method and apparatus for encoding video, method and apparatus for decoding thereof {Method and apparatus for encoding video, and method and apparatus for decoding video}

본 발명은 예측된 영상 데이터의 후처리를 통해 영상의 압축 효율을 향상시키는 영상의 부호화 방법 및 장치, 그 복호화 방법 및 장치에 관한 것이다.The present invention relates to a video encoding method and apparatus for improving the compression efficiency of an image through post-processing of predicted image data, and a decoding method and apparatus thereof.

MPEG-1, MPEG-2, MPEG-4, H.264/MPEG-4 AVC(Advanced Video Coding)와 같은 영상 압축 방식에서는 영상을 부호화하기 위해서 하나의 픽처를 매크로 블록으로 나눈다. 그리고, 인터 예측 및 인트라 예측에서 이용가능한 모든 부호화 모드에서 각각의 매크로 블록을 부호화한 다음, 매크로 블록의 부호화에 소요되는 비트율과 원 매크로 블록과 복호화된 매크로 블록과의 왜곡 정도에 따라서 부호화 모드를 하나 선택하여 매크로 블록을 부호화한다.In video compression schemes such as MPEG-1, MPEG-2, MPEG-4, and H.264 / MPEG-4 Advanced Video Coding (AVC), a picture is divided into macro blocks to encode an image. Each macroblock is encoded in all encoding modes available for inter prediction and intra prediction, and then one encoding mode is selected according to the bit rate required for encoding the macro block and the degree of distortion of the original macro block and the decoded macro block. Select to encode the macro block.

고해상도 또는 고화질 비디오 컨텐트를 재생, 저장할 수 있는 하드웨어의 개발 및 보급에 따라, 고해상도 또는 고화질 비디오 컨텐트를 효과적으로 부호화하거나 복호화하는 비디오 코덱의 필요성이 증대하고 있다. 기존의 비디오 코덱에 따르면, 비디오는 소정 크기의 매크로블록에 기반하여 제한된 예측 모드에 따라 부호화되고 있다.With the development and dissemination of hardware capable of playing and storing high resolution or high definition video content, there is an increasing need for a video codec for efficiently encoding or decoding high resolution or high definition video content. According to the existing video codec, video is encoded according to a limited prediction mode based on a macroblock of a predetermined size.

본 발명이 해결하고자 하는 과제는 예측 블록에 대한 후처리를 통해 예측 블록 내부의 각 픽셀의 픽셀값을 변경하여 새로운 예측 블록을 생성함으로써 영상의 압축 효율을 향상시키는 영상의 부호화 방법 및 장치, 그 복호화 방법 및 장치를 제공하는 것이다.The problem to be solved by the present invention is to encode a video encoding method and apparatus for improving the compression efficiency of the image by changing the pixel value of each pixel in the prediction block through post-processing on the prediction block, decoding It is to provide a method and apparatus.

본 발명의 일 실시예에 따른 영상의 부호화 방법은 부호화되는 현재 부호화 단위에 대한 제 1 예측 부호화 단위를 생성하는 단계; 상기 제 1 예측 부호화 단위를 구성하는 각 픽셀과 적어도 하나의 주변 픽셀을 이용하여 상기 각 픽셀의 픽셀값을 변경하여 제 2 예측 부호화 단위를 생성하는 단계; 및 상기 현재 부호화 단위와 상기 제 2 예측 부호화 단위의 차이값을 부호화하는 단계를 포함하는 것을 특징으로 한다.An image encoding method according to an embodiment of the present invention includes generating a first prediction coding unit for a current coding unit to be encoded; Generating a second prediction coding unit by changing a pixel value of each pixel by using each pixel constituting the first prediction coding unit and at least one neighboring pixel; And encoding a difference value between the current coding unit and the second prediction coding unit.

본 발명의 일 실시예에 따른 영상의 부호화 장치는 부호화되는 현재 부호화 단위에 대한 제 1 예측 부호화 단위를 생성하는 예측부; 상기 제 1 예측 부호화 단위를 구성하는 각 픽셀과 적어도 하나의 주변 픽셀을 이용하여 상기 각 픽셀의 픽셀값을 변경하여 제 2 예측 부호화 단위를 생성하는 후처리부; 및 상기 현재 부호화 단위와 상기 제 2 예측 부호화 단위의 차이값을 부호화하는 부호화부를 포함하는 것을 특징으로 한다.An image encoding apparatus according to an embodiment of the present invention includes a prediction unit generating a first prediction coding unit for a current coding unit to be encoded; A post processor configured to generate a second prediction coding unit by changing a pixel value of each pixel by using each pixel constituting the first prediction coding unit and at least one neighboring pixel; And an encoder which encodes a difference between the current coding unit and the second prediction coding unit.

본 발명의 일 실시예에 따른 영상 복호화 방법은 수신된 비트스트림으로부터 복호화되는 현재 복호화 단위의 예측 모드 정보를 추출하는 단계; 상기 추출된 예측 모드 정보에 따라서 상기 현재 복호화 단위에 대한 제 1 예측 복호화 단위를 생 성하는 단계; 상기 비트스트림으로부터 상기 제 1 예측 복호화 단위를 구성하는 각 픽셀과 상기 각 픽셀의 주변 픽셀들을 이용한 연산 정보를 추출하는 단계; 상기 추출된 연산 정보에 따라서 상기 제 1 예측 복호화 단위를 구성하는 각 픽셀과 상기 각 픽셀의 주변 픽셀들을 이용하여 상기 각 픽셀의 픽셀값을 변경하여 제 2 예측 복호화 단위를 생성하는 단계; 상기 비트스트림으로부터 상기 현재 복호화 단위와 상기 제 2 예측 복호화 단위의 차이값에 해당하는 레지듀얼을 추출하여 복원하는 단계; 및 상기 레지듀얼과 상기 제 2 예측 복호화 단위를 가산하여 상기 현재 복호화 단위를 복호화하는 단계를 포함하는 것을 특징으로 한다.An image decoding method according to an embodiment of the present invention includes extracting prediction mode information of a current decoding unit to be decoded from a received bitstream; Generating a first prediction decoding unit for the current decoding unit according to the extracted prediction mode information; Extracting operation information using each pixel constituting the first prediction decoding unit and neighboring pixels of the pixel from the bitstream; Generating a second prediction decoding unit by changing a pixel value of each pixel using each pixel constituting the first prediction decoding unit and peripheral pixels of each pixel according to the extracted operation information; Extracting and reconstructing a residual corresponding to a difference between the current decoding unit and the second prediction decoding unit from the bitstream; And decoding the current decoding unit by adding the residual and the second prediction decoding unit.

본 발명의 일 실시예에 따른 영상 복호화 장치는 수신된 비트스트림으로부터 복호화되는 현재 복호화 단위의 예측 모드 정보 및 상기 현재 복호화 단위에 대한 제 1 예측 복호화 단위를 구성하는 각 픽셀과 상기 각 픽셀의 주변 픽셀들을 이용한 연산 정보를 추출하는 엔트로피 디코더; 상기 추출된 예측 모드 정보에 따라서 상기 제 1 예측 복호화 단위를 생성하는 예측부; 상기 추출된 연산 정보에 따라서 상기 제 1 예측 복호화 단위를 구성하는 각 픽셀과 상기 각 픽셀의 주변 픽셀들을 이용하여 상기 각 픽셀의 픽셀값을 변경하여 제 2 예측 복호화 단위를 생성하는 후처리부; 상기 비트스트림으로부터 상기 현재 복호화 단위와 상기 제 2 예측 복호화 단위의 차이값에 해당하는 레지듀얼을 복원하는 역변환 및 역양자화부; 및 상기 레지듀얼과 상기 제 2 예측 복호화 단위를 가산하여 상기 현재 복호화 단위를 복호화하는 가산부를 포함하는 것을 특징으로 한다.An image decoding apparatus according to an embodiment of the present invention includes each pixel constituting prediction mode information of a current decoding unit decoded from a received bitstream and a first prediction decoding unit for the current decoding unit, and neighboring pixels of each pixel. An entropy decoder for extracting operation information using the apparatus; A prediction unit generating the first prediction decoding unit according to the extracted prediction mode information; A post processor configured to generate a second prediction decoding unit by changing a pixel value of each pixel using each pixel constituting the first prediction decoding unit and peripheral pixels of each pixel according to the extracted operation information; An inverse transform and inverse quantizer for restoring a residual corresponding to a difference between the current decoding unit and the second prediction decoding unit from the bitstream; And an adder configured to add the residual and the second prediction decoding unit to decode the current decoding unit.

이하 첨부된 도면을 참조하여 본 발명의 바람직한 실시예들에 따른 영상 부호화 장치 및 영상 복호화 장치, 영상 부호화 방법 및 영상 복호화 방법을 설명한다.Hereinafter, an image encoding apparatus, an image decoding apparatus, an image encoding method, and an image decoding method according to exemplary embodiments of the present invention will be described with reference to the accompanying drawings.

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

도 1을 참조하면, 본 발명의 일 실시예에 따른 영상 부호화 장치(100)는 최대 부호화 단위 분할부(110), 부호화 심도 결정부(120), 영상 데이터 부호화부(130) 및 부호화 정보 부호화부(140)를 포함한다.Referring to FIG. 1, an image encoding apparatus 100 according to an embodiment of the present invention may include a maximum coding unit splitter 110, a coded depth determiner 120, an image data encoder 130, and an encoding information encoder. 140.

최대 부호화 단위 분할부(110)는 최대 크기의 부호화 단위인 최대 부호화 단위에 기반하여 현재 픽처 또는 현재 슬라이스를 분할한다. 현재 픽처 또는 현재 슬라이스는 적어도 하나의 최대 부호화 단위로 분할된다. 분할된 영상 데이터는 적어도 하나의 최대 부호화 단위별로 부호화 심도 결정부(120)로 출력될 수 있다.The maximum coding unit splitter 110 splits the current picture or the current slice based on the maximum coding unit that is the largest coding unit. The current picture or the current slice is split into at least one maximum coding unit. The divided image data may be output to the coded depth determiner 120 for at least one maximum coding unit.

본 발명의 일 실시예에 따르면, 최대 부호화 단위 및 심도를 이용해 부호화 단위가 표현될 수 있다. 최대 부호화 단위는 현재 픽처의 부호화 단위 중 크기가 가장 큰 부호화 단위를 나타내며, 심도는 부호화 단위가 계층적으로 축소된 서브 부호화 단위의 크기를 나타낸다. 심도가 커지면서, 부호화 단위는 최대 부호화 단위로부터 최소 부호화 단위까지 축소될 수 있으며, 최대 부호화 단위의 심도는 최소 심도로 정의되고, 최소 부호화 단위의 심도는 최대 심도로 정의될 수 있다. 최대 부호화 단위는 심도가 커짐에 따라 심도별 부호화 단위의 크기는 감소하므로, k 심도의 서브 부호화 단위는 k+1 이상의 심도를 갖는 복수 개의 서브 부호화 단위를 포함할 수 있다.According to an embodiment of the present invention, a coding unit may be expressed using a maximum coding unit and a depth. The maximum coding unit represents a coding unit having the largest size among the coding units of the current picture, and the depth represents the size of a sub coding unit in which the coding unit is hierarchically reduced. As the depth increases, the coding unit may be reduced from the maximum coding unit to the minimum coding unit, the depth of the maximum coding unit may be defined as the minimum depth, and the depth of the minimum coding unit may be defined as the maximum depth. As the maximum coding unit decreases as the depth increases, the size of the coding unit for each depth decreases, and thus, a sub-coding unit having a depth of k may include a plurality of sub-coding units having a depth of k + 1 or more.

전술한 바와 같이 부호화 단위의 최대 크기에 따라, 현재 픽처의 영상 데이터를 최대 부호화 단위로 분할하며, 각각의 최대 부호화 단위는 심도별로 축소되는 부호화 단위들을 포함할 수 있다. 본 발명의 일 실시예에 따른 최대 부호화 단위는 심도별로 축소되므로, 최대 부호화 단위에 포함된 공간 영역(spatial domain)의 영상 데이터가 심도에 따라 계층적으로 분류될 수 있다. As described above, the image data of the current picture is divided into the largest coding units according to the maximum size of the coding units, and each maximum coding unit may include coding units reduced by depth. Since the maximum coding unit is reduced for each depth according to an embodiment of the present invention, image data of a spatial domain included in the maximum coding unit may be hierarchically classified according to the depth.

최대 부호화 단위로부터 최상위 부호화 단위까지 현재 부호화 단위의 높이 및 너비를 계층적으로 축소한 총 횟수를 제한하는 최대 심도 및 부호화 단위의 최대 크기가 미리 설정되어 있을 수 있다. 이러한 최대 부호화 단위 및 최대 심도는 픽처 또는 슬라이스 단위로 설정될 수 있다. 즉, 픽처 또는 슬라이스마다 상이한 최대 부호화 단위 및 최대 심도를 갖을 수 있으며, 최대 심도에 따라 최대 영상 부호화 단위에 포함된 최소 부호화 단위 크기를 가변적으로 설정할 수 있다. 이와 같이 픽처 또는 슬라이스마다 최대 부호화 단위 및 최대 심도를 가변적으로 설정할 수 있게 함으로써, 평탄한 영역의 영상은 보다 큰 최대 부호화 단위를 이용하여 부호화함으로써 압축률을 향상시키고, 복잡도가 큰 영상은 보다 작은 크기의 부호화 단위를 이용하여 영상의 압축 효율을 향상시킬 수 있다.The maximum depth and the maximum size of the coding unit that limit the total number of hierarchically reduced heights and widths of the current coding unit from the maximum coding unit to the highest coding unit may be preset. The maximum coding unit and the maximum depth may be set in picture or slice units. That is, each picture or slice may have a different maximum coding unit and maximum depth, and the minimum coding unit size included in the maximum image coding unit may be variably set according to the maximum depth. In this way, the maximum coding unit and the maximum depth can be variably set for each picture or slice, so that a flat area image is encoded using a larger maximum coding unit, thereby improving the compression rate, and a large complexity image is encoded with a smaller size. By using the unit, the compression efficiency of the image can be improved.

부호화 심도 결정부(120)는 최대 부호화 단위마다 상이한 최대 심도를 결정한다. 최대 심도는 R-D 코스트(Rate-Distortion Cost) 계산에 기초해 결정될 수 있다. 결정된 최대 심도는 부호화 정보 부호화부(140)로 출력되고, 최대 부호화 단위별 영상 데이터는 영상 데이터 부호화부(130)로 출력된다. The coding depth determiner 120 determines a different maximum depth for each maximum coding unit. The maximum depth may be determined based on the rate-distortion cost calculation. The determined maximum depth is output to the encoding information encoder 140, and the image data for each maximum coding unit is output to the image data encoder 130.

최대 부호화 단위 내의 영상 데이터는 최대 심도 이하의 적어도 하나의 심도 에 따라 심도별 부호화 단위에 기반하여 부호화되고, 각각의 심도별 부호화 단위에 기반한 부호화 결과가 비교된다. 심도별 부호화 단위의 부호화 오차의 비교 결과 부호화 오차가 가장 작은 심도가 선택될 수 있다. 각각의 최대화 부호화 단위마다 적어도 하나의 부호화 심도가 결정될 수 있다. Image data in the largest coding unit is encoded based on coding units according to depths according to at least one depth less than or equal to the maximum depth, and encoding results based on the coding units for each depth are compared. As a result of comparing the encoding error of the coding units according to depths, a depth having the smallest encoding error may be selected. At least one coding depth may be determined for each maximum coding unit.

최대 부호화 단위의 크기는 심도가 증가함에 따라 부호화 단위가 계층적으로 분할되어 축소되며 부호화 단위의 개수는 증가한다. 또한, 하나의 최대 부호화 단위에 포함되는 동일한 심도의 부호화 단위들이라 하더라도, 각각의 데이터에 대한 부호화 오차를 측정하고 상위 심도로의 축소 여부가 결정된다. 따라서, 하나의 최대 부호화 단위에 포함되는 데이터라 하더라도 위치에 따라 심도별 부호화 오차가 다르므로 위치에 따라 부호화 심도가 달리 결정될 수 있다. 다시 말해, 최대 부호화 단위는 상이한 심도에 따라 상이한 크기의 서브 부호화 단위로 분할될 수 있다.하나의 최대 부호화 단위에 대해 부호화 심도가 하나 이상 설정될 수 있으며, 최대 부호화 단위의 데이터는 하나 이상의 부호화 심도의 부호화 단위에 따라 분할될 수 있다.As the depth of the maximum coding unit increases, the coding unit is hierarchically divided and reduced, and the number of coding units increases. In addition, even if the coding units of the same depth included in one maximum coding unit, the coding error for each data is measured and it is determined whether to reduce to the higher depth. Therefore, even in the data included in one largest coding unit, since the encoding error for each depth is different according to the position, the coding depth may be differently determined according to the position. In other words, the maximum coding unit may be divided into sub-coding units having different sizes according to different depths. One or more coding depths may be set for one maximum coding unit, and the data of the maximum coding unit may have one or more coding depths. It may be divided according to coding units of.

또한, 최대 부호화 단위에 포함된 상이한 크기의 서브 부호화 단위들은 상이한 크기의 처리 단위에 기초해 예측 또는 주파수 변환될 수 있다. 다시 말해, 영상 부호화 장치(100)는 영상 부호화를 위한 복수의 처리 단계들을 다양한 크기 및 다양한 형태의 처리 단위에 기초해 수행할 수 있다. 영상 데이터의 부호화를 위해서는 예측, 주파수 변환, 엔트로피 부호화 등의 처리 단계를 거치는데, 모든 단계에 걸쳐서 동일한 크기의 처리 단위가 이용될 수도 있으며, 단계별로 상이한 크기 의 처리 단위를 이용할 수 있다.In addition, sub-coding units of different sizes included in the largest coding unit may be predicted or frequency-converted based on processing units of different sizes. In other words, the image encoding apparatus 100 may perform a plurality of processing steps for image encoding based on various sizes and various types of processing units. In order to encode image data, processing steps such as prediction, frequency conversion, and entropy encoding are performed. Processing units having the same size may be used in all stages, and processing units having different sizes may be used in stages.

예를 들어 영상 부호화 장치(100)는 부호화 단위를 예측하기 위해, 부호화 단위와 다른 처리 단위를 선택할 수 있다. 일 예로, 부호화 단위의 크기가 2Nx2N(단, N은 양의 정수)인 경우, 예측을 위한 처리 단위는 2Nx2N, 2NxN, Nx2N, NxN 등일 수 있다. 다시 말해, 부호화 단위의 높이 또는 너비 중 적어도 하나를 반분하는 형태의 처리 단위를 기반으로 움직임 예측이 수행될 수도 있다. 이하, 예측의 기초가 되는 데이터 단위는 '예측 단위'라 한다.For example, the image encoding apparatus 100 may select a processing unit different from the coding unit to predict the coding unit. For example, when the size of the coding unit is 2Nx2N (where N is a positive integer), the processing unit for prediction may be 2Nx2N, 2NxN, Nx2N, NxN, or the like. In other words, motion prediction may be performed based on a processing unit of half of at least one of a height or a width of a coding unit. Hereinafter, the data unit on which the prediction is based is called a 'prediction unit'.

예측 모드는 인트라 모드, 인터 모드 및 스킵 모드 중 적어도 하나일 수 있으며, 특정 예측 모드는 특정 크기 또는 형태의 예측 단위에 대해서만 수행될 수 있다. 예를 들어, 인트라 모드는 정방형인 2Nx2N, NxN 크기의 예측 단위에 대해서만 수행될 수 있다. 또한, 스킵 모드는 2Nx2N 크기의 예측 단위에 대해서만 수행될 수 있다. 부호화 단위 내부에 복수의 예측 단위가 있다면, 각각의 예측 단위에 대해 예측을 수행하여 부호화 오차가 가장 작은 예측 모드가 선택될 수 있다.The prediction mode may be at least one of an intra mode, an inter mode, and a skip mode, and the specific prediction mode may be performed only for a prediction unit of a specific size or shape. For example, the intra mode may be performed only for a prediction unit having a square size of 2N × 2N or N × N. In addition, the skip mode may be performed only for a prediction unit having a size of 2N × 2N. If there are a plurality of prediction units in the coding unit, a prediction mode having the smallest encoding error may be selected by performing prediction for each prediction unit.

또한, 영상 부호화 장치(100)는 부호화 단위와 다른 크기의 처리 단위에 기초해 영상 데이터를 주파수 변환할 수 있다. 부호화 단위의 주파수 변환을 위해서 부호화 단위보다 작거나 같은 크기의 데이터 단위를 기반으로 주파수 변환이 수행될 수 있다. 이하, 주파수 변환의 기초가 되는 처리 단위를 '변환 단위'라 한다.In addition, the image encoding apparatus 100 may frequency-convert the image data based on a processing unit having a size different from that of the coding unit. Frequency conversion may be performed based on a data unit having a size smaller than or equal to the coding unit for frequency conversion of the coding unit. Hereinafter, the processing unit which becomes the basis of frequency conversion is called a "conversion unit."

부호화 심도 결정부(120)는 라그랑자 곱(Lagrangian Multiplier) 기반의 율-왜곡 최적화 기법(Rate-Distortion Optimization)을 이용하여 심도별 부호화 단위의 부호화 오차를 측정하여 최적의 부호화 오차를 갖는 최대 부호화 단위의 분할 형태를 결정할 수 있다. 다시 말해, 부호화 심도 결정부(120)는 최대 부호화 단위가 어떠한 형태의 복수의 서브 부호화 단위로 분할되는지 결정할 수 있는데, 여기서 복수의 서브 부호화 단위는 심도에 따라 크기가 상이하다.The coding depth determiner 120 measures a coding error of coding units according to depths using a Lagrangian Multiplier-based rate-distortion optimization technique to have an optimal coding error. The partition form of can be determined. In other words, the coded depth determiner 120 may determine which type of sub-coding unit is divided into a maximum coding unit, wherein the plurality of sub-coding units vary in size according to depth.

영상 데이터 부호화부(130)는, 부호화 심도 결정부(120)에서 결정된 적어도 하나의 부호화 심도에 기초하여 최대 부호화 단위의 영상 데이터를 부호화하여 비트스트림을 출력한다. 부호화 심도 결정부(120)에서 최소 부호화 오차를 측정하기 위해 부호화가 이미 수행되었으므로, 이를 이용해 부호화된 데이터 스트림을 출력할 수도 있다.The image data encoder 130 encodes image data of a maximum coding unit based on at least one coded depth determined by the coded depth determiner 120, and outputs a bitstream. Since the encoding depth determiner 120 has already performed encoding to measure the minimum encoding error, the encoded depth determiner 120 may output the encoded data stream.

부호화 정보 부호화부(140)는, 부호화 심도 결정부(120)에서 결정된 적어도 하나의 부호화 심도에 기초하여, 최대 부호화 단위마다 심도별 부호화 모드에 관한 정보를 부호화하여 비트스트림을 출력한다. 심도별 부호화 모드에 관한 정보는, 부호화 심도 정보, 부호화 심도의 부호화 단위의 예측 단위의 분할 타입 정보, 예측 단위별 예측 모드 정보, 변환 단위의 크기 정보 등을 포함할 수 있다.The encoding information encoder 140 outputs a bitstream by encoding information about an encoding mode according to depths for each largest coding unit, based on at least one coded depth determined by the coded depth determiner 120. The information about the encoding modes for each depth may include coded depth information, split type information of a prediction unit of a coding unit of a coding depth, prediction mode information for each prediction unit, size information of a transformation unit, and the like.

부호화 심도 정보는, 현재 심도로 부호화하지 않고 상위 심도의 부호화 단위로 부호화할지 여부를 나타내는 심도별 축소 정보를 이용하여 정의될 수 있다. 현재 부호화 단위의 현재 심도가 부호화 심도라면, 현재 부호화 단위는 현재 심도의 부호화 단위로 부호화되므로 현재 심도의 축소 정보는 더 이상 상위 심도로 축소되지 않도록 정의될 수 있다. 반대로, 현재 부호화 단위의 현재 심도가 부호화 심도가 아니라면 상위 심도의 부호화 단위를 이용한 부호화를 시도해보아야 하므로, 현재 심도의 축소 정보는 상위 심도의 부호화 단위로 축소되도록 정의될 수 있다.The coded depth information may be defined using depth-specific reduction information indicating whether to encode in a coding unit of a higher depth without encoding to the current depth. If the current depth of the current coding unit is a coded depth, since the current coding unit is encoded in a coding unit of the current depth, the reduced information of the current depth may no longer be reduced to a higher depth. On the contrary, if the current depth of the current coding unit is not the coding depth, encoding should be attempted using the coding unit of the higher depth, and thus the reduced information of the current depth may be defined to be reduced to the coding unit of the higher depth.

현재 심도가 부호화 심도가 아니라면, 상위 심도의 부호화 단위로 축소된 부호화 단위에 대해 부호화가 수행된다. 현재 심도의 부호화 단위 내에 상위 심도의 부호화 단위가 하나 이상 존재하므로, 각각의 상위 심도의 부호화 단위마다 반복적으로 부호화가 수행되어, 동일한 심도의 부호화 단위마다 재귀적(recursive) 부호화가 수행될 수 있다.If the current depth is not the coded depth, encoding is performed on the coding unit reduced to the coding unit of the higher depth. Since at least one coding unit of the higher depth exists in the coding unit of the current depth, encoding may be repeatedly performed for each coding unit of each higher depth, and recursive coding may be performed for each coding unit of the same depth.

하나의 최대 부호화 단위 안에 적어도 하나의 부호화 심도가 결정되며 부호화 심도마다 적어도 하나의 부호화 모드에 관한 정보가 결정되어야 하므로, 하나의 최대 부호화 단위에 대해서는 적어도 하나의 부호화 모드에 관한 정보가 결정될 수 있다. 또한, 최대 부호화 단위의 데이터는 심도에 따라 계층적으로 분할되어 위치 별로 부호화 심도가 다를 수 있으므로, 데이터에 대해 부호화 심도 및 부호화 모드에 관한 정보가 설정될 수 있다.Since at least one coding depth is determined in one maximum coding unit and information about at least one coding mode should be determined for each coding depth, information about at least one coding mode may be determined for one maximum coding unit. In addition, since the data of the largest coding unit is hierarchically divided according to the depth, the coding depth may be different for each location, and thus information about the coded depth and the coding mode may be set for the data.

따라서, 일 실시예에 따른 부호화 정보 부호화부(140)는, 최대 부호화 단위에 포함되어 있는 최소 부호화 단위마다 해당 부호화 정보를 설정할 수 있다. 즉, 부호화 심도의 부호화 단위는 동일한 부호화 정보를 보유하고 있는 최소 부호화 단위를 하나 이상 포함하고 있다. 이를 이용하여, 인근 최소 부호화 단위들이 동일한 심도별 부호화 정보를 갖고 있다면, 동일한 최대 부호화 단위에 포함되는 최소 부호화 단위일 수 있다.Therefore, the encoding information encoder 140 according to an embodiment may set corresponding encoding information for each minimum coding unit included in the maximum coding unit. That is, the coding unit of the coded depth includes at least one minimum coding unit having the same coding information. By using this, if the neighboring minimum coding units have the same depth-specific encoding information, it may be the minimum coding unit included in the same maximum coding unit.

영상 부호화 장치(100)의 가장 간단한 형태의 실시예에 따르면, 심도별 부호화 단위는 한 계층 하위 심도의 부호화 단위의 높이 및 너비를 반분한 크기의 부호화 단위이다. 즉, 현재 심도(k)의 부호화 단위의 크기가 2Nx2N이라면, 상위 심 도(k+1)의 부호화 단위의 크기는 NxN 이다. 따라서, 2Nx2N 크기의 현재 부호화 단위는 NxN 크기의 상위 심도 부호화 단위를 최대 4개 포함할 수 있다.According to an embodiment of the simplest form of the image encoding apparatus 100, a coding unit for each depth is a coding unit having a size in which a height and a width of a coding unit of one layer lower depth are divided by half. That is, if the size of the coding unit of the current depth k is 2Nx2N, the size of the coding unit of the higher depth k + 1 is NxN. Therefore, a current coding unit having a size of 2Nx2N may include at most four higher depth coding units having a size of NxN.

따라서, 일 실시예에 따른 영상 복호화 장치(100)는 현재 픽처의 특성을 고려하여 결정된 최대 부호화 단위의 크기 및 최대 심도를 기반으로, 각각의 최대 부호화 단위마다 최적의 형태 분할 형태를 결정할 수 있다. 또한, 각각의 최대 부호화 단위마다 다양한 예측 모드, 주파수 변환 방식 등으로 부호화할 수 있으므로, 다양한 영상 크기의 부호화 단위의 영상 특성을 고려하여 최적의 부호화 모드가 결정될 수 있다.Accordingly, the image decoding apparatus 100 according to an embodiment may determine an optimal shape division form for each maximum coding unit based on the size and the maximum depth of the maximum coding unit determined in consideration of the characteristics of the current picture. In addition, since each of the maximum coding units may be encoded in various prediction modes, frequency transform schemes, or the like, an optimal coding mode may be determined in consideration of image characteristics of coding units having various image sizes.

영상의 해상도가 매우 높거나 데이터량이 매우 큰 영상을 종래의 16x16 크기의 매크로블록 단위로 부호화한다면, 픽처당 매크로블록의 수가 과도하게 많아진다. 이에 따라, 매크로블록마다 생성되는 압축 정보도 많아지므로 압축 정보의 전송 부담이 커지고 데이터 압축 효율이 감소하는 경향이 있다. 따라서, 본 발명의 일 실시예에 따른 영상 부호화 장치는, 영상의 크기를 고려하여 부호화 단위의 최대 크기를 증가시키면서, 영상 특성을 고려하여 부호화 단위를 조절할 수 있으므로, 영상 압축 효율이 증대될 수 있다.If an image having a very high resolution or a very large data amount is encoded in a conventional 16 × 16 macroblock unit, the number of macroblocks per picture becomes excessively large. Accordingly, since the compressed information generated for each macroblock increases, the transmission burden of the compressed information increases, and the data compression efficiency tends to decrease. Accordingly, the image encoding apparatus according to an embodiment of the present invention may adjust the coding unit in consideration of the image characteristics while increasing the maximum size of the coding unit in consideration of the size of the image, thereby increasing image compression efficiency. .

도 2 는 본 발명의 일 실시예에 따른 영상 복호화 장치의 블록도를 도시한다.2 is a block diagram of an image decoding apparatus according to an embodiment of the present invention.

도 2를 참조하면, 본 발명의 일 실시예에 따른 영상 복호화 장치(200)는 영상 데이터 획득부(210), 부호화 정보 추출부(220) 및 영상 데이터 복호화부(230)를 포함한다. Referring to FIG. 2, the image decoding apparatus 200 according to an embodiment of the present invention includes an image data acquisition unit 210, an encoding information extractor 220, and an image data decoder 230.

영상 관련 데이터 획득부(210)는 영상 복호화 장치(200)가 수신한 비트열을 파싱하여, 최대 부호화 단위별로 영상 데이터를 획득하여 영상 데이터 복호화부(230)로 출력한다. 영상 관련 데이터 획득부(210)는 현재 픽처 또는 슬라이스에 대한 헤더로부터 현재 픽처 또는 슬라이스의 최대 부호화 단위에 대한 정보를 추출할 수 있다. 본 발명의 일 실시예에 따른 영상 복호화 장치(200)는 최대 부호화 단위 단위별로 영상 데이터를 복호화한다. The image related data obtaining unit 210 parses the bit string received by the image decoding apparatus 200, obtains image data for each maximum coding unit, and outputs the image data to the image data decoding unit 230. The image-related data acquisition unit 210 may extract information on the maximum coding unit of the current picture or slice from the header for the current picture or slice. The image decoding apparatus 200 according to an embodiment of the present invention decodes image data for each largest coding unit.

부호화 정보 추출부(220)는 영상 복호화 장치(200)가 수신한 비트열을 파싱하여, 현재 픽처에 대한 헤더로부터 최대 부호화 단위별 부호화 심도 및 부호화 모드에 관한 정보를 추출한다. 추출된 부호화 심도 및 부호화 모드에 관한 정보는 영상 데이터 복호화부(230)로 출력된다.The encoding information extracting unit 220 parses the bit string received by the image decoding apparatus 200 and extracts information about a coded depth and an encoding mode for each maximum coding unit from a header for the current picture. The extracted information about the coded depth and the coding mode is output to the image data decoder 230.

최대 부호화 단위별 부호화 심도 및 부호화 모드에 관한 정보는, 하나 이상의 부호화 심도 정보에 대해 설정될 수 있으며, 부호화 심도별 부호화 모드에 관한 정보는, 부호화 단위별 예측 단위의 분할 타입 정보, 예측 모드 정보 및 변환 단위의 크기 정보 등을 포함할 수 있다. 또한, 부호화 심도 정보로서, 심도별 축소 정보가 추출될 수도 있다.The information about the coded depth and the encoding mode for each largest coding unit may be set for one or more coded depth information, and the information about the coding mode for each coded depth may include split type information of a prediction unit for each coding unit, prediction mode information, and the like. The size information of the transformation unit may be included. In addition, reduced coded information for each depth may be extracted as the coded depth information.

최대 부호화 단위의 분할 형태에 대한 정보는 최대 부호화 단위에 포함된 심도에 따라 상이한 크기의 서브 부호화 단위에 대한 정보를 포함할 수 있으며, 부호화 모드에 관한 정보는 서브 부호화 단위별 예측 단위에 대한 정보, 예측 모드에 대한 정보 및 변환 단위에 대한 정보 등을 포함할 수 있다. The information about the split form of the largest coding unit may include information about sub-coding units having different sizes according to the depth included in the maximum coding unit, and the information about the encoding mode may include information about a prediction unit for each sub-coding unit, Information on the prediction mode and information on the transformation unit may be included.

영상 데이터 복호화부(230)는 부호화 정보 추출부에서 추출된 정보에 기초하 여 각각의 최대 부호화 단위의 영상 데이터를 복호화하여 현재 픽처를 복원한다. 최대 부호화 단위의 분할 형태에 대한 정보에 기초하여, 영상 데이터 복호화부(230)는 최대 부호화 단위에 포함된 서브 부호화 단위를 복호화할 수 있다. 복호화 과정은 인트라 예측 및 움직임 보상을 포함하는 움직임 예측 과정, 및 주파수 역변환 과정을 포함할 수 있다.The image data decoder 230 reconstructs the current picture by decoding image data of each maximum coding unit based on the information extracted by the encoding information extractor. The image data decoder 230 may decode the sub coding unit included in the maximum coding unit based on the information about the split form of the maximum coding unit. The decoding process may include a motion prediction process including intra prediction and motion compensation, and a frequency inverse transform process.

영상 데이터 복호화부(230)는 최대 부호화 단위별 부호화 심도 및 부호화 모드에 관한 정보에 기초하여 각각의 최대 부호화 단위의 영상 데이터를 복호화하여 현재 픽처를 복원한다. 최대 부호화 단위별 부호화 심도 정보에 기초하여, 영상 데이터 복호화부(230)는 적어도 하나의 부호화 심도의 부호화 단위마다 영상 데이터를 복호화할 수 있다. 복호화 과정은 인트라 예측 및 움직임 보상을 포함하는 예측 과정 및 역변환 과정을 포함할 수 있다.The image data decoder 230 reconstructs the current picture by decoding image data of each maximum coding unit based on the information about the coded depth and the encoding mode for each maximum coding unit. Based on the coded depth information for each largest coding unit, the image data decoder 230 may decode the image data for each coding unit of at least one coded depth. The decoding process may include a prediction process including an intra prediction and motion compensation and an inverse transform process.

영상 데이터 복호화부(230)는, 부호화 단위별 예측을 위해 부호화 심도별 부호화 단위의 예측 단위의 분할 타입 정보 및 예측 모드 정보에 기초하여, 부호화 단위마다 각각의 예측 단위 및 예측 모드로 인트라 예측 또는 움직임 보상을 수행할 수 있다. 또한, 영상 데이터 복호화부(230)는, 최대 부호화 단위별 역변환을 위해, 부호화 심도별 부호화 단위의 변환 단위의 크기 정보에 기초하여, 부호화 단위마다 각각의 변환 단위로 역변환을 수행할 수 있다.The image data decoder 230 performs intra prediction or motion in each prediction unit and prediction mode for each coding unit, based on the split type information and the prediction mode information of the prediction unit of the coding unit according to the coding depths, for the prediction of each coding unit. Compensation can be performed. In addition, the image data decoder 230 may perform inverse transformation in each transformation unit for each coding unit based on size information of the transformation unit of the coding unit for each coding depth, for inverse transformation for each maximum coding unit.

영상 데이터 복호화부(230)는 심도별 축소 정보를 이용하는 현재 최대 부호화 단위의 부호화 심도를 결정할 수 있다. 만약, 축소 정보가 현재 심도로 복호화할 것을 나타내고 있다면 현재 심도가 부호화 심도이다. 따라서, 영상 데이터 복호 화부(230)는 현재 최대 부호화 단위의 영상 데이터에 대해 현재 심도의 부호화 단위를 예측 단위의 분할 타입, 예측 모드 및 변환 단위 크기 정보를 이용하여 복호화할 수 있다. 즉, 최소 부호화 단위에 대해 설정되어 있는 부호화 정보를 관찰하여, 동일한 축소 정보를 포함한 부호화 정보를 보유하고 있는 최소 부호화 단위를 모아, 하나의 데이터 단위로 복호화할 수 있다. The image data decoder 230 may determine the coded depth of the current maximum coding unit using the reduced information for each depth. If the reduced information indicates decoding to the current depth, the current depth is the coded depth. Therefore, the image data decoder 230 may decode the coding unit of the current depth with respect to the image data of the current maximum coding unit by using the partition type, the prediction mode, and the transformation unit size information of the prediction unit. In other words, by observing the encoding information set for the minimum coding unit, the minimum coding unit holding the encoding information including the same reduced information can be collected and decoded into one data unit.

일 실시예에 따른 영상 복호화 장치(200)는, 부호화 과정에서 최대 부호화 단위마다 재귀적으로 부호화를 수행하여 최소 부호화 오차를 발생시킨 부호화 단위에 대한 정보를 획득하여, 현재 픽처에 대한 복호화에 이용할 수 있다. 즉, 최대 부호화 단위마다 최적 부호화 단위로 영상 데이터의 복호화가 가능해진다. 따라서, 높은 해상도의 영상 또는 데이터량이 과도하게 많은 영상이라도 부호화단으로부터 전송된 최적 부호화 모드에 관한 정보를 이용하여, 영상의 특성에 적응적으로 결정된 부호화 단위의 크기 및 부호화 모드에 따라 효율적으로 영상 데이터를 복호화하여 복원할 수 있다.The image decoding apparatus 200 according to an exemplary embodiment may obtain information about a coding unit that generates a minimum coding error by recursively encoding each maximum coding unit in an encoding process, and use the same to decode the current picture. have. That is, the image data can be decoded in an optimal coding unit for each maximum coding unit. Therefore, even if a high resolution image or an excessively large amount of data is used, the image data can be efficiently used according to the coding unit size and the encoding mode that are adaptively determined according to the characteristics of the image by using the information about the optimum encoding mode transmitted from the encoding end. Can be decoded and restored.

도 3은 본 발명의 일 실시예에 따른 계층적 부호화 단위를 도시한다.3 illustrates a hierarchical coding unit according to an embodiment of the present invention.

도 3을 참조하면, 본 발명에 따른 계층적 부호화 단위는 너비x높이가 64x64인 부호화 단위부터, 32x32, 16x16, 8x8, 및 4x4를 포함할 수 있다. 정사각형 형태의 부호화 단위 이외에도, 너비x높이가 64x32, 32x64, 32x16, 16x32, 16x8, 8x16, 8x4, 4x8인 부호화 단위들이 존재할 수 있다.Referring to FIG. 3, the hierarchical coding unit according to the present invention may include 32x32, 16x16, 8x8, and 4x4 starting from a coding unit having a width x height of 64x64. In addition to the square coding units, there may be coding units having a width x height of 64x32, 32x64, 32x16, 16x32, 16x8, 8x16, 8x4, and 4x8.

도 3에서 비디오 데이터(310)에 대해서는, 해상도는 1920x1080, 최대 부호화 단위의 크기는 64, 최대 심도가 2로 설정되어 있다. 또한, 비디오 데이터(320)에 대해서는, 해상도는 1920x1080, 부호화 단위의 최대 크기는 64, 최대 심도가 4로 설정되어 있다. 또한, 비디오 데이터(330)에 대해서는, 해상도는 352x288, 부호화 단위의 최대 크기는 16, 최대 심도가 2로 설정되어 있다.In FIG. 3, the video data 310 has a resolution of 1920x1080, a maximum coding unit size of 64, and a maximum depth of 2. In the video data 320, the resolution is set to 1920x1080, the maximum size of the coding unit is 64, and the maximum depth is set to 4. For the video data 330, the resolution is set to 352x288, the maximum size of the coding unit is 16, and the maximum depth is 2.

해상도가 높거나 데이터량이 많은 경우 압축률 향상뿐만 아니라 영상 특성을 정확히 반영하기 위해 부호화 사이즈의 최대 크기가 상대적으로 큰 것이 바람직하다. 따라서, 비디오 데이터(330)에 비해, 해상도가 높은 비디오 데이터(310, 320)는 부호화 사이즈의 최대 크기가 64로 선택될 수 있다.When the resolution is high or the amount of data is large, it is desirable that the maximum size of the coding size be relatively large in order to not only improve the compression ratio but also accurately reflect the image characteristics. Accordingly, the video data 310 or 320 having a higher resolution than the video data 330 may be selected to have a maximum size of 64.

최대 심도는 계층적 부호화 단위에서 총 계층수를 나타낸다. 따라서, 비디오 데이터(310)의 최대 심도는 2이므로, 비디오 데이터(310)의 부호화 단위(315)는 장축 크기가 64인 최대 부호화 단위로부터, 심도가 두 계층 증가하여 장축 크기가 32, 16인 부호화 단위들까지 포함할 수 있다. 반면, 비디오 데이터(330)의 최대 심도는 2이므로, 비디오 데이터(330)의 부호화 단위(335)는 장축 크기가 16인 부호화 단위들로부터, 심도가 두 계층 증가하여 장축 크기가 8, 4인 부호화 단위들까지 포함할 수 있다. The maximum depth represents the total number of layers in the hierarchical coding unit. Accordingly, since the maximum depth of the video data 310 is 2, the coding unit 315 of the video data 310 is encoded from the largest coding unit having a long axis size of 64 by two layers of depth, and has a long axis size of 32 or 16. It can include up to units. On the other hand, since the maximum depth of the video data 330 is 2, the coding unit 335 of the video data 330 has two long depths of encoding from the coding units having the long axis size of 16, so that the long axis sizes are 8 and 4 It can include up to units.

비디오 데이터(320)의 최대 심도는 4이므로, 비디오 데이터(320)의 부호화 단위(325)는 장축 크기가 64인 최대 부호화 단위로부터, 심도가 네 계층 증가하여 장축 크기가 32, 16, 8, 4인 부호화 단위들까지 포함할 수 있다.심도가 증가할수록 더 작은 서브 부호화 단위에 기초해 영상을 부호화하므로 보다 세밀한 장면을 포함하고 있는 영상을 부호화하는데 적합해진다.Since the maximum depth of the video data 320 is 4, the coding unit 325 of the video data 320 increases the depth by four layers from the maximum coding unit having the long axis size of 64, so that the long axis size is 32, 16, 8, 4 It is possible to include even coding units. As the depth is increased, the image is encoded based on a smaller sub-coding unit, thereby making it suitable for encoding an image including a finer scene.

도 4 는 본 발명의 일 실시예에 따른 부호화 단위에 기초한 영상 부호화부의 블록도를 나타낸 것이다.4 is a block diagram of an image encoder based on coding units, according to an embodiment of the present invention.

도 4를 참조하면, 인트라 예측부(410)는 현재 프레임(405) 중 인트라 모드의 예측 단위에 대해 인트라 예측을 수행하고, 움직임 추정부(420) 및 움직임 보상부(425)는 인터 모드의 예측 단위에 대해 현재 프레임(405) 및 참조 프레임(495)을 이용해 인터 예측 및 움직임 보상을 수행한다.Referring to FIG. 4, the intra predictor 410 performs intra prediction on the prediction unit of the intra mode in the current frame 405, and the motion estimator 420 and the motion compensator 425 predict the inter mode. Inter prediction and motion compensation are performed using the current frame 405 and the reference frame 495 for the unit.

인트라 예측부(410), 움직임 추정부(420) 및 움직임 보상부(425)로부터 출력된 예측 단위에 기초해 레지듀얼 값들이 생성되고, 생성된 레지듀얼 값들은 주파수 변환부(430) 및 양자화부(440)를 거쳐 양자화된 변환 계수로 출력된다. 특히 도 12를 참조하여 후술되는 바와 같이 본 발명의 일 실시예에 따른 인트라 예측부(410)는 인트라 예측된 부호화 단위의 각 픽셀을 그 주변 픽셀을 이용하여 변경하는 후처리를 수행하고, 후처리된 부호화 단위와 원 부호화 단위의 차이값인 레지듀얼 값들은 주파수 변환부(430) 및 양자화부(440)를 거쳐 양자화된 변환 계수로 출력될 수 있다.Residual values are generated based on the prediction unit output from the intra predictor 410, the motion estimator 420, and the motion compensator 425, and the generated residual values are the frequency converter 430 and the quantizer. 440 is output as a quantized transform coefficient. In particular, as described below with reference to FIG. 12, the intra prediction unit 410 according to an embodiment of the present invention performs post-processing for changing each pixel of an intra-predicted coding unit by using neighboring pixels, and then post-processing. The residual values, which are the difference between the encoded coding unit and the original coding unit, may be output as quantized transform coefficients through the frequency transformer 430 and the quantizer 440.

양자화된 변환 계수는 역양자화부(460), 주파수 역변환부(470)를 통해 다시 레지듀얼 값으로 복원되고, 복원된 레지듀얼 값들은 디블로킹부(480) 및 루프 필터링부(490)를 거쳐 후처리되어 참조 프레임(495)으로 출력된다. 양자화된 변환 계수는 엔트로피 부호화부(450)를 거쳐 비트스트림(455)으로 출력될 수 있다.The quantized transform coefficients are restored to the residual values through the inverse quantizer 460 and the frequency inverse transformer 470, and the restored residual values are passed through the deblocking unit 480 and the loop filtering unit 490. Processed and output to the reference frame 495. The quantized transform coefficients may be output to the bitstream 455 via the entropy encoder 450.

본 발명의 일 실시예에 따른 영상 부호화 방법에 따라 부호화하기 위해, 영상 부호화부(400)의 구성 요소들인 인트라 예측부(410), 움직임 추정부(420), 움직임 보상부(425), 주파수 변환부(430), 양자화부(440), 엔트로피 부호화부(450), 역 양자화부(460), 주파수 역변환부(470), 디블로킹부(480) 및 루프 필터링부(490)는 모두 최대 부호화 단위, 심도에 따른 서브 부호화 단위, 예측 단위 및 변환 단위에 기초해 영상 부호화 과정들을 처리한다. 특히, 인트라 예측부(410), 움직임 추정부(420) 및 움직임 보상부(425)는 부호화 단위의 최대 크기 및 심도를 고려하여 부호화 단위 내의 예측 단위 및 예측 모드를 결정하며, 주파수 변환부(430)는 부호화 단위의 최대 크기 및 심도를 고려하여 변환 단위의 크기를 고려하여야 한다.In order to encode according to an image encoding method according to an embodiment of the present invention, the components of the image encoder 400, an intra predictor 410, a motion estimator 420, a motion compensator 425, and a frequency transform The unit 430, the quantizer 440, the entropy encoder 450, the inverse quantizer 460, the frequency inverse transformer 470, the deblocking unit 480, and the loop filter 490 are all the maximum coding units. The image encoding processes are processed based on a sub coding unit, a prediction unit, and a transformation unit according to the depth. In particular, the intra predictor 410, the motion estimator 420, and the motion compensator 425 determine the prediction unit and the prediction mode in the coding unit in consideration of the maximum size and the depth of the coding unit, and the frequency converter 430. ) Should consider the size of the transform unit in consideration of the maximum size and depth of the coding unit.

도 5 는 본 발명의 일 실시예에 따른 부호화 단위에 기초한 영상 복호화부의 블록도를 나타낸 것이다.5 is a block diagram of an image decoder based on coding units, according to an embodiment of the present invention.

도 5를 참조하면, 비트스트림(505)이 파싱부(510)를 거쳐 복호화 대상인 부호화된 영상 데이터 및 복호화를 위해 필요한 부호화 정보가 파싱된다. 부호화된 영상 데이터는 엔트로피 복호화부(520) 및 역양자화부(530)를 거쳐 역양자화된 데이터로 출력되고, 주파수 역변환부(540)를 거쳐 레지듀얼 값들로 복원된다. 레지듀얼 값들은 인트라 예측부(550)의 인트라 예측의 결과 또는 움직임 보상부(560)의 움직임 보상 결과와 가산되어 부호화 단위 별로 복원된다. 복원된 부호화 단위는 디블로킹부(570) 및 루프 필터링부(580)를 거쳐 다음 부호화 단위 또는 다음 픽처의 예측에 이용된다.Referring to FIG. 5, the bitstream 505 is parsed through the parser 510 to encode encoded image data and encoding information necessary for decoding. The encoded image data is output as inverse quantized data through an entropy decoder 520 and an inverse quantizer 530, and reconstructed into residual values through a frequency inverse transformer 540. The residual values are added to the result of the intra prediction of the intra predictor 550 or the result of the motion compensation of the motion compensator 560 and reconstructed for each coding unit. The reconstructed coding unit is used for prediction of the next coding unit or the next picture through the deblocking unit 570 and the loop filtering unit 580.

본 발명의 일 실시예에 따른 영상 복호화 방법에 따라 복호화하기 위해 영상 복호화부(400)의 구성 요소들인 파싱부(510), 엔트로피 복호화부(520), 역양자화부(530), 주파수 역변환부(540), 인트라 예측부(550), 움직임 보상부(560), 디블로킹부(570) 및 루프 필터링부(580)가 모두 최대 부호화 단위, 심도에 따른 서브 부 호화 단위, 예측 단위 및 변환 단위에 기초해 영상 복호화 과정들을 처리한다. 특히, 인트라 예측부(550), 움직임 보상부(560)는 부호화 단위의 최대 크기 및 심도를 고려하여 부호화 단위 내의 예측 단위 및 예측 모드를 결정하며, 주파수 역변환부(540)는 부호화 단위의 최대 크기 및 심도를 고려하여 변환 단위의 크기를 고려하여야 한다.Parsing unit 510, entropy decoding unit 520, inverse quantization unit 530, frequency inverse transform unit (components) of the image decoding unit 400 to decode according to the image decoding method according to an embodiment of the present invention 540, the intra prediction unit 550, the motion compensator 560, the deblocking unit 570, and the loop filtering unit 580 all include a maximum coding unit, a sub-encoding unit according to depth, a prediction unit, and a transformation unit. Based on the video decoding processes. In particular, the intra predictor 550 and the motion compensator 560 determine the prediction unit and the prediction mode in the coding unit in consideration of the maximum size and the depth of the coding unit, and the frequency inverse transformer 540 determines the maximum size of the coding unit. Considering the depth and depth, the size of the transform unit should be considered.

도 6은 본 발명의 일 실시예에 따른 심도별 부호화 단위 및 예측 단위를 도시한다.6 is a diagram of deeper coding units according to depths, and prediction units, according to an embodiment of the present invention.

일 실시예에 따른 영상 부호화 장치(100) 및 일 실시예에 따른 영상 복호화 장치(200)는 영상 특성을 고려하기 위해 계층적인 부호화 단위를 사용한다. 부호화 단위의 최대 높이 및 너비, 최대 심도는 영상의 특성에 따라 적응적으로 결정될 수도 있으며, 사용자의 요구에 따라 다양하게 설정될 수도 있다. 미리 설정된 부호화 단위의 최대 크기에 따라, 심도별 부호화 단위의 크기가 결정될 수도 있다.The image encoding apparatus 100 and the image decoding apparatus 200 according to an embodiment use hierarchical coding units to consider image characteristics. The maximum height, width, and maximum depth of the coding unit may be adaptively determined according to the characteristics of the image, and may be variously set according to a user's request. According to the maximum size of the preset coding unit, the size of the coding unit for each depth may be determined.

본 발명의 일 실시예에 따른 부호화 단위의 계층 구조(600)는 부호화 단위의 최대 높이 및 너비가 64이며, 최대 심도가 4인 경우를 도시하고 있다. 일 실시예에 따른 부호화 단위의 계층 구조(600)의 세로축을 따라서 심도가 증가하므로 심도별 부호화 단위의 높이 및 너비가 각각 축소된다. 또한, 부호화 단위의 계층 구조(600)의 가로축을 따라, 각각의 심도별 부호화 단위의 예측 기반이 되는 부분적 데이터 단위인 예측 단위가 도시되어 있다.The hierarchical structure 600 of a coding unit according to an embodiment of the present invention illustrates a case in which the maximum height and width of the coding unit are 64 and the maximum depth is four. Since the depth increases along the vertical axis of the hierarchical structure 600 of the coding unit, the height and the width of the coding unit for each depth are reduced. Also, a prediction unit that is a partial data unit that is a prediction base of each deeper coding unit is illustrated along the horizontal axis of the hierarchical structure 600 of the coding unit.

최대 부호화 단위(610)는 부호화 단위의 계층 구조(600) 중 최대 부호화 단위로서 심도가 0이며, 부호화 단위의 크기, 즉 높이 및 너비가 64x64이다. 세로축 을 따라 심도가 증가하며, 크기 32x32인 심도 1의 부호화 단위(620), 크기 16x16인 심도 2의 부호화 단위(630), 크기 8x8인 심도 3의 부호화 단위(640), 크기 4x4인 심도 4의 부호화 단위(650)가 존재한다. 크기 4x4인 심도 4의 부호화 단위(650)는 최소 부호화 단위이다.The maximum coding unit 610 has a depth of 0 as a maximum coding unit of the hierarchical structure 600 of the coding unit, and a size, that is, a height and a width, of the coding unit is 64x64. The depth increases along the vertical axis and includes a coding unit 620 of depth 1 having a size of 32x32, a coding unit 630 of depth 2 having a size of 16x16, a coding unit 640 of depth 3 having a size of 8x8, and a depth of 4 having a depth of 4x4. The coding unit 650 exists. A coding unit 650 having a depth of 4 having a size of 4 × 4 is a minimum coding unit.

또한 도 6을 참조하면, 각각의 심도별로 가로축을 따라, 부호화 단위의 예측 단위로서, 부분적 데이터 단위들이 도시되어 있다. 즉, 심도 0의 크기 64x64의 최대 부호화 단위(610)의 예측 단위는, 크기 64x64의 부호화 단위(610)에 포함되는 크기 64x64의 부분적 데이터 단위(610), 크기 64x32의 부분적 데이터 단위들(612), 크기 32x64의 부분적 데이터 단위들(614), 크기 32x32의 부분적 데이터 단위들(616)일 수 있다. Referring to FIG. 6, partial data units are shown as prediction units of coding units along a horizontal axis for each depth. That is, the prediction unit of the largest coding unit 610 of size 64x64 having a depth of 0 is a partial data unit 610 of size 64x64 included in the coding unit 610 of size 64x64, and partial data units 612 of size 64x32. , Partial data units 614 of size 32x64 and partial data units 616 of size 32x32.

심도 1의 크기 32x32의 부호화 단위(620)의 예측 단위는, 크기 32x32의 부호화 단위(620)에 포함되는 크기 32x32의 부분적 데이터 단위(620), 크기 32x16의 부분적 데이터 단위들(622), 크기 16x32의 부분적 데이터 단위들(624), 크기 16x16의 부분적 데이터 단위들(626)일 수 있다. The prediction unit of the coding unit 620 having a size of 32x32 having a depth of 1 may be a partial data unit 620 having a size of 32x32, the partial data units 622 having a size of 32x16, and a size of 16x32 included in the coding unit 620 having a size of 32x32. May be partial data units 624 of, partial data units 626 of size 16x16.

심도 2의 크기 16x16의 부호화 단위(630)의 예측 단위는, 크기 16x16의 부호화 단위(630)에 포함되는 크기 16x16의 부분적 데이터 단위(630), 크기 16x8의 부분적 데이터 단위들(632), 크기 8x16의 부분적 데이터 단위들(634), 크기 8x8의 부분적 데이터 단위들(636)일 수 있다. The prediction unit of the coding unit 630 of size 16x16 having a depth of 2 is a partial data unit 630 of size 16x16 included in the coding unit 630 of size 16x16, partial data units 632 of size 16x8, and size 8x16. May be partial data units 634 of, partial data units 636 of size 8x8.

심도 3의 크기 8x8의 부호화 단위(640)의 예측 단위는, 크기 8x8의 부호화 단위(640)에 포함되는 크기 8x8의 부분적 데이터 단위(640), 크기 8x4의 부분적 데 이터 단위들(642), 크기 4x8의 부분적 데이터 단위들(644), 크기 4x4의 부분적 데이터 단위들(646)일 수 있다. The prediction unit of the coding unit 640 of size 8x8 having a depth of 3 includes a partial data unit 640 of size 8x8 included in the coding unit 640 of size 8x8, partial data units 642 of size 8x4, and size 4x8 partial data units 644, size 4x4 partial data units 646.

마지막으로, 심도 4의 크기 4x4의 부호화 단위(650)는 최소 부호화 단위이며 최상위 심도의 부호화 단위이고, 해당 예측 단위도 크기 4x4의 데이터 단위(650)이다.Finally, the coding unit 650 having a depth of 4 has a minimum coding unit, the coding unit having the highest depth, and the prediction unit is also a data unit 650 having a size of 4 × 4.

일 실시예에 따른 영상 부호화 장치의 부호화 심도 결정부(120)는, 최대 부호화 단위(610)의 부호화 심도를 결정하기 위해, 최대 부호화 단위(610)에 포함되는 각각의 심도의 부호화 단위마다 부호화를 수행하여야 한다. In order to determine the coded depth of the maximum coding unit 610, the coded depth determiner 120 of the image encoding apparatus according to an embodiment performs encoding on each coding unit of each depth included in the maximum coding unit 610. It must be done.

동일한 범위 및 크기의 데이터를 포함하기 위한 심도별 부호화 단위의 개수는, 심도가 증가할수록 심도별 부호화 단위의 개수도 증가한다. 예를 들어, 심도 1의 부호화 단위 한 개가 포함하는 데이터에 대해서, 심도 2의 부호화 단위는 네 개가 필요하다. 따라서, 동일한 데이터의 부호화 결과를 심도별로 비교하기 위해서, 한 개의 심도 1의 부호화 단위 및 네 개의 심도 2의 부호화 단위를 이용하여 각각 부호화되어야 한다.As the number of deeper coding units includes data of the same range and size, the number of deeper coding units increases as the depth increases. For example, four coding units of depth 2 are required for data included in one coding unit of depth 1. Therefore, in order to compare the encoding results of the same data for each depth, each of the coding units having one depth 1 and four coding units having four depths 2 should be encoded.

각각의 심도별 부호화를 위해서는, 부호화 단위의 계층 구조(600)의 가로축을 따라, 심도별 부호화 단위의 예측 단위들마다 부호화를 수행하여, 해당 심도에서 가장 작은 부호화 오차인 대표 부호화 오차가 선택될 수다. 또한, 부호화 단위의 계층 구조(600)의 세로축을 따라 심도를 증가시키며, 각각의 심도마다 부호화를 수행하여, 심도별 대표 부호화 오차를 비교하여 최소 부호화 오차가 검색될 수 있다. 최대 부호화 단위(610) 중 최소 부호화 오차가 발생하는 심도가 최대 부호화 단위(610)의 부호화 심도 및 분할 타입으로 선택될 수 있다. For each depth coding, encoding may be performed for each prediction unit of a coding unit according to depths along a horizontal axis of the hierarchical structure 600 of the coding unit, and a representative coding error, which is the smallest coding error at a corresponding depth, may be selected. . In addition, the depth may be increased along the vertical axis of the hierarchical structure 600 of the coding unit, the encoding may be performed for each depth, and the minimum coding error may be searched by comparing the representative coding error for each depth. The depth in which the minimum coding error occurs in the maximum coding unit 610 may be selected as the coding depth and the split type of the maximum coding unit 610.

도 7은 본 발명의 일 실시예에 따른, 부호화 단위 및 변환 단위의 관계를 도시한다. 7 illustrates a relationship between coding units and transformation units, according to an embodiment of the present invention.

본 발명의 일 실시예에 따른 영상 부호화 장치(100) 및 영상 복호화 장치(200)는, 최대 부호화 단위마다 최대 부호화 단위보다 작거나 같은 크기의 부호화 단위로 영상을 분할하여 부호화하거나 복호화한다. 부호화 과정 중 주파수 변환을 위한 변환 단위의 크기는 각각의 부호화 단위보다 크지 않은 데이터 단위를 기반으로 선택될 수 있다. 예를 들어, 현재 부호화 단위(710)가 64x64 크기일 때, 32x32 크기의 변환 단위(720)를 이용하여 주파수 변환이 수행될 수 있다. 또한, 64x64 크기의 부호화 단위(710)의 데이터를 64x64 크기 이하의 32x32, 16x16, 8x8, 4x4 크기의 변환 단위들로 각각 주파수 변환을 수행하여 부호화한 후, 원본과의 오차가 가장 적은 변환 단위가 선택될 수 있다.The image encoding apparatus 100 and the image decoding apparatus 200 according to an embodiment of the present invention divide and encode or decode an image into coding units having a size smaller than or equal to the maximum coding unit for each maximum coding unit. The size of a transform unit for frequency transformation during the encoding process may be selected based on a data unit that is not larger than each coding unit. For example, when the current coding unit 710 is 64x64 size, frequency conversion may be performed using the 32x32 size transform unit 720. In addition, the data of the 64x64 coding unit 710 is encoded by performing frequency transformation on the 32x32, 16x16, 8x8, and 4x4 transform units having a size of 64x64 or less, and the transform unit having the least error with the original is obtained. Can be selected.

도 8은 본 발명의 일 실시예에 따라, 심도별 부호화 정보들을 도시한다.8 illustrates encoding information according to depths, according to an embodiment of the present invention.

본 발명의 일 실시예에 따른 영상 부호화 장치(100)의 부호화 정보 부호화부는 부호화 모드에 관한 정보로서, 각각의 부호화 심도의 부호화 단위마다 분할 타입에 관한 정보(800), 예측 모드에 관한 정보(810), 변환 단위 크기에 대한 정보(820)를 부호화하여 전송할 수 있다.The encoding information encoder of the image encoding apparatus 100 according to an exemplary embodiment of the present invention is information about an encoding mode. Information 800 about a partition type and information about a prediction mode 810 for each coding unit of each coded depth. Information 820 about the size of the transform unit may be encoded and transmitted.

분할 타입에 대한 정보(800)는, 현재 부호화 단위의 움직임 예측을 위해 예측 단위로서, 현재 부호화 단위가 분할된 타입에 대한 정보를 나타낸다. 예를 들어, 심도 0 및 크기 2Nx2N의 현재 부호화 단위 CU_0는, 크기 2Nx2N의 예측 단 위(802), 크기 2NxN의 예측 단위(804), 크기 Nx2N의 예측 단위(806), 크기 NxN의 예측 단위(808) 중 어느 하나의 타입으로 분할되어 예측 단위로 이용될 수 있다. 이 경우 현재 부호화 단위의 분할 타입에 관한 정보(800)는 크기 2Nx2N의 예측 단위(802), 크기 2NxN의 예측 단위(804), 크기 Nx2N의 예측 단위(806) 및 크기 NxN의 예측 단위(808) 중 하나를 나타내도록 설정된다.The information about the split type 800 represents information about a type in which the current coding unit is split as a prediction unit for motion prediction of the current coding unit. For example, the current coding unit CU_0 of depth 0 and size 2Nx2N includes a prediction unit 802 of size 2Nx2N, a prediction unit 804 of size 2NxN, a prediction unit 806 of size Nx2N, and a prediction unit of size NxN ( 808 may be divided into any one type and used as a prediction unit. In this case, the information 800 about the split type of the current coding unit includes a prediction unit 802 of size 2Nx2N, a prediction unit 804 of size 2NxN, a prediction unit 806 of size Nx2N, and a prediction unit 808 of size NxN. It is set to indicate one of the.

예측 모드에 관한 정보(810)는, 각각의 예측 단위의 움직임 예측 모드를 나타낸다. 예를 들어 예측 모드에 관한 정보(810)를 통해, 분할 타입에 관한 정보(800)가 가리키는 예측 단위가 인트라 모드(812), 인터 모드(814) 및 스킵 모드(816) 중 하나로 움직임 예측이 수행되는지 여부가 설정될 수 있다.The information 810 about the prediction mode indicates a motion prediction mode of each prediction unit. For example, through the information 810 about the prediction mode, the prediction unit indicated by the information 800 about the partition type is performed by the motion prediction as one of the intra mode 812, the inter mode 814, and the skip mode 816. Can be set.

또한, 변환 단위 크기에 관한 정보(820)는 현재 부호화 단위를 어떠한 변환 단위를 기반으로 주파수 변환을 수행할지 여부를 나타낸다. 예를 들어, 변환 단위는 제 1 인트라 변환 단위 크기(822), 제 2 인트라 변환 단위 크기(824), 제 1 인터 변환 단위 크기(826), 제 2 인트라 변환 단위 크기(828) 중 하나일 수 있다.In addition, the information about the transform unit size 820 indicates whether to transform the current coding unit based on the transform unit. For example, the transform unit may be one of a first intra transform unit size 822, a second intra transform unit size 824, a first inter transform unit size 826, and a second intra transform unit size 828. have.

본 발명의 일 실시예에 따른 영상 복호화 장치(200)의 부호화 정보 추출부는, 각각의 심도별 부호화 단위마다 분할 타입에 관한 정보(800), 예측 모드에 관한 정보(810), 변환 단위 크기에 대한 정보(820)를 추출하여 복호화에 이용할 수 있다.The encoding information extracting unit of the image decoding apparatus 200 according to an embodiment of the present invention may include information about a partition type 800, information 810 about a prediction mode, and a transform unit size for each depth-based coding unit. The information 820 may be extracted and used for decoding.

도 9 는 본 발명의 일 실시예에 따른 심도별 부호화 단위를 도시한다. 9 is a diagram of deeper coding units according to depths, according to an embodiment of the present invention.

심도의 증가 여부를 나타내기 위해 축소 정보가 이용될 수 있다. 축소 정보는 현재 심도의 부호화 단위가 상위 심도의 부호화 단위로 축소될지 여부를 나타낸 다. Reduced information may be used to indicate whether the depth is increased. The reduced information indicates whether the coding unit of the current depth is reduced to the coding unit of the higher depth.

심도 0 및 2N_0x2N_0 크기의 부호화 단위의 움직임 예측을 위한 예측 단위(910)는 2N_0x2N_0 크기의 분할 타입(912), 2N_0xN_0 크기의 분할 타입(914), N_0x2N_0 크기의 분할 타입(916), N_0xN_0 크기의 분할 타입(918)을 포함할 수 있다. The prediction unit 910 for motion prediction of a coding unit having a depth of 0 and 2N_0x2N_0 size includes a division type 912 having a size of 2N_0x2N_0, a division type 914 having a size of 2N_0xN_0, a division type 916 having a size of N_0x2N_0, and a division having a size of N_0xN_0 Type 918 may be included.

분할 타입마다, 한 개의 2N_0xN_0 크기의 예측 단위, 두 개의 2N_0xN_0 크기의 예측 단위, 두 개의 N_0x2N_0 크기의 예측 단위, 네 개의 N_0xN_0 크기의 예측 단위마다 반복적으로 움직임 예측을 통한 부호화가 수행되어야 한다. 크기 2N_0xN_0 및 크기 N_0xN_0의 예측 단위에 대해서는, 인트라 모드 및 인터 모드로 움직임 예측이 수행될 수 있으며, 크기 N_0x2N_0 및 크기 N_0xN_0의 예측 단위로는 인터 모드로만 움직임 예측이 수행될 수 있다. 스킵 모드는 크기 2N_0xN_0의 예측 단위에 대해서만 수행될 수 있다.For each split type, coding through motion prediction should be performed repeatedly for one prediction unit of 2N_0xN_0 size, two prediction units of 2N_0xN_0 size, two prediction units of N_0x2N_0 size, and four prediction units of N_0xN_0 size. For prediction units of size 2N_0xN_0 and size N_0xN_0, motion prediction may be performed in intra mode and inter mode, and motion prediction may be performed only in inter mode as prediction units of size N_0x2N_0 and size N_0xN_0. The skip mode may be performed only for prediction units of size 2N_0xN_0.

크기 N_0xN_0의 분할 타입(918)에 의한 부호화 오차가 가장 작다면, 심도 0를 1로 증가(920)시키고, 심도 2 및 크기 N_0xN_0의 분할 타입의 부호화 단위들(922, 924, 926, 928)에 대해 반복적으로 최소 부호화 오차를 검색해 나갈 수 있다. If the encoding error due to the split type 918 having the size N_0xN_0 is the smallest, the depth 0 is increased to 1 (920), and the coding units 922, 924, 926, and 928 have the depth 2 and the split type coding units having the size N_0xN_0. We can repeatedly search for the minimum coding error.

동일한 심도의 부호화 단위들(922, 924, 926, 928)에 대해 부호화가 반복적으로 수행되므로, 이중 하나만 예를 들어 심도 1의 부호화 단위의 부호화를 설명한다. 심도 1 및 크기 2N_1x2N_1 (=N_0xN_0)의 부호화 단위의 움직임 예측을 위한 예측 단위(930)는, 크기 2N_1x2N_1의 분할 타입(932), 크기 2N_1xN_1의 분할 타 입(934), 크기 N_1x2N_1의 분할 타입(936), 크기 N_1xN_1의 분할 타입(938)을 포함할 수 있다. 분할 타입마다, 한 개의 크기 2N_1x2N_1의 예측 단위, 두 개의 크기 2N_1xN_1의 예측 단위, 두 개의 크기 N_1x2N_1의 예측 단위, 네 개의 크기 N_1xN_1의 예측 단위마다 반복적으로 움직임 예측을 통한 부호화가 수행되어야 한다.Since encoding is repeatedly performed on coding units 922, 924, 926, and 928 having the same depth, only one of them will be described, for example, encoding of a coding unit having a depth of 1. The prediction unit 930 for motion prediction of a coding unit having a depth of 1 and a size of 2N_1x2N_1 (= N_0xN_0) includes a split type 932 of size 2N_1x2N_1, a split type 934 of size 2N_1xN_1, and a split type 936 of size N_1x2N_1. ), A split type 938 of size N_1xN_1. For each split type, encoding through motion prediction must be performed repeatedly for one prediction unit of size 2N_1x2N_1, two prediction units of size 2N_1xN_1, two prediction units of size N_1x2N_1, and four prediction units of size N_1xN_1.

또한, 크기 N_1xN_1 크기의 분할 타입(938)에 의한 부호화 오차가 가장 작다면, 심도 1을 심도 2로 증가(940)시키면서, 심도 2 및 크기 N_2xN_2의 부호화 단위들(942, 944, 946, 948)에 대해 반복적으로 최소 부호화 오차를 검색해 나갈 수 있다. In addition, if the encoding error due to the split type 938 having the size N_1xN_1 is the smallest, the coding units 942, 944, 946, and 948 of the depth 2 and the size N_2xN_2 are increased while increasing the depth 1 to the depth 2 (940). We can repeatedly search for the minimum coding error.

최대 심도가 d인 경우, 심도별 축소 정보는 심도 d-1일 때까지 설정될 수 있다. 즉, 심도 d-1 및 크기 2N_(d-1)x2N_(d-1)의 부호화 단위의 움직임 예측을 위한 예측 단위(950)는, 크기 2N_(d-1)x2N_(d-1)의 분할 타입(952), 크기 2N_(d-1)xN_(d-1)의 분할 타입(954), 크기 N_(d-1)x2N_(d-1)의 분할 타입(956), 크기 N_(d-1)xN_(d-1)의 분할 타입(958)을 포함할 수 있다. When the maximum depth is d, depth reduction information for each depth may be set until the depth d-1. That is, the prediction unit 950 for the motion prediction of the coding unit having the depth d-1 and the size 2N_ (d-1) x2N_ (d-1) is divided by the size 2N_ (d-1) x2N_ (d-1). Type 952, Split Type 954 of Size 2N_ (d-1) xN_ (d-1), Split Type 956 of Size N_ (d-1) x2N_ (d-1), Size N_ (d- 1) xN_ (d-1) may include a partition type 958.

분할 타입마다, 한 개의 크기 2N_(d-1)x2N_(d-1)의 예측 단위, 두 개의 크기 2N_(d-1)xN_(d-1)의 예측 단위, 두 개의 크기 N_(d-1)x2N_(d-1)의 예측 단위, 네 개의 크기 N_(d-1)xN_(d-1)의 예측 단위마다 반복적으로 움직임 예측을 통한 부호화가 수행되어야 한다. 최대 심도가 d이므로, 심도 d-1의 부호화 단위(952)는 더 이상 축소 과정을 거치지 않는다.For each split type, one prediction unit of size 2N_ (d-1) x2N_ (d-1), two prediction units of size 2N_ (d-1) xN_ (d-1), two sizes N_ (d-1) For each prediction unit of) x2N_ (d-1) and prediction units of four sizes N_ (d-1) xN_ (d-1), encoding through motion prediction should be performed repeatedly. Since the maximum depth is d, the coding unit 952 of the depth d-1 no longer undergoes a reduction process.

본 발명의 일 실시예에 따른 영상 부호화 장치(100)는 부호화 단위(912)를 위한 부호화 심도를 결정하기 위해, 심도별 부호화 오차를 비교하여 가장 작은 부 호화 오차가 발생하는 심도를 선택한다. 예를 들어, 심도 0의 부호화 단위에 대한 부호화 오차는 분할 타입(912, 914, 916, 918)마다 움직임 예측을 수행하여 부호화한 후 가장 작은 부호화 오차가 발생하는 예측 단위가 결정된다. 마찬가지로 심도 0, 1, ..., d-1 마다 부호화 오차가 가장 작은 예측 단위가 검색될 수 있다. 심도 d에서는, 크기 2N_dx2N_d의 부호화 단위이면서 예측 단위(960)를 기반으로 한 움직임 예측을 통해 부호화 오차가 결정될 수 있다. 이와 같이 심도 0, 1, ..., d-1, d의 모든 심도별 최소 부호화 오차를 비교하여 오차가 가장 작은 심도가 선택되어 부호화 심도로 결정될 수 있다. 부호화 심도 및 해당 심도의 예측 단위는 부호화 모드에 관한 정보로써 부호화되어 전송될 수 있다. 또한, 심도 0으로부터 부호화 심도에 이르기까지 부호화 단위가 축소되어야 하므로, 부호화 심도의 축소 정보만이 '0'으로 설정되고, 부호화 심도를 제외한 심도별 축소 정보는 '1'로 설정되어야 한다. The image encoding apparatus 100 according to an embodiment of the present invention selects a depth at which the smallest encoding error occurs by comparing encoding errors for each depth to determine a coding depth for the coding unit 912. For example, a coding error of a coding unit having a depth of 0 is encoded by performing motion prediction for each division type 912, 914, 916, and 918, and then a prediction unit in which the smallest coding error occurs is determined. Similarly, prediction units having the smallest coding error may be searched for depths 0, 1, ..., d-1. In the depth d, a coding error may be determined through motion prediction based on the prediction unit 960 while being a coding unit having a size of 2N_dx2N_d. As described above, the depth with the smallest error is selected by comparing the minimum coding errors for all depths of depths 0, 1, ..., d-1, and d, and thus the coding depth may be determined. The coded depth and the prediction unit of the corresponding depth may be encoded and transmitted as information about an encoding mode. In addition, since the coding unit must be reduced from the depth 0 to the coded depth, only reduced information of the coded depth is set to '0', and reduced information for each depth except the coded depth should be set to '1'.

본 발명의 일 실시예에 따른 영상 복호화 장치(200)의 부호화 정보 추출부(220)는 부호화 단위(912)에 대한 부호화 심도 및 예측 단위에 관한 정보를 추출하여 부호화 단위(912)를 복호화하는데 이용할 수 있다. 일 실시예에 따른 영상 복호화 장치(200)는 심도별 축소 정보를 이용하여 축소 정보가 '0'인 심도를 부호화 심도로 파악하고, 해당 심도에 대한 부호화 모드에 관한 정보를 이용하여 복호화에 이용할 수 있다.The encoding information extracting unit 220 of the image decoding apparatus 200 according to an embodiment of the present invention extracts information about a coding depth and a prediction unit for the coding unit 912 and uses the same to decode the coding unit 912. Can be. The image decoding apparatus 200 according to an exemplary embodiment may identify a depth of which the reduction information is '0' as an encoding depth by using the reduction information for each depth, and use the decoding information by using information about an encoding mode for the corresponding depth. have.

도 10a 및 10b는 본 발명의 일 실시예에 따른, 부호화 단위, 예측 단위 및 주파수 변환 단위의 관계를 도시한다.10A and 10B illustrate a relationship between a coding unit, a prediction unit, and a frequency transformation unit, according to an embodiment of the present invention.

부호화 단위(1010)는, 최대 부호화 단위(1000)에 대해 일 실시예에 따른 영상 부호화 장치(100)가 결정한 부호화 심도별 부호화 단위들이다. 예측 단위(1060)는 부호화 단위(1010) 중 각각의 부호화 심도별 부호화 단위의 예측 단위들이며, 변환 단위(1070)는 각각의 부호화 심도별 부호화 단위의 변환 단위들이다.The coding units 1010 are coding units according to coding depths determined by the image encoding apparatus 100 according to an embodiment with respect to the maximum coding unit 1000. The prediction unit 1060 is prediction units of coding units of respective coding depths of the coding unit 1010, and the transformation unit 1070 is transformation units of coding units of each coding depth.

심도별 부호화 단위들(1010)은 최대 부호화 단위(1000)의 심도가 0이라고 하면, 부호화 단위들(1012, 1054)은 심도가 1, 부호화 단위들(1014, 1016, 1018, 1028, 1050, 1052)은 심도가 2, 부호화 단위들(1020, 1022, 1024, 1026, 1030, 1032, 1038)은 심도가 3, 부호화 단위들(1040, 1042, 1044, 1046)은 심도가 4이다. If the depth-based coding units 1010 have a depth of 0, the coding units 1012 and 1054 have a depth of 1 and the coding units 1014, 1016, 1018, 1028, 1050, and 1052. ) Has a depth of 2, coding units 1020, 1022, 1024, 1026, 1030, 1032, and 1038 have a depth of 3, and coding units 1040, 1042, 1044, and 1046 have a depth of 4.

예측 단위들(1060) 중 일부(1014, 1016, 1022, 1032, 1048, 1050, 1052, 1054)는 부호화 단위가 분할된 타입이다. 즉, 예측 단위(1014, 1022, 1050, 1054)는 2NxN의 분할 타입이며, 예측 단위(1016, 1048, 1052)는 Nx2N의 분할 타입, 예측 단위(1032)는 NxN의 분할 타입이다. 즉, 심도별 부호화 단위들(1010)의 예측 단위는 각각의 부호화 단위보다 작거나 같다. Some of the prediction units 1060 1014, 1016, 1022, 1032, 1048, 1050, 1052, and 1054 are types in which coding units are split. That is, the prediction units 1014, 1022, 1050, and 1054 are split types of 2N × N, the prediction units 1016, 1048, and 1052 are split types of N × 2N, and the prediction units 1032 are split types of N × N. That is, the prediction unit of the deeper coding units 1010 is smaller than or equal to each coding unit.

변환 단위들(1070) 중 일부(1052, 1054)의 영상 데이터에 대해서는 부호화 단위에 비해 작은 크기의 데이터 단위로 주파수 변환 또는 주파수 역변환이 수행된다. 또한, 변환 단위(1014, 1016, 1022, 1032, 1048, 1050, 1052, 1054)는 예측 단위들(1060) 중 해당 예측 단위와 비교해보면, 서로 다른 크기 또는 형태의 데이터 단위이다. 즉, 본 발명의 일 실시예에 따른 영상 부호화 장치(100) 및 영상 복호화 장치(200)는 동일한 부호화 단위에 대한 예측 및 주파수 변환/역변환 작업이라 할지라도, 각각 별개의 데이터 단위를 기반으로 수행할 수 있다.For the image data of some of the transformation units 1070 1052 and 1054, frequency conversion or frequency inverse transformation is performed in a data unit having a smaller size than the coding unit. In addition, the transformation units 1014, 1016, 1022, 1032, 1048, 1050, 1052, and 1054 are data units having different sizes or shapes when compared to the corresponding prediction unit among the prediction units 1060. That is, even if the image encoding apparatus 100 and the image decoding apparatus 200 according to an embodiment of the present invention are predicted and frequency transformed / inverse transformed for the same coding unit, they may be performed based on separate data units. Can be.

도 11 은 본 발명의 일 실시예에 따른 부호화 단위별 부호화 정보를 도시한다.11 is a diagram of encoding information according to coding units, according to an embodiment of the present invention.

본 발명의 일 실시예에 따른 영상 부호화 장치(100)의 부호화 정보 부호화부(140)는 부호화 단위별 부호화 정보를 부호화하고, 본 발명의 일 실시예에 따른 영상 복호화 장치(200)의 부호화 정보 추출부(220)는 부호화 단위별 부호화 정보를 추출할 수 있다.The encoding information encoder 140 of the image encoding apparatus 100 according to an embodiment of the present invention encodes encoding information for each coding unit, and extracts encoding information of the image decoding apparatus 200 according to an embodiment of the present invention. The unit 220 may extract encoding information for each coding unit.

부호화 정보는 부호화 단위에 대한 축소 정보, 분할 타입 정보, 예측 모드 정보, 변환 단위 크기 정보를 포함할 수 있다. 도 11에 도시되어 있는 부호화 정보들은 본 발명의 일 실시예에 따른 영상 부호화 장치(100) 및 영상 복호화 장치(200)에서 설정할 수 있는 일 예에 불과하며, 도시된 것에 한정되지 않는다.The encoding information may include reduction information about the coding unit, split type information, prediction mode information, and transformation unit size information. The encoding information illustrated in FIG. 11 is only an example that may be set in the image encoding apparatus 100 and the image decoding apparatus 200 according to an embodiment of the present disclosure, and is not limited to the illustrated example.

축소 정보는 해당 부호화 단위의 부호화 심도를 나타낼 수 있다. 즉, 축소 정보에 따라 더 이상 축소되지 않는 심도가 부호화 심도이므로, 부호화 심도에 대해서 분할 타입 정보, 예측 모드, 변환 단위 크기 정보가 정의될 수 있다. 축소 정보에 따라 한 단계 더 축소되어야 하는 경우에는, 축소된 4개의 상위 심도의 부호화 단위마다 독립적으로 부호화가 수행되어야 한다.The reduced information may indicate a coded depth of the corresponding coding unit. That is, since the depth that is no longer reduced according to the reduced information is a coded depth, split type information, a prediction mode, and transform unit size information may be defined for the coded depth. If it is necessary to further reduce the size according to the reduced information, encoding should be performed independently for each coding unit of the reduced four higher depths.

분할 타입 정보는, 부호화 심도의 부호화 단위의 변환 단위의 분할 타입을 2Nx2N, 2NxN, Nx2N 및 NxN 중 하나로 나타낼 수 있다. 예측 모드는, 움직임 예측 모드를 인트라 모드, 인터 모드 및 스킵 모드 중 하나로 나타낼 수 있다. 인트라 모드는 분할 타입 2Nx2N 및 NxN에서만 정의될 수 있으며, 스킵 모드는 분할 타입 2Nx2N에서만 정의될 수 있다. 변환 단위 크기는 인트라 모드에서 두 종류의 크기, 인터 모드에서 두 종류의 크기로 설정될 수 있다.The split type information may indicate the split type of the transform unit of the coding unit of the coded depth as one of 2Nx2N, 2NxN, Nx2N, and NxN. The prediction mode may indicate the motion prediction mode as one of an intra mode, an inter mode, and a skip mode. Intra mode can be defined only in split type 2Nx2N and NxN, and skip mode can be defined only in split type 2Nx2N. The conversion unit size may be set to two kinds of sizes in the intra mode and two kinds of sizes in the inter mode.

부호화 단위 내의 최소 부호화 단위마다, 소속되어 있는 부호화 심도의 부호화 단위별 부호화 정보를 수록하고 있을 수 있다. 따라서, 인접한 최소 부호화 단위들끼리 각각 보유하고 있는 부호화 정보들을 확인하면, 동일한 부호화 심도의 부호화 단위에 포함되는지 여부가 확인될 수 있다. 또한, 최소 부호화 단위가 보유하고 있는 부호화 정보를 이용하면 해당 부호화 심도의 부호화 단위를 확인할 수 있으므로, 최대 부호화 단위 내의 부호화 심도들의 분포가 유추될 수 있다.For each of the minimum coding units in the coding unit, encoding information for each coding unit of the coded depth to which they belong may be stored. Therefore, when the encoding information held by the adjacent minimum coding units are respectively checked, it may be determined whether the information is included in the coding unit having the same coding depth. In addition, since the coding unit of the corresponding coding depth may be identified by using the encoding information held by the minimum coding unit, the distribution of the coded depths within the maximum coding unit may be inferred.

이하, 도 4의 본 발명의 일 실시예에 따른 영상 부호화 장치(100)의 인트라 예측부(410) 및 도 5의 영상 복호화 장치(200)의 인트라 예측부(550)에서 수행되는 인트라 예측에 대하여 구체적으로 설명한다. 이하의 설명에서, 부호화 단위는 영상의 부호화 단계에서 지칭되는 용어이며, 영상의 복호화 단계의 측면에서 부호화 단위는 복호화 단위로 정의될 수 있다. 즉, 부호화 단위와 복호화 단위라는 용어는 영상의 부호화 단계 및 복호화 단계 중 어느 단계에서 지칭되느냐의 차이만 있을 뿐이며 부호화 단계에서의 부호화 단위는 복호화 단계에서의 복호화 단위로 불리울 수 있다. 용어의 통일성을 위하여 특별한 경우를 제외하고는 부호화 단계 및 복호화 단계에서 동일하게 부호화 단위로 통일하여 부르기로 한다.Hereinafter, intra prediction performed by the intra prediction unit 410 of the image encoding apparatus 100 and the intra prediction unit 550 of the image decoding apparatus 200 of FIG. 5 according to an embodiment of the present invention of FIG. 4. It demonstrates concretely. In the following description, a coding unit is a term referred to in an encoding step of an image, and a coding unit may be defined as a decoding unit in terms of a decoding step of an image. That is, the terms coding unit and decoding unit may only be different in which step is referred to in the encoding and decoding steps of the image, and the coding unit in the encoding step may be called a decoding unit in the decoding step. For the sake of unity of terminology, except in a special case, the encoding unit and the decoding unit will be uniformly called as coding units.

도 12는 본 발명의 일 실시예에 따른 인트라 예측 장치(1200)의 구성을 나타낸 블록도이다.12 is a block diagram illustrating a configuration of an intra prediction apparatus 1200 according to an embodiment of the present invention.

도 12를 참조하면, 본 발명의 일 실시예에 따른 인트라 예측 장치(1200)는 예측부(1210) 및 후처리부(1220)를 포함한다. 예측부(1210)는 현재 부호화 단위의 크기에 따라 정해지는 인트라 예측 모드들을 적용하여 현재 부호화 단위에 대한 인트라 예측을 수행하여 제 1 예측 부호화 단위를 출력한다. 후처리부(1200)는 제 1 예측 부호화 단위를 구성하는 각 픽셀의 주변 픽셀을 이용하여 제 1 예측 부호화 단위의 각 픽셀의 픽셀값을 변경하는 후처리를 수행함으로써 후처리된 제 2 예측 부호화 단위를 출력한다.Referring to FIG. 12, an intra prediction apparatus 1200 according to an embodiment of the present invention includes a predictor 1210 and a post processor 1220. The prediction unit 1210 performs intra prediction on the current coding unit by applying intra prediction modes determined according to the size of the current coding unit, and outputs the first prediction coding unit. The post-processing unit 1200 performs post-processing by changing the pixel value of each pixel of the first prediction coding unit by using the neighboring pixels of each pixel constituting the first prediction coding unit to perform the post-processing second prediction coding unit. Output

도 13은 본 발명의 일 실시예에 따른 부호화 단위의 크기에 따른 인트라 예측 모드들의 개수를 도시한다.13 illustrates the number of intra prediction modes according to the size of a coding unit, according to an embodiment of the present invention.

본 발명의 일 실시예에 따르면 부호화 단위(복호화 단계에서는 복호화 단위)의 크기에 따라서 부호화 단위에 적용할 인트라 예측 모드들의 개수를 다양하게 설정할 수 있다. 일 예로 도 13을 참조하면 인트라 예측되는 부호화 단위의 크기를 NxN이라고 할 때, 2x2, 4x4, 8x8, 16x16, 32x32, 64x64, 128x128 크기의 부호화 단위 각각에 대하여 실제 수행되는 인트라 예측 모드의 개수는 각각 5, 9, 9, 17, 33, 5, 5개(Example 2의 경우)로 설정될 수 있다. 이와 같이 부호화 단위의 크기에 따라서 실제 수행되는 인트라 예측 모드의 개수를 차별화하는 이유는 부호화 단위의 크기에 따라서 예측 모드 정보를 부호화하기 위한 오버헤드가 다르기 때문이다. 다시 말해서, 작은 크기의 부호화 단위의 경우 전체 영상에서 차지하는 부분이 작음에도 불구하고 이러한 작은 부호화 단위의 예측 모드 등의 부가 정보를 전송하기 위한 오버헤드가 증가할 수 있다. 따라서, 작은 부호화 단위를 너무 많은 예측 모드로 부호화하는 경우 비트량이 증가하여 압축 효율이 저하될 수 있다. 또한, 큰 크기를 갖는 부호화 단위, 예를 들어 64x64 이상의 크기를 갖는 부호화 단 위는 일반적으로 영상의 평탄한 영역에 대한 부호화 단위로서 선택되는 경우가 많기 때문에, 이러한 평탄한 영역을 부호화하는데 많이 선택되는 큰 크기의 부호화 단위를 너무 많은 예측 모드로 부호화하는 것 역시 압축 효율 측면에서 비효율적일 수 있다. According to an embodiment of the present invention, the number of intra prediction modes to be applied to the coding unit may be variously set according to the size of the coding unit (the decoding unit in the decoding step). As an example, referring to FIG. 13, when the size of an intra prediction coding unit is NxN, the number of intra prediction modes that are actually performed on each of coding units having a size of 2x2, 4x4, 8x8, 16x16, 32x32, 64x64, and 128x128 may be respectively. 5, 9, 9, 17, 33, 5, 5 (in the case of Example 2) can be set. The reason for differentiating the number of intra prediction modes that are actually performed according to the size of the coding unit is that the overhead for encoding the prediction mode information varies according to the size of the coding unit. In other words, although a small coding unit occupies a small portion of the entire image, overhead for transmitting additional information such as a prediction mode of the small coding unit may increase. Therefore, when a small coding unit is encoded in too many prediction modes, the bit amount may increase, thereby reducing the compression efficiency. In addition, a coding unit having a large size, for example, a coding unit having a size of 64x64 or more is generally selected as a coding unit for a flat region of an image, and thus a large size that is frequently selected for encoding such a flat region. Encoding the coding unit of in too many prediction modes may also be inefficient in terms of compression efficiency.

따라서, 본 발명의 일 실시예에 따르면, 부호화 단위가 크게 N1xN1(2≤N1≤8, N1은 정수), N2xN2(16≤N2≤32, N2는 정수), N3xN3(64≤N3, N3는 정수)의 적어도 3종류의 크기로 분류되며, N1xN1 크기를 갖는 부호화 단위마다 수행될 인트라 예측 모드의 개수를 A1(A1은 양의 정수), N2xN2 크기를 갖는 부호화 단위마다 수행될 인트라 예측 모드의 개수를 A2(A2는 양의 정수), N3xN3 크기를 갖는 부호화 단위마다 수행될 인트라 예측 모드의 개수를 A3(A3는 양의 정수)라고 할 때, A3≤A1≤A2 관계를 만족하도록 각 부호화 단위의 크기에 따라서 수행될 인트라 예측 모드의 개수를 설정하는 것이 바람직하다. 즉, 현재 픽처가 작은 크기의 부호화 단위, 중간 크기의 부호화 단위, 큰 크기의 부호화 단위로 크게 분류된다고 할 때, 중간 크기의 부호화 단위가 가장 많은 수의 예측 모드를 갖으며, 작은 크기의 부호화 단위 및 큰 크기의 부호화 단위는 상대적으로 보다 작은 수의 예측 모드를 갖도록 설정하는 것이 바람직하다. 다만, 이에 한정되지 않고 작은 크기 및 큰 크기의 부호화 단위에 대하여도 보다 많은 수의 예측 모드를 갖도록 설정할 수도 있을 것이다. 도 13에 도시된 각 부호화 단위의 크기에 따른 예측 모드의 개수는 일 실시예에 불과하며, 각 부호화 단위의 크기에 따른 예측 모드의 개수는 변경될 수 있다.Therefore, according to an embodiment of the present invention, the coding unit is largely N1xN1 (2≤N1≤8, N1 is an integer), N2xN2 (16≤N2≤32, N2 is an integer), N3xN3 (64≤N3, N3 is an integer) The number of intra prediction modes to be performed for each coding unit having an N1xN1 size, A1 (A1 is a positive integer), and the number of intra prediction modes to be performed for each coding unit having an N2xN2 size. When A2 (A2 is a positive integer) and the number of intra prediction modes to be performed for each coding unit having the size of N3xN3 is A3 (A3 is a positive integer), the size of each coding unit is satisfied to satisfy the relationship A3≤A1≤A2. It is preferable to set the number of intra prediction modes to be performed according to. That is, assuming that the current picture is largely classified into a small coding unit, a medium coding unit, and a large coding unit, the medium coding unit has the largest number of prediction modes and the small coding unit. And a coding unit having a large size is preferably set to have a relatively smaller number of prediction modes. However, the present invention is not limited thereto and may have a larger number of prediction modes for smaller and larger coding units. The number of prediction modes according to the size of each coding unit illustrated in FIG. 13 is only an embodiment, and the number of prediction modes according to the size of each coding unit may be changed.

도 14a는 본 발명의 일 실시예에 따른 소정 크기의 부호화 단위에 적용되는 인트라 예측 모드의 일 예를 설명하기 위한 도면이다. 14A is a diagram illustrating an example of an intra prediction mode applied to a coding unit of a predetermined size, according to an embodiment of the present invention.

도 13 및 도 14a를 참조하면, 일 예로 4×4 크기를 갖는 부호화 단위의 인트라 예측시에 수직(Vertical) 모드(모드 0), 수평(Horizontal) 모드(모드 1), DC(Direct Current) 모드(모드 2), 대각선 왼쪽(Diagonal Down-Left) 모드(모드 3), 대각선 오른쪽(Diagonal Down-Right) 모드(모드 4), 수직 오른쪽(Vertical-Right) 모드(모드 5), 수평 아래쪽(Horizontal-Down) 모드(모드 6), 수직 왼쪽( Vertical-Left) 모드(모드 7) 및 수평 위쪽(Horizontal-Up) 모드(모드 8)를 갖을 수 있다.13 and 14A, for example, a vertical mode (mode 0), a horizontal mode (mode 1), and a direct current (DC) mode during intra prediction of a coding unit having a size of 4 × 4. (Mode 2), Diagonal Down-Left Mode (Mode 3), Diagonal Down-Right Mode (Mode 4), Vertical-Right Mode (Mode 5), Horizontal Down (Horizontal) -Down mode (mode 6), vertical left (Right-Left) mode (mode 7) and horizontal-up (Horizontal-Up) mode (mode 8).

도 14b는 도 14a의 인트라 예측 모드들의 방향을 나타내는 도면이다. 도 14b에서 화살표의 끝에 있는 숫자는 그 방향으로 예측을 수행할 경우 해당 모드값을 나타낸다. 여기서 모드 2는 방향성이 없는 DC 예측 모드로서 도시되어 있지 않다. 14B is a diagram illustrating the directions of intra prediction modes of FIG. 14A. In FIG. 14B, the number at the end of the arrow indicates the mode value when the prediction is performed in the direction. Mode 2 is not shown here as a DC prediction mode without direction.

도 14c는 도 14a에 도시된 부호화 단위에 대한 인트라 예측 방법을 도시한 도면이다. FIG. 14C illustrates an intra prediction method for the coding unit illustrated in FIG. 14A.

도 14c를 참조하면, 부호화 단위의 크기에 의하여 결정된 이용가능한 인트라 예측 모드에 따라서 현재 부호화 단위의 주변 픽셀인 A - M을 이용하여 예측 부호화 단위를 생성한다. 예를 들어, 도 14a의 모드 0, 즉 수직 모드에 따라, 4×4 크기의 현재 부호화 단위를 예측 부호화하는 동작을 설명한다. 먼저 4×4 크기의 현재 부호화 단위의 위쪽에 인접한 화소 A 내지 D의 화소값을 4×4 현재 부호화 단위의 화소값으로 예측한다. 즉, 화소 A의 값을 4×4 현재 부호화 단위의 첫 번째 열 에 포함된 4개의 화소값으로, 화소 B의 값을 4×4 현재 부호화 단위의 두 번째 열에 포함된 4개의 화소값으로, 화소 C의 값을 4×4 현재 부호화 단위의 세 번째 열에 포함된 4개의 화소값으로, 화소 D의 값을 4×4 현재 부호화 단위의 네 번째 열에 포함된 4개의 화소값으로 예측한다. 다음, 상기 화소 A 내지 D를 이용하여 예측된 4×4 현재 부호화 단위와 원래의 4×4 현재 부호화 단위에 포함된 화소의 실제값을 감산하여 오차값을 구한 후 그 오차값을 부호화한다.Referring to FIG. 14C, a prediction coding unit is generated using A-M which is a neighboring pixel of the current coding unit according to an available intra prediction mode determined by the size of the coding unit. For example, an operation of predictively encoding the current coding unit having a size of 4x4 according to mode 0 of FIG. 14A, that is, the vertical mode will be described. First, a pixel value of pixels A to D adjacent to a current coding unit having a 4 × 4 size is predicted as a pixel value of a 4 × 4 current coding unit. That is, the pixel A values are four pixel values included in the first column of the 4 × 4 current coding unit, and the pixel B values are four pixel values included in the second column of the 4 × 4 current coding unit. The value of C is predicted as four pixel values included in the third column of the 4x4 current coding unit, and the value of pixel D is predicted as four pixel values included in the fourth column of the 4x4 current coding unit. Next, an error value is obtained by subtracting the actual values of the 4x4 current coding unit predicted using the pixels A to D and the pixels included in the original 4x4 current coding unit, and then encoding the error value.

도 15는 본 발명의 일 실시예에 따른 소정 크기의 부호화 단위에 적용되는 인트라 예측 모드의 다른 예를 설명하기 위한 도면이다. FIG. 15 illustrates another example of an intra prediction mode applied to a coding unit of a predetermined size, according to an embodiment of the present invention.

도 13 및 도 15를 참조하면, 일 예로 2×2 크기를 갖는 부호화 단위의 인트라 예측시에 수직(Vertical) 모드, 수평(Horizontal) 모드, DC(Direct Current) 모드, 플레인(plane) 모드 및 대각선 오른쪽(Diagonal Down-Right) 모드의 총 5개의 모드가 존재할 수 있다.13 and 15, for example, in an intra prediction of a coding unit having a size of 2 × 2, a vertical mode, a horizontal mode, a direct current mode, a plane mode, and a diagonal line There may be a total of five modes of Diagonal Down-Right mode.

한편, 도 13에 도시된 바와 같이 32x32 크기를 갖는 부호화 단위가 33개의 인트라 예측 모드를 갖는다고 할 때, 33개의 인트라 예측 모드의 방향을 설정할 필요가 있다. 본 발명의 일 실시예에서는 도 14 및 도 15에 도시된 바와 같은 인트라 예측 모드 이외에, 다양한 방향의 인트라 예측 모드를 설정하기 위하여 부호화 단위 내의 픽셀을 중심으로 참조 픽셀로서 이용될 주변 픽셀을 선택하기 위한 예측 방향을 dx, dy 파라메터를 이용하여 설정한다. 일 예로, 33개의 예측 모드들을 각각 mode N(N은 0부터 32까지의 정수)이라고 정의할 때, mode 0은 수직 모드, mode 1은 수평 모드, mode 2는 DC 모드, mode 3는 플레인 모드로 설정하고 mode 4 ~ mode31 각각은 다음의 표 1에 표기된 바와 같은 (1,-1), (1,1), (1,2), (2,1), (1,-2), (2,1), (1,-2), (2,-1), (2,-11), (5,-7), (10,-7), (11,3), (4,3), (1,11), (1,-1), (12,-3), (1,-11), (1,-7), (3,-10), (5,-6), (7,-6), (7,-4), (11,1), (6,1), (8,3), (5,3), (5,7), (2,7), (5,-7), (4,-3) 중 하나의 값으로 표현되는 (dx, dy)를 이용하여 tan-1(dy/dx)의 방향성을 갖는 예측 모드로 정의할 수 있다. Meanwhile, as illustrated in FIG. 13, when a coding unit having a size of 32x32 has 33 intra prediction modes, it is necessary to set 33 intra prediction modes. According to an embodiment of the present invention, in addition to the intra prediction modes as shown in FIGS. 14 and 15, a peripheral pixel to be used as a reference pixel to be used as a reference pixel centered on pixels in a coding unit to set intra prediction modes in various directions. The prediction direction is set using the dx and dy parameters. For example, when 33 prediction modes are defined as mode N (N is an integer from 0 to 32), mode 0 is a vertical mode, mode 1 is a horizontal mode, mode 2 is a DC mode, and mode 3 is a plain mode. Mode 4 to mode31, respectively, (1, -1), (1,1), (1,2), (2,1), (1, -2), (2) as shown in Table 1 below. , 1), (1, -2), (2, -1), (2, -11), (5, -7), (10, -7), (11,3), (4,3) , (1,11), (1, -1), (12, -3), (1, -11), (1, -7), (3, -10), (5, -6), ( 7, -6), (7, -4), (11,1), (6,1), (8,3), (5,3), (5,7), (2,7), ( By using (dx, dy) represented by one of 5, -7) and (4, -3), a prediction mode having a directionality of tan −1 (dy / dx) may be defined.

mode #mode # dxdx dydy mode #mode # dxdx dydy mode 4mode 4 1One -1-One mode 18mode 18 1One -11-11 mode 5mode 5 1One 1One mode 19mode 19 1One -7-7 mode 6mode 6 1One 22 mode 20mode 20 33 -10-10 mode 7mode 7 22 1One mode 21mode 21 55 -6-6 mode 8mode 8 1One -2-2 mode 22mode 22 77 -6-6 mode 9mode 9 22 -1-One mode 23mode 23 77 -4-4 mode 10mode 10 22 -11-11 mode 24mode 24 1111 1One mode 11mode 11 55 -7-7 mode 25mode 25 66 1One mode 12mode 12 1010 -7-7 mode 26mode 26 88 33 mode 13mode 13 1111 33 mode 27mode 27 55 33 mode 14mode 14 44 33 mode 28mode 28 55 77 mode 15mode 15 1One 1111 mode 29mode 29 22 77 mode 16mode 16 1One -1-One mode 30mode 30 55 -7-7 mode 17mode 17 1212 -3-3 mode 31mode 31 44 -3-3 mode 0은 수직 모드, mode 1은 수평 모드, mode 2는 DC 모드, mode 3는 플레인 모드, mode 32는 Bi-linear 모드임.mode 0 is vertical mode, mode 1 is horizontal mode, mode 2 is DC mode, mode 3 is plain mode, and mode 32 is bi-linear mode.

마지막 mode 32는 도 17을 이용하여 후술되는 바와 같이 쌍선형(bilinear) 보간을 이용하는 쌍선형 모드로 설정될 수 있다.The last mode 32 may be set to a bilinear mode using bilinear interpolation as described below with reference to FIG. 17.

도 16은 본 발명의 일 실시예에 따른 다양한 방향성을 갖는 인트라 예측 모드들을 설명하기 위한 참조도이다.16 is a reference diagram for explaining intra prediction modes having various directions according to an embodiment of the present invention.

표 1을 참조하여 전술한 바와 같이, 본 발명의 일 실시예에 따른 인트라 예측 모드들은 복수 개의 (dx, dy) 파라메터들을 이용하여 tan-1(dy/dx)의 다양한 방향성을 갖을 수 있다.As described above with reference to Table 1, intra prediction modes according to an embodiment of the present invention may have various directionalities of tan −1 (dy / dx) using a plurality of (dx, dy) parameters.

도 16을 참조하면, 현재 부호화 단위 내부의 예측하고자 하는 현재 픽셀(P)을 중심으로 표 1에 표기된 모드별 (dx, dy)의 값에 따라 정해지는 tan-1(dy/dx)의 각도를 갖는 연장선(150) 상에 위치한 주변 픽셀(A, B)를 현재 픽셀(P)의 예측자로 이용할 수 있다. 이 때, 예측자로서 이용되는 주변 픽셀은 이전에 부호화되고 복원된, 현재 부호화 단위의 상측 및 좌측의 이전 부호화 단위의 픽셀인 것이 바람직하다. 또한, 연장선(160)이 정수 위치의 주변 픽셀이 아닌 정수 위치 주변 픽셀의 사이를 통과하는 경우 연장선(160)에 더 가까운 주변 픽셀을 현재 픽셀(P)의 예측자로 이용할 수 있다. 또한, 도시된 바와 같이 연장선(160)과 만나는 상측의 주변 픽셀(A) 및 좌측의 주변 픽셀(B)의 두 개의 주변 픽셀이 존재하는 경우 상측의 주변 픽셀(A) 및 좌측의 주변 픽셀(B)의 평균값을 현재 픽셀(P)의 예측자로 이용하거나, 또는 dx*dy 값이 양수인 경우에는 상측의 주변 픽셀(A)을 이용하고 dx*dy 값이 음수인 경우에는 좌측의 주변 픽셀(B)을 이용할 수 있다. Referring to FIG. 16, an angle of tan −1 (dy / dx) determined according to values of (dx, dy) for each mode shown in Table 1 around the current pixel P to be predicted in the current coding unit is determined. Peripheral pixels A and B positioned on the extension line 150 may be used as predictors of the current pixel P. In this case, the neighboring pixel used as the predictor is preferably a pixel of the previous coding unit on the left side and the current coding unit, which has been previously encoded and reconstructed. In addition, when the extension line 160 passes between the integer position peripheral pixels instead of the peripheral pixel at the integer position, the neighboring pixel closer to the extension line 160 may be used as the predictor of the current pixel P. In addition, when there are two peripheral pixels of the upper peripheral pixel A and the left peripheral pixel B that meet the extension line 160 as shown, the upper peripheral pixel A and the left peripheral pixel B are present. ) Is used as a predictor of the current pixel P, or when the dx * dy value is positive, the upper peripheral pixel A is used, and when the dx * dy value is negative, the left peripheral pixel B is negative. Can be used.

표 1에 표기된 바와 같은 다양한 방향성을 갖는 인트라 예측 모드는 부호화단과 복호화단에서 미리 설정되어서, 각 부호화 단위마다 설정된 인트라 예측 모드의 해당 인덱스만이 전송되도록 하는 것이 바람직하다.The intra prediction modes having various directionalities as shown in Table 1 are preferably set in the encoding end and the decoding end so that only corresponding indexes of the intra prediction modes set for each coding unit are transmitted.

도 17은 본 발명의 일 실시예에 따른 쌍선형 모드를 설명하기 위한 참조도이다.17 is a reference diagram for describing a bilinear mode according to an embodiment of the present invention.

도 17을 참조하면, 쌍선형(Bi-linear) 모드는 현재 부호화 단위 내부의 예측하고자 하는 현재 픽셀(P)를 중심으로 현재 픽셀(P)와 그 상하좌우 경계의 픽셀값, 현재 픽셀(P)의 상하좌우 경계까지의 거리를 고려한 기하 평균값을 계산하여 그 결과값을 현재 픽셀(P)의 예측자로 이용하는 것이다. 즉, 쌍선형 모드에서는 현재 픽셀(P)의 예측자로서 현재 픽셀(P)의 상하좌우 경계에 위치한 픽셀 A(171), 픽셀 B(172), 픽셀 D(176) 및 픽셀 E(177)과 현재 픽셀(P)의 상하좌우 경계까지의 거리의 기하 평균값을 이용한다. 이 때, 쌍선형 모드 역시 인트라 예측 모드 중의 하나이므로 예측시의 참조 픽셀로서 이전에 부호화된 후 복원된 상측과 좌측의 주변 픽셀을 이용하여야 한다. 따라서, 픽셀 A(161) 및 픽셀 (B)로서 현재 부호화 단위 내부의 해당 픽셀값을 그대로 이용하는 것이 아니라 상측 및 좌측의 주변 픽셀을 이용하여 생성된 가상의 픽셀값을 이용한다.Referring to FIG. 17, in the bi-linear mode, the pixel value of the current pixel P, the upper, lower, left, and right boundaries of the current pixel P within the current coding unit, and the current pixel P The geometric mean value is calculated by considering the distance to the top, bottom, left, and right edges of and used as the predictor of the current pixel P. That is, in the bilinear mode, as a predictor of the current pixel P, pixels A 171, pixel B 172, pixel D 176, and pixel E 177, which are located on the top, bottom, left and right boundaries of the current pixel P, The geometric mean value of the distance to the top, bottom, left, and right boundaries of the current pixel P is used. At this time, since the bilinear mode is also one of the intra prediction modes, the upper and left neighboring pixels that have been previously encoded and then reconstructed as reference pixels in prediction should be used. Therefore, the pixel A 161 and the pixel B use virtual pixel values generated by using the upper and left peripheral pixels instead of using the corresponding pixel values in the current coding unit as they are.

구체적으로, 먼저 다음의 수학식과 같이 현재 부호화 단위에 인접한 상측 최좌측의 주변 픽셀(RightUpPixel, 174) 및 좌측 최하측의 주변 픽셀(LeftDownPixel,175)의 평균값을 계산함으로써 현재 부호화 단위의 우측 최하단 위치의 가상의 픽셀 C(173)을 계산한다.Specifically, first, by calculating the average value of the upper leftmost peripheral pixel (RightUpPixel, 174) and the left lowermost peripheral pixel (LeftDownPixel, 175) adjacent to the current coding unit, as shown in the following equation, The virtual pixel C 173 is calculated.

C=0.5(LeftDownPixel+RightUpPixel)C = 0.5 (LeftDownPixel + RightUpPixel)

다음 현재 픽셀(P)의 좌측 경계까지의 거리(W1) 및 우측 경계까지의 거리(W2)를 고려하여 현재 픽셀(P)를 하단으로 연장하였을 때 최하측 경계선에 위치하는 가상의 픽셀 A(171)의 값을 다음의 수학식과 같이 계산한다.The virtual pixel A 171 positioned at the lowermost boundary when the current pixel P is extended to the lower side in consideration of the distance W1 to the left boundary of the next current pixel P and the distance W2 to the right boundary. ) Is calculated as in the following equation.

A=(C*W1+LeftDownPixel*W2)/(W1+W2)A = (C * W1 + LeftDownPixel * W2) / (W1 + W2)

유사하게 현재 픽셀(P)의 상측 경계까지의 거리(h1) 및 하측 경계까지의 거리(h2)를 고려하여 현재 픽셀(P)를 우측으로 연장하였을 때 최우측 경계선에 위치하는 가상의 픽셀 B(172)의 값을 다음의 수학식과 같이 계산한다.Similarly, when the current pixel P is extended to the right in consideration of the distance h1 to the upper boundary of the current pixel P and the distance h2 to the lower boundary, the virtual pixel B located at the rightmost boundary line ( The value of 172 is calculated as in the following equation.

B=(C*h1+RightUpPixel*h2)/(h1+h2)B = (C * h1 + RightUpPixel * h2) / (h1 + h2)

상기 수학식들을 이용하여 현재 픽셀 P(170)의 하측 경계선상의 가상의 픽셀 A(171) 및 우측 경계선상의 가상의 픽셀 B(172)의 값이 결정되면 A+B+D+E의 평균값을 현재 픽셀 P(170)의 예측자로서 이용할 수 있다. 이와 같은 쌍선형 예측 과정은 현재 부호화 단위 내부의 모든 픽셀에 대하여 적용되어, 쌍선형 예측 모드에 따른 현재 부호화 단위의 예측 부호화 단위가 생성된다.When the values of the virtual pixel A 171 on the lower boundary line of the current pixel P 170 and the virtual pixel B 172 on the right boundary line are determined using the above equations, the average value of A + B + D + E is determined. It can be used as a predictor of the pixel P 170. The bilinear prediction process is applied to all pixels in the current coding unit, thereby generating a prediction coding unit of the current coding unit according to the bilinear prediction mode.

본 발명의 일 실시예에 따르면 부호화 단위의 크기에 따라서 다양하게 설정된 인트라 예측 모드들에 따라서 예측 부호화를 수행함으로써 영상의 특성에 따라서 보다 효율적인 압축을 가능하게 한다.According to an embodiment of the present invention, the prediction encoding is performed according to intra prediction modes that are variously set according to the size of a coding unit, thereby enabling more efficient compression according to the characteristics of an image.

전술한 바와 같이, 도 12의 인트라 예측부(1200)의 예측부(1210)로부터 부호화 단위의 크기에 따라서 다양하게 설정된 인트라 예측 모드들을 적용하여 출력되는 예측 부호화 단위는 적용된 인트라 예측 모드에 따라서 일정한 방향성을 갖는다. 이러한 예측 부호화 단위 내부의 방향성은 부호화되는 현재 부호화 단위의 픽셀들이 일정한 방향성을 갖는 경우에는 예측 효율이 향상될 수 있지만 현재 부호화 단위의 픽셀들이 방향성을 갖지 않는 경우에는 예측 효율이 떨어질 수 있다. 따라서, 후처리부(1220)는 인트라 예측을 통해 생성된 예측 부호화 단위에 대한 후처리 동작으로서, 예측 부호화 단위 내부의 각 픽셀과 적어도 하나의 주변 픽셀을 이용하여 예측 부호화 단위 내부의 각 픽셀의 픽셀값을 변경하여 새로운 예측 부호화 단위를 생성함으로써 영상의 예측 효율을 향상시킨다.As described above, the prediction coding unit output by applying the intra prediction modes that are variously set according to the size of the coding unit from the prediction unit 1210 of the intra prediction unit 1200 of FIG. 12 has a constant directionality according to the applied intra prediction mode. Has The directionality inside the prediction coding unit may improve the prediction efficiency when the pixels of the current coding unit to be encoded have a constant directionality, but may decrease the prediction efficiency when the pixels of the current coding unit do not have the directionality. Accordingly, the post-processor 1220 is a post-processing operation for the prediction coding unit generated through intra prediction and uses pixel values of each pixel in the prediction coding unit by using each pixel in the prediction coding unit and at least one peripheral pixel. By generating a new predictive coding unit to improve the prediction efficiency of the image.

이하, 도 12의 후처리부(1220)에서 수행되는 예측 부호화 단위의 후처리 동작에 대하여 설명한다.Hereinafter, the post processing operation of the prediction coding unit performed by the post processing unit 1220 of FIG. 12 will be described.

후처리부(1220)는 예측부(1210)에서 생성된 제 1 예측 부호화 단위를 구성하는 각 픽셀과 적어도 하나의 주변 픽셀을 이용한 연산을 통해 제 1 예측 부호화 단위를 구성하는 각 픽셀의 픽셀값을 변경하여 제 2 예측 부호화 단위를 생성한다. 여기서, 예측부(1220)는 전술한 바와 같이 부호화 단위의 크기에 따른 이용가능한 인트라 예측 모드들을 적용하여 제 1 예측 부호화 단위를 생성한다.The post processor 1220 changes the pixel value of each pixel constituting the first prediction coding unit by performing calculation using each pixel constituting the first prediction coding unit generated by the prediction unit 1210 and at least one neighboring pixel. To generate a second prediction coding unit. As described above, the prediction unit 1220 generates the first prediction coding unit by applying the available intra prediction modes according to the size of the coding unit.

도 18은 본 발명의 일 실시예에 따른 제 1 예측 부호화 단위의 후처리 동작을 설명하기 위한 참조도이다. 도 18에서 도면 부호 1810 내지 1860은 후처리부(1220)에 의하여 처리되는 제 1 예측 부호화 단위 내부의 각 픽셀값이 변경되는 과정을 시간 순서로 나타낸 것이다.18 is a reference diagram for explaining a post-processing operation of a first prediction coding unit according to an embodiment of the present invention. In FIG. 18, reference numerals 1810 to 1860 indicate a process of changing each pixel value in the first prediction coding unit processed by the post processor 1220 in time order.

도 18을 참조하면, 본 발명의 일 실시예에 따른 후처리부(1220)는 제 1 예측 부호화 단위 내부의 변경하고자 하는 픽셀과 그 주변 픽셀들의 픽셀값들의 가중 평균값을 계산하여 제 1 예측 부호화 단위의 각 픽셀의 픽셀값을 변경한다. 예를 들어, 도 18에서 제 1 예측 부호화 단위(1810)의 변경하고자 하는 픽셀(1821)의 픽셀값을 f[1][1], 상측에 위치한 픽셀(1822)의 픽셀값을 f[0][1], 좌측에 위치한 픽셀(1823)의 픽셀값을 f[1][0]이라고 하면, 픽셀(1821)의 픽셀값 f[1][1]을 변경한 값을 f'[1][1]이라고 하면, f'[1][1]은 다음의 수학식 1과 같이 계산될 수 있다.Referring to FIG. 18, the post-processor 1220 according to an embodiment of the present invention calculates a weighted average value of pixel values of pixels to be changed in the first prediction coding unit and pixels of the neighboring pixels to determine a weighted average value of the first prediction coding unit. Change the pixel value of each pixel. For example, in FIG. 18, f [1] [1] is the pixel value of the pixel 1821 to be changed in the first prediction coding unit 1810, and f [0] is the pixel value of the pixel 1822 located above. [1] If the pixel value of the pixel 1823 located on the left is f [1] [0], the value of the pixel value f [1] [1] of the pixel 1821 is changed to f '[1] [. 1], f '[1] [1] may be calculated as in Equation 1 below.

Figure 112009060712728-PAT00001
Figure 112009060712728-PAT00001

도 18에 도시된 바와 같이, 본 발명의 일 실시예에 따른 후처리부(1220)는 제 1 예측 부호화 단위 내부의 각 픽셀들에 대해서 최좌상측으로부터 최우하측 방향으로 변경하고자 하는 픽셀과 그 상측 및 좌측에 위치한 픽셀들의 가중 평균값을 계산하여 제 1 예측 부호화 단위의 각 픽셀의 픽셀값을 변경한다. 그러나, 본 발명에 따른 예측 부호화 단위의 후처리 동작은 최좌상측으로부터 최우하측 방향으로 한정되는 것이 아니라, 최우상측으로부터 최좌하측 방향으로, 또는 최우하측으로부터 최좌상측 방향으로, 또는 최좌하측으로부터 최우상측 방향으로 제 1 예측 부호화 단위의 각 픽셀들에 대하여 순차적으로 수행될 수 있다. 예를 들어 후처리부(1220)는 도 18에 도시된 처리 순서와 반대로 최우하측으로부터 최좌상측 방향으로 제 1 예측 부호화 단위의 픽셀들을 변경하는 경우에는 변경하고자 하는 픽셀과 그 하측 및 우측에 위치한 픽셀들의 가중 평균값을 계산하여 제 1 예측 부호화 단위의 각 픽셀의 픽셀값을 변경한다. As illustrated in FIG. 18, the post-processor 1220 according to an embodiment of the present invention may include pixels to be changed from the upper left side to the lower right side with respect to each pixel in the first prediction coding unit, and upper and lower sides thereof. The pixel value of each pixel of the first prediction coding unit is changed by calculating a weighted average value of pixels located on the left side. However, the post-processing operation of the prediction coding unit according to the present invention is not limited to the left-most side from the left-most side, but is from the right-most side to the left-most side, or from the right-most side to the left-most side, or the left-most side. From each of the pixels of the first prediction coding unit may be sequentially performed in the top-right direction. For example, when the post processor 1220 changes the pixels of the first prediction coding unit from the rightmost side to the leftmost side in the reverse order of the processing sequence illustrated in FIG. 18, the post-processing unit 1220 and the pixels positioned below and to the right of the first prediction coding unit are to be changed. The pixel value of each pixel of the first prediction coding unit is changed by calculating a weighted average of these.

도 19 및 도 20은 본 발명의 일 실시예에 따른 후처리부(1220)의 동작을 설명하기 위한 참조도이다. 도 19에서 도면 부호 1910은 현재 변경하고자 하는 제 1 예측 부호화 단위의 제 1 픽셀을 나타내며, 도면 부호 1911 내지 1918은 제 1 픽셀(1910)의 주변에 위치한 주변 픽셀들을 나타낸다.19 and 20 are reference diagrams for describing an operation of the post-processing unit 1220 according to an embodiment of the present invention. In FIG. 19, reference numeral 1910 denotes a first pixel of a first prediction coding unit to be changed, and reference numerals 1911 to 1918 denote peripheral pixels located around the first pixel 1910.

도 19를 참조하면, 본 발명의 일 실시예에 따른 후처리부(1220)는 도 18에 도시된 바와 같이 제 1 예측 부호화 단위의 상측 및 좌측에 위치한 주변 픽셀에 한정되지 않고, 주변 픽셀들(1911 내지 1918) 중 선택된 소정 개수의 주변 픽셀들을 이용하여 제 1 픽셀(1910)에 대한 후처리를 수행할 수 있다. 즉, 도 20을 참조하면, 현재 부호화 단위의 제 1 픽셀(c)를 중심으로 그 주변 픽셀들(P1 내지 P8) 중에서 소정 개수의 주변 픽셀들을 선택하고, 선택된 주변 픽셀과 제 1 픽셀(c)을 이용한 소정의 연산을 통해 제 1 픽셀(c)의 픽셀값을 변경한다. 예를 들어, 제 1 예측 부호화 단위의 크기를 mxn(m 및 n은 양의 정수), 제 1 예측 부호화 단위 내부의 변경하고자 하는 i(i는 0부터 m-1까지의 정수)번째 열 및 j(j는 0부터 n-1까지의 정수)번째 행에 위치한 제 1 픽셀(1910)의 픽셀값을 f[i][j], 제 1 픽셀(1910)의 주변 픽셀들(1911 내지 1918) 중 제1 픽셀(1910)의 후처리를 위해 선택된 n개(n은 2 또는 3)의 픽셀들의 값을 각각 f1 내지 fn이라고 하면, 후처리부(1220)는 다음의 수학식 2와 같이 제 1 픽셀(1910)의 픽셀값 f[i][j]를 f'[i][j]로 변경한다.Referring to FIG. 19, the post-processing unit 1220 according to an embodiment of the present invention is not limited to neighboring pixels located above and to the left of the first prediction coding unit, as shown in FIG. 18, and surrounding pixels 1911. Post processing may be performed on the first pixel 1910 using a predetermined number of peripheral pixels selected from 1918 to 1918. That is, referring to FIG. 20, a predetermined number of peripheral pixels are selected from the peripheral pixels P1 to P8 around the first pixel c of the current coding unit, and the selected peripheral pixel and the first pixel c are selected. The pixel value of the first pixel c is changed through a predetermined operation using. For example, the size of the first prediction coding unit is mxn (m and n are positive integers), the i th column (i is an integer from 0 to m-1) and j to be changed inside the first prediction coding unit, and j (j is an integer from 0 to n-1). The pixel value of the first pixel 1910 located in the th row is f [i] [j], and among the peripheral pixels 1911 to 1918 of the first pixel 1910. If the values of n pixels (n is 2 or 3) selected for post-processing of the first pixel 1910 are f1 to fn, respectively, the post-processor 1220 uses the first pixel (2) as shown in Equation 2 below. The pixel value f [i] [j] of 1910 is changed to f '[i] [j].

Figure 112009060712728-PAT00002
Figure 112009060712728-PAT00002

후처리부(1220)는 제 1 예측 부호화 단위(1900) 내부의 모든 픽셀들에 대하여 전술한 수학식 2를 적용하여 픽셀값을 변경함으로써 제 2 예측 부호화 단위를 생성한다. 전술한 수학식 2에서는 3개까지의 주변 픽셀들을 이용하는 경우를 예시하였으나, 이에 한정되지 않고 후처리부(1220)는 4개 이상의 주변 픽셀들을 이용하 여 후처리 동작을 수행할 수 있다.The post processor 1220 generates the second prediction coding unit by changing the pixel value by applying the above equation 2 to all the pixels in the first prediction coding unit 1900. In the above Equation 2, the case of using up to three peripheral pixels is illustrated. However, the present invention is not limited thereto, and the post-processor 1220 may perform post-processing operations using four or more peripheral pixels.

본 발명의 제 2 실시예에 따른 후처리부(1220)는 제 1 예측 부호화 단위의 변경되는 각 픽셀과, 각 픽셀의 주변에 위치한 픽셀들의 가중 조화 평균값을 통해 제 1 예측 부호화 단위의 각 픽셀의 픽셀값을 변경함으로써 제 2 예측 블록을 생성한다.The post-processing unit 1220 according to the second embodiment of the present invention uses the pixels of each pixel of the first prediction coding unit through the weighted harmonic mean value of each pixel that is changed in the first prediction coding unit and pixels positioned around each pixel. The second prediction block is generated by changing the value.

예를 들어, 본 발명의 제 2 실시예에 따른 후처리부(1220)는 다음의 수학식 3과 같이 상측 및 좌측의 주변 픽셀을 이용하여 제 1 예측 부호화 단위의 i번째 열 및 j번째 행에 위치한 픽셀의 픽셀값 f[i][j]를 f'[i][j]로 변경한다.For example, the post-processing unit 1220 according to the second embodiment of the present invention is located in the i-th column and the j-th row of the first prediction coding unit by using the upper and left peripheral pixels as shown in Equation 3 below. The pixel value f [i] [j] of the pixel is changed to f '[i] [j].

Figure 112009060712728-PAT00003
Figure 112009060712728-PAT00003

수학식 3에서, α, β, γ는 임의의 양의 정수값을 갖을 수 있으며, 일 예로 α=2, β=2, γ=1 일 수 있다.In Equation 3, α, β, and γ may have any positive integer values, and for example, α = 2, β = 2, and γ = 1.

본 발명의 제 3 실시예에 따른 후처리부(1220)는 제 1 예측 부호화 단위의 변경되는 각 픽셀과 각 픽셀의 주변 픽셀들의 가중 기하 평균값을 통해 제 1 예측 부호화 단위의 각 픽셀의 픽셀값을 변경함으로써 제 2 예측 부호화 단위를 생성한다.The post-processing unit 1220 according to the third embodiment of the present invention changes the pixel value of each pixel of the first prediction coding unit through the weighted geometric mean value of each pixel that is changed in the first prediction coding unit and the neighboring pixels of each pixel. Thus, a second prediction coding unit is generated.

예를 들어, 본 발명의 제 3 실시예에 따른 후처리부(1220)는 다음의 수학식 4와 같이 상측 및 좌측의 주변 픽셀을 이용하여 제 1 예측 부호화 단위의 i번째 열 및 j번째 행에 위치한 픽셀의 픽셀값 f[i][j]를 f'[i][j]로 변경한다.For example, the post-processor 1220 according to the third embodiment of the present invention is located in the i-th column and the j-th row of the first prediction coding unit by using the upper and left peripheral pixels as shown in Equation 4 below. The pixel value f [i] [j] of the pixel is changed to f '[i] [j].

Figure 112009060712728-PAT00004
Figure 112009060712728-PAT00004

수학식 4에서, α, β, γ는 임의의 양의 정수값을 갖을 수 있으며, 일 예로 α=1, β=1, γ=2 일 수 있다. 전술한 수학식 2 내지 4에서는 모두 변경하고자 하는 픽셀 f[i][j]에 상대적으로 큰 가중치를 부여한다.In Equation 4, α, β, and γ may have any positive integer values, and for example, α = 1, β = 1, and γ = 2. In Equations 2 to 4, all of them are given relatively large weights to pixels f [i] [j].

전술한 바와 같이 본 발명의 제 1 실시예 내지 제 3 실시예에서 후처리부(1220)는 변경하고자 하는 픽셀의 상측 및 좌측의 주변 픽셀에 한정되지 않고 도 19에 도시된 바와 같은 주변 픽셀들(1911 내지 1918) 중 선택된 소정 개수의 주변 픽셀들을 이용하여 후처리 동작을 수행할 수 있다. As described above, in the first to third embodiments of the present invention, the post-processing unit 1220 is not limited to the upper and left peripheral pixels of the pixel to be changed, but the peripheral pixels 1911 as shown in FIG. 19. The post-processing operation may be performed using a predetermined number of peripheral pixels selected from 1918 to 1918.

본 발명의 제 4 실시예에 따른 후처리부(1220)는 제 1 예측 부호화 단위의 변경하고자 하는 픽셀과 그 주변 픽셀들 중 선택된 하나의 주변 픽셀의 평균값으로 제 1 예측 부호화 단위의 각 픽셀의 픽셀값을 변경함으로써 제 2 예측 부호화 단위를 생성한다.The post-processing unit 1220 according to the fourth embodiment of the present invention is a pixel value of each pixel of the first prediction coding unit as an average value of one peripheral pixel selected from among pixels to be changed in the first prediction coding unit and neighboring pixels thereof. By generating the second predictive coding unit.

예를 들어, 본 발명의 제 4 실시예에 따른 후처리부(1220)는 다음의 수학식 5와 같이 상측의 주변 픽셀을 이용하여 제 1 예측 부호화 단위의 i번째 열 및 j번째 행에 위치한 픽셀의 픽셀값 f[i][j]를 f'[i][j]로 변경할 수 있다.For example, the post-processing unit 1220 according to the fourth embodiment of the present invention uses pixels of the pixels located in the i-th column and the j-th row of the first prediction coding unit by using the upper peripheral pixel as shown in Equation 5 below. The pixel value f [i] [j] can be changed to f '[i] [j].

Figure 112009060712728-PAT00005
Figure 112009060712728-PAT00005

유사하게 본 발명의 제 5 실시예에 따른 후처리부(1220)는 제 1 예측 부호화 단위의 변경되는 픽셀과 그 좌측에 위치한 주변 픽셀의 평균값으로 제 1 예측 부호하 단위의 각 픽셀의 픽셀값을 변경함으로써 제 2 예측 부호화 단위를 생성한다.Similarly, the post-processing unit 1220 according to the fifth embodiment of the present invention changes the pixel value of each pixel of the first prediction code unit to an average value of pixels that are changed in the first prediction coding unit and neighboring pixels located to the left of the first prediction coding unit. Thus, a second prediction coding unit is generated.

즉, 본 발명의 제 5 실시예에 따른 후처리부(1220)는 다음의 수학식 6과 같이 제 1 예측 부호화 단위의 i번째 열 및 j번째 행에 위치한 픽셀의 픽셀값 f[i][j]를 f'[i][j]로 변경한다.That is, the post-processor 1220 according to the fifth embodiment of the present invention performs pixel values f [i] [j] of pixels located in the i th column and the j th row of the first prediction coding unit as shown in Equation 6 below. To f '[i] [j].

Figure 112009060712728-PAT00006
Figure 112009060712728-PAT00006

본 발명의 제 6 실시예에 따른 후처리부(1220)는 제 1 예측 부호화 단위의 변경하고자하는 픽셀, 그 주변 픽셀들 사이의 중간값(median)으로 픽셀값을 변경함으로써 제 2 예측 부호화 단위를 생성한다. 예를 들어, 다시 도 19를 참조하면, 제 1 예측 부호화 단위(1900)의 i번째 열 및 j번째 행에 위치한 제 1 픽셀(1910)의 픽셀값 f[i][j], 제 2 픽셀(1912)의 픽셀값 f[i][j-1], 제 3 픽셀(1911)의 픽셀값 f[i-1][j]들이 다음의 크기 순서; f[i][j-1]>f[i-1][j]>f[i][j]를 갖는다고 가정한다. 이 경우 본 발명의 제 6 실시예에 따른 후처리부(1220)는 변경하고자 하는 제 1 픽셀(510)의 픽셀값 f[i][j]를 중간값인 f[i-1][j]으로 변경한다.The post processor 1220 according to the sixth embodiment of the present invention generates the second prediction coding unit by changing the pixel value to a median between the pixels to be changed in the first prediction coding unit and neighboring pixels. do. For example, referring back to FIG. 19, the pixel values f [i] [j] of the first pixel 1910 located in the i-th column and the j-th row of the first prediction coding unit 1900, and the second pixel ( Pixel values f [i] [j-1] of 1912 and pixel values f [i-1] [j] of third pixel 1911 are in the following magnitude order; Assume that f [i] [j-1]> f [i-1] [j]> f [i] [j]. In this case, the post-processing unit 1220 according to the sixth embodiment of the present invention sets the pixel value f [i] [j] of the first pixel 510 to be changed to an intermediate value f [i-1] [j]. Change it.

본 발명의 제 7 실시예 내지 제 9 실시예에 따른 후처리부(1220)는 변경되는 픽셀의 주변 픽셀들을 이용하는 대신에 현재 부호화 단위 이전에 부호화된 후 복원된 인접한 부호화 단위들의 픽셀값을 이용하여 제 2 예측 부호화 단위를 생성한다.The post-processing unit 1220 according to the seventh to ninth embodiments of the present invention uses the pixel values of adjacent coding units that are encoded before and reconstructed before the current coding unit, instead of using the neighboring pixels of the changed pixel. 2 Generate a predictive coding unit.

다시 도 19를 참조하면, 본 발명의 제 7 실시예에 따른 후처리부(1220)는 제 1 예측 부호화 단위(1900) 내부의 변경하고자 하는 i번째 열 및 j번째 행에 위치한 제 1 픽셀(1910)과 동일한 열에 위치하면서 현재 부호화 단위의 상측 인접 부호화 단위에 위치한 픽셀(1921)의 평균값을 다음의 수학식 7과 같이 계산하여 제 1 픽셀(1910)의 픽셀값을 f'[i][j]로 변경한다.Referring back to FIG. 19, the post-processor 1220 according to the seventh embodiment of the present invention may include the first pixel 1910 located in the i-th column and the j-th row to be changed in the first prediction coding unit 1900. The pixel value of the first pixel 1910 is calculated as f '[i] [j] by calculating an average value of the pixel 1921 located in the same column as the upper coding unit adjacent to the current coding unit as shown in Equation 7 below. Change it.

Figure 112009060712728-PAT00007
Figure 112009060712728-PAT00007

수학식 7에서 f[-1][j]는 제 1 픽셀(1910)과 동일한 열에 위치하면서 현재 부호화 단위의 상측 인접 부호화 단위에 위치한 픽셀(1921)의 픽셀값을 나타낸다.In Equation 7, f [-1] [j] represents a pixel value of a pixel 1921 located in the same column as the first pixel 1910 and positioned in an upper neighboring coding unit of the current coding unit.

유사하게 본 발명의 제 8 실시예에 따른 후처리부(1220)는 제 1 예측 부호화 단위(1900) 내부의 변경하고자 하는 i번째 열 및 j번째 행에 위치한 제 1 픽셀(1910)과 동일한 행에 위치하면서 현재 부호화 단위의 좌측 인접 부호화 단위에 위치한 픽셀(1922)의 평균값을 다음의 수학식 8과 같이 계산하여 제 1 픽셀(1910)의 픽셀값을 f'[i][j]로 변경한다.Similarly, the post processor 1220 according to the eighth embodiment of the present invention is positioned in the same row as the first pixel 1910 located in the i th column and the j th row to be changed in the first prediction coding unit 1900. The average value of the pixels 1922 located in the left neighboring coding unit of the current coding unit is calculated as shown in Equation 8 to change the pixel value of the first pixel 1910 to f '[i] [j].

Figure 112009060712728-PAT00008
Figure 112009060712728-PAT00008

수학식 8에서 f[i][-1]는 제 1 픽셀(1910)과 동일한 행에 위치하면서 현재 부호화 단위의 좌측 인접 부호화 단위에 위치한 픽셀(1922)의 픽셀값을 나타낸다.In Equation 8, f [i] [-1] represents a pixel value of a pixel 1922 positioned in the same row as the first pixel 1910 and positioned in a left neighboring coding unit of the current coding unit.

본 발명의 제 9 실시예에 따른 후처리부(1220)는 제 1 예측 부호화 단위(1900) 내부의 변경하고자 하는 i번째 열 및 j번째 행에 위치한 제 1 픽셀(1910), 제 1 픽셀(1910)과 동일한 열에 위치하면서 현재 부호화 단위의 상측 인접 부호화 단위에 위치한 픽셀(1921) 및 동일한 행에 위치하면서 현재 부호화 단위의 좌측 인접 부호화 단위에 위치한 픽셀(1922)의 가중 평균값을 다음의 수학식 9와 같이 계산하여 제 1 픽셀(1910)의 픽셀값을 f'[i][j]로 변경한다.The post-processor 1220 according to the ninth embodiment of the present invention may include the first pixel 1910 and the first pixel 1910 located in the i-th column and the j-th row to be changed in the first prediction coding unit 1900. The weighted average of the pixels 1921 located in the same column as the upper coding unit of the current coding unit and the pixels 1922 located in the left neighboring coding unit of the current coding unit in the same row as shown in Equation 9 below. By calculating, the pixel value of the first pixel 1910 is changed to f '[i] [j].

Figure 112009060712728-PAT00009
Figure 112009060712728-PAT00009

본 발명의 제 10 실시예에 따른 후처리부(1220)는 제 1 예측 부호화 단위(1900) 내부의 변경하고자 하는 제 1 픽셀의 픽셀값 f[i][j]를 다음의 수학식 10 내지 13 중 하나를 이용하여 f'[i][j]로 변경한다.The post-processing unit 1220 according to the tenth embodiment of the present invention selects the pixel value f [i] [j] of the first pixel to be changed in the first prediction coding unit 1900 from the following equations 10 to 13. Change f '[i] [j] using one.

Figure 112009060712728-PAT00010
Figure 112009060712728-PAT00010

Figure 112009060712728-PAT00011
Figure 112009060712728-PAT00011

Figure 112009060712728-PAT00012
Figure 112009060712728-PAT00012

Figure 112009060712728-PAT00013
Figure 112009060712728-PAT00013

수학식 10은 제 1 예측 부호화 단위의 열 단위로 픽셀값들을 아래 방향으로 점차 증가하는 값으로 변경하는 것이며, 수학식 11은 제 1 예측 부호화 단위의 행 단위로 픽셀값들을 오른쪽 방향으로 점차 증가하는 값으로 변경하는 것이다. 수학식 12는 제 1 예측 부호화 단위의 열 단위로 각 픽셀값들을 아래 방향으로 점차 감소하는 값으로 변경하는 것이며, 수학식 13은 제 1 예측 부호화 단위의 행 단위로 각 픽셀값들을 오른쪽 방향으로 점차 감소하는 값으로 변경하는 것이다.Equation 10 changes pixel values to a value gradually increasing in a downward direction in units of columns of a first prediction coding unit, and Equation 11 gradually increases pixel values to a right direction in a row unit of a first prediction coding unit. To change it to a value. Equation 12 changes each pixel value to a value gradually decreasing downward in the column unit of the first prediction coding unit, and Equation 13 gradually shifts each pixel value to the right direction in the row unit of the first prediction coding unit. Change it to a decreasing value.

본 발명의 제 11실시예에 따른 후처리부(1220)는 제 1 예측 부호화 단위 내부의 변경하고자 하는 i번째 열 및 j번째 행에 위치한 제 1 픽셀의 픽셀값을 f[i][j], 제 1 예측 부호화 단위의 최좌상측에 위치한 픽셀의 픽셀값을 f[0][0], 제 1 픽셀과 동일한 j번째 열에 위치하며 제 1 예측 부호화 단위의 최상측행에 위치한 픽셀의 픽셀값을 f[0][j], 제 1 픽셀과 동일한 i번째 행에 위치하며 제 1 예측 부호화 단위의 최좌측열에 위치한 픽셀의 픽셀값을 f[i][0],

Figure 112009060712728-PAT00014
라고 할 때, 다음의 수학식 14와 같이 제 1 픽셀의 픽셀값을 f'[i][j]로 변경한다.The post-processing unit 1220 according to the eleventh embodiment of the present invention performs the f [i] [j] and the pixel values of the first pixel located in the i th column and the j th row to be changed in the first prediction coding unit. 1 f [0] [0] is the pixel value of the pixel located at the leftmost top of the prediction coding unit, and f [is the pixel value of the pixel located at the top row of the first prediction coding unit, and f [ 0] [j], and the pixel value of the pixel located in the leftmost column of the first prediction coding unit in the same i-th row as the first pixel, f [i] [0],
Figure 112009060712728-PAT00014
In this case, the pixel value of the first pixel is changed to f '[i] [j] as shown in Equation 14 below.

Figure 112009060712728-PAT00015
Figure 112009060712728-PAT00015

수학식 14는 일종의 파동 방정식(wave equation)에 기초한 것으로, 제 1 예측 부호화 내부의 픽셀값을 스무딩(smoothing)하기 위해서 제 1 예측 부호화 단위의 최상측행의 픽셀값과 최좌측열의 픽셀값을 경계 조건으로 하여서 G[i][j]를 계산하고, G[i][j]와 f[i][j]의 평균값을 계산함으로써 제 1 예측 부호화 단위의 픽셀들의 픽셀값을 변경하는 것이다.Equation (14) is based on a kind of wave equation, which is a boundary condition between the pixel value of the leftmost column and the pixel value of the leftmost column of the first prediction coding unit in order to smooth the pixel value inside the first prediction coding. By calculating G [i] [j] and calculating the average value of G [i] [j] and f [i] [j], the pixel values of the pixels of the first prediction coding unit are changed.

본 발명의 제 1 실시예 내지 제 11 실시예들과 같이 다양한 연산 모드를 적용하여 생성된 제 2 예측 부호화 단위들을 부호화한 비트스트림의 코스트가 비교되어, 최소 코스트를 갖는 제 2 예측 부호화 단위를 생성하는데 이용된 연산 정보가 비트스트림의 헤더 영역에 부가된다. 연산 정보를 비트스트림에 부가할 때 소정 개수의 부호화 단위들에 대한 부호화가 완료된 이후 결정된 연산 정보의 분포에 기초하여, 많이 이용되는 연산 정보에 적은 비트를 할당하는 가변 길이 부호화 방식을 적용함으로써 서로 다른 연산을 구분하여 표시할 수 있다. 예를 들어, 본 발명의 제 1 실시예에 따른 연산이 대부분의 부호화 단위에서 가장 작은 코스트를 발생시키는 최적의 연산이라고 할 때, 제 1 실시예에 따른 연산을 나타내는 인덱스에 가장 작은 비트를 할당하여 제 1 실시예에 따른 연산을 다른 실시예에 따른 연산들 과 구별되도록 할 수 있다.As in the first to eleventh embodiments of the present invention, the costs of bitstreams encoding the second prediction coding units generated by applying various operation modes are compared to generate a second prediction coding unit having a minimum cost. The operation information used to add is added to the header area of the bitstream. When the operation information is added to the bitstream, the variable length coding scheme of allocating a small bit to the operation information that is frequently used is different based on the distribution of the operation information determined after the encoding of the predetermined number of coding units is completed. Operations can be displayed separately. For example, when an operation according to the first embodiment of the present invention is an optimal operation that generates the smallest cost in most coding units, the smallest bit is assigned to the index representing the operation according to the first embodiment. The operation according to the first embodiment may be distinguished from the operations according to the other embodiments.

한편, 부호화 단위를 더 작은 서브 부호화 단위들로 나누어 예측을 수행하는 경우, 각 서브 부호화 단위 별로 서로 다른 연산을 적용하여 제 2 예측 부호화 단위를 생성할 수도 있고, 계산을 간소화하고 오버 헤드의 비율을 낮추기 위해서 동일한 부호화 단위에 포함되는 서브 부호화 단위들에는 동일한 연산이 적용되도록 할 수 있다.On the other hand, when performing prediction by dividing a coding unit into smaller sub-coding units, a second prediction coding unit may be generated by applying a different operation to each sub-coding unit, simplifying the calculation and reducing the overhead ratio. In order to decrease, the same operation may be applied to sub-coding units included in the same coding unit.

최적의 연산 모드를 결정하기 위한 코스트로는 율-왜곡 최적화(Rate-Distortion Optimization) 방식이 이용될 수 있다. 본 발명의 일 실시예에 따른 부호화 방법은 다른 부호화 단위의 참조 데이터로 이용되는 인트라 예측 부호화 단위에 적용되기 때문에 율-왜곡 최적화 방식에서 왜곡값(distortion)에 높은 가중치를 두어 코스트를 계산하는 것이 바람직하다. 즉, 종래 율-왜곡 최적화 방식은 다음의 수학식 15와 같이 부호화된 영상과 원영상의 차이값인 왜곡값 및 발생되는 비트레이트에 기초하여 코스트를 계산한다.A rate-distortion optimization method may be used as a cost for determining an optimal operation mode. Since the encoding method according to an embodiment of the present invention is applied to an intra prediction coding unit used as reference data of another coding unit, it is preferable to calculate the cost by giving a high weight to the distortion value in the rate-distortion optimization method. Do. That is, the conventional rate-distortion optimization method calculates the cost based on the distortion value and the generated bit rate, which are the difference between the encoded image and the original image, as shown in Equation 15 below.

Cost=왜곡값(distortion)+비트율(bit-rate)Cost = distortion + bit-rate

이에 반하여 본 발명의 일 실시예에 따른 부호화 방식에서는 다음의 수학식 16과 같이 종래 율-왜곡 최적화 방식에 비하여 왜곡값에 보다 높은 가중치를 할당하여 최적의 연산 모드를 결정하는 것이 바람직하다. In contrast, in the encoding method according to the embodiment of the present invention, it is preferable to assign the higher weight to the distortion value to determine the optimal operation mode as compared with the conventional rate-distortion optimization method as shown in Equation 16 below.

Cost=α*왜곡값(distortion)+비트율(bit-rate) (α는 2 이상의 실수값)Cost = α * distortion + bit-rate (α is a real value of 2 or more)

도 21은 본 발명의 일 실시예에 따른 영상 부호화 방법을 나타낸 플로우 차트이다.21 is a flowchart illustrating an image encoding method according to an embodiment of the present invention.

도 21을 참조하면, 단계 2110에서 부호화되는 현재 부호화 단위에 대한 제 1 예측 부호화 단위를 생성한다. 여기서, 제 1 예측 부호화 단위는 일반적인 인트라 예측 방식 및 전술한 바와 같이 부호화 단위의 크기에 따라서 다양한 방향성을 갖는 인트라 예측 모드들을 적용하여 생성된 인트라 예측 블록이다.Referring to FIG. 21, a first prediction coding unit for the current coding unit encoded in operation 2110 is generated. Here, the first prediction coding unit is an intra prediction block generated by applying a general intra prediction method and intra prediction modes having various directions according to the size of the coding unit as described above.

단계 2120에서, 제 1 예측 부호화 단위를 구성하는 각 픽셀과 적어도 하나의 주변 픽셀을 이용하여 제 1 예측 부호화 단위의 각 픽셀의 픽셀값을 변경하여 제 2 예측 부호화 단위를 생성한다. 전술한 후처리부(1220)의 제 1 실시예 내지 제 11 실시예에서 설명한 바와 같이, 제 1 예측 부호화 단위의 변경하고자 하는 픽셀을 중심으로 그 주변 픽셀들에 다양한 연산 모드를 적용하여 제 1 예측 부호화 단위의 각 픽셀들의 픽셀값을 변경함으로써 제 2 예측 부호화 단위를 생성한다.In operation 2120, a pixel value of each pixel of the first prediction coding unit is changed by using each pixel constituting the first prediction coding unit and at least one neighboring pixel to generate a second prediction coding unit. As described in the first to eleventh embodiments of the post-processing unit 1220, the first prediction encoding is performed by applying various operation modes to the pixels around the pixel to be changed in the first prediction coding unit. The second prediction coding unit is generated by changing the pixel value of each pixel of the unit.

단계 2130에서, 현재 부호화 단위와 제 2 예측 부호화 단위의 차이값인 레지듀얼을 변환, 양자화 및 엔트로피 부호화하여 비트스트림을 생성한다. 생성된 비트스트림의 소정 영역에는 제 2 예측 부호화 단위를 생성하는데 이용된 연산 정보를 부가함으로써 복호화 장치에서 현재 부호화 단위에 대한 제 2 예측 부호화 단위를 생성할 수 있도록 한다.In operation 2130, a bitstream is generated by transforming, quantizing, and entropy encoding a residual, which is a difference between a current coding unit and a second prediction coding unit. By adding operation information used to generate the second prediction coding unit to the predetermined region of the generated bitstream, the decoding apparatus may generate the second prediction coding unit for the current coding unit.

도 22는 본 발명의 일 실시예에 따른 영상 복호화 방법을 나타낸 플로우 차트이다.22 is a flowchart illustrating an image decoding method according to an embodiment of the present invention.

도 22를 참조하면, 단계 2210에서 수신된 비트스트림으로부터 복호화되는 현 재 복호화 단위의 예측 모드 정보를 추출한다.Referring to FIG. 22, prediction mode information of a current decoding unit decoded from a bitstream received in step 2210 is extracted.

단계 2220에서, 추출된 예측 모드 정보에 따라서 현재 복호화 단위에 대한 제 1 예측 복호화 단위를 생성한다.In operation 2220, a first prediction decoding unit for the current decoding unit is generated according to the extracted prediction mode information.

단계 2230에서, 비트스트림으로부터 제 1 예측 복호화 단위를 구성하는 각 픽셀과 각 픽셀의 주변 픽셀들을 이용한 연산 정보를 추출한다.In operation 2230, operation information using each pixel constituting the first prediction decoding unit and neighboring pixels of each pixel is extracted from the bitstream.

단계 2240에서, 추출된 연산 정보에 따라서 제 1 예측 복호화 단위를 구성하는 각 픽셀과 각 픽셀의 주변 픽셀들을 이용하여 각 픽셀의 픽셀값을 변경하여 제 2 예측 복호화 단위를 생성한다.In operation 2240, the pixel value of each pixel is changed using each pixel constituting the first prediction decoding unit and neighboring pixels of each pixel according to the extracted operation information to generate a second prediction decoding unit.

단계 2250에서, 비트스트림으로부터 현재 복호화 단위와 제 2 예측 복호화 단위의 차이값에 해당하는 레지듀얼을 추출하여 복원한다.In operation 2250, a residual corresponding to a difference between the current decoding unit and the second prediction decoding unit is extracted from the bitstream and reconstructed.

단계 2260에서, 레지듀얼과 제 2 예측 복호화 단위를 가산하여 현재 복호화 단위를 복호화한다.In operation 2260, the residual and the second prediction decoding unit are added to decode the current decoding unit.

본 발명에 따른 영상의 부호화, 복호화 방법은 또한 컴퓨터로 읽을 수 있는 기록매체에 컴퓨터가 읽을 수 있는 코드로서 구현하는 것이 가능하다. 컴퓨터가 읽을 수 있는 기록매체는 컴퓨터 시스템에 의하여 읽혀질 수 있는 데이터가 저장되는 모든 종류의 기록장치를 포함한다. 컴퓨터가 읽을 수 있는 기록매체의 예로는 ROM, RAM, CD-ROM, 자기 테이프, 플로피디스크, 광 데이터 저장장치 등이 포함된. 또한 컴퓨터가 읽을 수 있는 기록매체는 네트워크로 연결된 컴퓨터 시스템에 분산되어, 분산방식으로 컴퓨터가 읽을 수 있는 코드가 저장되고 실행될 수 있다.The video encoding and decoding method according to the present invention can also be embodied as computer readable codes on a computer readable recording medium. The computer-readable recording medium includes all kinds of recording devices in which data that can be read by a computer system is stored. Examples of computer-readable recording media include ROM, RAM, CD-ROM, magnetic tape, floppy disks, optical data storage devices, and the like. The computer readable recording medium can also be distributed over network coupled computer systems so that the computer readable code is stored and executed in a distributed fashion.

이제까지 본 발명에 대하여 그 바람직한 실시예들을 중심으로 살펴보았다. 본 발명이 속하는 기술 분야에서 통상의 지식을 가진 자는 본 발명의 본질적인 특성에서 벗어나지 않는 범위에서 변형된 형태로 구현될 수 있음을 이해할 수 있을 것이다. 그러므로 개시된 실시예들은 한정적인 관점이 아니라 설명적인 관점에서 고려되어야 한다. 본 발명의 범위는 전술한 설명이 아니라 특허청구범위에 나타나 있으며, 그와 동등한 범위 내에 있는 모든 차이점은 본 발명에 포함된 것으로 해석되어야 할 것이다. So far I looked at the center of the preferred embodiment for the present invention. It will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims. Therefore, the disclosed embodiments should be considered in an illustrative rather than a restrictive sense. 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.

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

도 2 는 본 발명의 일 실시예에 따른 영상 복호화 장치의 블록도를 도시한다.2 is a block diagram of an image decoding apparatus according to an embodiment of the present invention.

도 3은 본 발명의 일 실시예에 따른 계층적 부호화 단위를 도시한다.3 illustrates a hierarchical coding unit according to an embodiment of the present invention.

도 4 는 본 발명의 일 실시예에 따른 부호화 단위에 기초한 영상 부호화부의 블록도를 나타낸 것이다.4 is a block diagram of an image encoder based on coding units, according to an embodiment of the present invention.

도 5 는 본 발명의 일 실시예에 따른 부호화 단위에 기초한 영상 복호화부의 블록도를 나타낸 것이다.5 is a block diagram of an image decoder based on coding units, according to an embodiment of the present invention.

도 6은 본 발명의 일 실시예에 따른 심도별 부호화 단위 및 예측 단위를 도시한다.6 is a diagram of deeper coding units according to depths, and prediction units, according to an embodiment of the present invention.

도 7은 본 발명의 일 실시예에 따른, 부호화 단위 및 변환 단위의 관계를 도시한다. 7 illustrates a relationship between coding units and transformation units, according to an embodiment of the present invention.

도 8은 본 발명의 일 실시예에 따라, 심도별 부호화 정보들을 도시한다.8 illustrates encoding information according to depths, according to an embodiment of the present invention.

도 9 는 본 발명의 일 실시예에 따른 심도별 부호화 단위를 도시한다. 9 is a diagram of deeper coding units according to depths, according to an embodiment of the present invention.

도 10a 및 10b는 본 발명의 일 실시예에 따른, 부호화 단위, 예측 단위 및 주파수 변환 단위의 관계를 도시한다.10A and 10B illustrate a relationship between a coding unit, a prediction unit, and a frequency transformation unit, according to an embodiment of the present invention.

도 11 은 본 발명의 일 실시예에 따른 부호화 단위별 부호화 정보를 도시한다.11 is a diagram of encoding information according to coding units, according to an embodiment of the present invention.

도 12는 본 발명의 일 실시예에 따른 인트라 예측 장치(1200)의 구성을 나타 낸 블록도이다.12 is a block diagram illustrating a configuration of an intra prediction apparatus 1200 according to an embodiment of the present invention.

도 13은 본 발명의 일 실시예에 따른 부호화 단위의 크기에 따른 인트라 예측 모드들의 개수를 도시한다.13 illustrates the number of intra prediction modes according to the size of a coding unit, according to an embodiment of the present invention.

도 14a 내지 도 14c는 본 발명의 일 실시예에 따른 소정 크기의 부호화 단위에 적용되는 인트라 예측 모드의 일 예를 설명하기 위한 도면이다. 14A to 14C illustrate an example of an intra prediction mode applied to a coding unit having a predetermined size, according to an embodiment of the present invention.

도 15는 본 발명의 일 실시예에 따른 소정 크기의 부호화 단위에 적용되는 인트라 예측 모드의 다른 예를 설명하기 위한 도면이다.FIG. 15 illustrates another example of an intra prediction mode applied to a coding unit of a predetermined size, according to an embodiment of the present invention.

도 16은 본 발명의 일 실시예에 따른 다양한 방향성을 갖는 인트라 예측 모드들을 설명하기 위한 참조도이다.16 is a reference diagram for explaining intra prediction modes having various directions according to an embodiment of the present invention.

도 17은 본 발명의 일 실시예에 따른 쌍선형 모드를 설명하기 위한 참조도이다.17 is a reference diagram for describing a bilinear mode according to an embodiment of the present invention.

도 18은 본 발명의 일 실시예에 따른 제 1 예측 부호화 단위의 후처리 동작을 설명하기 위한 참조도이다.18 is a reference diagram for explaining a post-processing operation of a first prediction coding unit according to an embodiment of the present invention.

도 19는 본 발명의 일 실시예에 따른 후처리부(1220)의 동작을 설명하기 위한 참조도이다.19 is a reference diagram for explaining an operation of the post-processing unit 1220 according to an embodiment of the present invention.

도 20은 본 발명의 일 실시예에 따른 후처리부(1220)에서 이용되는 주변 픽셀들을 설명하기 위한 참조도이다.20 is a reference diagram for explaining peripheral pixels used in the post processor 1220 according to an exemplary embodiment.

도 21은 본 발명의 일 실시예에 따른 영상 부호화 방법을 나타낸 플로우 차트이다.21 is a flowchart illustrating an image encoding method according to an embodiment of the present invention.

도 22는 본 발명의 일 실시예에 따른 영상 복호화 방법을 나타낸 플로우 차 트이다.22 is a flowchart illustrating an image decoding method according to an embodiment of the present invention.

Claims (37)

영상의 부호화 방법에 있어서,In the video encoding method, 부호화되는 현재 부호화 단위에 대한 제 1 예측 부호화 단위를 생성하는 단계;Generating a first prediction coding unit for the current coding unit to be encoded; 상기 제 1 예측 부호화 단위를 구성하는 각 픽셀과 적어도 하나의 주변 픽셀을 이용하여 상기 각 픽셀의 픽셀값을 변경하여 제 2 예측 부호화 단위를 생성하는 단계; 및Generating a second prediction coding unit by changing a pixel value of each pixel by using each pixel constituting the first prediction coding unit and at least one neighboring pixel; And 상기 현재 부호화 단위와 상기 제 2 예측 부호화 단위의 차이값을 부호화하는 단계를 포함하는 것을 특징으로 하는 영상의 부호화 방법.And encoding a difference value between the current coding unit and the second prediction coding unit. 제 1항에 있어서,The method of claim 1, 상기 제 1 예측 부호화 단위를 생성하는 단계는Generating the first prediction coding unit 최대 크기를 갖는 부호화 단위인 최대 부호화 단위 및 상기 최대 부호화 단위의 계층적 분할 정보인 심도에 기초하여 현재 픽처를 적어도 하나의 부호화 단위로 분할하는 단계; 및Dividing the current picture into at least one coding unit based on a maximum coding unit that is a coding unit having a maximum size and a depth that is hierarchical division information of the maximum coding unit; And 상기 분할된 부호화 단위에 대한 인트라 예측을 수행하여 상기 제 1 예측 부호화 단위를 생성하는 단계를 더 포함하는 것을 특징으로 하는 영상의 부호화 방법.And generating the first prediction coding unit by performing intra prediction on the split coding unit. 제 1항에 있어서,The method of claim 1, 상기 제 2 예측 부호화 단위를 생성하는 단계는Generating the second prediction coding unit 상기 변경되는 각 픽셀의 적어도 하나의 주변 픽셀과 상기 각 픽셀의 가중 평균값을 통해 상기 제 1 예측 부호화 단위의 각 픽셀의 값을 변경함으로써 상기 제 2 예측 부호화 단위를 생성하는 것을 특징으로 하는 영상의 부호화 방법.And encoding the second prediction coding unit by changing a value of each pixel of the first prediction coding unit through at least one neighboring pixel of the changed pixel and a weighted average value of each pixel. Way. 제 3항에 있어서,The method of claim 3, wherein 상기 제 2 예측 부호화 단위를 생성하는 단계는Generating the second prediction coding unit 상기 제 1 예측 부호화 단위의 크기를 mxn(m 및 n은 양의 정수), 상기 제 1 예측 부호화 단위 내부의 변경하고자 하는 i번째 열 및 j번째 행에 위치한 제 1 픽셀의 픽셀값을 f[i][j], 상기 제 1 픽셀의 주변 픽셀들 f[i][j-1], f[i-1][j], f[i+1][j], f[i][j+1], f[i-1][j+1], f[i+1][j-1], f[i-1][j-1], f[i+1][j+1] 중에서 선택된 2개의 주변 픽셀을 f1, f2라고 할 때, 다음의 수학식;
Figure 112009060712728-PAT00016
을 통해 상기 제 1 픽셀의 픽셀값을 f'[i][j]로 변경하는 것을 특징으로 하는 영상의 부호화 방법.
The size of the first prediction coding unit is mxn (m and n are positive integers), and the pixel value of the first pixel located in the i th column and the j th row to be changed in the first prediction coding unit is f [i. ] [j], peripheral pixels f [i] [j-1], f [i-1] [j], f [i + 1] [j], f [i] [j + of the first pixel 1], f [i-1] [j + 1], f [i + 1] [j-1], f [i-1] [j-1], f [i + 1] [j + 1] When two neighboring pixels selected from among are called f1 and f2, the following equation;
Figure 112009060712728-PAT00016
And the pixel value of the first pixel is changed to f '[i] [j] by using a second image encoding method.
제 3항에 있어서,The method of claim 3, wherein 상기 제 2 예측 부호화 단위를 생성하는 단계는Generating the second prediction coding unit 상기 제 1 예측 부호화 단위의 크기를 mxn(m 및 n은 양의 정수), 상기 제 1 예측 부호화 단위 내부의 변경하고자 하는 i번째 열 및 j번째 행에 위치한 제 1 픽셀의 픽셀값을 f[i][j], 상기 제 1 픽셀의 주변 픽셀들 f[i][j-1], f[i-1][j], f[i+1][j], f[i][j+1], f[i-1][j+1], f[i+1][j-1], f[i-1][j-1], f[i+1][j+1] 중에서 선택된 3개의 주변 픽셀을 f1, f2, f3라고 할 때, 다음의 수학식;
Figure 112009060712728-PAT00017
을 통해 상기 제 1 픽셀의 픽셀값을 f'[i][j]로 변경하는 것을 특징으로 하는 영상의 부호화 방법.
The size of the first prediction coding unit is mxn (m and n are positive integers), and the pixel value of the first pixel located in the i th column and the j th row to be changed in the first prediction coding unit is f [i. ] [j], peripheral pixels f [i] [j-1], f [i-1] [j], f [i + 1] [j], f [i] [j + of the first pixel 1], f [i-1] [j + 1], f [i + 1] [j-1], f [i-1] [j-1], f [i + 1] [j + 1] When three neighboring pixels selected from among are called f1, f2, and f3, the following equation;
Figure 112009060712728-PAT00017
And the pixel value of the first pixel is changed to f '[i] [j] by using a second image encoding method.
제 1항에 있어서,The method of claim 1, 상기 제 2 예측 부호화 단위를 생성하는 단계는Generating the second prediction coding unit 상기 변경되는 각 픽셀의 적어도 하나의 주변 픽셀과 상기 각 픽셀의 가중 조화 평균값을 통해 상기 제 1 예측 부호화 단위의 각 픽셀의 값을 변경함으로써 상기 제 2 예측 부호화 단위를 생성하는 것을 특징으로 하는 영상의 부호화 방법.The second prediction coding unit is generated by changing a value of each pixel of the first prediction coding unit through at least one neighboring pixel of the changed pixel and a weighted harmonic mean value of each pixel. Coding method. 제 6항에 있어서,The method of claim 6, 상기 제 2 예측 부호화 단위를 생성하는 단계는Generating the second prediction coding unit 상기 제 1 예측 부호화 단위의 크기를 mxn(m 및 n은 양의 정수), 상기 제 1 예측 부호화 단위 내부의 변경하고자 하는 i번째 열 및 j번째 행에 위치한 제 1 픽 셀의 픽셀값을 f[i][j], 상기 제 1 픽셀의 좌측에 위치한 제 2 픽셀의 픽셀값을 f[i][j-1], 상기 제 1 픽셀의 상측에 위치한 제 3 픽셀의 픽셀값을 f[i-1][j]라고 할 때, 다음의 수학식;
Figure 112009060712728-PAT00018
(α, β, γ는 양의 정수)을 통해 상기 제 1 픽셀의 픽셀값을 f'[i][j]로 변경하는 것을 특징으로 하는 영상의 부호화 방법.
The size of the first prediction coding unit is mxn (m and n are positive integers), and the pixel value of the first pixel located in the i th column and the j th row to be changed inside the first prediction coding unit is f [ i] [j], f [i] [j-1] for the pixel value of the second pixel located to the left of the first pixel, and f [i− for the pixel value of the third pixel located above the first pixel; 1] [j], the following equation;
Figure 112009060712728-PAT00018
(α, β, γ are positive integers), wherein the pixel value of the first pixel is changed to f '[i] [j].
제 1항에 있어서,The method of claim 1, 상기 제 2 예측 부호화 단위를 생성하는 단계는Generating the second prediction coding unit 상기 변경되는 각 픽셀의 적어도 하나의 주변 픽셀과 상기 각 픽셀의 가중 기하 평균값을 통해 상기 각 픽셀의 값을 변경하는 것을 특징으로 하는 영상의 부호화 방법.And changing a value of each pixel through at least one neighboring pixel of the changed pixel and a weighted geometric mean value of each pixel. 제 8항에 있어서,The method of claim 8, 상기 제 2 예측 부호화 단위를 생성하는 단계는Generating the second prediction coding unit 상기 제 1 예측 부호화 단위의 크기를 mxn(m 및 n은 양의 정수), 상기 제 1 예측 부호화 단위 내부의 변경하고자 하는 i번째 열 및 j번째 행에 위치한 제 1 픽셀의 픽셀값을 f[i][j], 상기 제 1 픽셀의 좌측에 위치한 제 2 픽셀의 픽셀값을 f[i][j-1], 상기 제 1 픽셀의 상측에 위치한 제 3 픽셀의 픽셀값을 f[i-1][j]라고 할 때, 다음의 수학식;
Figure 112009060712728-PAT00019
(α, β, γ는 양의 정수)을 통해 상기 제 1 픽셀의 픽셀값을 f'[i][j]로 변경하는 것을 특징으로 하는 영상의 부호화 방법.
The size of the first prediction coding unit is mxn (m and n are positive integers), and the pixel value of the first pixel located in the i th column and the j th row to be changed in the first prediction coding unit is f [i. ] [j], f [i] [j-1] of pixel values of the second pixel located to the left of the first pixel, and f [i-1 of pixel values of third pixel located above the first pixel; ] [j], the following equation;
Figure 112009060712728-PAT00019
(α, β, γ are positive integers), wherein the pixel value of the first pixel is changed to f '[i] [j].
제 1항에 있어서,The method of claim 1, 상기 제 2 예측 부호화 단위를 생성하는 단계는Generating the second prediction coding unit 상기 각 픽셀의 상측 및 좌측에 위치한 픽셀들 중 적어도 하나의 값과 상기 각 픽셀의 값의 평균값으로 상기 각 픽셀의 값을 변경하는 것을 특징으로 하는 영상의 부호화 방법.And changing the value of each pixel to an average value of at least one of the pixels located above and to the left of each pixel and the value of each pixel. 제 1항에 있어서,The method of claim 1, 상기 제 2 예측 부호화 단위를 생성하는 단계는Generating the second prediction coding unit 상기 변경되는 각 픽셀, 상기 각 픽셀의 주변 픽셀들 중에서 중간값으로 상기 각 픽셀의 값을 변경하는 것을 특징으로 하는 영상의 부호화 방법.And changing a value of each pixel to an intermediate value among the changed pixels and neighboring pixels of each pixel. 제 1항에 있어서,The method of claim 1, 상기 제 2 예측 부호화 단위를 생성하는 단계는Generating the second prediction coding unit 상기 제 1 예측 부호화 단위의 크기를 mxn(m 및 n은 양의 정수), 상기 제 1 예측 부호화 단위 내부의 변경하고자 하는 i번째 열 및 j번째 행에 위치한 제 1 픽 셀의 픽셀값을 f[i][j], 상기 현재 부호화 단위의 상측에 인접한 블록의 경계 영역의 픽셀들 중 상기 제 1 픽셀과 동일한 j번째 열의 픽셀의 픽셀값을 f[-1][j]라고 할 때, 다음의 수학식;
Figure 112009060712728-PAT00020
을 통해 상기 제 1 픽셀의 픽셀값을 f'[i][j]로 변경하는 것을 특징으로 하는 영상의 부호화 방법.
The size of the first prediction coding unit is mxn (m and n are positive integers), and the pixel value of the first pixel located in the i th column and the j th row to be changed inside the first prediction coding unit is f [ i] [j], when the pixel value of the pixel of the jth column equal to the first pixel among the pixels in the boundary region of the block adjacent to the current coding unit is f [-1] [j], Equation;
Figure 112009060712728-PAT00020
And the pixel value of the first pixel is changed to f '[i] [j] by using a second image encoding method.
제 1항에 있어서,The method of claim 1, 상기 제 2 예측 부호화 단위를 생성하는 단계는Generating the second prediction coding unit 상기 제 1 예측 부호화 단위의 크기를 mxn(m 및 n은 양의 정수), 상기 제 1 예측 부호화 단위 내부의 변경하고자 하는 i번째 열 및 j번째 행에 위치한 제 1 픽셀의 픽셀값을 f[i][j], 상기 현재 부호화 단위의 좌측에 인접한 부호화 단위의 경계 영역의 픽셀들 중 상기 제 1 픽셀과 동일한 i번째 행의 픽셀의 픽셀값을 f[i][-1]라고 할 때, 다음의 수학식;
Figure 112009060712728-PAT00021
을 통해 상기 제 1 픽셀의 픽셀값을 f'[i][j]로 변경하는 것을 특징으로 하는 영상의 부호화 방법.
The size of the first prediction coding unit is mxn (m and n are positive integers), and the pixel value of the first pixel located in the i th column and the j th row to be changed in the first prediction coding unit is f [i. ] [j], when the pixel value of the pixel of the i-th row equal to the first pixel among the pixels in the boundary region of the coding unit adjacent to the left of the current coding unit is f [i] [-1], Equation of;
Figure 112009060712728-PAT00021
And the pixel value of the first pixel is changed to f '[i] [j] by using a second image encoding method.
제 1항에 있어서,The method of claim 1, 상기 제 2 예측 부호화 단위를 생성하는 단계는Generating the second prediction coding unit 상기 제 1 예측 부호화 단위의 크기를 mxn(m 및 n은 양의 정수), 상기 제 1 예측 부호화 단위 내부의 변경하고자 하는 i번째 열 및 j번째 행에 위치한 제 1 픽셀의 픽셀값을 f[i][j], 상기 현재 부호화 단위의 상측에 인접한 부호화 단위의 경계 영역의 픽셀들 중 상기 제 1 픽셀과 동일한 j번째 열의 픽셀의 픽셀값을 f[-1][j], 상기 현재 부호화 단위의 좌측에 인접한 부호화 단위의 경계 영역의 픽셀들 중 상기 제 1 픽셀과 동일한 i번째 행의 픽셀의 픽셀값을 f[i][-1]라고 할 때, 다음의 수학식;
Figure 112009060712728-PAT00022
을 통해 상기 제 1 픽셀의 픽셀값을 f'[i][j]로 변경하는 것을 특징으로 하는 영상의 부호화 방법.
The size of the first prediction coding unit is mxn (m and n are positive integers), and the pixel value of the first pixel located in the i th column and the j th row to be changed in the first prediction coding unit is f [i. ] [j], f [-1] [j] of the pixel of the jth column equal to the first pixel among the pixels in the boundary region of the coding unit adjacent to the current coding unit, f [-1] [j] When the pixel value of the pixel of the i-th row identical to the first pixel among the pixels in the boundary region of the coding unit adjacent to the left is f [i] [-1], the following equation;
Figure 112009060712728-PAT00022
And the pixel value of the first pixel is changed to f '[i] [j] by using a second image encoding method.
제 1항에 있어서,The method of claim 1, 상기 제 2 예측 부호화 단위를 생성하는 단계는Generating the second prediction coding unit 상기 제 1 예측 부호화 단위의 크기를 mxn(m 및 n은 양의 정수), 상기 제 1 예측 부호화 단위 내부의 변경하고자 하는 i번째 열 및 j번째 행에 위치한 제 1 픽셀의 픽셀값을 f[i][j]라고 할 때, 다음의 수학식들;
Figure 112009060712728-PAT00023
,
Figure 112009060712728-PAT00024
,
Figure 112009060712728-PAT00025
Figure 112009060712728-PAT00026
중 하나를 이용하여 상기 제 1 픽셀의 픽셀값을 f'[i][j]로 변경하는 것을 특징으로 하는 영상의 부호화 방법.
The size of the first prediction coding unit is mxn (m and n are positive integers), and the pixel value of the first pixel located in the i th column and the j th row to be changed in the first prediction coding unit is f [i. ] [j], the following equations;
Figure 112009060712728-PAT00023
,
Figure 112009060712728-PAT00024
,
Figure 112009060712728-PAT00025
And
Figure 112009060712728-PAT00026
And the pixel value of the first pixel is changed to f '[i] [j] by using one of the following methods.
제 1항에 있어서,The method of claim 1, 상기 제 2 예측 부호화 단위를 생성하는 단계는Generating the second prediction coding unit 상기 제 1 예측 부호화 단위의 크기를 mxn(m 및 n은 양의 정수), 상기 제 1 예측 부호화 단위 내부의 변경하고자 하는 i번째 열 및 j번째 행에 위치한 제 1 픽셀의 픽셀값을 f[i][j], 상기 제 1 예측 부호화 단위의 최좌상측에 위치한 픽셀의 픽셀값을 f[0][0], 상기 제 1 픽셀과 동일한 j번째 열에 위치하며 상기 제 1 예측 블록의 최상측행에 위치한 픽셀의 픽셀값을 f[0][j], 상기 제 1 픽셀과 동일한 i번째 행에 위치하며 상기 제 1 예측 부호화 단위의 최좌측열에 위치한 픽셀의 픽셀값을 f[i][0],
Figure 112009060712728-PAT00027
라고 할 때, 다음의 수학식;
Figure 112009060712728-PAT00028
을 이용하여 상기 제 1 픽셀의 픽셀값을 f'[i][j]로 변경하는 것을 특징으로 하는 영상의 부호화 방법.
The size of the first prediction coding unit is mxn (m and n are positive integers), and the pixel value of the first pixel located in the i th column and the j th row to be changed in the first prediction coding unit is f [i. ] [j], f [0] [0], the pixel value of the pixel located on the leftmost top side of the first prediction coding unit, located in the same jth column as the first pixel and in the top row of the first prediction block. The pixel value of the located pixel is f [0] [j], and the pixel value of the pixel located in the leftmost column of the first prediction coding unit is positioned in the same i-th row as the first pixel and f [i] [0],
Figure 112009060712728-PAT00027
Suppose, the following equation;
Figure 112009060712728-PAT00028
And the pixel value of the first pixel is changed to f '[i] [j] by using.
제 1항에 있어서, The method of claim 1, 상기 현재 부호화 단위와 상기 제 2 예측 부호화 단위의 차이값을 부호화하는 단계는Encoding a difference value between the current coding unit and the second prediction coding unit may include 서로 다른 연산들을 통해서 생성된 상기 제 2 예측 부호화 단위들을 이용하 여 부호화된 비트스트림의 코스트를 비교하고, 최소 코스트를 갖는 상기 제 2 예측 부호화 단위를 생성하는데 이용된 연산 정보를 상기 비트스트림의 소정 영역에 부가하는 단계를 더 포함하는 것을 특징으로 하는 영상의 부호화 방법.Comparing a cost of a bitstream encoded using the second prediction coding units generated through different operations, and calculating operation information used to generate the second prediction coding unit having a minimum cost, the predetermined region of the bitstream. The video encoding method further comprises the step of adding to. 제 16항에 있어서,The method of claim 16, 상기 현재 부호화 단위와 상기 제 2 예측 부호화 단위의 차이값을 부호화하는 단계는Encoding a difference value between the current coding unit and the second prediction coding unit may include 소정 개수의 부호화 단위들의 부호화시에 결정된 연산 정보의 분포에 기초하여, 많이 이용되는 연산 정보에 적은 비트를 할당하여 상기 서로 다른 연산을 구분하여 표시하는 것을 특징으로 하는 영상의 부호화 방법.And dividing the different operations by displaying a small number of bits in the operation information that is used in a large number, based on a distribution of operation information determined at the time of encoding a predetermined number of coding units. 영상의 부호화 장치에 있어서,In the video encoding apparatus, 부호화되는 현재 부호화 단위에 대한 제 1 예측 부호화 단위를 생성하는 예측부;A prediction unit generating a first prediction coding unit for the current coding unit to be encoded; 상기 제 1 예측 부호화 단위를 구성하는 각 픽셀과 적어도 하나의 주변 픽셀을 이용하여 상기 각 픽셀의 픽셀값을 변경하여 제 2 예측 부호화 단위를 생성하는 후처리부; 및A post processor configured to generate a second prediction coding unit by changing a pixel value of each pixel by using each pixel constituting the first prediction coding unit and at least one neighboring pixel; And 상기 현재 부호화 단위와 상기 제 2 예측 부호화 단위의 차이값을 부호화하는 부호화부를 포함하는 것을 특징으로 하는 영상의 부호화 장치.And an encoder which encodes a difference between the current coding unit and the second prediction coding unit. 영상 복호화 방법에 있어서,In the video decoding method, 수신된 비트스트림으로부터 복호화되는 현재 복호화 단위의 예측 모드 정보를 추출하는 단계;Extracting prediction mode information of a current decoding unit to be decoded from the received bitstream; 상기 추출된 예측 모드 정보에 따라서 상기 현재 복호화 단위에 대한 제 1 예측 복호화 단위를 생성하는 단계;Generating a first prediction decoding unit for the current decoding unit according to the extracted prediction mode information; 상기 비트스트림으로부터 상기 제 1 예측 복호화 단위를 구성하는 각 픽셀과 상기 각 픽셀의 주변 픽셀들을 이용한 연산 정보를 추출하는 단계;Extracting operation information using each pixel constituting the first prediction decoding unit and neighboring pixels of the pixel from the bitstream; 상기 추출된 연산 정보에 따라서 상기 제 1 예측 복호화 단위를 구성하는 각 픽셀과 상기 각 픽셀의 주변 픽셀들을 이용하여 상기 각 픽셀의 픽셀값을 변경하여 제 2 예측 복호화 단위를 생성하는 단계;Generating a second prediction decoding unit by changing a pixel value of each pixel using each pixel constituting the first prediction decoding unit and peripheral pixels of each pixel according to the extracted operation information; 상기 비트스트림으로부터 상기 현재 복호화 단위와 상기 제 2 예측 복호화 단위의 차이값에 해당하는 레지듀얼을 추출하여 복원하는 단계; 및 Extracting and reconstructing a residual corresponding to a difference between the current decoding unit and the second prediction decoding unit from the bitstream; And 상기 레지듀얼과 상기 제 2 예측 복호화 단위를 가산하여 상기 현재 복호화 단위를 복호화하는 단계를 포함하는 것을 특징으로 하는 영상의 복호화 방법.And decoding the current decoding unit by adding the residual and the second prediction decoding unit. 제 20항에 있어서,The method of claim 20, 상기 제 2 예측 복호화 단위를 생성하는 단계는Generating the second prediction decoding unit 상기 변경되는 각 픽셀의 적어도 하나의 주변 픽셀과 상기 각 픽셀의 가중 평균값을 통해 상기 제 1 예측 복호화 단위의 각 픽셀의 값을 변경함으로써 상기 제 2 예측 복호화 단위를 생성하는 것을 특징으로 하는 영상의 복호화 방법.The second prediction decoding unit is generated by changing a value of each pixel of the first prediction decoding unit through at least one neighboring pixel of the changed pixel and a weighted average value of each pixel. Way. 제 21항에 있어서,The method of claim 21, 상기 제 2 예측 복호화 단위를 생성하는 단계는Generating the second prediction decoding unit 상기 제 1 예측 복호화 단위의 크기를 mxn(m 및 n은 양의 정수), 상기 제 1 예측 복호화 단위 내부의 변경하고자 하는 i번째 열 및 j번째 행에 위치한 제 1 픽셀의 픽셀값을 f[i][j], 상기 제 1 픽셀의 주변 픽셀들 f[i][j-1], f[i-1][j], f[i+1][j], f[i][j+1], f[i-1][j+1], f[i+1][j-1], f[i-1][j-1], f[i+1][j+1] 중에서 선택된 2개의 주변 픽셀을 f1, f2라고 할 때, 다음의 수학식;
Figure 112009060712728-PAT00029
을 통해 상기 제 1 픽셀의 픽셀값을 f'[i][j]로 변경하는 것을 특징으로 하는 영상의 복호화 방법.
The size of the first prediction decoding unit is mxn (m and n are positive integers), and the pixel value of the first pixel located in the i th column and the j th row to be changed in the first prediction decoding unit is f [i. ] [j], peripheral pixels f [i] [j-1], f [i-1] [j], f [i + 1] [j], f [i] [j + of the first pixel 1], f [i-1] [j + 1], f [i + 1] [j-1], f [i-1] [j-1], f [i + 1] [j + 1] When two neighboring pixels selected from among are called f1 and f2, the following equation;
Figure 112009060712728-PAT00029
And the pixel value of the first pixel is changed to f '[i] [j] by using a second image decoding method.
제 21항에 있어서,The method of claim 21, 상기 제 2 예측 복호화 단위를 생성하는 단계는Generating the second prediction decoding unit 상기 제 1 예측 복호화 단위의 크기를 mxn(m 및 n은 양의 정수), 상기 제 1 예측 복호화 단위 내부의 변경하고자 하는 i번째 열 및 j번째 행에 위치한 제 1 픽셀의 픽셀값을 f[i][j], 상기 제 1 픽셀의 주변 픽셀들 f[i][j-1], f[i-1][j], f[i+1][j], f[i][j+1], f[i-1][j+1], f[i+1][j-1], f[i-1][j-1], f[i+1][j+1] 중에서 선택된 3개의 주변 픽셀을 f1, f2, f3라고 할 때, 다음의 수학 식;
Figure 112009060712728-PAT00030
을 통해 상기 제 1 픽셀의 픽셀값을 f'[i][j]로 변경하는 것을 특징으로 하는 영상의 복호화 방법.
The size of the first prediction decoding unit is mxn (m and n are positive integers), and the pixel value of the first pixel located in the i th column and the j th row to be changed in the first prediction decoding unit is f [i. ] [j], peripheral pixels f [i] [j-1], f [i-1] [j], f [i + 1] [j], f [i] [j + of the first pixel 1], f [i-1] [j + 1], f [i + 1] [j-1], f [i-1] [j-1], f [i + 1] [j + 1] When the three peripheral pixels selected from among are called f1, f2, and f3, the following equation;
Figure 112009060712728-PAT00030
And the pixel value of the first pixel is changed to f '[i] [j] by using a second image decoding method.
제 20항에 있어서,The method of claim 20, 상기 제 2 예측 복호화 단위를 생성하는 단계는Generating the second prediction decoding unit 상기 변경되는 각 픽셀의 적어도 하나의 주변 픽셀과 상기 각 픽셀의 가중 조화 평균값을 통해 상기 제 1 예측 복호화 단위의 각 픽셀의 값을 변경함으로써 상기 제 2 예측 복호화 단위를 생성하는 것을 특징으로 하는 영상의 복호화 방법.The second prediction decoding unit is generated by changing a value of each pixel of the first prediction decoding unit through at least one neighboring pixel of the changed pixel and a weighted harmonic mean value of each pixel. Decryption method. 제 24항에 있어서,The method of claim 24, 상기 제 2 예측 복호화 단위를 생성하는 단계는Generating the second prediction decoding unit 상기 제 1 예측 복호화 단위의 크기를 mxn(m 및 n은 양의 정수), 상기 제 1 예측 복호화 단위 내부의 변경하고자 하는 i번째 열 및 j번째 행에 위치한 제 1 픽셀의 픽셀값을 f[i][j], 상기 제 1 픽셀의 좌측에 위치한 제 2 픽셀의 픽셀값을 f[i][j-1], 상기 제 1 픽셀의 상측에 위치한 제 3 픽셀의 픽셀값을 f[i-1][j]라고 할 때, 다음의 수학식;
Figure 112009060712728-PAT00031
(α, β, γ는 양의 정수)을 통해 상기 제 1 픽셀의 픽셀값을 f'[i][j]로 변경하는 것을 특징으로 하는 영상의 복호화 방법.
The size of the first prediction decoding unit is mxn (m and n are positive integers), and the pixel value of the first pixel located in the i th column and the j th row to be changed in the first prediction decoding unit is f [i. ] [j], f [i] [j-1] of pixel values of the second pixel located to the left of the first pixel, and f [i-1 of pixel values of third pixel located above the first pixel; ] [j], the following equation;
Figure 112009060712728-PAT00031
(α, β, and γ are positive integers), wherein the pixel value of the first pixel is changed to f '[i] [j].
제 20항에 있어서,The method of claim 20, 상기 제 2 예측 복호화 단위를 생성하는 단계는Generating the second prediction decoding unit 상기 변경되는 각 픽셀의 적어도 하나의 주변 픽셀과 상기 각 픽셀의 가중 기하 평균값을 통해 상기 제 1 예측 부호화 단위의 각 픽셀의 값을 변경함으로써 상기 제 2 예측 부호화 단위를 생성하는 것을 특징으로 하는 영상의 복호화 방법.The second prediction coding unit is generated by changing a value of each pixel of the first prediction coding unit through at least one neighboring pixel of the changed pixel and a weighted geometric mean value of each pixel. Decryption method. 제 26항에 있어서,The method of claim 26, 상기 제 2 예측 복호화 단위를 생성하는 단계는Generating the second prediction decoding unit 상기 제 1 예측 복호화 단위의 크기를 mxn(m 및 n은 양의 정수), 상기 제 1 예측 복호화 단위 내부의 변경하고자 하는 i번째 열 및 j번째 행에 위치한 제 1 픽셀의 픽셀값을 f[i][j], 상기 제 1 픽셀의 좌측에 위치한 제 2 픽셀의 픽셀값을 f[i][j-1], 상기 제 1 픽셀의 상측에 위치한 제 3 픽셀의 픽셀값을 f[i-1][j]라고 할 때, 다음의 수학식;
Figure 112009060712728-PAT00032
(α, β, γ는 양의 정수)을 통해 상기 제 1 픽셀의 픽셀값을 f'[i][j]로 변경하는 것을 특징으로 하는 영상의 복호화 방법.
The size of the first prediction decoding unit is mxn (m and n are positive integers), and the pixel value of the first pixel located in the i th column and the j th row to be changed in the first prediction decoding unit is f [i. ] [j], f [i] [j-1] of pixel values of the second pixel located to the left of the first pixel, and f [i-1 of pixel values of third pixel located above the first pixel; ] [j], the following equation;
Figure 112009060712728-PAT00032
(α, β, and γ are positive integers), wherein the pixel value of the first pixel is changed to f '[i] [j].
제 20항에 있어서,The method of claim 20, 상기 제 2 예측 복호화 단위를 생성하는 단계는Generating the second prediction decoding unit 상기 각 픽셀의 상측 및 좌측에 위치한 픽셀들 중 적어도 하나의 값과 상기 각 픽셀의 값의 평균값으로 상기 각 픽셀의 값을 변경하는 것을 특징으로 하는 영상의 복호화 방법.And changing the value of each pixel to an average value of at least one of the pixels located above and to the left of each pixel and the value of each pixel. 제 20항에 있어서,The method of claim 20, 상기 제 2 예측 복호화 단위를 생성하는 단계는Generating the second prediction decoding unit 상기 변경되는 각 픽셀, 상기 각 픽셀의 주변 픽셀들 중에서 중간값으로 상기 각 픽셀의 값을 변경하는 것을 특징으로 하는 영상의 복호화 방법.And changing a value of each pixel to an intermediate value among the changed pixels and neighboring pixels of each pixel. 제 20항에 있어서,The method of claim 20, 상기 제 2 예측 복호화 단위를 생성하는 단계는Generating the second prediction decoding unit 상기 제 1 예측 복호화 단위의 크기를 mxn(m 및 n은 양의 정수), 상기 제 1 예측 복호화 단위 내부의 변경하고자 하는 i번째 열 및 j번째 행에 위치한 제 1 픽셀의 픽셀값을 f[i][j], 상기 현재 복호화 단위의 상측에 인접한 복호화 단위의 경계 영역의 픽셀들 중 상기 제 1 픽셀과 동일한 j번째 열의 픽셀의 픽셀값을 f[-1][j]라고 할 때, 다음의 수학식;
Figure 112009060712728-PAT00033
을 통해 상기 제 1 픽셀의 픽셀값을 f'[i][j]로 변경하는 것을 특징으로 하는 영상의 복호화 방법.
The size of the first prediction decoding unit is mxn (m and n are positive integers), and the pixel value of the first pixel located in the i th column and the j th row to be changed in the first prediction decoding unit is f [i. ] [j], when the pixel value of the pixel of the jth column equal to the first pixel among the pixels in the boundary region of the decoding unit adjacent to the current decoding unit is f [-1] [j], Equation;
Figure 112009060712728-PAT00033
And the pixel value of the first pixel is changed to f '[i] [j] by using a second image decoding method.
제 20항에 있어서,The method of claim 20, 상기 제 2 예측 복호화 단위를 생성하는 단계는Generating the second prediction decoding unit 상기 제 1 예측 복호화 단위의 크기를 mxn(m 및 n은 양의 정수), 상기 제 1 예측 복호화 단위 내부의 변경하고자 하는 i번째 열 및 j번째 행에 위치한 제 1 픽셀의 픽셀값을 f[i][j], 상기 현재 복호화 단위의 좌측에 인접한 복호화 단위의 경계 영역의 픽셀들 중 상기 제 1 픽셀과 동일한 i번째 행의 픽셀의 픽셀값을 f[i][-1]라고 할 때, 다음의 수학식;
Figure 112009060712728-PAT00034
을 통해 상기 제 1 픽셀의 픽셀값을 f'[i][j]로 변경하는 것을 특징으로 하는 영상의 복호화 방법.
The size of the first prediction decoding unit is mxn (m and n are positive integers), and the pixel value of the first pixel located in the i th column and the j th row to be changed in the first prediction decoding unit is f [i. ] [j], when the pixel value of the pixel of the i-th row equal to the first pixel among the pixels in the boundary region of the decoding unit adjacent to the left of the current decoding unit is f [i] [-1], Equation of;
Figure 112009060712728-PAT00034
And the pixel value of the first pixel is changed to f '[i] [j] by using a second image decoding method.
제 20항에 있어서,The method of claim 20, 상기 제 2 예측 복호화 단위를 생성하는 단계는Generating the second prediction decoding unit 상기 제 1 예측 복호화 단위의 크기를 mxn(m 및 n은 양의 정수), 상기 제 1 예측 복호화 단위 내부의 변경하고자 하는 i번째 열 및 j번째 행에 위치한 제 1 픽셀의 픽셀값을 f[i][j], 상기 현재 복호화 단위의 상측에 인접한 복호화 단위의 경계 영역의 픽셀들 중 상기 제 1 픽셀과 동일한 j번째 열의 픽셀의 픽셀값을 f[-1][j], 상기 현재 복호화 단위의 좌측에 인접한 복호화 단위의 경계 영역의 픽셀들 중 상기 제 1 픽셀과 동일한 i번째 행의 픽셀의 픽셀값을 f[i][-1]라고 할 때, 다 음의 수학식;
Figure 112009060712728-PAT00035
을 통해 상기 제 1 픽셀의 픽셀값을 f'[i][j]로 변경하는 것을 특징으로 하는 영상의 복호화 방법.
The size of the first prediction decoding unit is mxn (m and n are positive integers), and the pixel value of the first pixel located in the i th column and the j th row to be changed in the first prediction decoding unit is f [i. ] [j], f [-1] [j] of the pixel of the jth column equal to the first pixel among the pixels of the boundary region of the decoding unit adjacent to the upper side of the current decoding unit, and When the pixel value of the pixel of the i th row identical to the first pixel among the pixels in the boundary region of the decoding unit adjacent to the left is f [i] [-1], the following equation;
Figure 112009060712728-PAT00035
And the pixel value of the first pixel is changed to f '[i] [j] by using a second image decoding method.
제 20항에 있어서,The method of claim 20, 상기 제 2 예측 복호화 단위를 생성하는 단계는Generating the second prediction decoding unit 상기 제 1 예측 복호화 단위의 크기를 mxn(m 및 n은 양의 정수), 상기 제 1 예측 복호화 단위 내부의 변경하고자 하는 i번째 열 및 j번째 행에 위치한 제 1 픽셀의 픽셀값을 f[i][j]라고 할 때, 다음의 수학식들;
Figure 112009060712728-PAT00036
,
Figure 112009060712728-PAT00037
,
Figure 112009060712728-PAT00038
Figure 112009060712728-PAT00039
중 하나를 이용하여 상기 제 1 픽셀의 픽셀값을 f'[i][j]로 변경하는 것을 특징으로 하는 영상의 복호화 방법.
The size of the first prediction decoding unit is mxn (m and n are positive integers), and the pixel value of the first pixel located in the i th column and the j th row to be changed in the first prediction decoding unit is f [i. ] [j], the following equations;
Figure 112009060712728-PAT00036
,
Figure 112009060712728-PAT00037
,
Figure 112009060712728-PAT00038
And
Figure 112009060712728-PAT00039
And the pixel value of the first pixel is changed to f '[i] [j] by using one of the following methods.
제 20항에 있어서,The method of claim 20, 상기 제 2 예측 복호화 단위를 생성하는 단계는Generating the second prediction decoding unit 상기 제 1 예측 복호화 단위의 크기를 mxn(m 및 n은 양의 정수), 상기 제 1 예측 복호화 단위 내부의 변경하고자 하는 i번째 열 및 j번째 행에 위치한 제 1 픽셀의 픽셀값을 f[i][j], 상기 제 1 예측 복호화 단위의 최좌상측에 위치한 픽셀의 픽셀값을 f[0][0], 상기 제 1 픽셀과 동일한 j번째 열에 위치하며 상기 제 1 예측 복호화 단위의 최상측행에 위치한 픽셀의 픽셀값을 f[0][j], 상기 제 1 픽셀과 동일한 i번째 행에 위치하며 상기 제 1 예측 복호화 단위의 최좌측열에 위치한 픽셀의 픽셀값을 f[i][0],
Figure 112009060712728-PAT00040
라고 할 때, 다음의 수학식;
Figure 112009060712728-PAT00041
을 이용하여 상기 제 1 픽셀의 픽셀값을 f'[i][j]로 변경하는 것을 특징으로 하는 영상의 복호화 방법.
The size of the first prediction decoding unit is mxn (m and n are positive integers), and the pixel value of the first pixel located in the i th column and the j th row to be changed in the first prediction decoding unit is f [i. ] [j], the pixel value of the pixel located at the leftmost top of the first prediction decoding unit, f [0] [0], is located in the same jth column as the first pixel, and is the top row of the first prediction decoding unit The pixel value of the pixel located at is f [0] [j], and the pixel value of the pixel located at the leftmost column of the first prediction decoding unit at the same i th row as the first pixel is f [i] [0]. ,
Figure 112009060712728-PAT00040
Suppose, the following equation;
Figure 112009060712728-PAT00041
And the pixel value of the first pixel is changed to f '[i] [j] by using.
영상 복호화 장치에 있어서,In the video decoding apparatus, 수신된 비트스트림으로부터 복호화되는 현재 복호화 단위의 예측 모드 정보 및 상기 현재 복호화 단위에 대한 제 1 예측 복호화 단위를 구성하는 각 픽셀과 상기 각 픽셀의 주변 픽셀들을 이용한 연산 정보를 추출하는 엔트로피 디코더;An entropy decoder for extracting prediction mode information of a current decoding unit decoded from a received bitstream and operation information using each pixel constituting a first prediction decoding unit for the current decoding unit and neighboring pixels of the pixel; 상기 추출된 예측 모드 정보에 따라서 상기 제 1 예측 복호화 단위를 생성하는 예측부;A prediction unit generating the first prediction decoding unit according to the extracted prediction mode information; 상기 추출된 연산 정보에 따라서 상기 제 1 예측 복호화 단위를 구성하는 각 픽셀과 상기 각 픽셀의 주변 픽셀들을 이용하여 상기 각 픽셀의 픽셀값을 변경하여 제 2 예측 복호화 단위를 생성하는 후처리부;A post processor configured to generate a second prediction decoding unit by changing a pixel value of each pixel using each pixel constituting the first prediction decoding unit and peripheral pixels of each pixel according to the extracted operation information; 상기 비트스트림으로부터 상기 현재 복호화 단위와 상기 제 2 예측 복호화 단위의 차이값에 해당하는 레지듀얼을 복원하는 역변환 및 역양자화부; 및 An inverse transform and inverse quantizer for restoring a residual corresponding to a difference between the current decoding unit and the second prediction decoding unit from the bitstream; And 상기 레지듀얼과 상기 제 2 예측 복호화 단위를 가산하여 상기 현재 복호화 단위를 복호화하는 가산부를 포함하는 것을 특징으로 하는 영상의 복호화 장치.And an adder configured to add the residual and the second prediction decoding unit to decode the current decoding unit. 제 1항 내지 제 18항 중 어느 한 항에 기재된 영상 부호화 방법을 실행하기 위한 컴퓨터로 실행 가능한 프로그램 코드가 기록된 기록 매체.19. A recording medium on which a computer executable program code for executing the video encoding method according to any one of claims 1 to 18 is recorded. 제 20항 내지 제 34항 중 어느 한 항에 기재된 영상 복호화 방법을 실행하기 위한 컴퓨터로 실행 가능한 프로그램 코드가 기록된 기록 매체.A recording medium on which computer-executable program code for executing the video decoding method according to any one of claims 20 to 34 is recorded.
KR1020090094050A 2009-10-01 2009-10-01 Method and apparatus for encoding video, and method and apparatus for decoding video KR101464538B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020090094050A KR101464538B1 (en) 2009-10-01 2009-10-01 Method and apparatus for encoding video, and method and apparatus for decoding video

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020090094050A KR101464538B1 (en) 2009-10-01 2009-10-01 Method and apparatus for encoding video, and method and apparatus for decoding video

Related Child Applications (2)

Application Number Title Priority Date Filing Date
KR20130048513A Division KR101485463B1 (en) 2013-04-30 2013-04-30 Method and apparatus for encoding video, and method and apparatus for decoding video
KR1020140058652A Division KR101606852B1 (en) 2014-05-15 2014-05-15 Method and apparatus for encoding video, and method and apparatus for decoding video

Publications (2)

Publication Number Publication Date
KR20110036401A true KR20110036401A (en) 2011-04-07
KR101464538B1 KR101464538B1 (en) 2014-11-25

Family

ID=44044355

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020090094050A KR101464538B1 (en) 2009-10-01 2009-10-01 Method and apparatus for encoding video, and method and apparatus for decoding video

Country Status (1)

Country Link
KR (1) KR101464538B1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013002586A3 (en) * 2011-06-28 2013-03-14 삼성전자 주식회사 Method and apparatus for image encoding and decoding using intra prediction
WO2014168642A1 (en) * 2013-04-12 2014-10-16 Intel Corportation Simplified depth coding with modified intra-coding for 3d video coding
US9307246B2 (en) 2010-07-31 2016-04-05 M & K Holdings Inc. Apparatus for decoding moving picture
US9497485B2 (en) 2013-04-12 2016-11-15 Intel Corporation Coding unit size dependent simplified depth coding for 3D video coding
US9571809B2 (en) 2013-04-12 2017-02-14 Intel Corporation Simplified depth coding with modified intra-coding for 3D video coding

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW366669B (en) * 1996-10-30 1999-08-11 Matsushita Electric Ind Co Ltd Picture encoding device and picture encoding method, picture decoding device and picture decoding method, and data recording media

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9307246B2 (en) 2010-07-31 2016-04-05 M & K Holdings Inc. Apparatus for decoding moving picture
US9609325B2 (en) 2010-07-31 2017-03-28 M & K Holdings Inc. Apparatus for decoding an image
US9491468B2 (en) 2010-07-31 2016-11-08 M&K Holdings Inc. Apparatus for encoding an image
US9451263B2 (en) 2010-07-31 2016-09-20 M & K Holdings Inc. Intra prediction apparatus
US9451264B2 (en) 2010-07-31 2016-09-20 M & K Holdings Inc. Apparatus for encoding an image
CN103765901B (en) * 2011-06-28 2018-03-30 三星电子株式会社 Method and apparatus for carrying out image coding and decoding using infra-frame prediction
US10045042B2 (en) 2011-06-28 2018-08-07 Samsung Electronics Co., Ltd. Method and apparatus for image encoding and decoding using intra prediction
CN104918055A (en) * 2011-06-28 2015-09-16 三星电子株式会社 Method and an apparatus for image encoding and decoding using intra prediction
KR20150059145A (en) * 2011-06-28 2015-05-29 삼성전자주식회사 Method and apparatus for video intra prediction encoding, and method and apparatus for video intra prediction decoding
KR20150059144A (en) * 2011-06-28 2015-05-29 삼성전자주식회사 Method and apparatus for video intra prediction encoding, and method and apparatus for video intra prediction decoding
US10506250B2 (en) 2011-06-28 2019-12-10 Samsung Electronics Co., Ltd. Method and apparatus for image encoding and decoding using intra prediction
CN104918055B (en) * 2011-06-28 2019-07-26 三星电子株式会社 Method and apparatus for using intra prediction to carry out image coding and decoding
US10085037B2 (en) 2011-06-28 2018-09-25 Samsung Electronics Co., Ltd. Method and apparatus for image encoding and decoding using intra prediction
US9788006B2 (en) 2011-06-28 2017-10-10 Samsung Electronics Co., Ltd. Method and apparatus for image encoding and decoding using intra prediction
US9813727B2 (en) 2011-06-28 2017-11-07 Samsung Electronics Co., Ltd. Method and apparatus for image encoding and decoding using intra prediction
WO2013002586A3 (en) * 2011-06-28 2013-03-14 삼성전자 주식회사 Method and apparatus for image encoding and decoding using intra prediction
CN105100808B (en) * 2011-06-28 2018-06-15 三星电子株式会社 For the method and apparatus that intra prediction is used to carry out image coding and decoding
US10045043B2 (en) 2011-06-28 2018-08-07 Samsung Electronics Co., Ltd. Method and apparatus for image encoding and decoding using intra prediction
CN105100808A (en) * 2011-06-28 2015-11-25 三星电子株式会社 Method and apparatus for image encoding and decoding using intra prediction
US10075730B2 (en) 2011-06-28 2018-09-11 Samsung Electronics Co., Ltd. Method and apparatus for image encoding and decoding using intra prediction
WO2014168642A1 (en) * 2013-04-12 2014-10-16 Intel Corportation Simplified depth coding with modified intra-coding for 3d video coding
US9571809B2 (en) 2013-04-12 2017-02-14 Intel Corporation Simplified depth coding with modified intra-coding for 3D video coding
US9497485B2 (en) 2013-04-12 2016-11-15 Intel Corporation Coding unit size dependent simplified depth coding for 3D video coding

Also Published As

Publication number Publication date
KR101464538B1 (en) 2014-11-25

Similar Documents

Publication Publication Date Title
KR101700358B1 (en) Method and apparatus for encoding video, and method and apparatus for decoding video
JP5314136B2 (en) Video encoding method and apparatus, and decoding method and apparatus thereof
KR20110018189A (en) Method and apparatus for encoding video, and method and apparatus for decoding video
KR101464538B1 (en) Method and apparatus for encoding video, and method and apparatus for decoding video
KR101677277B1 (en) Method and apparatus for encoding video, and method and apparatus for decoding video
KR101699529B1 (en) Method and apparatus for decoding video
KR101649276B1 (en) Method and apparatus for decoding video
KR101703332B1 (en) Method and apparatus for decoding video
KR101989997B1 (en) Method for decoding video, and computer readable medium
KR101766418B1 (en) Method and apparatus for decoding video
KR101940255B1 (en) Method and apparatus for encoding video, and computer readable medium
KR101824056B1 (en) Method and apparatus for decoding video
KR101606856B1 (en) Method and apparatus for encoding video, and method and apparatus for decoding video
KR20150092063A (en) Method and apparatus for decoding video
KR101606855B1 (en) Method and apparatus for encoding video, and method and apparatus for decoding video
KR101700369B1 (en) Method and apparatus for decoding video
KR101606852B1 (en) Method and apparatus for encoding video, and method and apparatus for decoding video
KR101683177B1 (en) Method and apparatus for decoding video
KR101485463B1 (en) Method and apparatus for encoding video, and method and apparatus for decoding video
KR20170093096A (en) Method for decoding video, and computer readable medium

Legal Events

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

Payment date: 20171030

Year of fee payment: 4

FPAY Annual fee payment

Payment date: 20181030

Year of fee payment: 5