KR20110073263A - Method and apparatus for encoding and decoding for intra prediction - Google Patents

Method and apparatus for encoding and decoding for intra prediction Download PDF

Info

Publication number
KR20110073263A
KR20110073263A KR1020100124451A KR20100124451A KR20110073263A KR 20110073263 A KR20110073263 A KR 20110073263A KR 1020100124451 A KR1020100124451 A KR 1020100124451A KR 20100124451 A KR20100124451 A KR 20100124451A KR 20110073263 A KR20110073263 A KR 20110073263A
Authority
KR
South Korea
Prior art keywords
intra prediction
current block
mode
neighboring blocks
blocks adjacent
Prior art date
Application number
KR1020100124451A
Other languages
Korean (ko)
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 PCT/KR2010/009168 priority Critical patent/WO2011078562A2/en
Publication of KR20110073263A publication Critical patent/KR20110073263A/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/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/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/11Selection of coding mode or of prediction mode among a plurality of spatial predictive coding modes
    • 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/17Methods 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 an image region, e.g. an object
    • H04N19/176Methods 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 an image region, e.g. an object the region being a block, e.g. a macroblock

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

PURPOSE: An intra prediction encoding and decoding method and an intra prediction encoding and decoding apparatus implementing the method are provided to reduce overhead related to mode bit with the selection of a prediction mode through peripheral blocks. CONSTITUTION: A first intra prediction unit(111) respectively calculates the degree of pixel correlation by intra prediction direction between a macroblock and the peripheral blocks of the macroblock. A second intra prediction unit(113) performs the intra prediction of the macroblock with the mode information of the peripheral block in the upper part of the macro block. A third intra prediction unit(115) performs the intra prediction of the brightness component of a current picture. A mode selection unit(117) selects an optimal intra prediction mode.

Description

인트라 예측 부호화 방법 및 부호화 방법, 그리고 상기 방법을 수행하는 인트라 예측 부호화 장치 및 인트라 예측 복호화 장치{METHOD AND APPARATUS FOR ENCODING AND DECODING FOR INTRA PREDICTION}An intra prediction encoding method and an encoding method, and an intra prediction encoding apparatus and an intra prediction decoding apparatus which perform the above-described method METHODS AND APPARATUS FOR ENCODING AND DECODING FOR INTRA PREDICTION

본 발명은 인트라 예측을 수행하는 인트라 예측 부호화 방법 및 부호화 방법, 그리고 상기 방법을 수행하는 부호화 장치 및 복호화 장치에 관한 것으로, 보다 구체적으로는 이미 부호화되어 전송된 이웃 블록의 정보를 이용하여 현재 블록의 모드를 예측하는 방법 및 장치에 관한 것이다.The present invention relates to an intra prediction encoding method and an encoding method for performing intra prediction, and to an encoding apparatus and a decoding device for performing the method. More specifically, the present invention relates to a current block using information of a neighboring block that is already encoded and transmitted. A method and apparatus for predicting modes.

휴대용 멀티미디어기기에서 동영상을 보다 빠르고 쉽게 전달하기 위해, 영상 정보를 압축하는 기술이 필요하다. 일반적으로 동영상을 압축하기 위해 동영상 압축 표준 중 하나인 H.264/AVC가 사용된다. H.264/AVC는 인트라(intra) 예측 부호화 방법과 인터(inter) 예측 부호화 방법을 사용하여 동영상을 부호화한다. 이 중, 인트라 예측 부호화 방법은 공간 상관도를 이용하여 부호화하는 방법으로, 주변에 복호화된 화소들을 이용하여 예측 데이터를 생성함으로써 공간 중복성을 제거할 수 있다. 인트라 예측 모드는 휘도 성분의 4×4 인트라 예측 모드, 8×8 인트라 예측 모드, 16×16 인트라 예측 모드와 색차 성분의 인트라 예측 모드를 포함할 수 있다.In order to deliver moving images more quickly and easily in a portable multimedia device, a technique for compressing image information is required. In general, H.264 / AVC, one of the video compression standards, is used to compress a video. H.264 / AVC encodes a video using an intra prediction encoding method and an inter prediction encoding method. Among these, the intra prediction encoding method is a method of encoding using spatial correlation, and by generating prediction data using pixels decoded around, spatial redundancy can be removed. The intra prediction mode may include a 4 × 4 intra prediction mode of the luminance component, an 8 × 8 intra prediction mode, a 16 × 16 intra prediction mode, and an intra prediction mode of the chrominance component.

인트라 예측 부호화 방법에 의하면, 부호화 장치에서 부호화된 비트스트림을 복호화 장치에서 복호화하기 위해서는 복호화 장치가 인트라 예측 방향과 관련된 정보를 미리 알 수 있어야 한다. 이를 위해, 부호화 장치는 인트라 예측 부호화를 수행한 결과인 인트라 예측 방향과 관련된 정보를 비트스트림에 삽입하여 복호화 장치에 전송한다. According to the intra prediction encoding method, in order to decode the bitstream encoded by the encoding apparatus in the decoding apparatus, the decoding apparatus must know information related to the intra prediction direction in advance. To this end, the encoding apparatus inserts information related to the intra prediction direction, which is a result of performing the intra prediction encoding, into a bitstream and transmits the information to the decoding apparatus.

구체적으로, 인트라 예측을 수행하는 부호화 장치는 주변의 참조 블록들을 이용하여 현재 블록의 예측 모드가 될 수 있는 가장 가능성이 높은 최적 모드(MPM: Most Probable Mode)를 예측하고, 예측 모드와 최적 모드가 같은 지 여부를 나타내는 플래그 비트를 복호화 장치에 전송할 수 있다. 만약, 예측 모드와 최적 모드가 같은 경우, 플래그 비트는 1비트(bit)가 된다. 그러나, 예측 모드와 최적 모드가 다른 경우, 예측 모드를 표현하기 위해 플래그 비트와 추가 n비트(n은 양수)가 사용되어야 한다. 이 경우, 매크로 블록의 크기가 증가할수록 사용되어야 할 비트수가 증가하여 오버헤드가 발생할 수 있다.In detail, the encoding apparatus for performing intra prediction predicts a most likely mode (MPM) that is likely to be a prediction mode of the current block by using neighboring reference blocks. A flag bit indicating whether or not the same can be transmitted to the decoding apparatus. If the prediction mode and the optimal mode are the same, the flag bit is 1 bit. However, when the prediction mode and the optimal mode are different, flag bits and additional n bits (n is a positive number) must be used to represent the prediction mode. In this case, as the size of the macro block increases, the number of bits to be used increases and overhead may occur.

따라서, 예측 모드와 관련된 오버 헤드를 줄여 부호화 효율을 향상시킬 수 있는 기법이 요구되고 있다.Therefore, there is a demand for a technique for improving coding efficiency by reducing overhead associated with prediction mode.

본 발명은 이미 부호화되어 전송된 이웃한 주변 블록들을 이용하여 현재 블록의 예측 모드를 결정하는 장치 및 방법을 제공한다.The present invention provides an apparatus and method for determining a prediction mode of a current block by using neighboring neighboring blocks that are already coded and transmitted.

본 발명의 일실시예에 따른 부호화 방법은 부호화하고자 하는 현재 블록에 인접하는 주변 블록들을 이용하여 상기 현재 블록에 대해 최적의 인트라 예측 모드를 결정하는 단계; 및 상기 최적의 인트라 예측 모드에 따라 상기 현재 블록을 부호화하여 비트스트림을 생성하는 단계를 포함할 수 있다.An encoding method according to an embodiment of the present invention includes determining an optimal intra prediction mode for the current block by using neighboring blocks adjacent to a current block to be encoded; And generating a bitstream by encoding the current block according to the optimal intra prediction mode.

본 발명의 일실시예에 따른 복호화 방법은 부호화 장치가 전송한 비트스트림을 복호화하는 단계; 상기 비트스트림을 복호화한 결과에 기초하여 인트라 예측을 수행할 방식을 결정하는 단계; 및 상기 결정된 방식에 따라 현재 블록에 대해 인트라 예측을 수행하는 단계를 포함하고, 상기 방식은, 이미 부호화되어 전송된 현재 블록에 인접하는 주변 블록들을 이용하여 인트라 예측을 수행하는 방식을 포함할 수 있다.A decoding method according to an embodiment of the present invention includes decoding a bitstream transmitted by an encoding apparatus; Determining a method of performing intra prediction based on a result of decoding the bitstream; And performing intra prediction on the current block according to the determined method, wherein the method may include a method of performing intra prediction using neighboring blocks adjacent to the current block that is already encoded and transmitted. .

본 발명의 일실시예에 따른 부호화 장치는 부호화하고자 하는 현재 블록에 인접하는 주변 블록들을 이용하여 상기 현재 블록에 대해 최적의 인트라 예측 모드를 결정하는 인트라 예측부; 및 상기 최적의 인트라 예측 모드에 따라 상기 현재 블록을 부호화하여 비트스트림을 생성하는 부호화부를 포함할 수 있다.An encoding apparatus according to an embodiment of the present invention includes an intra predictor configured to determine an optimal intra prediction mode for the current block by using neighboring blocks adjacent to a current block to be encoded; And an encoder which generates a bitstream by encoding the current block according to the optimal intra prediction mode.

본 발명의 일실시예에 따른 복호화 장치는 부호화 장치가 전송한 비트스트림을 복호화하는 복호화부; 상기 비트스트림을 복호화한 결과에 기초하여 인트라 예측을 수행할 방식을 결정하는 인트라 예측 모드 판단부; 및 상기 결정된 방식에 따라 현재 블록에 대해 인트라 예측을 수행하는 인트라 예측부를 포함하고, 상기 방식은, 이미 부호화되어 전송된 현재 블록에 인접하는 주변 블록들을 이용하여 인트라 예측을 수행하는 방식을 포함할 수 있다.A decoding apparatus according to an embodiment of the present invention includes a decoder which decodes a bitstream transmitted by an encoding apparatus; An intra prediction mode determiner configured to determine a method of performing intra prediction based on a result of decoding the bitstream; And an intra prediction unit configured to perform intra prediction on the current block according to the determined method, wherein the method may include a method of performing intra prediction using neighboring blocks adjacent to the current block that is already encoded and transmitted. have.

본 발명의 일실시예에 따른 기록 매체는 부호화 장치가 현재 블록에 대해 인트라 예측을 수행하여 부호화한 비트스트림이 기록된 컴퓨터에서 판독 가능하고, 상기 비트스트림은, 매크로 블록 유형, 색차 블록 모드 정보, 블록 패턴 및 레지듀를 포함할 수 있다.A recording medium according to an embodiment of the present invention may be read by a computer in which a bitstream encoded by an encoding apparatus by performing intra prediction on a current block is recorded. The bitstream may include macro block type, color difference block mode information, It may include a block pattern and a residue.

본 발명의 일실시예에 따르면, 이미 부호화되어 전송된 이웃한 주변 블록들을 이용하여 현재 블록의 예측 방향을 나타내는 예측 모드를 선택함으로써, 예측 모드와 관련된 추가 정보를 전송할 필요가 없어 모드 비트와 관련된 오버 헤드를 감소시키고, 이로 인한 압축률이 향상될 수 있다.According to an embodiment of the present invention, by selecting a prediction mode indicating a prediction direction of a current block by using neighboring neighboring blocks that are already coded and transmitted, it is not necessary to transmit additional information related to the prediction mode, and thus the over the mode bit. The head can be reduced, thereby improving the compression rate.

도 1은 본 발명의 일실시예에 따른 부호화 장치를 도시한 블록 다이어그램이다.
도 2는 도 1의 인트라 예측부를 구체적으로 도시한 블록 다이어그램이다.
도 3은 도 2의 제1 인트라 예측부가 수행하는 동작을 설명하기 위한 도면이다.
도 4는 도 2의 제2 인트라 예측부가 수행하는 동작을 설명하기 위한 도면이다.
도 5는 휘도 성분의 4×4 인트라 예측 모드를 나타내는 도면이다.
도 6은 본 발명의 실시예에 따라 최적의 인트라 예측 모드를 선택하는 과정을 나타낸 도면이다.
도 7은 도 2의 제1 인트라 예측부가 예측한 인트라 예측 방향을 부호화하는 과정을 나타낸 도면이다.
도 8은 본 발명의 일실시예에 따른 비트스트림의 문법을 도시한 도면이다.
도 9는 본 발명의 다른 실시예에 따른 비트스트림의 문법을 도시한 도면이다.
도 10은 본 발명의 실시예에 따른 영상을 인트라 예측할 때 사용되는 매크로블록의 유형을 도시한 도면이다.
도 11은 본 발명의 실시예에 따른 복호화 장치를 도시한 블록 다이어그램이다.
도 12는 도 10의 인트라 예측부를 도시한 블록 다이어그램이다.
1 is a block diagram illustrating an encoding apparatus according to an embodiment of the present invention.
FIG. 2 is a block diagram illustrating in detail the intra predictor of FIG. 1.
FIG. 3 is a diagram for describing an operation performed by the first intra predictor of FIG. 2.
FIG. 4 is a diagram for describing an operation performed by the second intra predictor of FIG. 2.
5 is a diagram illustrating a 4x4 intra prediction mode of luminance components.
6 is a diagram illustrating a process of selecting an optimal intra prediction mode according to an embodiment of the present invention.
FIG. 7 is a diagram illustrating a process of encoding an intra prediction direction predicted by the first intra predictor of FIG. 2.
8 is a diagram illustrating a grammar of a bitstream according to an embodiment of the present invention.
9 is a diagram illustrating a grammar of a bitstream according to another embodiment of the present invention.
FIG. 10 is a diagram illustrating a type of macroblock used when intra prediction of an image according to an embodiment of the present invention.
11 is a block diagram illustrating a decoding apparatus according to an embodiment of the present invention.
FIG. 12 is a block diagram illustrating an intra predictor of FIG. 10.

이하, 본 발명의 실시예를 첨부된 도면을 참조하여 상세하게 설명한다. 영상을 부호화 또는 복호화할 때, 부호화 단위 또는 복호화 단위는 분할된 단위를 의미하며, 매크로 블록(macro block)으로 표현될 수 있다. 이하에서 기술된 실시예에서, 예측 모드의 개수, 예측 블록의 크기, 모드 비트의 개수 등은 H.264/AVC에서 사용된 용어로서, 다른 압축 방식이 사용되는 상기 용어는 다르게 표현될 수 있다. 그리고, 인트라 예측 부호화는 참조 픽쳐(reference picture)없이 현재 픽쳐의 이미 생성된 화소들을 참조하여 매크로 블록을 구성하는 화소들을 예측하는 부호화 방법이다.Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings. When encoding or decoding an image, a coding unit or a decoding unit may mean a divided unit and may be expressed as a macro block. In the embodiments described below, the number of prediction modes, the size of prediction blocks, the number of mode bits, and the like are terms used in H.264 / AVC, and the terms using different compression schemes may be expressed differently. In addition, intra prediction encoding is an encoding method for predicting pixels constituting a macro block by referring to pixels already generated in a current picture without a reference picture.

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

도 1을 참조하면, 부호화 장치(100)는 인트라 예측부(110), 움직임 추정부(120), 움직임 보상부(130), 제1 차분부(140), 부호화부(150), 역양자화 및 역변환부(160), 제2 차분부(170), 필터(180) 및 픽쳐 메모리(190)를 포함한다. 여기서, 인트라 예측부(110)는 본 발명의 일실시예에 따른 인트라 예측 부호화 장치에 대응될 수 있다.Referring to FIG. 1, the encoding apparatus 100 may include an intra predictor 110, a motion estimator 120, a motion compensator 130, a first difference unit 140, an encoder 150, and inverse quantization. The inverse transform unit 160, the second difference unit 170, the filter 180, and the picture memory 190 are included. Here, the intra predictor 110 may correspond to an intra prediction encoding apparatus according to an embodiment of the present invention.

인트라 예측부(110)는 공간적으로 인접한 화소 값을 이용하여 부호화하고자 하는 부호화 유닛인 매크로 블록을 예측하여 부호화한다. 이 때, 인트라 예측부(110)는 예측 부호화할 현재 블록을 입력받아 이미 부호화되어 전송된 이웃한 주변 블록들의 정보들을 이용하여 매크로 블록의 인트라 예측 모드를 결정할 수 있다.The intra predictor 110 predicts and encodes a macroblock, which is an encoding unit to be encoded, using spatially adjacent pixel values. In this case, the intra prediction unit 110 may receive the current block to be predictively encoded, and determine the intra prediction mode of the macro block by using information of neighboring neighboring blocks that are already encoded and transmitted.

즉, 인트라 예측부(110)는 현재 픽쳐를 구성하는 현재 블록을 이용하여 매크로 블록의 예측 모드를 결정할 수 있다. 일례로, 인트라 예측부(110)는 예측 부호화할 현재 블록을 입력받아 휘도 성분의 16×16 인트라 예측 모드, 4×4 인트라 예측 모드 또는 색차 성분의 8×8 인트라 예측 모드 중 최적의 인트라 예측 모드를 결정할 수 있다. 이에 추가적으로, 인트라 예측부(110)는 이미 부호화되어 전송된 이웃한 참조 블록들의 정보를 이용하여 인트라 예측 모드를 결정할 수 있다.That is, the intra predictor 110 may determine the prediction mode of the macro block using the current block constituting the current picture. In one example, the intra prediction unit 110 receives a current block to be predictively encoded, and selects an optimal intra prediction mode among 16 × 16 intra prediction modes of luminance components, 4 × 4 intra prediction modes, or 8 × 8 intra prediction modes of chrominance components. Can be determined. In addition, the intra prediction unit 110 may determine the intra prediction mode by using information of neighboring reference blocks that are already encoded and transmitted.

움직임 추정부(120)는 부호화하려는 현재 픽쳐 내에서 현재 블록의 움직임 벡터(motion vector)를 추정하고, 움직임 보상부(130)는 움직임 추정부(120)에서 추정된 움직임 벡터에 기초하여 현재 블록의 예측값인 예측 블록을 생성한다. 움직임 추정부(120)는 BMA(Block Matching Algorithm), 위상 상관(Phase Correlation), HSBMA 등의 다양한 움직임 추정 알고리즘을 이용하여 현재 블록의 움직임 벡터를 추정할 수 있다.The motion estimation unit 120 estimates a motion vector of the current block in the current picture to be encoded, and the motion compensation unit 130 based on the motion vector estimated by the motion estimation unit 120. A prediction block that is a prediction value is generated. The motion estimator 120 may estimate the motion vector of the current block by using various motion estimation algorithms such as block matching algorithm (BMA), phase correlation, and HSBMA.

스위치(S)는 인트라 예측부(110) 또는 움직임 보상부(130)로부터 출력되는 예측 블록을 제1 차분부(140)로 제공한다. 제1 차분부(140)는 현재 블록에서 예측 블록을 감산하여 차분 블록을 생성한다.The switch S provides a prediction block output from the intra predictor 110 or the motion compensator 130 to the first difference unit 140. The first difference unit 140 generates a difference block by subtracting the prediction block from the current block.

부호화부(150)는 인트라 예측부(110)에서 결정된 인트라 예측 방향 또는 움직임 보상부(130)에서 예측된 인터 예측 중 하나에 기초하여 현재 블록에 대해 인트라 예측 또는 인터 예측 부호화를 수행하여 비트스트림을 생성한다. The encoder 150 performs an intra prediction or inter prediction encoding on the current block based on one of the intra prediction direction determined by the intra prediction unit 110 or the inter prediction predicted by the motion compensator 130 to perform a bit stream. Create

이를 위하여, 부호화부(150)는 변환부(151), 양자화부(153), 재정렬부(155) 및 엔트로피 코딩부(157)를 포함한다. To this end, the encoder 150 includes a transformer 151, a quantizer 153, a reordering unit 155, and an entropy coding unit 157.

변환부(151)는 제1 차분부(140)에서 생성된 차분 블록을 이산 코사인 변환(Discrete Cosine Transform: DCT)하고, 양자화부(153)는 이산 코사인 변환된 블록을 양자화하여 양자화된 변환계수를 생성한다. 양자화된 결과는 인코딩을 위하여 재정렬부(155)에서 재정렬된다. The transform unit 151 performs a discrete cosine transform (DCT) on the difference block generated by the first difference unit 140, and the quantization unit 153 quantizes the discrete cosine transformed block to obtain a quantized transform coefficient. Create The quantized results are rearranged in reordering unit 155 for encoding.

엔트로피 코딩부(157)는 양자화된 변환계수, 움직임 벡터 등의 부호화 정보를 엔트로피 부호화하여 비트스트림을 생성한다. 이때, 부호화된 변환 계수, 필터 구조정보, 및 최종 필터계수는 움직임 벡터와 함께 비트스트림에 삽입되어 복호화 장치(1000)로 전송된다.The entropy coding unit 157 entropy encodes encoding information such as a quantized transform coefficient and a motion vector to generate a bitstream. In this case, the encoded transform coefficient, the filter structure information, and the final filter coefficient are inserted into the bitstream together with the motion vector and transmitted to the decoding apparatus 1000.

역양자화 및 역변환부(160)는 DCT 및 양자화부(153)에서 양자화된 차분블록을 다음에 부호화되는 픽쳐의 예측에 이용하기 위해 역양자화하고, 역이산 코사인 변환하여 부호화 이전의 차분 블록을 복원한다.The inverse quantization and inverse transform unit 160 inversely quantizes the difference blocks quantized by the DCT and the quantization unit 153 for prediction of the next coded picture, and inverse discrete cosine transform to reconstruct the difference blocks before encoding. .

제2 차분부(170)는 복원된 차분 블록과 움직임 보상부(130)에서 생성된 예측 블록을 가산하여 부호화 이전의 현재 블록을 복원한다. 복원된 블록 또는 복원된 픽쳐는 필터(180)를 거쳐 프레임 메모리(190)에 저장되었다가 다음 블록 또는 다음 픽쳐을 이용하여 인터 예측할 때 사용된다.The second difference unit 170 adds the reconstructed differential block and the prediction block generated by the motion compensator 130 to reconstruct the current block before encoding. The reconstructed block or reconstructed picture is stored in the frame memory 190 via the filter 180 and used for inter prediction using the next block or the next picture.

도 2는 도 1의 인트라 예측부를 구체적으로 도시한 블록 다이어그램이다.FIG. 2 is a block diagram illustrating in detail the intra predictor of FIG. 1.

도 2에 도시된 인트라 예측부(110)는 주변 블록을 이용하여 매크로 블록의 예측값을 현재 픽쳐(picture) 내에서 찾는 인트라 예측을 수행한다. 구체적으로, 인트라 예측은 공간 상관도를 이용하여 부호화하고자 하는 매크로 블록의 인트라 예측값을 결정하는 방법을 의미한다. 즉, 인트라 예측은 이웃하는 주변 블록들을 이용하여 복수 개의 현재 블록을 포함하는 매크로 블록에 대해 인트라 예측을 수행함으로써 공간 중복성을 제거할 수 있다.The intra prediction unit 110 shown in FIG. 2 performs intra prediction using a neighboring block to find a predicted value of a macro block in a current picture. Specifically, intra prediction means a method of determining an intra prediction value of a macroblock to be encoded using spatial correlation. That is, intra prediction may remove spatial redundancy by performing intra prediction on a macro block including a plurality of current blocks using neighboring neighboring blocks.

도 2를 참고하면, 인트라 예측부(110)는 제1 인트라 예측부(111), 제2 인트라 예측부(113), 제3 인트라 예측부(115) 및 모드 선택부(117)를 포함한다. 제1 인트라 예측부(111) 및 제2 인트라 예측부(113)는 현재 블록을 입력받아 이미 부호화되어 전송된 이웃한 주변 블록들의 정보들을 이용하여 부호화 단위인 매크로 블록에 대해 인트라 예측을 수행할 수 있다.Referring to FIG. 2, the intra predictor 110 includes a first intra predictor 111, a second intra predictor 113, a third intra predictor 115, and a mode selector 117. The first intra predictor 111 and the second intra predictor 113 may receive the current block and perform intra prediction on a macroblock that is a coding unit by using information of neighboring neighboring blocks that are already encoded and transmitted. have.

제1 인트라 예측부(111)는 M×M 개의 현재 블록에서 매크로 블록과 매크로 블록의 상부에 이웃하는 M×N 개의 주변 블록 및 매크로 블록의 좌측에 이웃하는 N×M 개의 주변 블록 간의 인트라 예측 방향별 화소 상관도를 각각 계산한다. 그리고, 제1 인트라 예측부(111)는 계산된 화소 상관도가 큰 주변 블록의 인트라 예측값을 매크로 블록의 인트라 예측값으로 결정할 수 있다.The first intra predictor 111 performs an intra prediction direction between the macroblock in the M × M current block and the M × N neighboring blocks neighboring the upper part of the macroblock and the N × M neighboring blocks neighboring the left side of the macroblock. Each pixel correlation is calculated. The first intra predictor 111 may determine the intra prediction value of the neighboring block having a large pixel correlation as the intra prediction value of the macro block.

제2 인트라 예측부(113)는 매크로 블록의 상부에 이웃하는 M×N 개의 주변 블록의 모드 정보와 매크로 블록의 좌측에 이웃하는 N×M 개의 주변 블록의 모드 정보를 이용하여 매크로 블록에 대해 인트라 예측을 수행할 수 있다. 구체적으로, 매크로 블록의 상부에 이웃하는 M×N 개의 주변 블록의 모드 정보와 매크로 블록의 좌측에 이웃하는 N×M 개의 주변 블록의 모드 정보 중 최소값을 가지는 모드 정보를 매크로 블록의 인트라 예측값으로 결정할 수 있다.The second intra predictor 113 uses the mode information of the M × N neighboring blocks adjacent to the upper part of the macroblock and the mode information of the N × M neighboring blocks neighboring to the left of the macroblock. You can make predictions. In detail, mode information having the minimum value among mode information of M × N neighboring blocks neighboring the upper part of the macroblock and N × M neighboring blocks neighboring the left side of the macroblock is determined as an intra prediction value of the macroblock. Can be.

제3 인트라 예측부(115)는 복원할 현재 픽쳐(Fn)가 입력되면, 현재 픽쳐(Fn)의 휘도 성분에 대해 4×4 개와 16×16 개의 현재 블록을 포함하는 매크로 블록으로 인트라 예측을 수행할 수 있다. 그리고, 제3 인트라 예측부(115)는 현재 픽쳐의 색차 성분에 대해 8×8 개의 현재 블록을 포함하는 매크로 블록으로 인트라 예측을 수행할 수 있다.When the current picture Fn to be reconstructed is input, the third intra predictor 115 performs intra prediction with a macroblock including 4 × 4 and 16 × 16 current blocks with respect to the luminance component of the current picture Fn. can do. The third intra predictor 115 may perform intra prediction on a macroblock including 8 × 8 current blocks with respect to the color difference component of the current picture.

모드 선택부(117)는 율-왜곡 최적화(RATE-DISTORTION OPTIMIZATION) 기법을 이용하여 제1 인트라 예측부(111), 제2 인트라 예측부(113) 및 제3 인트라 예측부(115)에서 결정된 인트라 예측값에 기초하여 최적의 인트라 예측 모드를 선택할 수 있다. 즉, 모드 선택부(117)은 인트라 예측 결과에 대한 비용 함수를 구하여 비용 함수가 가장 낮은 인트라 예측값을 나타낸 결과에 기초하여 최적의 인트라 예측 모드를 선택할 수 있다. 구체적으로, 모드 선택부(117)는 율-왜곡 최적화 기법에 따라 원본값과 예측값 사이의 차이값(residue) 및 왜곡(distortion)을 계산하여 매크로 블록에 대해 최적의 인트라 예측 모드를 결정할 수 있다. 이 때, 인트라 예측 모드는 매크로 블록을 구성하는 현재 블록의 개수와 인트라 예측 방향을 포함할 수 있다. 부호화부(150)는 모드 선택부(117)를 통해 결정된 최적의 인트라 예측 모드에 따라 현재 블록을 포함하는 매크로 블록을 부호화하여 비트스트림을 생성한다.The mode selector 117 is an intra determined by the first intra predictor 111, the second intra predictor 113, and the third intra predictor 115 using a rate-distortion optimization technique. An optimal intra prediction mode may be selected based on the prediction value. That is, the mode selector 117 may obtain a cost function for the intra prediction result and select an optimal intra prediction mode based on the result of which the cost function has the lowest intra prediction value. In detail, the mode selector 117 may determine an optimal intra prediction mode for the macro block by calculating a difference and distortion between the original value and the predicted value according to a rate-distortion optimization technique. In this case, the intra prediction mode may include the number of current blocks constituting the macro block and the intra prediction direction. The encoder 150 generates a bitstream by encoding a macroblock including the current block according to an optimal intra prediction mode determined by the mode selector 117.

도 3은 도 2의 제1 인트라 예측부가 수행하는 동작을 설명하기 위한 도면이다.FIG. 3 is a diagram for describing an operation performed by the first intra predictor of FIG. 2.

도 3에서 도시된 현재 블록은 영상을 구성하는 M×M 개의 현재 블록들 중 16×16 개의 현재 블록들, 4×4 개의 현재 블록들 또는 8×8 개의 현재 블록들 중 어느 하나의 현재 블록들을 의미하며, 이는 매크로 블록에 대응한다. 제1 인트라 예측부(111)는 매크로 블록과 매크로 블록의 좌측에 인접하는 주변 블록 및 상부에 인접하는 주변 블록 간에 화소 상관도를 계산할 수 있다. 이 때, 화소 상관도는 도 3에서 도시된 바와 같이 9개의 인트라 예측 모드의 예측 방향에 따라 계산될 수 있다.The current block shown in FIG. 3 is a current block of any one of 16 × 16 current blocks, 4 × 4 current blocks, or 8 × 8 current blocks among the M × M current blocks constituting the image. Which corresponds to a macro block. The first intra predictor 111 may calculate a pixel correlation between the macro block and the neighboring block adjacent to the left side of the macro block and the neighboring block adjacent to the upper side of the macro block. In this case, the pixel correlation may be calculated according to prediction directions of nine intra prediction modes as illustrated in FIG. 3.

이 때, 제1 인트라 예측부(111)는 수학식 1에 따라 DC 모드에 기초한 화소 상관도를 계산할 수 있다.In this case, the first intra predictor 111 may calculate a pixel correlation based on the DC mode according to Equation 1.

Figure pat00001
Figure pat00001

여기서, A, B, C, D는 현재 블록의 상부에 인접하는 주변 블록의 화소값을 의미하고, I, J, K, L은 현재 블록의 좌측에 인접하는 주변 블록들의 화소값을 의미한다.Here, A, B, C, and D mean pixel values of neighboring blocks adjacent to the top of the current block, and I, J, K, and L mean pixel values of neighboring blocks adjacent to the left of the current block.

도 4는 도 2의 제2 인트라 예측부가 수행하는 동작을 설명하기 위한 도면이다.FIG. 4 is a diagram for describing an operation performed by the second intra predictor of FIG. 2.

제2 인트라 예측부(113)는 매크로 블록의 상부에 이웃하는 M×N 개의 주변 블록의 모드 정보와 매크로 블록의 좌측에 이웃하는 N×M 개의 주변 블록의 모드 정보를 이용하여 매크로 블록에 대해 인트라 예측을 수행할 수 있다.The second intra predictor 113 uses the mode information of the M × N neighboring blocks adjacent to the upper part of the macroblock and the mode information of the N × M neighboring blocks neighboring to the left of the macroblock. You can make predictions.

도 4를 참고하면, 제2 인트라 예측부(113)는 4×4 개의 현재 블록(C)의 좌측에 인접하는 주변 블록(L)과 현재 블록(C)의 상부에 인접하는 주변 블록(U) 각각의 모드 정보 중 최소값을 가지는 모드 정보를 현재 블록의 인트라 예측값으로 결정할 수 있다.Referring to FIG. 4, the second intra prediction unit 113 may include a neighboring block L adjacent to the left of 4 × 4 current blocks C and a neighboring block U adjacent to an upper portion of the current block C. FIG. Mode information having the minimum value of each mode information may be determined as an intra prediction value of the current block.

도 4를 참조하면, 현재 블록(C)의 좌측에 인접하는 주변 블록(L)의 모드 정보는 1이고, 현재 블록(C)의 상부에 인접하는 주변 블록(U)의 모드 정보는 2를 나타낸다. 그러면, 제2 인트라 예측부(113)는 최소값을 나타내는 모드 정보인 1을 현재 블록의 인트라 예측값으로 결정할 수 있다.Referring to FIG. 4, the mode information of the neighboring block L adjacent to the left side of the current block C is 1, and the mode information of the neighboring block U adjacent to the upper part of the current block C is 2. . Then, the second intra predictor 113 may determine 1, which is mode information indicating the minimum value, as an intra prediction value of the current block.

도 5는 휘도 성분의 4×4 인트라 예측 모드를 나타내는 도면이다.5 is a diagram illustrating a 4x4 intra prediction mode of luminance components.

도 5를 참조하면, 4×4 인트라 예측 모드는 수직(vertical) 모드, 수평(horizontal) 모드, DC모드, 대각선 왼쪽(diagonal down-left) 모드, 대각선 오른쪽(diagonal down-right) 모드, 수직 오른쪽(vertical right) 모드, 수평 아래쪽 (horizontal down)모드, 수직 왼쪽(vertical left) 모드 및 수평 위쪽((horizontal up) 모드의 총 9개의 예측 모드를 포함할 수 있다.Referring to FIG. 5, the 4 × 4 intra prediction mode includes a vertical mode, a horizontal mode, a DC mode, a diagonal down-left mode, a diagonal down-right mode, and a vertical right side. A total of nine prediction modes may be included, such as (vertical right) mode, horizontal down mode, vertical left mode, and horizontal up mode.

예측 모드 번호들(0~8)은 각각의 예측 모드가 사용되는 빈도수에 따라 결정되는 번호이다. 예측 모드 번호가 0번인 수직 모드는 확률적으로 인트라 예측 부호화할 때 가장 많이 선택되는 예측 모드를 의미하며, 예측 모드 번호가 8번인 수평 위쪽 모드는 인트라 예측 부호화할 때 가장 적게 선택되는 예측 모드를 의미한다.The prediction mode numbers 0 to 8 are numbers determined according to the frequency with which each prediction mode is used. The vertical mode with the prediction mode number 0 means the prediction mode that is most frequently selected when performing probabilistic intra prediction coding. The horizontal upper mode with the prediction mode number 8 indicates the prediction mode that is selected the least when performing intra prediction coding. do.

다른 일례로, 16×16 인트라 예측 모드는 수직(vertical) 모드, 수평(horizontal) 모드, DC 모드, 플레인(plane) 모드의 총 4개의 예측 모드를 포함할 수 있다.In another example, the 16 × 16 intra prediction mode may include a total of four prediction modes of a vertical mode, a horizontal mode, a DC mode, and a plane mode.

H.264/AVC 표준에 따르면, 영상의 휘도 성분을 부호화할 때 4×4 인트라 예측 모드 및 16×16 인트라 예측 모드에 따라 매크로 블록을 부호화하고, 영상의 색차 성분을 부호화할 때 8×8 인트라 예측 모드에 따라 매크로 블록을 부호화할 수 있다.According to the H.264 / AVC standard, macroblocks are encoded according to 4x4 intra prediction mode and 16x16 intra prediction mode when encoding luminance components of an image, and 8x8 intra when encoding color difference components of an image. The macroblock may be encoded according to the prediction mode.

복호화 장치가 인트라 예측을 통해 부호화된 비트스트림을 복호화하기 위해서는 인트라 예측 모드를 알 수 있어야 한다. 그래서, 부호화 장치는 복호화 장치가 인트라 예측 복호화할 수 있도록 인트라 예측 모드를 비트스트림에 삽입하여 복호화 장치에 전송할 수 있다.In order for a decoding apparatus to decode a bitstream encoded through intra prediction, an intra prediction mode must be known. Thus, the encoding apparatus may insert an intra prediction mode into the bitstream and transmit the intra prediction mode to the decoding apparatus so that the decoding apparatus may perform intra prediction decoding.

도 6은 본 발명의 실시예에 따라 최적의 인트라 예측 모드를 선택하는 과정을 나타낸 도면이다.6 is a diagram illustrating a process of selecting an optimal intra prediction mode according to an embodiment of the present invention.

도 6을 참조하면, 단계(610) 내지 단계(614)에서, 제3 인트라 예측부(115)는 복원할 현재 픽쳐(Fn)가 입력되면, 현재 픽쳐(Fn)의 휘도 성분에 대해 4×4 개와 16×16 개의 현재 블록을 포함하는 매크로 블록으로 인트라 예측을 수행할 수 있다. 그리고, 제3 인트라 예측부(115)는 현재 픽쳐의 색차 성분에 대해 8×8 개의 현재 블록을 포함하는 매크로 블록으로 인트라 예측을 수행할 수 있다.Referring to FIG. 6, in steps 610 to 614, when the current picture Fn to be reconstructed is input by the third intra predictor 115, 4 × 4 of the luminance component of the current picture Fn is input. Intra prediction may be performed with a macroblock including pieces and 16 × 16 current blocks. The third intra predictor 115 may perform intra prediction on a macroblock including 8 × 8 current blocks with respect to the color difference component of the current picture.

단계(616)에서, 제1 인트라 예측부(111)는 화소 상관도를 이용하여 4×4개의 현재 블록을 포함하는 매크로 블록에 대해 인트라 예측을 수행할 수 있다.In operation 616, the first intra predictor 111 may perform intra prediction on a macroblock including 4 × 4 current blocks using pixel correlation.

단계(618)에서, 제2 인트라 예측부(113)는 모드 정보를 이용하여 4×4개의 현재 블록을 포함하는 매크로 블록에 대해 인트라 예측을 수행한다.In operation 618, the second intra prediction unit 113 performs intra prediction on a macroblock including 4 × 4 current blocks using mode information.

단계(620)에서, 제1 인트라 예측부(111)는 화소 상관도를 이용하여 8×8개의 현재 블록을 포함하는 매크로 블록에 대해 인트라 예측을 수행할 수 있다.In operation 620, the first intra predictor 111 may perform intra prediction on a macroblock including 8 × 8 current blocks using pixel correlation.

단계(622)에서, 제2 인트라 예측부(113)는 모드 정보를 이용하여 8×8개의 현재 블록을 포함하는 매크로 블록에 대해 인트라 예측을 수행할 수 있다.In operation 622, the second intra prediction unit 113 may perform intra prediction on a macroblock including 8 × 8 current blocks using mode information.

단계(630)에서, 모드 선택부(117)는 율-왜곡 최적화 기법에 따라 단계(610) 내지 단계(622) 각각에서 인트라 예측 결과에 대해 율-왜곡 최적화를 수행할 수 있다. 단계(640)에서, 모드 선택부(117)는 단계(630)의 결과에 따라 현재 픽쳐에 대해 최적의 인트라 예측 모드를 선택할 수 있다.In operation 630, the mode selector 117 may perform rate-distortion optimization on the intra prediction result in each of operations 610 to 622 according to the rate-distortion optimization technique. In operation 640, the mode selector 117 may select an optimal intra prediction mode for the current picture according to the result of operation 630.

도 7은 도 2의 제1 인트라 예측부가 예측한 인트라 예측 방향을 부호화하는 과정을 나타낸 도면이다.FIG. 7 is a diagram illustrating a process of encoding an intra prediction direction predicted by the first intra predictor of FIG. 2.

매크로 블록을 구성하는 현재 블록(70)의 인트라 예측 모드 번호를 ‘P'라 하고, 현재 블록의 상부에 인접하는 주변 블록(71)의 인트라 예측 모드 번호를 'U', 현재 블록의 좌측에 인접하는 주변 블록(72)의 인트라 예측 모드 번호를 'L'이라고 가정한다.The intra prediction mode number of the current block 70 constituting the macroblock is called 'P', and the intra prediction mode number of the neighboring block 71 adjacent to the top of the current block is 'U' and adjacent to the left of the current block. Assume that the intra prediction mode number of the neighboring block 72 is 'L'.

일례로, 부호화 장치는 주변 블록(71) 및 주변 블록(72)의 인트라 예측 방향을 참조하여 현재 블록을 인트라 예측 부호화할 수 있다. 이 때, 주변 블록(71) 및 주변 블록(72)은 현재 블록(70)을 부호화하기 이전에 이미 부호화가 완료된 주변 블록들로 각각 인트라 예측 방향을 나타내는 인트라 예측 모드 번호를 가지고 있다.For example, the encoding apparatus may intra-prediction-encode the current block by referring to the intra prediction directions of the neighboring block 71 and the neighboring block 72. In this case, the neighboring block 71 and the neighboring block 72 have intra prediction mode numbers indicating intra prediction directions, respectively, as neighboring blocks that have already been encoded before encoding the current block 70.

우선, 현재 블록(70)의 인트라 예측 모드 번호는 주변 블록(71)의 인트라 예측 모드 번호 및 주변 블록(72)의 인트라 예측 모드 번호 중 최소값과 비교된다. 만약, 현재 블록의 인트라 예측 모드 번호가 최소값과 일치하면, 현재 블록(70)의 인트라 예측 방향은 '1'로 부호화되어 비트스트림에 삽입된다. 그러면, 복호화 장치는 주변 블록(71)과 주변 블록(72)의 인트라 예측 모드 번호 중 최소값을 현재 블록(70)의 인트라 예측 모드 번호로 결정할 수 있다. 그런 후, 복호화 장치는 결정된 인트라 예측 모드 번호에 기초한 인트라 예측 방향에 따라 현재 블록(70)을 복호화할 수 있다.First, the intra prediction mode number of the current block 70 is compared with the minimum value of the intra prediction mode number of the neighboring block 71 and the intra prediction mode number of the neighboring block 72. If the intra prediction mode number of the current block matches the minimum value, the intra prediction direction of the current block 70 is encoded as '1' and inserted into the bitstream. Then, the decoding apparatus may determine the minimum value of the intra prediction mode numbers of the neighboring block 71 and the neighboring block 72 as the intra prediction mode number of the current block 70. Thereafter, the decoding apparatus may decode the current block 70 according to the intra prediction direction based on the determined intra prediction mode number.

앞서 설명한 바와 같이, 인트라 예측 모드 번호는 각각의 인트라 예측 모드가 사용되는 빈도수에 따라 결정된다. 결국, 현재 블록(70)은 공간적인 상관 관계에 의해 주변 블록(71) 및 주변 블록(72)과 유사한 인트라 예측 방향을 가질 확률이 높으므로, 주변 블록(71) 및 주변 블록(72)들의 인트라 예측 모드 번호의 최소값이 현재 블록(70)의 인트라 예측 모드 번호와 일치할 확률이 높다.As described above, the intra prediction mode number is determined according to the frequency with which each intra prediction mode is used. After all, since the current block 70 has a high probability of having an intra prediction direction similar to the neighboring block 71 and the neighboring block 72 by spatial correlation, the intra of the neighboring block 71 and the neighboring blocks 72 is high. There is a high probability that the minimum value of the prediction mode number will match the intra prediction mode number of the current block 70.

만약, 현재 블록(70)의 인트라 예측 모드 번호가 최소값과 일치하지 않으면, 현재 블록(70)의 인트라 예측 방향은 '0'으로 부호화되어 비트스트림에 삽입된다. 이 때, 현재 블록(70)의 인트라 예측 모드 번호가 최소값은 서로 일치하지 않기 때문에, 현재 블록(70)의 인트라 예측 모드 번호는 주변 블록들(71, 72)로부터 결정할 수 없다. 그래서, 현재 블록(70)의 인트라 예측 방향에 대한 정보도 'XXX' 즉, 3 비트의 크기로 부호화되어 비트스트림에 삽입된다. 인트라 예측 모드 번호는 0 에서부터 8까지 9가지가 있으며, 최소값이 현재 블록의 예측 모드 번호가 아니므로, 최소값을 뺀 나머지 8가지 경우가 3 비트에 의해 표현된다.If the intra prediction mode number of the current block 70 does not match the minimum value, the intra prediction direction of the current block 70 is encoded as '0' and inserted into the bitstream. At this time, since the intra prediction mode numbers of the current block 70 do not coincide with the minimum values, the intra prediction mode numbers of the current block 70 cannot be determined from the neighboring blocks 71 and 72. Thus, the information on the intra prediction direction of the current block 70 is also encoded in a size of 'XXX', that is, 3 bits and inserted into the bitstream. There are nine intra prediction mode numbers from 0 to 8, and since the minimum value is not the prediction mode number of the current block, the remaining eight cases minus the minimum value are represented by 3 bits.

구체적으로, 주변 블록(71)의 인트라 예측 모드 번호 및 주변 블록(72)의 인트라 예측 모드 번호의 최소값보다 현재 블록(70)의 인트라 예측 모드 번호가 작으면, 현재 블록(70)의 인트라 예측 모드 번호는 이진수 'XXX' 값이 된다. 그러나, 현재 블록(70)의 인트라 예측 모드 번호가 최소값보다 크면, 현재 블록의 인트라 예측 모드 번호는 상기 이진수 XXX값에서 '1'이 뺀 값이 된다.Specifically, if the intra prediction mode number of the current block 70 is smaller than the minimum value of the intra prediction mode number of the neighboring block 71 and the intra prediction mode number of the neighboring block 72, the intra prediction mode of the current block 70 is smaller. The number is the binary 'XXX' value. However, if the intra prediction mode number of the current block 70 is greater than the minimum value, the intra prediction mode number of the current block is a value obtained by subtracting '1' from the binary XXX value.

앞서 설명한 사항은 제3 인트라 예측부(115)에 적용된다. 즉, 제3 인트라 예측부(115)를 통해 예측된 인트라 예측 방향을 사용하여 현재 블록을 부호화하는 경우는 주변 블록들의 인트라 예측 모드 번호의 최소값과 현재 블록의 인트라 예측 모드 번호가 일치하는 지 여부에 따라 부호화하고자 하는 비트수가 달라진다.The foregoing description is applied to the third intra predictor 115. That is, when encoding the current block using the intra prediction direction predicted by the third intra prediction unit 115, whether the minimum value of the intra prediction mode numbers of the neighboring blocks and the intra prediction mode number of the current block match. The number of bits to be encoded varies.

구체적으로, 주변 블록들의 인트라 예측 모드 번호의 최소값과 현재 블록의 인트라 예측 모드 번호가 일치하는 경우, 현재 블록의 인트라 예측 모드 번호는 1비트로 부호화되나, 일치하지 않는 경우 현재 블록의 인트라 예측 모드 번호는 총 4비트로 표현된다. 반면, 제1 인트라 예측부(111) 또는 제2 인트라 예측부(113)에 의해 예측된 인트라 예측 방향을 사용하여 현재 블록을 부호화하는 경우, 부호화 장치는 현재 블록의 인트라 예측 모드 번호의 정보를 부호화하여 전송할 필요가 없다.In detail, when the minimum value of the intra prediction mode numbers of the neighboring blocks and the intra prediction mode number of the current block match, the intra prediction mode number of the current block is encoded by 1 bit, but when it does not match, the intra prediction mode number of the current block is It is represented by 4 bits in total. On the other hand, when the current block is encoded using the intra prediction direction predicted by the first intra predictor 111 or the second intra predictor 113, the encoding apparatus encodes the information of the intra prediction mode number of the current block. There is no need to send.

도 8은 본 발명의 일실시예에 따른 비트스트림의 문법을 도시한 도면이다.8 is a diagram illustrating a grammar of a bitstream according to an embodiment of the present invention.

부호화 장치에 의해 생성된 비트스트림의 문법은 도 8 또는 도 9에 나타난다.The grammar of the bitstream generated by the encoding apparatus is shown in FIG. 8 or 9.

도 8에 도시된 비트스트림의 문법은 제1 인트라 예측부(110) 또는 제2 인트라 예측부(113)가 인트라 예측시 사용한 인트라 예측 모드가 최적의 인트라 예측 모드로 선택되면, 비트스트림 문법은 도 8과 같은 포맷을 가진다. In the grammar of the bitstream shown in FIG. 8, if the intra prediction mode used by the first intra predictor 110 or the second intra predictor 113 for intra prediction is selected as the optimal intra prediction mode, the bitstream grammar is shown in FIG. It has the same format as 8.

도 8을 참조하면, 비트스트림 문법은 매크로블록 유형, 색차블록 모드정보, CBP(Coded Block Pattern) 및 레지듀를 포함한다. 도 7의 경우, 제1 인트라 예측부(111) 및 제2 인트라 예측부(113)는 이미 부호화되어 전송되어진 주변 블록들을 이용하여 인트라 예측을 수행하므로 예측하므로, 제3 인트라 예측부(115)에 의해 생성된 도 9의 비트스트림 문법과는 다른 포맷을 가진다.Referring to FIG. 8, the bitstream grammar includes macroblock type, chrominance block mode information, coded block pattern (CBP), and residue. In the case of FIG. 7, since the first intra predictor 111 and the second intra predictor 113 perform intra prediction using neighboring blocks that have been encoded and transmitted, the first intra predictor 111 and the second intra predictor 113 predict the third intra predictor 115. Has a different format from the bitstream grammar of FIG.

도 9는 본 발명의 다른 실시예에 따른 비트스트림의 문법을 도시한 도면이다.9 is a diagram illustrating a grammar of a bitstream according to another embodiment of the present invention.

도 9에 도시된 비트스트림의 문법은 제3 인트라 예측부(115)가 인트라 예측시 사용한 인트라 예측 모드가 최적의 인트라 예측 모드로 선택되면, 비트스트림 문법은 도 9와 같은 포맷을 가진다.In the grammar of the bitstream shown in FIG. 9, when the intra prediction mode used by the third intra prediction unit 115 for intra prediction is selected as the optimal intra prediction mode, the bitstream grammar has the format as shown in FIG. 9.

도 9를 참조하면, 비트스트림 문법(900)은 매크로블록 유형, 휘도블록 모드정보, 색차블록 모드정보, CBP 및 레지듀를 포함한다. 즉, 부호화 장치는 제3 인트라 예측부(115)가 사용한 인트라 예측 모드를 최적의 인트라 예측 모드로 결정한 경우, 비트스트림을 통해 휘도 블록의 모드 정보를 추가로 전송하여야 한다.Referring to FIG. 9, the bitstream grammar 900 includes macroblock type, luminance block mode information, chrominance block mode information, CBP, and residue. That is, when the intra prediction mode used by the third intra prediction unit 115 is determined to be the optimal intra prediction mode, the encoding apparatus should additionally transmit mode information of the luminance block through the bitstream.

도 10은 본 발명의 실시예에 따른 영상을 인트라 예측할 때 사용되는 매크로블록의 유형을 도시한 도면이다.FIG. 10 is a diagram illustrating a type of macroblock used when intra prediction of an image according to an embodiment of the present invention.

도 10을 참조하면, 본 발명의 일실시예에 따르면 제3 인트라 예측부(115) 뿐만 아니라 제1 인트라 예측부(111) 및 제2 인트라 예측부(113)도 함께 인트라 예측을 수행함으로써 매크로 블록 유형의 코드 숫자가 1로 지정된 매크로블록 유형이 추가된다. 도 10에서, 매크로 블록 유형의 코드 숫자가 1이면서, 플래그가 0인 것은 제1 인트라 예측부(111)가 사용한 인트라 예측 모드에 따라 현재 블록이 부호화된 것을 의미한다. 그리고, 매크로 블록 유형의 코드 숫자가 1이면서, 플래그가 1인 것은 제2 인트라 예측부(113)가 사용한 인트라 예측 모드에 따라 현재 블록이 부호화되는 것을 의미한다.Referring to FIG. 10, according to an embodiment of the present invention, not only the third intra predictor 115 but also the first intra predictor 111 and the second intra predictor 113 together perform intra prediction to perform macro blocks. The macroblock type with the code number of type 1 is added. In FIG. 10, when the code number of the macroblock type is 1 and the flag is 0, the current block is encoded according to the intra prediction mode used by the first intra prediction unit 111. In addition, when the code number of the macroblock type is 1 and the flag is 1, the current block is encoded according to the intra prediction mode used by the second intra prediction unit 113.

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

도 11을 참조하면, 복호화 장치의 인트라 예측부(210)는 제1 인트라 예측부(211), 제2 인트라 예측부(213), 제3 인트라 예측부(215)를 포함한다. 제1 인트라 예측부(211) 및 제2 인트라 예측부(213)는 이미 부호화되어 전송된 이웃한 주변 블록들을 이용하여 예측 부호화할 현재 블록에 대해 인트라 예측을 수행한다. 그리고, 제3 인트라 예측부(215)는 부호화 장치가 전송한 비트스트림을 복호화하여 비트스트림에 포함된 인트라 예측 모드를 이용하여 현재 블록에 대해 인트라 예측을 수행한다.Referring to FIG. 11, the intra predictor 210 of the decoding apparatus includes a first intra predictor 211, a second intra predictor 213, and a third intra predictor 215. The first intra predictor 211 and the second intra predictor 213 perform intra prediction on the current block to be predictively encoded using neighboring neighboring blocks that are already encoded and transmitted. The third intra predictor 215 decodes the bitstream transmitted by the encoding apparatus and performs intra prediction on the current block using an intra prediction mode included in the bitstream.

도 12는 도 10의 인트라 예측부를 도시한 블록 다이어그램이다.FIG. 12 is a block diagram illustrating an intra predictor of FIG. 10.

도 12를 참조하면, 복호화 장치(1000)는 매크로블록 유형 결정부(1100), 플래그 비트 수신 결정부(1200), 제1 인트라 예측 수행부(1300), 인트라 예측 모드 판단부(1400) 및 제2 인트라 예측 수행부(1500)를 포함한다.Referring to FIG. 12, the decoding apparatus 1000 may include a macroblock type determination unit 1100, a flag bit reception determination unit 1200, a first intra prediction execution unit 1300, an intra prediction mode determination unit 1400, and a first embodiment. And a two intra prediction performing unit 1500.

매크로블록 유형 결정부(1100)는 비트스트림에 포함된 매크로 블록의 유형 정보를 이용하여 복호화하고자 하는 현재 블록의 인트라 예측 모드를 결정한다. 이 때, 비트스트림은 휘도 성분의 인트라 예측 모드를 포함하고 있는 매크로 블록과 색차 성분의 인트라 예측 모드를 포함하고 있는 매크로 블록이 부호화된 결과일 수 있다.The macroblock type determiner 1100 determines the intra prediction mode of the current block to be decoded using the type information of the macroblock included in the bitstream. In this case, the bitstream may be a result of encoding a macroblock including an intra prediction mode of a luminance component and a macroblock including an intra prediction mode of a chrominance component.

도 9에 도시된 바와 같이, 비트스트림의 문법에 휘도 블록의 모드 정보가 포함되어 있으면, 매크로블록 유형 결정부(1100)는 제3 인트라 예측부(115)가 사용한 인트라 예측 모드에 따라 현재 블록이 예측 부호화된 것을 판단할 수 있다. 또한, 도 8에 도시된 바와 같이, 비트스트림의 문법에 휘도 블록의 모드 정보가 포함되어 있지 않으면, 매크로블록 유형 결정부(1100)는 비트스트림을 플래그 비트 수신 결정부(1200)에게 제공한다. 플래그 비트 수신 결정부(1200)는 비트스트림에 포함된 플래그비트를 확인하고, 스위치(1600)를 통해 현재 블록을 제1 인트라 예측 수행부(1300)를 통해 인트라 예측할 지 또는 제2 인트라 예측 수행부(1500)를 통해 인트라 예측할 지 여부를 스위칭할 수 있다.As shown in FIG. 9, when the grammar of the bitstream includes mode information of the luminance block, the macroblock type determiner 1100 determines that the current block is determined according to the intra prediction mode used by the third intra predictor 115. Predictive encoding may be determined. In addition, as shown in FIG. 8, when the grammar of the bitstream does not include the mode information of the luminance block, the macroblock type determination unit 1100 provides the bitstream to the flag bit reception determination unit 1200. The flag bit reception determiner 1200 checks a flag bit included in the bitstream and intra-predicts the current block through the switch 1600 or the second intra prediction performer 1300. Through 1500, it is possible to switch whether to make intra prediction.

플래그 비트가 0이면, 인트라 예측 모드 판단부(1400)는 현재 블록과 주변 블록 간의 화소 상관도를 이용하여 현재 블록이 부호화된 것으로 판단할 수 있다. 또한, 플래그 비트가 1이면, 인트라 예측 모드 판단부(1400)는 주변 블록의 모드 정보 중 최소값을 가지는 모드 정보를 이용하여 현재 블록이 부호화된 것으로 판단할 수 있다.If the flag bit is 0, the intra prediction mode determiner 1400 may determine that the current block is encoded using the pixel correlation between the current block and the neighboring block. In addition, when the flag bit is 1, the intra prediction mode determiner 1400 may determine that the current block is encoded using mode information having the minimum value among the mode information of the neighboring blocks.

제1 인트라 예측 수행부(1300)는 비트스트림을 복호화하여 얻은 인트라 예측 모드에 따라 현재 블록에 대해 인트라 예측을 수행할 수 있다. 그리고, 제2 인트라 예측 수행부(1500)는 인트라 예측 모드 판단부(1400)에서 판단된 현재 블록의 인트라 예측 모드에 따라 현재 블록에 대해 인트라 예측을 수행할 수 있다. 제1 인트라 예측 수행부(1300)와 제2 인트라 예측 수행부(1400)의 동작에 대해서는 도 2의 설명을 참고할 수 있다.The first intra prediction performer 1300 may perform intra prediction on the current block according to the intra prediction mode obtained by decoding the bitstream. The second intra prediction performer 1500 may perform intra prediction on the current block according to the intra prediction mode of the current block determined by the intra prediction mode determiner 1400. The operation of the first intra prediction execution unit 1300 and the second intra prediction execution unit 1400 may be referred to the description of FIG. 2.

본 발명의 실시 예에 따른 방법들은 다양한 컴퓨터 수단을 통하여 수행될 수 있는 프로그램 명령 형태로 구현되어 컴퓨터 판독 가능 매체에 기록될 수 있다. 상기 컴퓨터 판독 가능 매체는 프로그램 명령, 데이터 파일, 데이터 구조 등을 단독으로 또는 조합하여 포함할 수 있다. 상기 매체에 기록되는 프로그램 명령은 본 발명을 위하여 특별히 설계되고 구성된 것들이거나 컴퓨터 소프트웨어 당업자에게 공지되어 사용 가능한 것일 수도 있다. Methods according to an embodiment of the present invention can be implemented in the form of program instructions that can be executed by various computer means and recorded in a computer readable medium. The computer readable medium may include program instructions, data files, data structures, etc. alone or in combination. Program instructions recorded on the media may be those specially designed and constructed for the purposes of the present invention, or they may be of the kind well-known and available to those having skill in the computer software arts.

이상과 같이 본 발명은 비록 한정된 실시예와 도면에 의해 설명되었으나, 본 발명은 상기의 실시예에 한정되는 것은 아니며, 본 발명이 속하는 분야에서 통상의 지식을 가진 자라면 이러한 기재로부터 다양한 수정 및 변형이 가능하다.As described above, the present invention has been described by way of limited embodiments and drawings, but the present invention is not limited to the above embodiments, and those skilled in the art to which the present invention pertains various modifications and variations from such descriptions. This is possible.

그러므로, 본 발명의 범위는 설명된 실시예에 국한되어 정해져서는 아니 되며, 후술하는 특허청구범위뿐 아니라 이 특허청구범위와 균등한 것들에 의해 정해져야 한다.Therefore, the scope of the present invention should not be limited to the described embodiments, but should be determined not only by the claims below but also by the equivalents of the claims.

110: 인트라 예측부
111: 제1 인트라 예측부
113: 제2 인트라 예측부
115: 제3 인트라 예측부
117: 모드 선택부
110: intra prediction unit
111: the first intra prediction unit
113: second intra prediction unit
115: third intra prediction unit
117: mode selector

Claims (20)

부호화 장치가 수행하는 인트라 예측을 위한 부호화 방법에 있어서,
부호화하고자 하는 현재 블록에 인접하는 주변 블록들을 이용하여 상기 현재 블록에 대해 최적의 인트라 예측 모드를 결정하는 단계; 및
상기 최적의 인트라 예측 모드에 따라 상기 현재 블록을 부호화하여 비트스트림을 생성하는 단계
를 포함하는 부호화 방법.
In the encoding method for intra prediction performed by the encoding apparatus,
Determining an optimal intra prediction mode for the current block by using neighboring blocks adjacent to the current block to be encoded; And
Generating a bitstream by encoding the current block according to the optimal intra prediction mode
Encoding method comprising a.
제1항에 있어서,
상기 최적의 인트라 예측 모드를 결정하는 단계는,
상기 현재 블록에 인접하는 주변 블록들과 상기 현재 블록 간에 인트라 예측 방향별 화소 상관도에 기초하여 제1 인트라 예측을 수행하는 단계; 및
상기 제1 인트라 예측을 수행한 결과의 비용 함수를 계산하는 단계
를 포함하는 부호화 방법.
The method of claim 1,
Determining the optimal intra prediction mode,
Performing first intra prediction based on pixel correlation according to intra prediction directions between neighboring blocks adjacent to the current block and the current block; And
Calculating a cost function of a result of performing the first intra prediction
Encoding method comprising a.
제1항에 있어서,
상기 최적의 인트라 예측 모드를 결정하는 단계는,
상기 현재 블록에 인접하는 주변 블록들의 모드 정보 중 최소인 모드 정보에 기초하여 제2 인트라 예측을 수행하는 단계; 및
상기 제2 인트라 예측을 수행한 결과의 비용 함수를 계산하는 단계
를 포함하는 부호화 방법.
The method of claim 1,
Determining the optimal intra prediction mode,
Performing a second intra prediction based on mode information which is the minimum of mode information of neighboring blocks adjacent to the current block; And
Calculating a cost function of a result of performing the second intra prediction.
Encoding method comprising a.
제1항에 있어서,
상기 최적의 인트라 예측 모드를 결정하는 단계는,
상기 현재 블록에 인접하는 주변 블록들과 상기 현재 블록 간에 인트라 예측 방향별 화소 상관도에 기초하여 제1 인트라 예측을 수행하는 단계;
상기 현재 블록에 인접하는 주변 블록들의 모드 정보 중 최소인 모드 정보에 기초하여 제2 인트라 예측을 수행하는 단계; 및
상기 제1 인트라 예측 및 제2 인트라 예측을 수행한 결과의 비용 함수를 계산하는 단계
를 포함하는 부호화 방법.
The method of claim 1,
Determining the optimal intra prediction mode,
Performing first intra prediction based on pixel correlation according to intra prediction directions between neighboring blocks adjacent to the current block and the current block;
Performing a second intra prediction based on mode information which is the minimum of mode information of neighboring blocks adjacent to the current block; And
Calculating a cost function of a result of performing the first intra prediction and the second intra prediction.
Encoding method comprising a.
제1항에 있어서,
상기 최적의 인트라 예측 모드를 결정하는 단계는,
상기 현재 블록에 인접하는 주변 블록들과 상기 현재 블록 간에 인트라 예측 방향별 화소 상관도에 기초하여 제1 인트라 예측을 수행하는 단계;
상기 현재 블록에 인접하는 주변 블록들의 모드 정보 중 최소인 모드 정보에 기초하여 제2 인트라 예측을 수행하는 단계;
상기 현재 블록의 휘도 성분 또는 색차 성분에 기초하여 제3 인트라 예측을 수행하는 단계; 및
상기 제1 인트라 예측, 제2 인트라 예측 및 제3 인트라 예측을 수행한 결과의 비용 함수를 계산하는 단계
를 포함하는 부호화 방법.
The method of claim 1,
Determining the optimal intra prediction mode,
Performing first intra prediction based on pixel correlation according to intra prediction directions between neighboring blocks adjacent to the current block and the current block;
Performing a second intra prediction based on mode information which is the minimum of mode information of neighboring blocks adjacent to the current block;
Performing a third intra prediction based on a luminance component or a chrominance component of the current block; And
Calculating a cost function of a result of performing the first intra prediction, the second intra prediction, and the third intra prediction.
Encoding method comprising a.
복호화 장치가 수행하는 인트라 예측을 위한 복호화 방법에 있어서,
부호화 장치가 전송한 비트스트림을 복호화하는 단계;
상기 비트스트림을 복호화한 결과에 기초하여 인트라 예측을 수행할 방식을 결정하는 단계; 및
상기 결정된 방식에 따라 현재 블록에 대해 인트라 예측을 수행하는 단계
를 포함하고,
상기 방식은,
이미 부호화되어 전송된 현재 블록에 인접하는 주변 블록들을 이용하여 인트라 예측을 수행하는 방식을 포함하는 것을 특징으로 하는 복호화 방법.
In the decoding method for intra prediction performed by the decoding apparatus,
Decoding the bitstream transmitted by the encoding apparatus;
Determining a method of performing intra prediction based on a result of decoding the bitstream; And
Performing intra prediction on the current block according to the determined scheme
Including,
The method is
And a method of performing intra prediction using neighboring blocks adjacent to a current block that is already encoded and transmitted.
제6항에 있어서,
상기 인트라 예측을 수행하는 단계는,
상기 현재 블록에 인접하는 주변 블록들과 상기 현재 블록 간에 인트라 예측 방향별 화소 상관도에 기초하여 제1 인트라 예측을 수행하는 단계;
상기 현재 블록에 인접하는 주변 블록들의 모드 정보 중 최소인 모드 정보에 기초하여 제2 인트라 예측을 수행하는 단계; 또는
상기 현재 블록의 휘도 성분 또는 색차 성분에 기초하여 제3 인트라 예측을 수행하는 단계
를 포함하는 복호화 방법.
The method of claim 6,
Performing the intra prediction,
Performing first intra prediction based on pixel correlation according to intra prediction directions between neighboring blocks adjacent to the current block and the current block;
Performing a second intra prediction based on mode information which is the minimum of mode information of neighboring blocks adjacent to the current block; or
Performing a third intra prediction based on a luminance component or a chrominance component of the current block
Decryption method comprising a.
제7항에 있어서,
상기 제3 인트라 예측을 수행하는 단계는,
상기 비트스트림을 복호화하여 도출된 인트라 예측 모드를 이용하여 현재 블록의 휘도 성분 또는 색차 성분에 대해 제3 인트라 예측을 수행하는 것을 특징으로 하는 복호화 방법.
The method of claim 7, wherein
The performing of the third intra prediction may include:
And performing a third intra prediction on the luminance component or the chrominance component of the current block by using an intra prediction mode derived by decoding the bitstream.
제7항에 있어서,
상기 비트스트림은,
인트라 예측을 수행할 복호화 단위인 매크로 블록에 대해 제1 인트라 예측 또는 제2 인트라 예측과 관련된 유형 정보를 포함하는 것을 특징으로 하는 복호화 방법.
The method of claim 7, wherein
The bitstream,
And type information related to the first intra prediction or the second intra prediction for the macroblock which is a decoding unit to perform intra prediction.
부호화하고자 하는 현재 블록에 인접하는 주변 블록들을 이용하여 상기 현재 블록에 대해 최적의 인트라 예측 모드를 결정하는 인트라 예측부; 및
상기 최적의 인트라 예측 모드에 따라 상기 현재 블록을 부호화하여 비트스트림을 생성하는 부호화부
를 포함하는 부호화 장치.
An intra predictor configured to determine an optimal intra prediction mode for the current block by using neighboring blocks adjacent to a current block to be encoded; And
An encoder which generates a bitstream by encoding the current block according to the optimal intra prediction mode.
Encoding apparatus comprising a.
제10항에 있어서,
상기 인트라 예측부는,
상기 현재 블록에 인접하는 주변 블록들과 상기 현재 블록 간에 인트라 예측 방향별 화소 상관도에 기초하여 제1 인트라 예측을 수행하는 제1 인트라 예측 수행부; 및
상기 제1 인트라 예측을 수행한 결과의 비용 함수를 계산하는 비용 함수 계산부
를 포함하는 부호화 장치.
The method of claim 10,
The intra prediction unit,
A first intra prediction performer configured to perform first intra prediction based on pixel correlation for each intra prediction direction between neighboring blocks adjacent to the current block and the current block; And
Cost function calculation unit for calculating a cost function of the result of performing the first intra prediction
Encoding apparatus comprising a.
제10항에 있어서,
상기 인트라 예측부는,
상기 현재 블록에 인접하는 주변 블록들의 모드 정보 중 최소인 모드 정보에 기초하여 제2 인트라 예측을 수행하는 제2 인트라 예측 수행부; 및
상기 제2 인트라 예측을 수행한 결과의 비용 함수를 계산하는 비용 함수 계산부
를 포함하는 부호화 장치.
The method of claim 10,
The intra prediction unit,
A second intra prediction performing unit configured to perform a second intra prediction based on mode information which is the minimum among mode information of neighboring blocks adjacent to the current block; And
Cost function calculation unit for calculating a cost function of the result of performing the second intra prediction
Encoding apparatus comprising a.
제10항에 있어서,
상기 인트라 예측부는,
상기 현재 블록에 인접하는 주변 블록들과 상기 현재 블록 간에 인트라 예측 방향별 화소 상관도에 기초하여 제1 인트라 예측을 수행하는 제1 인트라 예측 수행부;
상기 현재 블록에 인접하는 주변 블록들의 모드 정보 중 최소인 모드 정보에 기초하여 제2 인트라 예측을 수행하는 제2 인트라 예측 수행부; 및
상기 제1 인트라 예측 및 제2 인트라 예측을 수행한 결과의 비용 함수를 계산하는 비용 함수 계산부
를 포함하는 부호화 장치.
The method of claim 10,
The intra prediction unit,
A first intra prediction performer configured to perform first intra prediction based on pixel correlation for each intra prediction direction between neighboring blocks adjacent to the current block and the current block;
A second intra prediction performing unit configured to perform a second intra prediction based on mode information which is the minimum among mode information of neighboring blocks adjacent to the current block; And
A cost function calculator for calculating a cost function of a result of performing the first intra prediction and the second intra prediction.
Encoding apparatus comprising a.
제10항에 있어서,
상기 인트라 예측부는,
상기 현재 블록에 인접하는 주변 블록들과 상기 현재 블록 간에 인트라 예측 방향별 화소 상관도에 기초하여 제1 인트라 예측을 수행하는 제1 인트라 예측 수행부;
상기 현재 블록에 인접하는 주변 블록들의 모드 정보 중 최소인 모드 정보에 기초하여 제2 인트라 예측을 수행하는 제2 인트라 예측 수행부;
상기 현재 블록의 휘도 성분 또는 색차 성분에 기초하여 제3 인트라 예측을 수행하는 제3 인트라 예측 수행부; 및
상기 제1 인트라 예측, 제2 인트라 예측 및 제3 인트라 예측을 수행한 결과의 비용 함수를 계산하는 비용 함수 계산부
를 포함하는 부호화 장치.
The method of claim 10,
The intra prediction unit,
A first intra prediction performer configured to perform first intra prediction based on pixel correlation for each intra prediction direction between neighboring blocks adjacent to the current block and the current block;
A second intra prediction performing unit configured to perform a second intra prediction based on mode information which is the minimum among mode information of neighboring blocks adjacent to the current block;
A third intra prediction performing unit performing third intra prediction based on a luminance component or a chrominance component of the current block; And
A cost function calculator for calculating a cost function of a result of performing the first intra prediction, the second intra prediction, and the third intra prediction.
Encoding apparatus comprising a.
부호화 장치가 전송한 비트스트림을 복호화하는 복호화부;
상기 비트스트림을 복호화한 결과에 기초하여 인트라 예측을 수행할 방식을 결정하는 인트라 예측 모드 판단부; 및
상기 결정된 방식에 따라 현재 블록에 대해 인트라 예측을 수행하는 인트라 예측부
를 포함하고,
상기 방식은,
이미 부호화되어 전송된 현재 블록에 인접하는 주변 블록들을 이용하여 인트라 예측을 수행하는 방식을 포함하는 것을 특징으로 하는 복호화 장치.
A decoder which decodes the bitstream transmitted by the encoding apparatus;
An intra prediction mode determiner configured to determine a method of performing intra prediction based on a result of decoding the bitstream; And
Intra predictor for performing intra prediction on the current block according to the determined method
Including,
The method is
And a method of performing intra prediction using neighboring blocks adjacent to a current block that is already encoded and transmitted.
제15항에 있어서,
상기 인트라 예측부는,
상기 현재 블록에 인접하는 주변 블록들과 상기 현재 블록 간에 인트라 예측 방향별 화소 상관도에 기초하여 제1 인트라 예측을 수행하는 제1 인트라 예측 수행부;
상기 현재 블록에 인접하는 주변 블록들의 모드 정보 중 최소인 모드 정보에 기초하여 제2 인트라 예측을 수행하는 제2 인트라 예측 수행부; 또는
상기 현재 블록의 휘도 성분 또는 색차 성분에 기초하여 제3 인트라 예측을 수행하는 제3 인트라 예측 수행부
를 포함하는 복호화 장치.
16. The method of claim 15,
The intra prediction unit,
A first intra prediction performer configured to perform first intra prediction based on pixel correlation for each intra prediction direction between neighboring blocks adjacent to the current block and the current block;
A second intra prediction performing unit configured to perform a second intra prediction based on mode information which is the minimum among mode information of neighboring blocks adjacent to the current block; or
A third intra prediction performing unit that performs a third intra prediction based on the luminance component or the chrominance component of the current block
Decoding apparatus comprising a.
제16항에 있어서,
상기 제3 인트라 예측 수행부는,
상기 비트스트림을 복호화하여 도출된 인트라 예측 모드를 이용하여 현재 블록의 휘도 성분 또는 색차 성분에 대해 제3 인트라 예측을 수행하는 것을 특징으로 하는 복호화 장치.
The method of claim 16,
The third intra prediction execution unit,
And performing a third intra prediction on the luminance component or the chrominance component of the current block by using the intra prediction mode derived by decoding the bitstream.
제16항에 있어서,
상기 비트스트림은,
인트라 예측을 수행할 복호화 단위인 매크로 블록에 대해 제1 인트라 예측 또는 제2 인트라 예측과 관련된 유형 정보를 포함하는 것을 특징으로 하는 복호화 장치.
The method of claim 16,
The bitstream,
And type information related to the first intra prediction or the second intra prediction with respect to a macroblock which is a decoding unit to perform intra prediction.
부호화 장치가 현재 블록에 대해 인트라 예측을 수행하여 부호화한 비트스트림이 기록된 컴퓨터에서 판독 가능한 기록 매체에 있어서,
상기 비트스트림은,
매크로 블록 유형, 색차 블록 모드 정보, 블록 패턴 및 레지듀를 포함하는 것을 특징으로 하는 기록 매체.
A computer-readable recording medium on which a bitstream encoded by encoding by performing an intra prediction on a current block is recorded.
The bitstream,
And a macro block type, chrominance block mode information, a block pattern, and a residue.
제19항에 있어서,
상기 비트스트림은,
상기 현재 블록에 인접하는 주변 블록들과 상기 현재 블록 간에 인트라 예측 방향별 화소 상관도에 기초하여 인트라 예측을 수행하는 제1 인트라 예측과 상기 현재 블록에 인접하는 주변 블록들의 모드 정보 중 최소인 모드 정보에 기초하여 인트라 예측을 수행하는 제2 인트라 예측을 구분하는 플래그 비트를 포함하는 기록 매체.
The method of claim 19,
The bitstream,
Mode information that is the minimum among first intra prediction that performs intra prediction based on pixel correlation for each intra prediction direction between neighboring blocks adjacent to the current block and the current block, and mode information of neighboring blocks adjacent to the current block. And a flag bit for distinguishing a second intra prediction that performs intra prediction based on the.
KR1020100124451A 2009-12-21 2010-12-07 Method and apparatus for encoding and decoding for intra prediction KR20110073263A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/KR2010/009168 WO2011078562A2 (en) 2009-12-21 2010-12-21 Intra-predictive coding and decoding methods, and intra-predictive coding and decoding devices for performing the methods

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR1020090128480 2009-12-21
KR20090128480 2009-12-21

Publications (1)

Publication Number Publication Date
KR20110073263A true KR20110073263A (en) 2011-06-29

Family

ID=44404059

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020100124451A KR20110073263A (en) 2009-12-21 2010-12-07 Method and apparatus for encoding and decoding for intra prediction

Country Status (1)

Country Link
KR (1) KR20110073263A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013005966A2 (en) * 2011-07-01 2013-01-10 한국전자통신연구원 Video encoding and decoding methods and device using same
WO2013115568A1 (en) * 2012-01-30 2013-08-08 한국전자통신연구원 Intra prediction mode encoding/decoding method and device
WO2013141587A1 (en) * 2012-03-20 2013-09-26 엘지전자 주식회사 Method of inter-layer prediction and apparatus using the same
WO2017052118A1 (en) * 2015-09-23 2017-03-30 엘지전자 주식회사 Intra prediction method and device in image coding system
WO2017069419A1 (en) * 2015-10-22 2017-04-27 엘지전자 주식회사 Intra-prediction method and apparatus in video coding system
WO2017090968A1 (en) * 2015-11-24 2017-06-01 삼성전자 주식회사 Method for encoding/decoding image and device therefor
US9843803B2 (en) 2011-07-01 2017-12-12 Electronics And Telecommunications Research Institute Video encoding and decoding methods and device using same
KR20180028430A (en) * 2010-02-17 2018-03-16 한국전자통신연구원 Apparatus and method for encoding and decoding to image of ultra high definition resoutltion
US9955169B2 (en) 2012-01-30 2018-04-24 Electronics And Telecommunications Research Institute Intra prediction mode encoding/decoding method and apparatus

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20180028430A (en) * 2010-02-17 2018-03-16 한국전자통신연구원 Apparatus and method for encoding and decoding to image of ultra high definition resoutltion
WO2013005966A3 (en) * 2011-07-01 2013-03-14 한국전자통신연구원 Video encoding and decoding methods and device using same
WO2013005966A2 (en) * 2011-07-01 2013-01-10 한국전자통신연구원 Video encoding and decoding methods and device using same
US10681349B2 (en) 2011-07-01 2020-06-09 Electronics And Telecommunications Research Institute Video encoding and decoding methods and device using same
US10250880B2 (en) 2011-07-01 2019-04-02 Electronics And Telecommunications Research Institute Video encoding and decoding methods and device using same
US11190767B2 (en) 2011-07-01 2021-11-30 Electronics And Telecommunications Research Institute Video encoding and decoding methods and device using same
US11677942B2 (en) 2011-07-01 2023-06-13 Electronics And Telecommunications Research Institute Video encoding and decoding methods and device using same
US9843803B2 (en) 2011-07-01 2017-12-12 Electronics And Telecommunications Research Institute Video encoding and decoding methods and device using same
US10666950B2 (en) 2012-01-30 2020-05-26 Electronics And Telecommunications Research Institute Intra prediction mode encoding/decoding method and apparatus
US9955169B2 (en) 2012-01-30 2018-04-24 Electronics And Telecommunications Research Institute Intra prediction mode encoding/decoding method and apparatus
US11689728B2 (en) 2012-01-30 2023-06-27 Dolby Laboratories Licensing Corporation Intra prediction mode encoding/decoding method and apparatus
US11172206B2 (en) 2012-01-30 2021-11-09 Electronics And Telecommunications Research Institute Intra prediction mode encoding/decoding method and apparatus
WO2013115568A1 (en) * 2012-01-30 2013-08-08 한국전자통신연구원 Intra prediction mode encoding/decoding method and device
WO2013141587A1 (en) * 2012-03-20 2013-09-26 엘지전자 주식회사 Method of inter-layer prediction and apparatus using the same
WO2017052118A1 (en) * 2015-09-23 2017-03-30 엘지전자 주식회사 Intra prediction method and device in image coding system
US10721492B2 (en) 2015-09-23 2020-07-21 Lg Electronics Inc. Intra prediction method and device in image coding system
US10750167B2 (en) 2015-10-22 2020-08-18 Lg Electronics, Inc. Intra-prediction method and apparatus in video coding system
WO2017069419A1 (en) * 2015-10-22 2017-04-27 엘지전자 주식회사 Intra-prediction method and apparatus in video coding system
CN108293115A (en) * 2015-11-24 2018-07-17 三星电子株式会社 Method and apparatus for being encoded/decoded to image
WO2017090968A1 (en) * 2015-11-24 2017-06-01 삼성전자 주식회사 Method for encoding/decoding image and device therefor

Similar Documents

Publication Publication Date Title
KR101246294B1 (en) Method of and apparatus for video intraprediction encoding/decoding
JP5128443B2 (en) Video encoding and decoding method and apparatus
KR100667808B1 (en) Method and apparatus for intra prediction encoding and decoding for image
KR101211665B1 (en) Method and apparatus for intra prediction encoding and decoding of image
KR101431545B1 (en) Method and apparatus for Video encoding and decoding
KR101365570B1 (en) Method and apparatus for encoding and decoding based on intra prediction
KR101228020B1 (en) Video coding method and apparatus using side matching, and video decoding method and appartus thereof
KR100727969B1 (en) Apparatus for encoding and decoding image, and method theroff, and a recording medium storing program to implement the method
KR100739714B1 (en) Method and apparatus for intra prediction mode decision
KR101365569B1 (en) Method and apparatus for encoding and decoding based on intra prediction
WO2010001917A1 (en) Image processing device and method
US9503725B2 (en) Method and apparatus for encoding/decoding image for performing intraprediction using pixel value filtered according to prediction mode
US8948243B2 (en) Image encoding device, image decoding device, image encoding method, and image decoding method
KR20110073263A (en) Method and apparatus for encoding and decoding for intra prediction
JP5400798B2 (en) Moving picture decoding method and apparatus, moving picture encoding method and apparatus
KR100727970B1 (en) Apparatus for encoding and decoding image, and method theroff, and a recording medium storing program to implement the method
KR20110018188A (en) Method and apparatus for image encoding, and method and apparatus for image decoding
WO2008004768A1 (en) Image encoding/decoding method and apparatus
EP2106148A2 (en) Method and apparatus for encoding/decoding information about intra-prediction mode of video
US20090016443A1 (en) Inter mode determination method for video encoding
US8228985B2 (en) Method and apparatus for encoding and decoding based on intra prediction
KR20070077609A (en) Method and apparatus for deciding intra prediction mode
KR101366088B1 (en) Method and apparatus for encoding and decoding based on intra prediction
KR20110067648A (en) Method for encoding/decoding image and apparatus for performing the same
KR101365571B1 (en) Method and apparatus for encoding and decoding based on intra prediction

Legal Events

Date Code Title Description
WITN Withdrawal due to no request for examination