KR20140093869A - Method and apparatus for intra prediction, and apparatus for processing picture - Google Patents

Method and apparatus for intra prediction, and apparatus for processing picture Download PDF

Info

Publication number
KR20140093869A
KR20140093869A KR1020130006023A KR20130006023A KR20140093869A KR 20140093869 A KR20140093869 A KR 20140093869A KR 1020130006023 A KR1020130006023 A KR 1020130006023A KR 20130006023 A KR20130006023 A KR 20130006023A KR 20140093869 A KR20140093869 A KR 20140093869A
Authority
KR
South Korea
Prior art keywords
block
mode
intra prediction
difference
type
Prior art date
Application number
KR1020130006023A
Other languages
Korean (ko)
Other versions
KR101475286B1 (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 KR1020130006023A priority Critical patent/KR101475286B1/en
Publication of KR20140093869A publication Critical patent/KR20140093869A/en
Application granted granted Critical
Publication of KR101475286B1 publication Critical patent/KR101475286B1/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
    • H04N19/593Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving spatial prediction techniques
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/124Quantisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/503Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
    • H04N19/51Motion estimation or motion compensation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/60Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
    • H04N19/61Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding in combination with predictive coding

Landscapes

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

Abstract

The present invention relates to a method and an apparatus for intra prediction and an apparatus for processing images. The method for intra prediction according to an embodiment of the present invention comprises a step of calculating difference value between pixels neighboring blocks; a step of determining the block type based on the calculated difference value of the pixels; a step of determining candidate intra prediction modes by selecting some intro prediction modes depending on the block type; and a step of determining a intra prediction mode among the selected modes to be used for encoding the block.

Description

인트라 예측 방법 및 장치, 그리고 영상 처리 장치{METHOD AND APPARATUS FOR INTRA PREDICTION, AND APPARATUS FOR PROCESSING PICTURE}TECHNICAL FIELD [0001] The present invention relates to an intra prediction method, an intra prediction method,

본 발명은 인트라 예측 방법 및 장치, 그리고 영상 처리 장치에 관한 것이다.The present invention relates to an intra prediction method and apparatus, and an image processing apparatus.

최근 HD(High Definition) 영상 및 UHD(Ultra High Definition) 영상과 같은 고해상도, 고화질 영상에 대한 수요가 다양한 응용 분야에서 증가하고 있다. 영상 데이터가 고해상도, 고화질이 될수록 기존의 영상 데이터에 비해 상대적으로 데이터량이 증가하기 때문에 기존의 유무선 광대역 회선과 같은 매체를 이용하여 영상 데이터를 전송하거나 기존의 저장매체에 저장하는 경우, 전송 비용과 저장 비용이 증가하게 된다. 영상 데이터가 고해상도, 고화질화 됨에 따라 발생하는 이러한 문제들을 해결하기 위해서는 고효율의 영상 압축 기술이 요구된다.Recently, there is an increasing demand for high definition and high definition video such as HD (High Definition) video and UHD (Ultra High Definition) video in various applications. As the image data becomes high resolution and high image quality, the data amount increases relative to the existing image data. Therefore, when the image data is transmitted using a medium such as a wired / wireless broadband line or stored in an existing storage medium, The cost increases. High-efficiency image compression technology is required to solve such problems as image data becomes high-resolution and high-quality.

영상 압축 기술로 현재 픽쳐의 이전 또는 이후 픽쳐로부터 현재 픽쳐에 포함된 화소값을 예측하는 인터 예측(inter prediction) 기술, 현재 픽쳐 내의 화소 정보를 이용하여 현재 픽쳐에 포함된 화소값을 예측하는 인트라 예측(intra prediction) 기술, 출현 빈도가 높은 값에 짧은 부호를 할당하고 출현 빈도가 낮은 값에 긴 부호를 할당하는 엔트로피 부호화(entropy coding) 기술 등 다양한 기술이 존재하고 이러한 영상 압축 기술을 이용해 영상 데이터를 효과적으로 압축하여 전송 또는 저장할 수 있다.An inter prediction technique for predicting a pixel value included in a current picture from a previous or a subsequent picture of a current picture using an image compression technique, an intra prediction technique for predicting a pixel value included in a current picture using pixel information in the current picture, there are a variety of techniques such as intra prediction technology, entropy coding technique in which short codes are assigned to values having a high appearance frequency, and long codes are assigned to values having a low appearance frequency. It can be compressed and transmitted or stored effectively.

본 발명의 일 실시예는, 영상의 인트라 예측을 위해 요구되는 연산량을 감소시켜, 인코딩 속도를 향상시키는 인트라 예측 방법 및 장치, 그리고 영상 처리 장치를 제공하는 것을 목적으로 한다.An embodiment of the present invention aims to provide an intra prediction method and apparatus for reducing an amount of calculation required for intraprediction of an image and improving an encoding speed, and an image processing apparatus.

본 발명의 일 실시예는, 영상의 압축 효율을 감소시키지 않으면서 인코딩 속도를 개선하는 인트라 예측 방법 및 장치, 그리고 영상 처리 장치를 제공하는 것을 목적으로 한다.An embodiment of the present invention aims to provide an intra prediction method and apparatus for improving an encoding speed without reducing the compression efficiency of an image, and an image processing apparatus.

본 발명의 일 실시예에 따른 인트라 예측 방법은, 블록에 인접한 주변 픽셀들의 픽셀값의 차분을 계산하는 단계; 상기 차분을 기초로 상기 블록의 타입을 결정하는 단계; 상기 블록의 타입에 따라 인트라 예측 모드 중에서 일부를 선택하여 후보 인트라 예측 모드를 결정하는 단계; 및 선택된 일부 모드 중에서 상기 블록의 부호화에 이용될 인트라 예측 모드를 결정하는 단계;를 포함할 수 있다.An intra prediction method according to an exemplary embodiment of the present invention includes: calculating a difference between pixel values of neighboring pixels adjacent to a block; Determining a type of the block based on the difference; Determining a candidate intra prediction mode by selecting a portion of the intra prediction modes according to the type of the block; And determining an intra prediction mode to be used for coding the block among the selected partial modes.

상기 차분을 계산하는 단계는: 상기 블록의 상측에 인접한 상측 주변 픽셀들의 차분을 계산하는 단계; 및 상기 블록의 좌측에 인접한 좌측 주변 픽셀들의 차분을 계산하는 단계;를 포함할 수 있다.Calculating the difference comprises: calculating a difference between upper neighboring pixels on the upper side of the block; And calculating a difference between left neighboring pixels adjacent to the left side of the block.

상기 상측 주변 픽셀들의 차분을 계산하는 단계는: 상기 상측 주변 픽셀들 중 인접한 픽셀들 간의 픽셀값의 차분의 절대값을 합산하여, 상측 주변 픽셀 차분값을 계산하는 단계를 포함하고, 상기 좌측 주변 픽셀들의 차분을 계산하는 단계는: 상기 좌측 주변 픽셀들 중 인접한 픽셀들 간의 픽셀값의 차분의 절대값을 합산하여, 좌측 주변 픽셀 차분값을 계산하는 단계를 포함할 수 있다.Wherein calculating the difference of the upper neighboring pixels comprises: calculating an upper neighboring pixel difference value by summing an absolute value of the difference of pixel values between adjacent pixels of the upper neighboring pixels, Calculating a difference between the left neighboring pixel and the left neighboring pixel may include calculating a left neighboring pixel difference value by summing an absolute value of a difference between pixel values between adjacent pixels among the left neighboring pixels.

상기 블록의 타입을 결정하는 단계는: 상기 상측 주변 픽셀 차분값이 기 설정된 상측 경계값보다 크고, 상기 좌측 주변 픽셀 차분값이 기 설정된 좌측 경계값보다 작거나 같은 경우, 상기 블록의 타입을 상측 고차분 블록으로 결정하는 단계를 포함할 수 있다.Wherein determining the type of the block comprises: if the upper surrounding pixel difference value is greater than a predetermined upper boundary value and the left surrounding pixel difference value is less than or equal to a predetermined left boundary value, As a difference block.

상기 블록의 타입을 결정하는 단계는: 상기 상측 주변 픽셀 차분값이 기 설정된 상측 경계값보다 작거나 같고, 상기 좌측 주변 픽셀 차분값이 기 설정된 좌측 경계값보다 큰 경우, 상기 블록의 타입을 좌측 고차분 블록으로 결정하는 단계를 포함할 수 있다.Wherein the step of determining the type of the block comprises the steps of: if the upper surrounding pixel difference value is less than or equal to a predetermined upper boundary value, and the left surrounding pixel difference value is greater than a predetermined left boundary value, As a difference block.

상기 상측 경계값 및 상기 좌측 경계값은 상기 블록의 사이즈에 반비례할 수 있다.The upper boundary value and the left boundary value may be inversely proportional to the size of the block.

상기 블록의 타입을 결정하는 단계는: 상기 상측 주변 픽셀 차분값이 기 설정된 상측 제 1 경계값보다 크고, 상기 좌측 주변 픽셀 차분값이 기 설정된 좌측 제 2 경계값보다 작거나 같은 경우, 상기 블록의 타입을 상측 고차분 블록으로 결정하는 단계를 포함할 수 있다.Wherein the determining of the block type comprises: if the upper surrounding pixel difference value is greater than a preset upper first boundary value and the left surrounding pixel difference value is less than or equal to a predetermined left second boundary value, And determining the type as an upper side high differential block.

상기 블록의 타입을 결정하는 단계는: 상기 상측 주변 픽셀 차분값이 기 설정된 상측 제 2 경계값보다 작거나 같고, 상기 좌측 주변 픽셀 차분값이 기 설정된 좌측 제 1 경계값보다 큰 경우, 상기 블록의 타입을 좌측 고차분 블록으로 결정하는 단계를 포함할 수 있다.Wherein determining the type of the block comprises: if the upper surrounding pixel difference value is less than or equal to a preset upper second boundary value and the left surrounding pixel difference value is greater than a predetermined left first boundary value, And determining the type as a left high differential block.

상기 후보 인트라 예측 모드를 결정하는 단계는: 상기 상측 고차분 블록의 경우, 인트라 예측 모드 중에서 평면 모드, DC 모드 및 상측을 향하는 모드를 선택하는 단계를 포함할 수 있다.The step of determining the candidate intra prediction mode may include a step of selecting a plane mode, a DC mode, and an upward direction mode among the intra prediction modes in the case of the upper side high-differential block.

상기 후보 인트라 예측 모드를 결정하는 단계는: 상기 좌측 고차분 블록의 경우, 인트라 예측 모드 중에서 평면 모드, DC 모드 및 좌측을 향하는 모드를 선택하는 단계를 포함할 수 있다.The step of determining the candidate intra prediction mode may include: selecting a plane mode, a DC mode, and a leftward mode among the intra prediction modes in the case of the left high-difference block.

상기 후보 인트라 예측 모드를 결정하는 단계는: 상기 상측 고차분 블록의 경우, 인트라 예측 모드 중에서 수평 방향의 모드를 선택하는 단계를 더 포함할 수 있다.The step of determining the candidate intra prediction mode may further include a step of selecting a horizontal direction mode among the intra prediction modes in the case of the upper side high differential block.

상기 후보 인트라 예측 모드를 결정하는 단계는: 상기 좌측 고차분 블록의 경우, 인트라 예측 모드 중에서 수직 방향의 모드를 선택하는 단계를 더 포함할 수 있다.The step of determining the candidate intra prediction mode may further include a step of selecting a vertical direction mode among the intra prediction modes in the case of the left high differential block.

상기 후보 인트라 예측 모드를 결정하는 단계는: 상기 블록에 인접한 주변 블록의 부호화에 이용되는 인트라 예측 모드를 선택하는 단계를 더 포함할 수 있다.The step of determining the candidate intra prediction mode may further include: selecting an intra prediction mode to be used for coding a neighboring block adjacent to the block.

본 발명의 일 실시예에 따른 인트라 예측 방법은, 블록에 인접한 주변 픽셀들의 픽셀값의 차분에 따라 인트라 예측 모드 중에서 일부를 선택하고, 선택된 일부 모드를 기반으로 인트라 예측을 수행할 수 있다.The intra prediction method according to an embodiment of the present invention selects a part of the intra prediction modes according to a difference between pixel values of neighboring pixels adjacent to the block and performs intra prediction based on the selected partial mode.

전술한 본 발명의 일 실시예에 따른 인트라 예측 방법은, 컴퓨터로 실행될 수 있는 프로그램으로 구현되어, 컴퓨터로 읽을 수 있는 기록매체에 기록될 수 있다.The intra prediction method according to an embodiment of the present invention may be implemented as a program that can be executed by a computer, and may be recorded in a computer-readable recording medium.

본 발명의 일 실시예에 따른 인트라 예측 장치는, 블록에 인접한 주변 픽셀들의 픽셀값의 차분을 계산하는 차분 계산부; 상기 차분을 기초로 블록의 타입을 결정하는 블록 타입 결정부; 상기 블록의 타입에 따라 인트라 예측 모드 중에서 일부를 선택하는 모드 선택부; 및 선택된 일부 모드 중에서 상기 블록의 부호화에 이용될 인트라 예측 모드를 결정하는 인트라 예측 모드 결정부;를 포함할 수 있다.An intraprediction apparatus according to an embodiment of the present invention includes a difference calculator that calculates a difference between pixel values of neighboring pixels adjacent to a block; A block type determination unit for determining a type of a block based on the difference; A mode selection unit for selecting a part of the intra prediction mode according to the type of the block; And an intra prediction mode determiner for determining an intra prediction mode to be used for coding the block among the selected partial modes.

상기 차분 계산부는: 상기 블록의 상측에 인접한 상측 주변 픽셀들 중 인접한 픽셀들 간의 픽셀값의 차분의 절대값을 합산하여 제 1 차분값을 계산하고, 상기 블록의 좌측에 인접한 좌측 주변 픽셀들 중 인접한 픽셀들 간의 픽셀값의 차분의 절대값을 합산하여 제 2 차분값을 계산할 수 있다.Wherein the difference calculator calculates a first difference value by summing an absolute value of a difference between pixel values of adjacent pixels among neighboring upper neighboring pixels on the upper side of the block to calculate a first difference value, The second difference value can be calculated by summing the absolute values of the differences of the pixel values between the pixels.

상기 블록 타입 결정부는: 상기 제 1 차분값이 기 설정된 상측 경계값보다 크고, 상기 제 2 차분값이 기 설정된 좌측 경계값보다 작거나 같은 경우, 상기 블록을 제 1 타입으로 분류하고, 상기 제 1 차분값이 상기 상측 경계값보다 작거나 같고, 상기 제 2 차분값이 상기 좌측 경계값보다 큰 경우, 상기 블록을 제 2 타입으로 분류할 수 있다.Wherein the block type determination unit classifies the block into a first type when the first difference value is greater than a predetermined upper boundary value and the second difference value is less than or equal to a predetermined left boundary value, If the difference value is smaller than or equal to the upper boundary value and the second difference value is larger than the left boundary value, the block can be classified into the second type.

상기 상측 경계값 및 상기 좌측 경계값은 상기 블록의 사이즈에 반비례하도록 설정될 수 있다.The upper boundary value and the left boundary value may be set to be in inverse proportion to the size of the block.

상기 블록 타입 결정부는: 상기 제 1 차분값이 기 설정된 상측 제 1 경계값보다 크고, 상기 제 2 차분값이 기 설정된 좌측 제 2 경계값보다 작거나 같은 경우, 상기 블록을 제 1 타입으로 분류하고, 상기 제 1 차분값이 기 설정된 상측 제 2 경계값보다 작거나 같고, 상기 제 2 차분값이 기 설정된 좌측 제 1 경계값보다 큰 경우, 상기 블록을 제 2 타입으로 분류할 수 있다.Wherein the block type determination unit classifies the block into a first type when the first difference value is greater than a preset upper boundary value and the second difference value is less than or equal to a predetermined left second boundary value And classifying the block into a second type when the first difference value is less than or equal to a preset upper second boundary value and the second difference value is greater than a predetermined left boundary value.

상기 상측 제 1 경계값, 상기 상측 제 2 경계값, 상기 좌측 제 1 경계값 및 상기 좌측 제 2 경계값은 상기 블록의 사이즈에 반비례하도록 설정될 수 있다.The upper first boundary value, the upper second boundary value, the left first boundary value, and the left second boundary value may be set to be in inverse proportion to the size of the block.

상기 상측 제 1 경계값은 상기 상측 제 2 경계값보다 크게 설정되고, 상기 좌측 제 1 경계값은 상기 좌측 제 2 경계값보다 크게 설정될 수 있다.The upper first boundary value may be set to be larger than the upper second boundary value, and the left first boundary value may be set to be larger than the left second boundary value.

상기 모드 선택부는: 상기 블록이 상기 제 1 타입인 경우, 인트라 예측 모드 중에서 평면 모드, DC 모드 및 상측을 향하는 모드를 선택하고, 상기 블록이 상기 제 2 타입인 경우, 인트라 예측 모드 중에서 평면 모드, DC 모드 및 좌측을 향하는 모드를 선택할 수 있다.Wherein the mode selection unit selects a plane mode, a DC mode, and an upward direction mode among the intra prediction modes when the block is the first type, and selects a plane mode, a DC mode, and an upward mode when the block is the first type, The DC mode and the left-facing mode can be selected.

상기 모드 선택부는: 상기 블록이 상기 제 1 타입인 경우, 인트라 예측 모드 중에서 수평 방향의 모드를 더 선택하고, 상기 블록이 상기 제 2 타입인 경우, 인트라 예측 모드 중에서 수직 방향의 모드를 더 선택할 수 있다.Wherein the mode selection unit further selects a mode in a horizontal direction among the intra prediction modes when the block is the first type and selects a mode in the vertical direction among the intra prediction modes when the block is the second type have.

상기 모드 선택부는: 상기 블록에 인접한 주변 블록의 부호화에 이용된 인트라 예측 모드를 더 선택할 수 있다.The mode selector may further select an intra prediction mode used for coding a neighboring block adjacent to the block.

본 발명의 일 실시예에 따른 영상 처리 장치는, 입력 블록의 주변에 위치한 참조 픽셀을 기반으로 인트라 예측을 수행하여 예측 블록을 생성하는 인트라 예측부; 참조 영상을 이용하여 입력 블록의 움직임 벡터를 산출하는 움직임 예측부; 상기 움직임 벡터를 기반으로 움직임 보상을 수행하여 예측 블록을 생성하는 움직임 보상부; 입력 블록과 예측 블록의 차분을 계산하여 잔여 블록을 생성하는 감산기; 잔여 블록에 대해 변환을 수행하여 변환 계수를 출력하는 변환부; 및 변환 계수를 양자화하여 양자화된 계수를 출력하는 양자화부;를 포함하며, 상기 인트라 예측부는: 입력 블록에 인접한 주변 픽셀들의 픽셀값의 차분을 계산하는 차분 계산부; 상기 차분을 기초로 입력 블록의 타입을 결정하는 블록 타입 결정부; 상기 입력 블록의 타입에 따라 인트라 예측 모드 중에서 일부를 선택하는 모드 선택부; 및 선택된 일부 모드 중에서 상기 입력 블록의 부호화에 이용될 인트라 예측 모드를 결정하는 인트라 예측 모드 결정부;를 포함할 수 있다.An image processing apparatus according to an exemplary embodiment of the present invention includes an intra predictor for generating intra prediction based on a reference pixel positioned around an input block to generate a prediction block; A motion prediction unit for calculating a motion vector of an input block using a reference image; A motion compensation unit for performing motion compensation based on the motion vector to generate a prediction block; A subtracter for calculating a difference between an input block and a prediction block to generate a residual block; A transform unit for transforming the residual block to output a transform coefficient; And a quantization unit for quantizing the transform coefficients and outputting the quantized coefficients, wherein the intraprediction unit comprises: a difference calculation unit for calculating a difference between pixel values of neighboring pixels adjacent to the input block; A block type determination unit for determining a type of an input block based on the difference; A mode selection unit for selecting a part of the intra prediction mode according to the type of the input block; And an intra prediction mode determiner for determining an intra prediction mode to be used for coding the input block among the selected partial modes.

본 발명의 일 실시예에 따르면, 인트라 예측을 위한 연산량이 감소하여 인코딩 속도가 향상될 수 있다.According to one embodiment of the present invention, the amount of computation for intraprediction is reduced and the encoding speed can be improved.

본 발명의 일 실시예에 따르면, 영상의 압축 효율을 손해보지 않으면서 인코딩에 걸리는 시간을 단축시킬 수 있다.According to an embodiment of the present invention, it is possible to shorten the encoding time without losing the compression efficiency of the image.

도 1은 본 발명의 일 실시예에 따른 인트라 예측 장치의 블록도이다.
도 2는 본 발명의 일 실시예에 따라 부호화될 영상 및 상기 영상을 구성하는 블록을 예시적으로 도시하는 도면이다.
도 3은 본 발명의 일 실시예에 따라 부호화될 현재 블록 및 그 주변 픽셀들을 예시적으로 도시하는 도면이다.
도 4는 본 발명의 일 실시예에 따라 차분이 계산되는 상측 주변 픽셀들의 픽셀값을 도시하는 도면이다.
도 5는 본 발명의 일 실시예에 따라 차분이 계산되는 좌측 주변 픽셀들의 픽셀값을 도시하는 도면이다.
도 6 및 도 7은 주변 픽셀들의 차분에 따라 발생 가능성이 높은 인트라 예측 모드의 방향을 예시적으로 나타내는 도면이다.
도 8은 본 발명의 일 실시예에 따라 주변 픽셀들의 차분에 기초하여 결정되는 블록의 타입을 예시적으로 나타내는 도면이다.
도 9는 본 발명의 다른 실시예에 따라 주변 픽셀들의 차분에 기초하여 결정되는 블록의 타입을 예시적으로 나타내는 도면이다.
도 10은 본 발명의 일 실시예에 따라 인트라 예측에 사용되는 인트라 예측 모드의 방향을 예시적으로 설명하는 도면이다.
도 11은 본 발명의 일 실시예에 따라 상측 고차분 블록에 대한 후보 인트라 예측 모드의 방향을 예시적으로 설명하는 도면이다.
도 12는 본 발명의 일 실시예에 따라 좌측 고차분 블록에 대한 후보 인트라 예측 모드의 방향을 예시적으로 설명하는 도면이다.
도 13은 본 발명의 다른 실시예에 따라 상측 고차분 블록에 대한 후보 인트라 예측 모드의 방향을 예시적으로 설명하는 도면이다.
도 14는 본 발명의 다른 실시예에 따라 좌측 고차분 블록에 대한 후보 인트라 예측 모드의 방향을 예시적으로 설명하는 도면이다.
도 15는 본 발명의 또 다른 실시예에 따라 상측 고차분 블록에 대한 후보 인트라 예측 모드의 방향을 예시적으로 설명하는 도면이다.
도 16은 본 발명의 또 다른 실시예에 따라 좌측 고차분 블록에 대한 후보 인트라 예측 모드의 방향을 예시적으로 설명하는 도면이다.
도 17은 본 발명의 일 실시예에 따른 인트라 예측 방법을 설명하는 도면이다.
도 18은 본 발명의 일 실시예에 따른 차분을 계산하는 단계 및 블록의 타입을 결정하는 단계를 설명하는 도면이다.
도 19는 본 발명의 다른 실시예에 따른 차분을 계산하는 단계 및 블록의 타입을 결정하는 단계를 설명하는 도면이다.
도 20은 본 발명의 일 실시예에 따라 제 1 타입의 블록에 대하여 후보 인트라 예측 모드를 선택하는 단계 및 부호화에 이용될 인트라 예측 모드를 결정하는 단계를 설명하는 도면이다.
도 21은 본 발명의 일 실시예에 따라 제 2 타입의 블록에 대하여 후보 인트라 예측 모드를 선택하는 단계 및 부호화에 이용될 인트라 예측 모드를 결정하는 단계를 설명하는 도면이다.
도 22는 본 발명의 일 실시예에 따른 영상 부호화 장치를 나타내는 블록도이다.
도 23은 본 발명의 일 실시예에 따른 영상 복호화 장치를 나타내는 블록도이다.
1 is a block diagram of an intra prediction apparatus according to an embodiment of the present invention.
FIG. 2 is a block diagram exemplarily showing an image to be encoded and blocks constituting the image according to an embodiment of the present invention.
3 is an exemplary diagram illustrating a current block to be encoded and neighboring pixels thereof according to an embodiment of the present invention.
4 is a diagram illustrating pixel values of upper neighboring pixels for which a difference is calculated according to an embodiment of the present invention.
5 is a diagram showing pixel values of left neighboring pixels for which a difference is calculated according to an embodiment of the present invention.
FIGS. 6 and 7 illustrate directions of intraprediction modes that are likely to occur according to the difference of neighboring pixels.
8 is an exemplary diagram illustrating the types of blocks that are determined based on the difference of neighboring pixels according to an embodiment of the present invention.
9 is an exemplary diagram illustrating the types of blocks that are determined based on the difference of neighboring pixels according to another embodiment of the present invention.
10 is a diagram for explaining a direction of an intra prediction mode used for intra prediction according to an embodiment of the present invention.
11 is a diagram illustrating an exemplary direction of a candidate intra prediction mode for an upper high-order differential block according to an embodiment of the present invention.
12 is a diagram illustrating an exemplary direction of a candidate intra prediction mode for a left high-order differential block according to an embodiment of the present invention.
13 is a diagram illustrating an exemplary direction of a candidate intra prediction mode for an upper high-order differential block according to another embodiment of the present invention.
FIG. 14 is a diagram illustrating an exemplary direction of a candidate intra prediction mode for a left high-order differential block according to another embodiment of the present invention.
15 is a diagram for explaining a direction of a candidate intra prediction mode for an upper high-order differential block according to another embodiment of the present invention.
16 is a diagram illustrating an exemplary direction of a candidate intra prediction mode for a left high-order differential block according to another embodiment of the present invention.
17 is a view for explaining an intra prediction method according to an embodiment of the present invention.
18 is a diagram illustrating steps of calculating a difference and determining a type of a block according to an embodiment of the present invention.
19 is a diagram illustrating steps of calculating a difference and determining a type of a block according to another embodiment of the present invention.
20 is a view for explaining a step of selecting a candidate intra prediction mode for a first type block and a step of determining an intra prediction mode to be used for encoding according to an embodiment of the present invention.
FIG. 21 is a view for explaining a step of selecting a candidate intra prediction mode for a block of a second type and determining an intra prediction mode to be used for encoding according to an embodiment of the present invention.
22 is a block diagram illustrating an image encoding apparatus according to an embodiment of the present invention.
23 is a block diagram illustrating an image decoding apparatus according to an embodiment of the present invention.

본 발명의 다른 이점 및 특징, 그리고 그것들을 달성하는 방법은 첨부되는 도면과 함께 상세하게 후술되는 실시예를 참조하면 명확해질 것이다. 그러나 본 발명은 이하에서 개시되는 실시예에 한정되는 것이 아니라 서로 다른 다양한 형태로 구현될 수 있으며, 단지 본 실시예는 본 발명의 개시가 완전하도록 하고, 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자에게 발명의 범주를 완전하게 알려주기 위해 제공되는 것이며, 본 발명은 청구항의 범주에 의해 정의될 뿐이다.Other advantages and features of the present invention and methods of achieving them will become apparent with reference to the embodiments described below in detail with reference to the accompanying drawings. The present invention may, however, be embodied in many different forms and should not be construed as being limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the invention to those skilled in the art. Is provided to fully convey the scope of the invention to those skilled in the art, and the invention is only defined by the scope of the claims.

만일 정의되지 않더라도, 여기서 사용되는 모든 용어들(기술 혹은 과학 용어들을 포함)은 이 발명이 속한 종래 기술에서 보편적 기술에 의해 일반적으로 수용되는 것과 동일한 의미를 가진다. 일반적인 사전들에 의해 정의된 용어들은 관련된 기술 그리고/혹은 본 출원의 본문에 의미하는 것과 동일한 의미를 갖는 것으로 해석될 수 있고, 그리고 여기서 명확하게 정의된 표현이 아니더라도 개념화되거나 혹은 과도하게 형식적으로 해석되지 않을 것이다.Unless defined otherwise, all terms (including technical or scientific terms) used herein have the same meaning as commonly accepted by the generic art in the prior art to which this invention belongs. Terms defined by generic dictionaries may be interpreted to have the same meaning as in the related art and / or in the text of this application, and may be conceptualized or overly formalized, even if not expressly defined herein I will not.

본 명세서에서 사용된 용어는 실시예들을 설명하기 위한 것이며 본 발명을 제한하고자 하는 것은 아니다. 본 명세서에서, 단수형은 문구에서 특별히 언급하지 않는 한 복수형도 포함한다. 명세서에서 사용되는 '포함한다' 및/또는 이 동사의 다양한 활용형들 예를 들어, '포함', '포함하는', '포함하고', '포함하며' 등은 언급된 조성, 성분, 구성요소, 단계, 동작 및/또는 소자는 하나 이상의 다른 조성, 성분, 구성요소, 단계, 동작 및/또는 소자의 존재 또는 추가를 배제하지 않는다. 본 명세서에서 '및/또는' 이라는 용어는 나열된 구성들 각각 또는 이들의 다양한 조합을 가리킨다.The terminology used herein is for the purpose of illustrating embodiments and is not intended to be limiting of the present invention. In the present specification, the singular form includes plural forms unless otherwise specified in the specification. As used herein, the terms' comprise 'and / or various forms of use of the verb include, for example,' including, '' including, '' including, '' including, Steps, operations, and / or elements do not preclude the presence or addition of one or more other compositions, components, components, steps, operations, and / or components. The term 'and / or' as used herein refers to each of the listed configurations or various combinations thereof.

한편, 본 명세서 전체에서 사용되는 '~부', '~기', '~블록', '~모듈' 등의 용어는 적어도 하나의 기능이나 동작을 처리하는 단위를 의미할 수 있다. 예를 들어 소프트웨어, FPGA 또는 ASIC과 같은 하드웨어 구성요소를 의미할 수 있다. 그렇지만 '~부', '~기', '~블록', '~모듈' 등이 소프트웨어 또는 하드웨어에 한정되는 의미는 아니다. '~부', '~기', '~블록', '~모듈'은 어드레싱할 수 있는 저장 매체에 있도록 구성될 수도 있고 하나 또는 그 이상의 프로세서들을 재생시키도록 구성될 수도 있다.It should be noted that the terms such as '~', '~ period', '~ block', 'module', etc. used in the entire specification may mean a unit for processing at least one function or operation. For example, a hardware component, such as a software, FPGA, or ASIC. However, '~ part', '~ period', '~ block', '~ module' are not meant to be limited to software or hardware. Modules may be configured to be addressable storage media and may be configured to play one or more processors. ≪ RTI ID = 0.0 >

따라서, 일 예로서 '~부', '~기', '~블록', '~모듈'은 소프트웨어 구성요소들, 객체지향 소프트웨어 구성요소들, 클래스 구성요소들 및 태스크 구성요소들과 같은 구성요소들과, 프로세스들, 함수들, 속성들, 프로시저들, 서브루틴들, 프로그램 코드의 세그먼트들, 드라이버들, 펌웨어, 마이크로 코드, 회로, 데이터, 데이터베이스, 데이터 구조들, 테이블들, 어레이들 및 변수들을 포함한다. 구성요소들과 '~부', '~기', '~블록', '~모듈'들 안에서 제공되는 기능은 더 작은 수의 구성요소들 및 '~부', '~기', '~블록', '~모듈'들로 결합되거나 추가적인 구성요소들과 '~부', '~기', '~블록', '~모듈'들로 더 분리될 수 있다. Thus, by way of example, the terms 'to', 'to', 'to block', 'to module' refer to components such as software components, object oriented software components, class components and task components Microcode, circuitry, data, databases, data structures, tables, arrays, and the like, as well as components, Variables. The functions provided in the components and in the sections ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ' , '~', '~', '~', '~', And '~' modules with additional components.

본 발명의 일 실시예에 따른 인트라 예측 장치 및 방법, 그리고 그를 이용한 영상 인코딩 방법은, 블록에 인접한 주변 픽셀들의 픽셀값의 차분을 계산하고, 상기 차분에 따라 발생 가능성이 높은 인트라 예측 모드를 후보 인트라 예측 모드로 선택할 수 있다. 그리고 나서, 상기 후보 인트라 예측 모드 중에서 블록의 부호화에 이용될 인트라 예측 모드를 결정함으로써, 인트라 예측 시 수행되는 연산의 양을 줄이고 인코딩 속도를 향상시킬 수 있다.An intra prediction apparatus and method and an image encoding method using the intra prediction apparatus according to an embodiment of the present invention are configured to calculate a difference between pixel values of neighboring pixels adjacent to a block and to generate an intra prediction mode, You can select in prediction mode. Then, by determining the intra prediction mode to be used for coding the block among the candidate intra prediction modes, it is possible to reduce the amount of operations performed in intra prediction and improve the encoding speed.

도 1은 본 발명의 일 실시예에 따른 인트라 예측 장치의 블록도이다.1 is a block diagram of an intra prediction apparatus according to an embodiment of the present invention.

도 1에 도시된 바와 같이, 상기 인트라 예측 장치(100)는 차분 계산부(11), 블록 타입 결정부(12), 모드 선택부(13) 및 인트라 예측 모드 결정부(14)를 포함할 수 있다.1, the intra prediction apparatus 100 may include a difference calculation unit 11, a block type determination unit 12, a mode selection unit 13, and an intra prediction mode determination unit 14 have.

상기 차분 계산부(11)는 블록에 인접한 주변 픽셀들의 픽셀값의 차분을 계산할 수 있다. 상기 블록 타입 결정부(12)는 상기 차분을 기초로 블록의 타입을 결정할 수 있다. 상기 모드 선택부(13)는 상기 블록의 타입에 따라 인트라 예측 모드 중에서 일부를 선택할 수 있다. 상기 인트라 예측 모드 결정부(14)는 선택된 일부 모드 중에서 상기 블록의 부호화에 이용될 인트라 예측 모드를 결정할 수 있다.The difference calculator 11 may calculate a difference between pixel values of neighboring pixels adjacent to the block. The block type determination unit 12 can determine the type of the block based on the difference. The mode selector 13 can select a part of the intra prediction modes according to the type of the block. The intra prediction mode determination unit 14 may determine an intra prediction mode to be used for coding the block among the selected partial modes.

도 2는 본 발명의 일 실시예에 따라 부호화될 영상 및 상기 영상을 구성하는 블록을 예시적으로 도시하는 도면이다.FIG. 2 is a block diagram exemplarily showing an image to be encoded and blocks constituting the image according to an embodiment of the present invention.

영상(20)은 인트라 모드 또는 인터 모드로 부호화되며, 영상을 구성하는 블록들에 대한 최적의 예측 방법을 결정하기 위해 각 블록마다 인트라 예측 방법 또는 인터 예측 방법이 선택적으로 적용될 수 있다. 본 발명의 일 실시예는 영상(20)을 구성하는 블록(201)을 인트라 예측하는 장치 및 방법을 제시한다.The image 20 is coded in an intra mode or an inter mode, and an intra prediction method or an inter prediction method may be selectively applied to each block to determine an optimal prediction method for blocks constituting the image. An embodiment of the present invention provides an apparatus and method for intraprediction of a block 201 constituting an image 20.

본 명세서에서 현재 블록은 영상(20)을 구성하는 다수의 블록 중에서 현재 부호화가 진행되는 대상 블록을 의미한다. 그리고, 주변 픽셀들은 현재 블록에 인접한 픽셀들로서, 일 실시예에 따르면 상기 현재 블록의 상측에 인접한 상측 주변 픽셀들과, 상기 현재 블록의 좌측에 인접한 좌측 주변 픽셀들을 포함할 수 있다.In this specification, the current block refers to a current block to be currently encoded among a plurality of blocks constituting the image 20. The neighboring pixels may include neighboring pixels on the upper side of the current block and neighboring neighboring pixels on the left side of the current block, according to an embodiment of the present invention.

도 3은 본 발명의 일 실시예에 따라 부호화될 현재 블록 및 그 주변 픽셀들을 예시적으로 도시하는 도면이다.3 is an exemplary diagram illustrating a current block to be encoded and neighboring pixels thereof according to an embodiment of the present invention.

도 3에 도시된 바와 같이, 본 발명의 일 실시예에 따른 주변 픽셀들(202, 203)은, 상기 현재 블록(201)의 상측에 인접하여 위치한 상측 주변 픽셀들(202), 및 상기 현재 블록(201)의 좌측에 인접하여 위치한 좌측 주변 픽셀들(203)을 포함할 수 있다.3, the neighboring pixels 202 and 203 according to an embodiment of the present invention include upper neighboring pixels 202 positioned on the upper side of the current block 201, Left neighboring pixels 203 located adjacent to the left side of the pixel 201.

하지만, 상기 주변 픽셀들(202, 203)은 전술한 바와 같이 상측 및 좌측에 위치한 픽셀들로 제한되지 않고, 실시예에 따라 현재 블록(201)의 상측 및 우측, 하측 및 좌측, 또는 하측 및 우측에 위치한 픽셀들을 포함할 수도 있다.However, the peripheral pixels 202 and 203 are not limited to the pixels positioned on the upper and left sides as described above, but may be formed on the upper and right sides, the lower and left sides, or the lower and right sides of the current block 201, As shown in FIG.

도 3에 도시된 바와 같이, 현재 블록(201)의 사이즈가 n × n인 경우, 상측 주변 픽셀들(202)은 A1 내지 An으로 구성된 n 개의 픽셀들일 수 있으며, 좌측 주변 픽셀들(203)은 L1 내지 Ln으로 구성된 n 개의 픽셀들일 수 있다.3, when the size of the current block 201 is n x n, the upper peripheral pixels 202 may be n pixels composed of A 1 through A n , and the left peripheral pixels 203 ) May be n pixels composed of L 1 to L n .

상기 차분 계산부(11)는 블록(201)에 인접한 주변 픽셀들(202, 203)의 픽셀값의 차분을 계산할 수 있다.The difference calculator 11 may calculate a difference between pixel values of neighboring pixels 202 and 203 adjacent to the block 201. [

본 발명의 일 실시예에 따르면, 상기 차분 계산부(11)는, 블록(201)의 상측에 인접한 상측 주변 픽셀들(202) 중 인접한 픽셀들 간의 픽셀값의 차분의 절대값을 합산하여 상측 주변 픽셀 차분값을 계산하고, 블록(201)의 좌측에 인접한 좌측 주변 픽셀들(203) 중 인접한 픽셀들 간의 픽셀값의 차분의 절대값을 합산하여 좌측 주변 픽셀 차분값을 계산할 수 있다.According to an embodiment of the present invention, the difference calculator 11 sums the absolute values of the differences of pixel values between adjacent pixels of the upper peripheral pixels 202 adjacent to the upper side of the block 201, The pixel difference value may be calculated and the left neighboring pixel difference value may be calculated by adding the absolute value of the difference of pixel values between adjacent pixels among the left neighboring pixels 203 adjacent to the left side of the block 201. [

도 4는 본 발명의 일 실시예에 따라 차분이 계산되는 상측 주변 픽셀들(202)의 픽셀값을 도시하는 도면이며, 도 5는 본 발명의 일 실시예에 따라 차분이 계산되는 좌측 주변 픽셀들(203)의 픽셀값을 도시하는 도면이다.4 is a diagram illustrating pixel values of upper neighboring pixels 202 whose difference is calculated according to an embodiment of the present invention. (203). ≪ / RTI >

상기 차분 계산부(11)는 상측 주변 픽셀들(202) 중 인접한 픽셀들(예컨대, A1과 A2, A2와 A3, A3와 A4, ... , An -1과 An) 간의 픽셀값의 차분을 계산할 수 있다. 여기서, 픽셀값은 휘도값을 의미하나, 이에 제한되지 않고 실시예에 따라 색차값, R, G, B 값 등을 의미할 수도 있다.The difference calculation section 11 is the upper side close to the pixel 202 of neighboring pixels of the (e. G., A 1 and A 2, A 2 and A 3, A 3 and A 4, ..., A n -1 and A n ) can be calculated. Here, the pixel value means the luminance value, but the present invention is not limited thereto, and may mean a color difference value, an R, a G, and a B value according to an embodiment.

예를 들어, 도 4를 참조하여 설명하면, 상기 차분 계산부(11)는 상측 주변 픽셀들(202)에 속하는 픽셀들 중 인접한 픽셀들 간의 픽셀값의 차분, 예컨대 Y1 - Y2, Y2 - Y3, ..., Yn -1 - Yn을 계산하고 이들의 절대값을 합산하여, 상측 주변 픽셀 차분값(DA)을 획득할 수 있다. For example, referring to FIG. 4, the difference calculator 11 calculates a difference between pixel values of adjacent pixels among the pixels belonging to the upper peripheral pixels 202, for example, Y 1 - Y 2 , Y 2 - Y 3 , ..., Y n -1 - Y n and summing their absolute values to obtain the upper surrounding pixel difference value (D A ).

마찬가지로, 상기 차분 계산부(11)는 좌측 주변 픽셀들(203) 중 인접한 픽셀들(예컨대, L1과 L2, L2와 L3, L3와 L4, ... , Ln -1과 Ln) 간의 픽셀값의 차분을 계산할 수 있다.Similarly, the difference calculator 11 calculates the difference between adjacent pixels (for example, L 1 and L 2 , L 2 and L 3 , L 3 and L 4 , ..., L n -1 And L n ) can be calculated.

예를 들어, 도 5를 참조하여 설명하면, 상기 차분 계산부(11)는 Y1 - Y2, Y2 - Y3, ..., Yn -1 - Yn을 계산하고 이들의 절대값을 합산하여, 좌측 주변 픽셀 차분값(DL)을 획득할 수 있다.For example, referring to FIG. 5, the difference calculator 11 calculates Y 1 - Y 2 , Y 2 - Y 3 , ..., Y n -1 - Y n , To obtain the left neighboring pixel difference value D L.

상기 블록 타입 결정부(12)는 계산된 차분을 기초로 블록의 타입을 결정할 수 있다. 일 실시예에 따르면, 상기 블록 타입 결정부(12)는 상측 주변 픽셀 차분값(DA)과 좌측 주변 픽셀 차분값(DL)을 각각 경계값과 비교하여 블록(201)의 타입을 결정할 수 있다.The block type determination unit 12 can determine the type of the block based on the calculated difference. According to one embodiment, the block type determination unit 12 may determine the type of the block 201 by comparing the upper peripheral pixel difference value D A and the left peripheral pixel difference value D L with boundary values, respectively have.

본 발명의 일 실시예에 따르면, 상기 블록 타입 결정부(12)는 상기 상측 주변 픽셀 차분값(DA)이 기 설정된 상측 경계값(BA)보다 크고, 상기 좌측 주변 픽셀 차분값(DL)이 기 설정된 좌측 경계값(BL)보다 작거나 같은 경우, 상기 블록(201)의 타입을 상측 고차분 블록으로 결정할 수 있다.According to an embodiment of the present invention, the block type determining unit 12 determines that the upper surrounding pixel difference value D A is larger than the predetermined upper boundary value B A and the left surrounding pixel difference value D L Is smaller than or equal to the predetermined left boundary value B L , the type of the block 201 may be determined as the upper side high differential block.

본 발명의 일 실시예에 따르면, 상기 블록 타입 결정부(12)는 상기 상측 주변 픽셀 차분값(DA)이 기 설정된 상측 경계값(BA)보다 작거나 같고, 상기 좌측 주변 픽셀 차분값(DL)이 기 설정된 좌측 경계값(BL)보다 큰 경우, 상기 블록(201)의 타입을 좌측 고차분 블록으로 결정할 수 있다.According to one embodiment, the block type determination section 12 is the upper side close to the pixel difference value (D A) is pre-set upper boundary value is smaller than or equal to (B A), wherein the left peripheral pixel difference value ( D L ) is greater than a predetermined left boundary value (B L ), the type of the block 201 may be determined as a left high-difference block.

본 발명의 일 실시예에 따르면, 상기 블록 타입 결정부(12)는 상기 상측 주변 픽셀 차분값(DA)이 기 설정된 상측 경계값(BA)보다 크고 상기 좌측 주변 픽셀 차분값(DL)이 기 설정된 좌측 경계값(BL)보다 큰 경우, 상기 블록(201)의 타입을 그 외 블록으로 결정할 수 있다.The block type determining unit 12 determines that the upper surrounding pixel difference value D A is larger than the predetermined upper boundary value B A and the left surrounding pixel difference value D L is greater than the predetermined upper boundary value B A , Is greater than the predetermined left boundary value (B L ), the type of the block 201 may be determined as another block.

본 발명의 일 실시예에 따르면, 상기 블록 타입 결정부(12)는 상기 상측 주변 픽셀 차분값(DA)이 기 설정된 상측 경계값(BA)보다 작거나 같고 상기 좌측 주변 픽셀 차분값(DL)이 상기 좌측 경계값(BL)보다 작거나 같은 경우, 상기 블록(201)의 타입을 그 외 블록으로 결정할 수 있다.According to one embodiment, the block type determination section 12 is the upper side close to the pixel difference value (D A) is pre-set upper boundary value is smaller than or equal to (B A) of the left around the pixel difference value (D L is less than or equal to the left boundary value B L , the type of the block 201 may be determined as another block.

이하, 설명의 편의를 위해 상측 고차분 블록은 제 1 타입으로, 좌측 고차분 블록은 제 2 타입으로, 그리고 그 외 블록은 제 3 타입으로 기재하기로 한다. Hereinafter, for convenience of description, the upper high-order difference block is described as a first type, the left high-order difference block as a second type, and the other blocks as a third type.

도 6 및 도 7은 블록의 주변 픽셀들의 차분에 따라 발생 가능성이 높은 인트라 예측 모드의 방향을 예시적으로 나타내는 도면이다.FIGS. 6 and 7 illustrate directions of intraprediction modes that are likely to occur in accordance with a difference between neighboring pixels of a block.

본 발명의 일 실시예는, 블록의 주변 픽셀들 중 일측 주변 픽셀들의 차분값이 크고 타측 주변 픽셀들의 차분값이 작은 경우, 해당 블록의 인트라 예측 모드는 차분값이 큰 일측을 향할 가능성이 높다는 점에 착안하여 후보 인트라 예측 모드를 선택할 수 있다.In one embodiment of the present invention, when the difference value of one neighboring pixel among the neighboring pixels of the block is large and the difference value of the neighboring neighboring pixels is small, it is highly likely that the intra prediction mode of the corresponding block is directed toward one side having a large difference value It is possible to select the candidate intra prediction mode.

예를 들어, 도 6에 도시된 바와 같이, 상측 주변 픽셀들(202)의 차분값(DA)이 소정의 상측 경계값(BA)보다 크고, 좌측 주변 픽셀들(203)의 차분값(DL)이 소정의 좌측 경계값(BL)보다 작거나 같으면, 상기 블록(201)을 구성하는 픽셀들 역시 수평 방향으로는 픽셀값의 차이가 크나 수직 방향으로는 픽셀값의 차이가 적을 가능성이 높다. 따라서, 이 경우 블록(201)의 인트라 예측 모드는 수직 모드(vertical mode)와 같이 상측을 향할 가능성이 높다고 예상할 수 있다.6, when the difference value D A of the upper peripheral pixels 202 is larger than the predetermined upper boundary value B A and the difference value D A of the left peripheral pixels 203 D L is less than or equal to the predetermined left boundary value B L , the pixels constituting the block 201 may have a large difference in pixel values in the horizontal direction, Is high. Therefore, in this case, it can be expected that the intra prediction mode of the block 201 is likely to be upward as in the vertical mode.

반면, 도 7에 도시된 바와 같이, 상측 주변 픽셀들(202)의 차분값(DA)이 소정의 상측 경계값(BA)보다 작거나 같고, 좌측 주변 픽셀들(203)의 차분값(DL)이 소정의 좌측 경계값(BL)보다 크면, 상기 블록(201)을 구성하는 픽셀들 역시 수직 방향으로는 픽셀값의 차이가 크나 수평 방향으로는 픽셀값의 차이가 적을 가능성이 높다. 따라서, 이 경우 블록(201)의 인트라 예측 모드는 수평 모드(horizontal mode)와 같이 좌측을 향할 가능성이 높다고 예상할 수 있다. 7, when the difference value D A of the upper peripheral pixels 202 is less than or equal to the predetermined upper boundary value B A and the difference value D A of the left peripheral pixels 203 D L is larger than the predetermined left boundary value B L , the pixels constituting the block 201 are also likely to have a large difference in pixel values in the vertical direction but a small difference in pixel values in the horizontal direction . Therefore, in this case, it is expected that the intra prediction mode of the block 201 is likely to be directed to the left side as in the horizontal mode.

도 8은 본 발명의 일 실시예에 따라 주변 픽셀들의 차분에 기초하여 결정되는 블록의 타입을 예시적으로 나타내는 도면이다.8 is an exemplary diagram illustrating the types of blocks that are determined based on the difference of neighboring pixels according to an embodiment of the present invention.

도 8에 도시된 바와 같이, 상기 블록 타입 결정부(12)는, 상측 주변 픽셀 차분값(DA)이 상측 경계값(BA)보다 크고, 좌측 주변 픽셀 차분값(DL)이 좌측 경계값(BL)보다 작거나 같은 경우, 상기 블록(201)을 제 1 타입으로 결정할 수 있다.8, the block type determining unit 12 determines that the upper peripheral pixel difference value D A is larger than the upper boundary value B A and the left peripheral pixel difference value D L is greater than the left boundary Is less than or equal to the value B L , the block 201 can be determined as the first type.

그리고, 상기 블록 타입 결정부(12)는, 상측 주변 픽셀 차분값(DA)이 상측 경계값(BA)보다 작거나 같고, 좌측 주변 픽셀 차분값(DL)이 좌측 경계값(BL)보다 큰 경우, 상기 블록(201)을 제 2 타입으로 결정할 수 있다.Further, the block type determination section 12, the upper side around the pixel difference value (D A) is the upper boundary value is smaller than or equal to (B A), the left side close to the pixel difference value (D L) the left boundary value (B L ), The block 201 can be determined as the second type.

그 외, 상기 블록 타입 결정부(12)는, 상측 주변 픽셀 차분값(DA)이 상측 경계값(BA)보다 크고, 좌측 주변 픽셀 차분값(DL)이 좌측 경계값(BL)보다 큰 경우; 또는 상측 주변 픽셀 차분값(DA)이 상측 경계값(BA)보다 작거나 같고, 좌측 주변 픽셀 차분값(DL)이 좌측 경계값(BL)보다 작거나 같은 경우, 상기 블록(201)을 제 3 타입으로 결정할 수 있다.In addition, the block type determination unit 12 determines whether or not the upper peripheral pixel difference value D A is larger than the upper boundary value B A and the left peripheral pixel difference value D L is greater than the left boundary value B L , If greater than; Or the upper surrounding pixel difference value D A is smaller than or equal to the upper boundary value B A and the left surrounding pixel difference value D L is less than or equal to the left boundary value B L , ) Can be determined as the third type.

본 발명의 일 실시예에 따르면, 상기 경계값은 블록(201)의 사이즈에 반비례하도록 설정될 수 있다. 예를 들어, 영상(20)을 구성하는 블록(201)의 사이즈가 둘 이상(예컨대, 4 × 4, 8 × 8, 16 × 16, 32 × 32)으로 다양하게 설정 가능한 경우, 상기 상측 경계값(BA) 및 상기 좌측 경계값(BL)은 블록(201)의 사이즈가 커질수록 작은 값으로 설정될 수 있다.According to an embodiment of the present invention, the boundary value may be set to be in inverse proportion to the size of the block 201. [ For example, when the size of the block 201 constituting the image 20 can be variously set to two or more sizes (for example, 4x4, 8x8, 16x16, 32x32) The left boundary value B A and the left boundary value B L may be set to a smaller value as the size of the block 201 increases.

도 8에 도시된 실시예는 경계값이 상측 주변 픽셀 차분값과 좌측 주변 픽셀 차분값에 대하여 각각 하나씩 설정되었으나, 실시예에 따라 상기 경계값은 상측 주변 픽셀 차분값과 좌측 주변 픽셀 차분값에 대하여 각각 둘 이상 설정될 수도 있다.In the embodiment shown in FIG. 8, the boundary value is set for each of the upper surrounding pixel difference value and the left surrounding pixel difference value. However, according to the embodiment, the boundary value may be set to a difference value between the upper peripheral pixel difference value and the left peripheral pixel difference value More than two of each may be set.

도 9는 본 발명의 다른 실시예에 따라 주변 픽셀들의 차분에 기초하여 결정되는 블록의 타입을 예시적으로 나타내는 도면이다.9 is an exemplary diagram illustrating the types of blocks that are determined based on the difference of neighboring pixels according to another embodiment of the present invention.

도 9에 도시된 실시예는 상측 주변 픽셀 차분값(DA)과 좌측 주변 픽셀 차분값(DL)에 대하여 각각 두 개의 경계값이 설정된다.In the embodiment shown in FIG. 9, two boundary values are set for the upper peripheral pixel difference value D A and the left peripheral pixel difference value D L , respectively.

도 9에 도시된 바와 같이, 상기 블록 타입 결정부(12)는, 상기 상측 주변 픽셀 차분값(DA)이 기 설정된 상측 제 1 경계값(BAH)보다 크고, 상기 좌측 주변 픽셀 차분값(DL)이 기 설정된 좌측 제 2 경계값(BLL)보다 작거나 같은 경우, 상기 블록(201)을 제 1 타입으로 결정할 수 있다.9, the block type determining unit 12 determines that the upper surrounding pixel difference value D A is larger than the predetermined upper first boundary value B AH and the left surrounding pixel difference value D A D L ) is less than or equal to the preset left second boundary value B LL , the block 201 can be determined as the first type.

그리고, 상기 블록 타입 결정부(12)는, 상기 상측 주변 픽셀 차분값(DA)이 기 설정된 상측 제 2 경계값(BAL)보다 작거나 같고, 상기 좌측 주변 픽셀 차분값(DL)이 기 설정된 좌측 제 1 경계값(BLH)보다 큰 경우, 상기 블록(201)을 제 2 타입으로 결정할 수 있다.The block type determination unit 12 determines whether or not the upper surrounding pixel difference value D A is less than or equal to a preset upper second boundary value B AL and the left surrounding pixel difference value D L is greater than or equal to And determines the block 201 as the second type when the first left boundary value is greater than the predetermined left boundary value B LH .

그 외, 상기 블록 타입 결정부(12)는, (i) 상기 상측 주변 픽셀 차분값(DA)이 기 설정된 상측 제 1 경계값(BAH)보다 크고, 상기 좌측 주변 픽셀 차분값(DL)이 기 설정된 좌측 제 1 경계값(BLH)보다 큰 경우; (ii) 상기 상측 주변 픽셀 차분값(DA)이 기 설정된 상측 제 2 경계값(BAL)보다 작거나 같고, 상기 좌측 주변 픽셀 차분값(DL)이 기 설정된 좌측 제 2 경계값(BLL)보다 작거나 같은 경우; (iii) 상기 상측 주변 픽셀 차분값(DA)이 기 설정된 상측 제 1 경계값(BAH)보다 작거나 같고 기 설정된 상측 제 2 경계값(BAL)보다 큰 경우; 그리고 (iv) 상기 좌측 주변 픽셀 차분값(DL)이 기 설정된 좌측 제 1 경계값(BLH)보다 작거나 같고 기 설정된 좌측 제 2 경계값(BLL)보다 큰 경우, 상기 블록(201)을 제 3 타입으로 결정할 수 있다.In addition, the block type determining unit 12 determines whether or not (i) the upper surrounding pixel difference value D A is greater than a predetermined upper first boundary value B AH and the left surrounding pixel difference value D L ) Is greater than a predetermined first left boundary value (B LH ); (ii) when the upper surrounding pixel difference value D A is less than or equal to a preset upper second boundary value B AL and the left surrounding pixel difference value D L is less than or equal to a predetermined left second boundary value B LL ); (iii) when the upper peripheral pixel difference value D A is smaller than or equal to a predetermined upper first boundary value B AH and larger than a predetermined upper second boundary value B AL ; And (iv) if the left neighboring pixel difference value D L is less than or equal to a predetermined left boundary first value B LH and greater than a predetermined left second boundary value B LL , Can be determined as the third type.

도 8에 도시된 실시예와 마찬가지로, 상기 상측 제 1 경계값(BAH), 상기 상측 제 2 경계값(BAL), 상기 좌측 제 1 경계값(BLH) 및 상기 좌측 제 2 경계값(BLL)은 블록의 사이즈에 반비례할 수 있다.8, the upper first boundary value B AH , the upper second boundary value B AL , the left first boundary value B LH , and the left second boundary value ( B LL ) may be inversely proportional to the size of the block.

상기 모드 선택부(13)는 상기 블록의 타입에 따라 인트라 예측 모드 중에서 일부를 선택할 수 있다. 다시 말해, 상기 모드 선택부(13)는 주변 픽셀들의 차분값을 기초로 결정된 블록의 타입에 따라, 인트라 예측 모드 중에서 일부를 선택하여 블록에 대한 후보 인트라 예측 모드를 결정할 수 있다.The mode selector 13 can select a part of the intra prediction modes according to the type of the block. In other words, the mode selection unit 13 may select a portion of the intra-prediction mode according to the type of the block determined based on the difference value of the neighboring pixels to determine the candidate intra-prediction mode for the block.

도 10은 본 발명의 일 실시예에 따라 인트라 예측에 사용되는 인트라 예측 모드의 방향을 예시적으로 설명하는 도면이다.10 is a diagram for explaining a direction of an intra prediction mode used for intra prediction according to an embodiment of the present invention.

도 10에 도시된 바와 같이, 인트라 예측 모드는 평면 모드, DC 모드, 블록의 상측을 향하는 모드들, 그리고 블록의 좌측을 향하는 모드들로 구성될 수 있다. 도 10에 도시된 인트라 예측 모드는 HEVC(High Efficiency Video Coding)의 인트라 예측에 사용되는 35 개의 모드들을 도시한다. 본 발명의 일 실시예에 따른 인트라 예측은 HEVC를 기반으로 수행될 수 있으나, 실시예에 따라 HEVC 외에 H.264, MPEG 등 다른 인코딩 표준 기술을 기반으로 수행될 수도 있다.As shown in FIG. 10, the intra-prediction mode may be composed of a plane mode, a DC mode, modes directed toward the upper side of the block, and modes directed toward the left side of the block. The intra-prediction mode shown in FIG. 10 shows 35 modes used for intraprediction of HEVC (High Efficiency Video Coding). The intra prediction according to an exemplary embodiment of the present invention may be performed based on the HEVC, but may be performed based on other encoding standard techniques such as H.264 and MPEG in addition to the HEVC according to the embodiment.

상기 모드 선택부(13)는 블록(201)의 타입에 따라 상기 인트라 예측 모드 중에서 발생 가능성이 높은 모드를 선택하여 후보 인트라 예측 모드를 결정할 수 있다.The mode selector 13 can select a candidate intra prediction mode by selecting a mode likely to occur in the intra prediction mode according to the type of the block 201. [

도 11은 본 발명의 일 실시예에 따라 제 1 타입의 블록에 대하여 선택된 후보 인트라 예측 모드의 방향을 예시적으로 설명하는 도면이다.11 is a diagram illustrating an exemplary direction of a candidate intra prediction mode selected for a first type block according to an embodiment of the present invention.

도 11에 도시된 바와 같이, 상기 모드 선택부(13)는 제 1 타입의 블록에 대하여, 인트라 예측 모드(모드 0 내지 34) 중에서 평면 모드(모드 0), DC 모드(모드 1) 및 상측을 향하는 모드(모드 18 내지 34)를 후보 인트라 예측 모드에 포함시킬 수 있다. 다시 말해, 상기 모드 선택부(13)는 제 1 타입의 블록에 대하여, 전체 인트라 예측 모드(모드 0 내지 34) 중에서 좌측을 향하는 모드(모드 2 내지 17)를 배제시켜 후보 인트라 예측 모드를 결정할 수 있다.11, for the first type block, the mode selection unit 13 selects one of the intra-prediction mode (mode 0 to mode 34), the plane mode (mode 0), the DC mode (Modes 18 to 34) may be included in the candidate intra prediction mode. In other words, the mode selection unit 13 can determine the candidate intra-prediction mode by excluding the left-side mode (modes 2 to 17) of the entire intra-prediction modes (modes 0 to 34) have.

전술한 바와 같이, 제 1 타입의 블록은 상측 주변 픽셀들의 차분값(DA)이 크고 좌측 주변 픽셀들의 차분값(DL)이 작기 때문에, 해당 블록의 인트라 예측 모드는 상측을 향하는 모드로 결정될 가능성이 높다고 예상할 수 있다. 이 점에 착안하여, 상기 모드 선택부(13)는 제 1 타입의 블록의 경우, 전체 인트라 예측 모드 중에서 좌측을 향하는 모드를 배제시키고 상측을 향하는 모드를 후보 인트라 예측 모드에 포함시킬 수 있다.As described above, since the differential value (D A ) of the upper peripheral pixels and the difference value (D L ) of the left peripheral pixels are small, the intra prediction mode of the block of the first type is determined to be an upward facing mode It can be expected that the possibility is high. In consideration of this point, in the case of the first type block, the mode selection unit 13 may exclude the leftward direction mode from the entire intra prediction mode and include the upward direction mode in the candidate intra prediction mode.

도 12는 본 발명의 일 실시예에 따라 제 2 타입의 블록에 대하여 선택된 후보 인트라 예측 모드의 방향을 예시적으로 설명하는 도면이다.12 is an exemplary diagram illustrating directions of candidate intraprediction modes selected for a second type of block according to an embodiment of the present invention.

도 12에 도시된 바와 같이, 상기 모드 선택부(13)는 제 2 타입의 블록에 대하여, 인트라 예측 모드(모드 0 내지 34) 중에서 평면 모드(모드 0), DC 모드(모드 1) 및 좌측을 향하는 모드(모드 2 내지 18)를 후보 인트라 예측 모드에 포함시킬 수 있다. 다시 말해, 상기 모드 선택부(13)는 제 2 타입의 블록에 대하여, 전체 인트라 예측 모드(모드 0 내지 34) 중에서 상측을 향하는 모드(모드 19 내지 34)를 배제시켜 후보 인트라 예측 모드를 결정할 수 있다.12, for the second type of block, the mode selection unit 13 selects one of the intra mode (mode 0 to mode 34), the DC mode (mode 1), and the left side (Modes 2 to 18) may be included in the candidate intra prediction mode. In other words, the mode selector 13 can determine the candidate intra prediction mode by excluding the modes (modes 19 to 34) directed upward from the entire intra prediction modes (modes 0 to 34) for the second type block have.

전술한 바와 같이, 제 2 타입의 블록은 상측 주변 픽셀들의 차분값(DA)이 작고 좌측 주변 픽셀들의 차분값(DL)이 크기 때문에, 해당 블록의 인트라 예측 모드는 좌측을 향하는 모드로 결정될 가능성이 높다고 예상할 수 있다. 이 점에 착안하여, 상기 모드 선택부(13)는 제 2 타입의 블록의 경우, 전체 인트라 예측 모드 중에서 상측을 향하는 모드를 배제시키고 좌측을 향하는 모드를 후보 인트라 예측 모드에 포함시킬 수 있다.As described above, since the difference value D A of the upper peripheral pixels and the difference value D L of the left peripheral pixels are large, the intra prediction mode of the block of the second type is determined to be a leftward mode It can be expected that the possibility is high. In consideration of this point, in the case of the block of the second type, the mode selection unit 13 may exclude the upward direction mode from the entire intra prediction mode and include the leftward direction mode in the candidate intra prediction mode.

일 실시예에 따르면, 상기 모드 선택부(13)는 제 3 타입의 블록의 경우, 특정 모드를 배제시키지 않고 인트라 예측 모드 전부(0 내지 34)를 후보 인트라 예측 모드로 결정할 수 있다. 다시 말해, 제 3 타입의 블록의 경우, 전술한 바와 같은 모드 선택 과정이 수행되지 않을 수 있다.According to one embodiment, in the case of the block of the third type, the mode selection unit 13 may determine all of the intra prediction modes (0 to 34) as the candidate intra prediction mode without excluding the specific mode. In other words, in the case of the third type of block, the mode selection process as described above may not be performed.

도 13은 본 발명의 다른 실시예에 따라 제 1 타입의 블록에 대하여 선택된 후보 인트라 예측 모드의 방향을 예시적으로 설명하는 도면이다.13 is a diagram illustrating an exemplary direction of a candidate intra prediction mode selected for a first type of block according to another embodiment of the present invention.

이 실시예에 따르면, 상기 모드 선택부(13)는 제 1 타입의 블록에 대하여, 평면 모드(모드 0), DC 모드(모드 1), 상측을 향하는 모드(모드 18 내지 34) 외에, 수평 방향의 모드(모드 10)를 후보 인트라 예측 모드에 더 포함시킬 수 있다.According to this embodiment, in addition to the plane mode (mode 0), DC mode (mode 1), and upward mode (modes 18 to 34) for the first type block, (Mode 10) of the intra prediction mode can be further included in the candidate intra prediction mode.

이 경우, 상기 모드 선택부(13)는 수평 방향의 모드(모드 10)를 후보 인트라 예측 모드에 더 포함시키면서, 상측을 향하는 모드 중에서 우상측을 향하는 모드(모드 34)를 후보 인트라 예측 모드에서 배제시킬 수도 있다.In this case, the mode selector 13 may further include a horizontal mode (mode 10) in the candidate intra-prediction mode, and a mode (mode 34) of the upward-facing mode toward the upper right side is excluded from the candidate intra- .

도 14는 본 발명의 다른 실시예에 따라 제 2 타입의 블록에 대하여 선택된 후보 인트라 예측 모드의 방향을 예시적으로 설명하는 도면이다.14 is an exemplary diagram illustrating directions of a candidate intra prediction mode selected for a second type of block according to another embodiment of the present invention.

이 실시예에 따르면, 상기 모드 선택부(13)는 제 2 타입의 블록에 대하여, 평면 모드(모드 0), DC 모드(모드 1), 좌측을 향하는 모드(모드 2 내지 18) 외에, 수직 방향의 모드(모드 26)를 후보 인트라 예측 모드에 더 포함시킬 수 있다.According to this embodiment, in addition to the plane mode (mode 0), the DC mode (mode 1), and the leftward mode (modes 2 to 18), the mode selection unit 13 selects, (Mode 26) of the intra prediction mode can be further included in the candidate intra prediction mode.

이 경우, 상기 모드 선택부(13)는 수직 방향의 모드(모드 26)를 후보 인트라 예측 모드에 더 포함시키면서, 좌측을 향하는 모드 중에서 좌하측을 향하는 모드(모드 2)를 후보 인트라 예측 모드에서 배제시킬 수도 있다.In this case, the mode selector 13 further includes a mode (mode 26) in the vertical direction in the candidate intra prediction mode, and a mode (mode 2) in the lower left direction in the leftward mode is excluded from the candidate intra prediction mode .

도 15는 본 발명의 또 다른 실시예에 따라 제 1 타입의 블록에 대하여 선택된 후보 인트라 예측 모드의 방향을 예시적으로 설명하는 도면이다.15 is a diagram illustrating an exemplary direction of a candidate intra prediction mode selected for a first type of block according to another embodiment of the present invention.

본 발명의 또 다른 실시예에 따르면, 상기 모드 선택부(13)는 제 1 타입의 블록에 대하여, 평면 모드(모드 0), DC 모드(모드 1), 상측을 향하는 모드(모드 18 내지 34) 외에, 블록(201)에 인접한 주변 블록의 부호화에 이용되는 인트라 예측 모드를 후보 인트라 예측 모드에 더 포함시킬 수 있다.(Mode 0), a DC mode (mode 1), and a mode directed to the upper side (modes 18 to 34) with respect to the first type block, according to another embodiment of the present invention, The intra prediction mode used for coding the neighboring block adjacent to the block 201 may be further included in the candidate intra prediction mode.

현재 블록의 인트라 예측 모드는 해당 블록에 인접한 주변 블록의 인트라 예측 모드와 같은 방향을 향할 가능성이 높다는 점에 착안하여, 이 실시예에서 상기 모드 선택부(13)는 주변 블록을 부호화하기 위해 이용된 인트라 예측 모드를 현재 블록의 후보 인트라 예측 모드에 더 포함시킬 수 있다.It is highly likely that the intra prediction mode of the current block is directed in the same direction as the intra prediction mode of the neighboring block adjacent to the block. In this embodiment, the mode selector 13 selects the intra prediction mode The intra prediction mode can be further included in the candidate intra prediction mode of the current block.

예를 들어, 주변 블록의 인트라 예측 모드가 모드 14인 경우, 상기 모드 선택부(13)는 제 1 타입의 블록에 대하여, 평면 모드(모드 0), DC 모드(모드 1), 상측을 향하는 모드(모드 18 내지 34) 외에, 모드 14를 후보 인트라 예측 모드에 더 포함시킬 수 있다.For example, when the intra-prediction mode of the neighboring block is mode 14, the mode selector 13 selects one of a plane mode (mode 0), a DC mode (mode 1) (Modes 18 to 34), mode 14 may be further included in the candidate intra prediction mode.

실시예에 따라, 상기 모드 선택부(13)는 제 1 타입의 블록에 대하여, 평면 모드(모드 0), DC 모드(모드 1), 상측을 향하는 모드(모드 18 내지 34), 수평 방향의 모드(모드 10), 및 주변 블록의 인트라 예측 모드(예컨대, 모드 14)를 후보 인트라 예측 모드에 포함시킬 수 있다.According to the embodiment, the mode selection unit 13 selects the mode of the first type from among a plane mode (mode 0), a DC mode (mode 1), an upward mode (modes 18 to 34) (Mode 10), and a neighboring block's intra-prediction mode (e.g., mode 14) may be included in the candidate intra-prediction mode.

이 경우, 도 15에 도시된 바와 같이, 상측을 향하는 모드 중에서 우상측을 향하는 모드(모드 34)와, 우상측을 향하는 모드에 인접한 모드(모드 33)가 후보 인트라 예측 모드에서 배제될 수도 있다.In this case, as shown in Fig. 15, a mode (mode 34) toward the upper right side and a mode (mode 33) adjacent to the upper right side mode may be excluded from the candidate intra prediction mode.

실시예에 따라, 주변 블록이 둘 이상이며 각 주변 블록의 인트라 예측 모드가 서로 상이한 경우, 상기 모드 선택부(13)는 둘 이상의 주변 블록의 인트라 예측 모드를 후보 인트라 예측 모드에 포함시킬 수 있다.According to an embodiment, when there are two or more neighboring blocks and the intra prediction modes of the neighboring blocks are different from each other, the mode selection unit 13 may include the intra prediction mode of two or more neighboring blocks in the candidate intra prediction mode.

일 예로, 주변 블록의 인트라 예측 모드가 모드 14, 15로 두 개인 경우, 상기 모드 선택부(13)는 제 1 타입의 블록에 대하여, 평면 모드(모드 0), DC 모드(모드 1), 상측을 향하는 모드(모드 18 내지 34), 수평 방향의 모드(모드 10), 및 주변 블록의 인트라 예측 모드(모드 14, 15)를 후보 인트라 예측 모드에 포함시킬 수 있다.For example, when there are two intra prediction modes of the neighboring blocks in modes 14 and 15, the mode selection unit 13 selects one of the following four modes: plane mode (mode 0), DC mode (mode 1) (Modes 14 and 15) of the neighboring blocks can be included in the candidate intra prediction mode.

이 경우, 상측을 향하는 모드 중에서 우상측을 향하는 모드(모드 34)와, 그에 인접한 두 개의 모드(모드 32, 33)가 후보 인트라 예측 모드에서 배제될 수도 있다.In this case, a mode (mode 34) toward the upper right side and two modes (modes 32 and 33) adjacent thereto may be excluded from the candidate intra-prediction mode.

다른 예로, 주변 블록의 인트라 예측 모드가 모드 14, 15, 16으로 세 개인 경우, 상기 모드 선택부(13)는 제 1 타입의 블록에 대하여, 평면 모드(모드 0), DC 모드(모드 1), 상측을 향하는 모드(모드 18 내지 34), 수평 방향의 모드(모드 10), 및 주변 블록의 인트라 예측 모드(모드 14, 15, 16)를 후보 인트라 예측 모드에 포함시킬 수 있다.For example, when the intraprediction mode of the neighboring block is three in modes 14, 15, and 16, the mode selection unit 13 selects one of the planar mode (mode 0), the DC mode (mode 1) (Modes 18 to 34), a horizontal mode (mode 10), and a neighboring block's intra-prediction modes (modes 14, 15, and 16) may be included in the candidate intra-prediction mode.

이 경우, 상측을 향하는 모드 중에서 우상측을 향하는 모드(모드 34)와, 그에 인접한 세 개의 모드(모드 31, 32, 33)가 후보 인트라 예측 모드에서 배제될 수도 있다.In this case, a mode (mode 34) toward the upper right side and three modes (modes 31, 32, 33) adjacent thereto of the upward facing mode may be excluded from the candidate intra prediction mode.

도 16은 본 발명의 또 다른 실시예에 따라 제 2 타입의 블록에 대하여 선택된 후보 인트라 예측 모드의 방향을 예시적으로 설명하는 도면이다.16 is a diagram illustrating an exemplary direction of a candidate intra prediction mode selected for a second type of block according to another embodiment of the present invention.

본 발명의 또 다른 실시예에 따르면, 상기 모드 선택부(13)는 제 2 타입의 블록에 대하여, 평면 모드(모드 0), DC 모드(모드 1), 좌측을 향하는 모드(모드 2 내지 18) 외에, 블록에 인접한 주변 블록의 부호화에 이용되는 인트라 예측 모드를 후보 인트라 예측 모드에 더 포함시킬 수 있다.According to another embodiment of the present invention, the mode selector 13 selects one of the planar mode (mode 0), the DC mode (mode 1), the leftward mode (modes 2 to 18) The intra prediction mode used for coding the neighboring blocks adjacent to the block may be further included in the candidate intra prediction mode.

예를 들어, 주변 블록의 인트라 예측 모드가 모드 22인 경우, 상기 모드 선택부(13)는 제 2 타입의 블록에 대하여, 평면 모드(모드 0), DC 모드(모드 1), 좌측을 향하는 모드(모드 2 내지 18) 외에, 모드 22를 후보 인트라 예측 모드에 더 포함시킬 수 있다.For example, when the intra-prediction mode of the neighboring block is mode 22, the mode selector 13 selects one of a plane mode (mode 0), a DC mode (mode 1), a leftward mode (Modes 2 to 18), mode 22 may be further included in the candidate intra prediction mode.

실시예에 따라, 상기 모드 선택부(13)는 제 2 타입의 블록에 대하여, 평면 모드(모드 0), DC 모드(모드 1), 좌측을 향하는 모드(모드 2 내지 18), 수직 방향의 모드(모드 26), 및 주변 블록의 인트라 예측 모드(예컨대, 모드 22)를 후보 인트라 예측 모드에 포함시킬 수 있다.According to the embodiment, the mode selection unit 13 selects the mode of the second type from among a plane mode (mode 0), a DC mode (mode 1), a leftward mode (modes 2 to 18) (Mode 26), and the intra-prediction mode (e.g., mode 22) of the neighboring block in the candidate intra-prediction mode.

이 경우, 도 16에 도시된 바와 같이, 좌측을 향하는 모드 중에서 좌하측을 향하는 모드(모드 2)와, 좌하측을 향하는 모드에 인접한 모드(모드 3)가 후보 인트라 예측 모드에서 배제될 수도 있다.In this case, as shown in Fig. 16, the left-downward mode (mode 2) and the left-side downward mode (mode 3) may be excluded from the candidate intra-prediction mode.

실시예에 따라, 주변 블록이 둘 이상이며 각 주변 블록의 인트라 예측 모드가 서로 상이한 경우, 상기 모드 선택부(13)는 둘 이상의 주변 블록의 인트라 예측 모드를 후보 인트라 예측 모드에 포함시킬 수 있다.According to an embodiment, when there are two or more neighboring blocks and the intra prediction modes of the neighboring blocks are different from each other, the mode selection unit 13 may include the intra prediction mode of two or more neighboring blocks in the candidate intra prediction mode.

일 예로, 주변 블록의 인트라 예측 모드가 모드 21, 22로 두 개인 경우, 상기 모드 선택부(13)는 제 2 타입의 블록에 대하여, 평면 모드(모드 0), DC 모드(모드 1), 좌측을 향하는 모드(모드 2 내지 18), 수직 방향의 모드(모드 26), 및 주변 블록의 인트라 예측 모드(모드 21, 22)를 후보 인트라 예측 모드에 포함시킬 수 있다.For example, when there are two intra prediction modes of the neighboring blocks in the modes 21 and 22, the mode selection unit 13 selects one of the planar mode (mode 0), the DC mode (mode 1) (Modes 2 to 18), a vertical mode (mode 26), and a neighboring block's intra-prediction mode (modes 21 and 22) can be included in the candidate intra-prediction mode.

이 경우, 좌측을 향하는 모드 중에서 좌하측을 향하는 모드(모드 2)와, 그에 인접한 두 개의 모드(모드 3, 4)가 후보 인트라 예측 모드에서 배제될 수도 있다.In this case, a left-downward mode (mode 2) and two adjacent modes (modes 3 and 4) may be excluded from the candidate intra-prediction mode.

다른 예로, 주변 블록의 인트라 예측 모드가 모드 20, 21, 22로 세 개인 경우, 상기 모드 선택부(13)는 제 2 타입의 블록에 대하여, 평면 모드(모드 0), DC 모드(모드 1), 좌측을 향하는 모드(모드 2 내지 18), 수직 방향의 모드(모드 26), 및 주변 블록의 인트라 예측 모드(모드 20, 21, 22)를 후보 인트라 예측 모드에 포함시킬 수 있다.For example, when the intra-prediction mode of the neighboring block is divided into three modes 20, 21, and 22, the mode selector 13 selects one of the planar mode (mode 0), the DC mode (mode 1) (Modes 2 to 18), the vertical mode (mode 26), and the intra-prediction modes (modes 20, 21 and 22) of the neighboring blocks can be included in the candidate intra-prediction mode.

이 경우, 좌측을 향하는 모드 중에서 좌하측을 향하는 모드(모드 2)와, 그에 인접한 세 개의 모드(모드 3, 4, 5)가 후보 인트라 예측 모드에서 배제될 수도 있다.In this case, a left-downward mode (mode 2) and three adjacent modes (modes 3, 4, 5) may be excluded from the candidate intra-prediction mode.

도 17은 본 발명의 일 실시예에 따른 인트라 예측 방법을 설명하는 도면이다.17 is a view for explaining an intra prediction method according to an embodiment of the present invention.

도 17에 도시된 바와 같이, 상기 인트라 예측 방법(400)은, 블록에 인접한 주변 픽셀들의 픽셀값의 차분을 계산하는 단계(S41), 상기 차분을 기초로 상기 블록의 타입을 결정하는 단계(S42), 상기 블록의 타입에 따라 인트라 예측 모드 중에서 일부를 선택하여 후보 인트라 예측 모드를 결정하는 단계(S43), 및 상기 후보 인트라 예측 모드 중에서 상기 블록의 부호화에 이용될 인트라 예측 모드를 결정하는 단계(S44)를 포함할 수 있다.17, the intraprediction method 400 includes a step S41 of calculating a difference between pixel values of neighboring pixels adjacent to a block, a step S42 of determining a type of the block based on the difference A step (S43) of selecting a candidate intra prediction mode by selecting a part of the intra prediction modes according to the type of the block, and determining an intra prediction mode to be used for coding the block in the candidate intra prediction mode S44).

도 18은 본 발명의 일 실시예에 따른 차분을 계산하는 단계 및 블록의 타입을 결정하는 단계를 설명하는 도면이다.18 is a diagram illustrating steps of calculating a difference and determining a type of a block according to an embodiment of the present invention.

일 실시예에 따르면, 상기 차분을 계산하는 단계(S41)는, 블록(201)의 상측에 인접한 상측 주변 픽셀들(202)의 차분을 계산하는 단계, 및 블록의 좌측에 인접한 좌측 주변 픽셀들(203)의 차분을 계산하는 단계를 포함할 수 있다. 다시 말해, 블록의 주변 픽셀들은, 블록의 상측에 인접한 상측 주변 픽셀들과, 블록의 좌측에 인접한 좌측 주변 픽셀들을 포함할 수 있다.According to one embodiment, calculating the difference (S41) includes calculating a difference between upper neighboring pixels 202 adjacent to the upper side of the block 201, and calculating a difference between neighboring neighboring neighboring pixels 203). ≪ / RTI > In other words, the surrounding pixels of the block may include upper peripheral pixels adjacent to the upper side of the block and left peripheral pixels adjacent to the left side of the block.

일 실시예에 따르면, 상기 상측 주변 픽셀들의 차분을 계산하는 단계는, 상측 주변 픽셀들(202) 중 인접한 픽셀들 간의 픽셀값의 차분의 절대값을 합산하여, 상측 주변 픽셀 차분값(DA)을 계산하는 단계를 포함할 수 있다. 일 실시예에 따르면, 상기 좌측 주변 픽셀들의 차분을 계산하는 단계는, 좌측 주변 픽셀들(203) 중 인접한 픽셀들 간의 픽셀값의 차분의 절대값을 합산하여, 좌측 주변 픽셀 차분값(DL)을 계산하는 단계를 포함할 수 있다.According to an exemplary embodiment, the calculating of the difference of the upper neighboring pixels may include calculating an upper neighboring pixel difference value D A by summing absolute values of differences between pixel values between neighboring pixels of the upper neighboring pixels 202, And the step of calculating According to one embodiment, the step of calculating the difference of the left neighboring pixels may include calculating a left neighboring pixel difference value D L by summing absolute values of differences of pixel values between adjacent pixels of the left neighboring pixels 203, And the step of calculating

도 18에 도시된 바와 같이, 본 발명의 일 실시예에 따르면, 상기 블록의 타입을 결정하는 단계(S42)는, 상측 주변 픽셀 차분값(DA)이 기 설정된 상측 경계값(BA)보다 크고(S4211에서 예), 좌측 주변 픽셀 차분값(DL)이 기 설정된 좌측 경계값(BL)보다 작거나 같은 경우(S4212에서 아니오), 블록의 타입을 상측 고차분 블록, 다시 말해 제 1 타입으로 결정하는 단계(S4214)를 포함할 수 있다.As shown in Figure 18, according to one embodiment of the present invention, more step (S42), the image side around the pixel difference value (D A) is pre-set upper boundary value (B A) for determining the type of the block If the left neighboring pixel difference value D L is smaller than or equal to the predetermined left boundary value B L (NO in S 4212), the type of the block is referred to as an upper high-difference block, that is, (Step S4214). ≪ / RTI >

본 발명의 일 실시예에 따르면, 상기 블록의 타입을 결정하는 단계(S42)는, 상측 주변 픽셀 차분값(DA)이 기 설정된 상측 경계값(BA)보다 작거나 같고(S4211에서 아니오), 좌측 주변 픽셀 차분값(DL)이 기 설정된 좌측 경계값(BL)보다 큰 경우(S4213에서 예), 블록의 타입을 좌측 고차분 블록, 다시 말해 제 2 타입으로 결정하는 단계(S4216)를 포함할 수 있다.According to one embodiment of the invention, the step (S42) of determining the type of the block, the upper side close to the pixel difference value (D A) is pre-set upper boundary value is smaller than or equal to (B A) (NO in S4211) (S4216), the type of the block is determined as the left high-differential block, that is, the second type, if the left neighboring pixel difference value D L is larger than the predetermined left boundary value B L (Yes in S4213) . ≪ / RTI >

본 발명의 일 실시예에 따르면, 상기 블록의 타입을 결정하는 단계(S42)는, 상측 주변 픽셀 차분값(DA)이 기 설정된 상측 경계값(BA)보다 크고(S4211에서 예) 좌측 주변 픽셀 차분값(DL)이 기 설정된 좌측 경계값(BL)보다 큰 경우(S4212에서 예), 블록의 타입을 그 외 블록, 다시 말해 제 3 타입으로 결정하는 단계(S4215)를 포함할 수 있다.According to an embodiment of the present invention, the step of determining the type of the block S42 may be such that the upper peripheral pixel difference value D A is larger than the predetermined upper boundary value B A (YES in S4211) If the pixel difference value D L is greater than the predetermined left boundary value B L (YES in S 4212), the step of determining the block type as the other block, that is, the third type (S4215) have.

본 발명의 일 실시예에 따르면, 상기 블록의 타입을 결정하는 단계(S42)는, 상측 주변 픽셀 차분값(DA)이 기 설정된 상측 경계값(BA)보다 작거나 같고(S4211에서 아니오) 좌측 주변 픽셀 차분값(DL)이 기 설정된 좌측 경계값(BL)보다 작거나 같은 경우(S4213에서 아니오), 블록의 타입을 그 외 블록, 다시 말해 제 3 타입으로 결정하는 단계(S4215)를 포함할 수 있다.According to one embodiment of the invention, the step (S42) of determining the type of the block, the upper side close to the pixel difference value (D A) is pre-set upper boundary value is smaller than or equal to (B A) (NO in S4211) If the left neighboring pixel difference value D L is less than or equal to the predetermined left boundary value B L (NO in S4213), determining the type of the block as the other block, that is, the third type (S4215) . ≪ / RTI >

일 실시예에 따르면, 상기 경계값은 블록의 사이즈에 반비례하도록 설정될 수 있다.According to one embodiment, the boundary value may be set to be in inverse proportion to the size of the block.

도 19는 본 발명의 다른 실시예에 따른 차분을 계산하는 단계 및 블록의 타입을 결정하는 단계를 설명하는 도면이다.19 is a diagram illustrating steps of calculating a difference and determining a type of a block according to another embodiment of the present invention.

도 19에 도시된 바와 같이, 본 발명의 다른 실시예에 따르면, 상기 블록의 타입을 결정하는 단계(S42)는, 상측 주변 픽셀 차분값(DA)이 기 설정된 상측 제 1 경계값(BAH)보다 크고(S4221에서 예), 좌측 주변 픽셀 차분값(DL)이 기 설정된 좌측 제 2 경계값(BLL)보다 작거나 같은 경우(S4223에서 아니오), 상기 블록을 제 1 타입으로 분류하는 단계(S4226)를 포함할 수 있다.As shown in FIG. 19, according to another embodiment of the present invention, the step of determining the type of the block (S42) may further comprise the step of, when the upper peripheral pixel difference value D A is smaller than a predetermined upper first boundary value B AH (Yes in S4221), and the left peripheral pixel difference value D L is less than or equal to the preset left second boundary value B LL (NO in S4223), the block is classified as the first type Step S4226.

본 발명의 다른 실시예에 따르면, 상기 블록의 타입을 결정하는 단계(S42)는, 상측 주변 픽셀 차분값(DA)이 기 설정된 상측 제 2 경계값(BAL)보다 작거나 같고(S4224에서 아니오), 좌측 주변 픽셀 차분값(DL)이 기 설정된 좌측 제 1 경계값(BLH)보다 큰 경우(S4225에서 예), 상기 블록을 제 2 타입으로 분류하는 단계(S4228)를 포함할 수 있다.According to another embodiment of the present invention, the step of determining the type of the block S42 may be such that the upper peripheral pixel difference value D A is less than or equal to the preset upper second boundary value B AL If the left neighboring pixel difference value D L is greater than the preset left boundary value B LH (Yes in S4225), then sorting the block into a second type (S4228) have.

본 발명의 다른 실시예에 따르면, 상기 블록의 타입을 결정하는 단계(S42)는, 상측 주변 픽셀 차분값(DA)이 기 설정된 상측 제 1 경계값(BAH)보다 크고(S4221에서 예), 좌측 주변 픽셀 차분값(DL)이 기 설정된 좌측 제 1 경계값(BLH)보다 큰 경우(S4222에서 예), 상기 블록을 제 3 타입으로 분류하는 단계(S4227)를 포함할 수 있다.According to another embodiment of the present invention, the step of determining the type of the block S42 may be such that the upper peripheral pixel difference value D A is larger than the predetermined upper boundary value B AH (YES in S4221) And sorting the block into a third type (S4227) if the left neighboring pixel difference value D L is greater than a predetermined left boundary value B LH (Yes in S4222).

본 발명의 다른 실시예에 따르면, 상기 블록의 타입을 결정하는 단계(S42)는, 상측 주변 픽셀 차분값(DA)이 기 설정된 상측 제 2 경계값(BAL)보다 작거나 같고(S4224에서 아니오), 좌측 주변 픽셀 차분값(DL)이 기 설정된 좌측 제 2 경계값(BLL)보다 작거나 같은 경우(S4225에서 아니오), 상기 블록을 제 3 타입으로 분류하는 단계(S4227)를 포함할 수 있다.According to another embodiment of the present invention, the step of determining the type of the block S42 may be such that the upper peripheral pixel difference value D A is less than or equal to the preset upper second boundary value B AL (S4225); and classifying the block into a third type (S4227) if the left neighboring pixel difference value D L is less than or equal to the preset left second boundary value B LL can do.

본 발명의 다른 실시예에 따르면, 상기 블록의 타입을 결정하는 단계(S42)는, 상측 주변 픽셀 차분값(DA)이 기 설정된 상측 제 1 경계값(BAH)보다 작거나 같고(S4221에서 아니오) 기 설정된 상측 제 2 경계값(BAL)보다 큰 경우(S4224에서 예), 상기 블록을 제 3 타입으로 분류하는 단계(S4227)를 포함할 수 있다.According to another embodiment of the present invention, the step of determining the type of the block S42 may be such that the upper peripheral pixel difference value D A is less than or equal to the preset upper boundary value B AH (Yes in S4224), and classifying the block into a third type (S4227) if it is larger than a preset upper boundary second value B AL (No).

본 발명의 다른 실시예에 따르면, 상기 블록의 타입을 결정하는 단계(S42)는, 좌측 주변 픽셀 차분값(DL)이 기 설정된 좌측 제 1 경계값(BLH)보다 작거나 같고(S4222에서 아니오) 기 설정된 좌측 제 2 경계값(BLL)보다 큰 경우(S4223에서 예), 상기 블록을 제 3 타입으로 분류하는 단계(S4227)를 포함할 수 있다.According to another embodiment of the present invention, the step of determining the type of the block S42 may include determining whether the left neighboring pixel difference value D L is less than or equal to the predetermined left boundary value B LH (Yes in S4223), and sorting the block into a third type (S4227) if it is larger than a preset left second boundary value B LL .

일 실시예에 따르면, 상기 경계값은 블록의 사이즈에 반비례하도록 설정될 수 있다.According to one embodiment, the boundary value may be set to be in inverse proportion to the size of the block.

도 20은 본 발명의 일 실시예에 따라 제 1 타입의 블록에 대하여 후보 인트라 예측 모드를 결정하는 단계 및 부호화에 이용될 인트라 예측 모드를 결정하는 단계를 설명하는 도면이다.FIG. 20 is a view for explaining a step of determining a candidate intra prediction mode for a first type block and a step of determining an intra prediction mode to be used for encoding according to an embodiment of the present invention.

도 20에 도시된 바와 같이, 상기 후보 인트라 예측 모드를 결정하는 단계(S43)는, 블록이 제 1 타입인 경우, 인트라 예측 모드 중에서 평면 모드, DC 모드 및 상측을 향하는 모드를 선택하는 단계(S431)를 포함할 수 있다.As shown in FIG. 20, the step S43 of determining the candidate intra-prediction mode includes a step S431 of selecting a plane mode, a DC mode, and an upward-facing mode among the intra-prediction modes when the block is the first type ).

실시예에 따라, 상기 후보 인트라 예측 모드를 결정하는 단계(S43)는, 인트라 예측 모드 중에서 수평 방향의 모드를 선택하는 단계(S432)를 더 포함할 수 있다.According to an embodiment, the step S43 of determining the candidate intra prediction mode may further include a step S432 of selecting a horizontal direction mode among the intra prediction modes.

실시예에 따라, 상기 후보 인트라 예측 모드를 결정하는 단계(S43)는, 인트라 예측 모드 중에서 주변 블록의 부호화에 이용된 인트라 예측 모드를 선택하는 단계(S433)를 더 포함할 수 있다.According to an embodiment, the step of determining the candidate intra prediction mode (S43) may further include a step (S433) of selecting an intra prediction mode used for coding a neighboring block in the intra prediction mode.

이와 같이 선택된 모드들은 제 1 타입의 블록에 대한 후보 인트라 예측 모드를 구성할 수 있으며, 단계(S44)는 상기 후보 인트라 예측 모드 중에서 블록의 부호화에 이용될 인트라 예측 모드를 결정할 수 있다.The selected modes may constitute a candidate intra prediction mode for the first type block, and step S44 may determine an intra prediction mode to be used for coding the block among the candidate intra prediction modes.

도 21은 본 발명의 일 실시예에 따라 제 2 타입의 블록에 대하여 후보 인트라 예측 모드를 결정하는 단계 및 부호화에 이용될 인트라 예측 모드를 결정하는 단계를 설명하는 도면이다.FIG. 21 is a view for explaining a step of determining a candidate intra prediction mode for a second type block and a step of determining an intra prediction mode to be used for encoding according to an embodiment of the present invention.

도 21에 도시된 바와 같이, 상기 후보 인트라 예측 모드를 결정하는 단계(S43)는, 블록이 제 2 타입인 경우, 인트라 예측 모드 중에서 평면 모드, DC 모드 및 좌측을 향하는 모드를 선택하는 단계(S434)를 포함할 수 있다.As shown in FIG. 21, the step S43 of determining the candidate intra-prediction mode includes a step S434 of selecting a plane mode, a DC mode, and a left-side mode among the intra-prediction modes when the block is the second type ).

실시예에 따라, 상기 후보 인트라 예측 모드를 결정하는 단계(S43)는, 인트라 예측 모드 중에서 수직 방향의 모드를 선택하는 단계(S435)를 더 포함할 수 있다.According to an embodiment, the step S43 of determining the candidate intra prediction mode may further include a step S435 of selecting a vertical direction mode among the intra prediction modes.

실시예에 따라, 상기 후보 인트라 예측 모드를 결정하는 단계(S43)는, 인트라 예측 모드 중에서 주변 블록의 부호화에 이용된 인트라 예측 모드를 선택하는 단계(S436)를 더 포함할 수 있다.According to an embodiment, the step of determining the candidate intra prediction mode (S43) may further include a step (S436) of selecting an intra prediction mode used for coding a neighboring block in the intra prediction mode.

이와 같이 선택된 모드들은 제 2 타입의 블록에 대한 후보 인트라 예측 모드를 구성할 수 있으며, 단계(S44)는 상기 후보 인트라 예측 모드 중에서 블록의 부호화에 이용될 인트라 예측 모드를 결정할 수 있다.The selected modes may constitute a candidate intra prediction mode for a block of a second type, and step S44 may determine an intra prediction mode to be used for coding the block among the candidate intra prediction modes.

본 발명의 일 실시예에 따르면, 인트라 예측에 사용되는 모드의 개수가 줄어들어 연산량이 줄어들고 인코딩에 걸리는 시간이 단축될 수 있다. 특히, HEVC에 본 발명의 일 실시예에 따른 인트라 예측을 적용하는 경우, 모드 코딩에 할당되는 비트 길이를 줄일 수 있어 영상의 압축률이 개선되는 효과를 얻을 수 있다.According to an embodiment of the present invention, the number of modes used for intraprediction is reduced, the amount of computation is reduced, and the time required for encoding can be shortened. In particular, when intra prediction according to an embodiment of the present invention is applied to the HEVC, the bit length allocated to the mode coding can be reduced, and the compression ratio of the image can be improved.

종래의 HEVC는 35 개의 인트라 예측 모드에 대하여 현재 블록의 픽셀과 참조 픽셀의 차분을 계산하여 압축률이 가장 높은 최적의 모드를 선택한다. 이와 같이 HEVC는 9 개의 인트라 예측 모드를 사용하는 H.264에 비해 인트라 예측에 사용되는 모드의 개수가 크게 증가하여 인코딩 속도가 현저하게 느려지는 문제점을 갖는다. 하지만, 본 발명의 일 실시예에 따른 인트라 예측을 HEVC에 적용하는 경우, 인트라 예측에 사용되는 모드의 개수가 크게 줄어 인코딩 속도가 향상될 수 있다.The conventional HEVC calculates the difference between the pixel of the current block and the reference pixel for the 35 intra prediction modes and selects the optimal mode with the highest compression ratio. As described above, the HEVC has a problem that the encoding speed is remarkably slowed due to a large increase in the number of modes used for intraprediction compared to H.264 using nine intra prediction modes. However, when the intra prediction according to an embodiment of the present invention is applied to the HEVC, the number of modes used for intraprediction is greatly reduced, and the encoding speed can be improved.

또한, 종래의 HEVC는 35 개의 인트라 예측 모드 중에서 3 개의 MPM(Most Probable Mode)을 제외한 나머지 32 개의 모드에 대하여 5 bits의 비트 길이를 할당하여 인코딩을 하는 FLC(Fixed Length Coding) 기법을 사용한다. 본 발명의 일 실시예에 따른 인트라 예측을 HEVC에 적용하여, 블록의 타입에 따라 35 개의 인트라 예측 모드 중에서 16 개의 모드를 배제시키고 19 개의 모드를 사용하여 인트라 예측을 수행하는 경우, 3 개의 MPM을 제외한 나머지 16 개의 모드에 대하여 4 bits의 비트 길이만으로도 모드 코딩을 수행할 수 있다.In addition, the conventional HEVC uses a Fixed Length Coding (FLC) scheme in which 5 bits of bit length are allocated for 32 modes except for 3 MPM (Most Probable Mode) among 35 intra prediction modes. When intraprediction according to an embodiment of the present invention is applied to an HEVC and intra prediction is performed using 19 modes excluding 16 modes out of 35 intra prediction modes according to a block type, Mode coding can be performed with only a bit length of 4 bits for the remaining 16 modes.

그 결과, 본 발명의 일 실시예에 따른 인트라 예측은, 연산량의 감소로 인한 인코딩 속도의 증가와 함께, 모드 코딩에 할당되는 비트 길이를 1 비트만큼 더 줄일 수 있어 영상의 압축률을 향상시킬 수 있는 효과를 달성할 수 있다.As a result, intraprediction according to an embodiment of the present invention can reduce the bit length allocated to mode coding by one bit, thereby improving the compression rate of an image Effect can be achieved.

도 22는 본 발명의 일 실시예에 따른 영상 부호화 장치를 나타내는 블록도이다. 도 22를 참조하면, 상기 영상 부호화 장치(200)는 움직임 예측부(211), 움직임 보상부(212), 인트라 예측부(220), 스위치(215), 감산기(225), 변환부(230), 양자화부(240), 엔트로피 부호화부(250), 역양자화부(260), 역변환부(270), 가산기(275), 필터부(280) 및 참조영상 버퍼(290)를 포함한다.22 is a block diagram illustrating an image encoding apparatus according to an embodiment of the present invention. 22, the image encoding apparatus 200 includes a motion prediction unit 211, a motion compensation unit 212, an intra prediction unit 220, a switch 215, a subtractor 225, a transform unit 230, A quantization unit 240, an entropy encoding unit 250, an inverse quantization unit 260, an inverse transformation unit 270, an adder 275, a filter unit 280, and a reference image buffer 290.

영상 부호화 장치(200)는 입력 영상에 대해 인트라 예측 모드 또는 인터 예측 모드로 부호화를 수행하고 비트스트림을 출력한다. 예측 단위에 대한 최적의 예측 방법을 결정하기 위해 예측 단위에 대해 인트라 예측 방법 및 인터 예측 방법이 선택적으로 사용될 수 있다. 영상 부호화 장치(200)는 입력 영상의 원본 블록에 대한 예측 블록을 생성한 후, 원본 블록과 예측 블록의 차분을 부호화한다.The image encoding apparatus 200 performs encoding in an intra prediction mode or an inter prediction mode on an input image and outputs a bit stream. An intra prediction method and an inter prediction method may be selectively used for a prediction unit in order to determine an optimal prediction method for a prediction unit. The image encoding apparatus 200 generates a prediction block for the original block of the input image, and then encodes the difference between the original block and the prediction block.

인트라 예측 모드인 경우, 인트라 예측부(220)는 현재 블록 주변의 이미 부호화된 블록의 화소값을 이용하여 공간적 예측을 수행하여 예측 블록을 생성한다. In the intra-prediction mode, the intra-prediction unit 220 performs spatial prediction using the pixel values of the already-coded blocks around the current block to generate a prediction block.

인트라 예측부(220)는 소정의 예측 단위에 대해 화면 내 예측 모드에 대한 SATD를 산출하고 산출된 제1 SATD값과 제2 SATD값 그리고 제1 SATD값에 해당하는 제1 화면 내 예측 모드를 산출하여 후보 화면 내 예측 모드 리스트에 저장하고 제1 SATD값과 상기 제2 SATD값의 차가 소정의 임계값 이하인지 여부를 판단하여 상기 소정의 예측 단위의 예측 블록을 생성할 수 있다. 또한, 제1 SATD값과 제2 SATD값의 차가 소정의 임계값보다 큰 경우, 제1 SATD값에 해당하는 화면 내 예측 모드를 현재 예측 단위의 최종 화면 내 예측 모드로 결정하고, 제1 SATD값과 제2 SATD값의 차가 소정의 임계값 이하인 경우, 추가의 화면 내 예측 모드를 후보 화면 내 예측 모드 리스트에 포함하여 후보 화면 내 예측 모드 리스트에 저장된 화면 내 예측 모드를 기초로 산출된 RD 비용을 이용하여 최종 화면 내 예측 모드를 결정할 수 있다.The intraprediction unit 220 calculates a SATD for the intra prediction mode for a predetermined prediction unit, calculates a first intra-picture prediction mode corresponding to the calculated first and second SATD values, and a first SATD value The predicted block of the predetermined prediction unit can be generated by storing the predicted block in the candidate intra prediction mode list and determining whether the difference between the first SATD value and the second SATD value is less than a predetermined threshold value. If the difference between the first SATD value and the second SATD value is greater than the predetermined threshold value, the intra prediction mode corresponding to the first SATD value is determined as the final intra prediction mode of the current prediction unit, And the second SATD value is less than or equal to a predetermined threshold value, the additional intra prediction mode is included in the intra prediction mode list to calculate the RD cost calculated based on the intra prediction mode stored in the intra prediction mode list To determine the final in-picture prediction mode.

또한, 인트라 예측부(220)는 소정의 부호화 단위에 대한 SATD값이 임계 SATD값을 넘는지 여부를 판단하고 소정의 부호화 단위에 대한 SATD값이 임계 SATD값보다 작은 경우 부호화 단위를 추가로 분할하지 않고 소정의 부호화 단위에 대한 SATD값이 임계 SATD 값 이상인 경우 추가로 부호화 단위를 분할할 수 있다.In addition, the intra-prediction unit 220 determines whether or not the SATD value for a predetermined encoding unit exceeds the threshold SATD value, and when the SATD value for a predetermined encoding unit is smaller than the threshold SATD value, the encoding unit is not further divided And if the SATD value for a predetermined encoding unit is equal to or larger than the threshold SATD value, the encoding unit can be further divided.

여기서, 인트라 예측부(220)는 전술한 본 발명의 일 실시예에 따른 인트라 예측 장치를 포함할 수 있다. Here, the intraprediction unit 220 may include an intraprediction apparatus according to an embodiment of the present invention.

화면 간 예측 모드인 경우, 움직임 예측부(211)는, 움직임 예측 과정에서 참조 영상 버퍼(290)에 저장되어 있는 참조 영상에서 입력 블록과 가장 매치가 잘 되는 영역을 찾아 움직임 벡터를 구한다. 움직임 보상부(212)는 움직임 벡터를 이용하여 움직임 보상을 수행함으로써 예측 블록을 생성한다. In the case of the inter-view prediction mode, the motion prediction unit 211 finds a motion vector by searching an area where the best match with the input block is obtained from the reference image stored in the reference image buffer 290 in the motion prediction process. The motion compensation unit 212 generates a prediction block by performing motion compensation using a motion vector.

감산기(225)는 입력 블록과 생성된 예측 블록의 차분에 의해 잔여 블록(residual block)을 생성한다. 변환부(230)는 잔여 블록에 대해 변환(transform)을 수행하여 변환 계수(transform coefficient)를 출력한다. 그리고 양자화부(240)는 입력된 변환 계수를 양자화 파라미터에 따라 양자화하여 양자화된 계수(quantized coefficient)를 출력한다. 엔트로피 부호화부(250)는 입력된 양자화된 계수를 확률 분포에 따라 엔트로피 부호화하여 비트스트림(bit stream)을 출력한다.The subtractor 225 generates a residual block by a difference between the input block and the generated prediction block. The transform unit 230 performs a transform on the residual block to output a transform coefficient. The quantization unit 240 quantizes the input transform coefficients according to the quantization parameters and outputs a quantized coefficient. The entropy encoding unit 250 entropy-codes the input quantized coefficients according to a probability distribution to output a bit stream.

HEVC는 인터 예측 부호화를 수행하므로, 현재 부호화된 영상은 참조 영상으로 사용되기 위해 복호화되어 저장될 필요가 있다. 따라서 양자화된 계수는 역양자화부(260)에서 역양자화되고 역변환부(270)에서 역변환된다. 역양자화, 역변환된 계수는 가산기(275)를 통해 예측 블록과 더해지고 복원 블록이 생성된다. Since the HEVC performs inter prediction coding, the currently encoded image needs to be decoded and stored for use as a reference image. Accordingly, the quantized coefficients are inversely quantized in the inverse quantization unit 260 and inversely transformed in the inverse transformation unit 270. The inverse quantized and inverse transformed coefficients are added to the prediction block through an adder 275, and a reconstruction block is generated.

복원 블록은 필터부(280)를 거치고, 필터부(280)는 디블록킹 필터(deblocking filter), SAO(Sample Adaptive Offset), ALF(Adaptive Loop Filter) 중 적어도 하나 이상을 복원 블록 또는 복원 픽쳐에 적용할 수 있다. 필터부(280)는 적응적 인루프(in-loop) 필터로 불릴 수도 있다. 디블록킹 필터는 블록 간의 경계에 생긴 블록 왜곡을 제거할 수 있다. SAO는 코딩 에러를 보상하기 위해 화소값에 적정 오프셋(offset) 값을 더해줄 수 있다. ALF는 복원된 영상과 원래의 영상을 비교한 값을 기초로 필터링을 수행할 수 있으며, 고효율이 적용되는 경우에만 수행될 수도 있다. 필터부(280)를 거친 복원 블록은 참조 영상 버퍼(290)에 저장된다.The restoration block passes through the filter unit 280 and the filter unit 280 applies at least one of a deblocking filter, a sample adaptive offset (SAO), and an adaptive loop filter (ALF) can do. The filter unit 280 may be referred to as an adaptive in-loop filter. The deblocking filter can remove block distortion occurring at the boundary between the blocks. The SAO may add a proper offset value to the pixel value to compensate for coding errors. The ALF may perform filtering based on a comparison between the reconstructed image and the original image, and may be performed only when high efficiency is applied. The reconstruction block having passed through the filter unit 280 is stored in the reference image buffer 290.

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

도 23을 참조하면, 상기 영상 복호화 장치(300)는 엔트로피 복호화부(310), 역양자화부(320), 역변환부(330), 인트라 예측부(340), 움직임 보상부(350), 필터부(360) 및 참조 영상 버퍼(370)를 포함한다.23, the image decoding apparatus 300 includes an entropy decoding unit 310, an inverse quantization unit 320, an inverse transform unit 330, an intra prediction unit 340, a motion compensation unit 350, (360) and a reference image buffer (370).

영상 복호화 장치(300)는 부호화기에서 출력된 비트스트림을 입력받아 인트라 모드 또는 인터 모드로 복호화를 수행하고 재구성된 영상, 즉 복원 영상을 출력한다. 인트라 모드인 경우 화면 내 예측 모드를 사용하여 예측 블록을 생성하고 인터 모드인 경우 화면 간 예측 방법을 사용하여 예측 블록을 생성한다. 영상 복호화 장치(300)는 입력받은 비트스트림으로부터 잔여 블록(residual block)을 얻고 예측 블록을 생성한 후 잔여 블록과 예측 블록을 더하여 재구성된 블록, 즉 복원 블록을 생성한다.The video decoding apparatus 300 receives the bit stream output from the encoder and decodes the video stream into an intra mode or an inter mode, and outputs a reconstructed video, that is, a reconstructed video. In the intra mode, a prediction block is generated using an intra prediction mode, and a prediction block is generated using an inter prediction method in an inter mode. The video decoding apparatus 300 obtains a residual block from the input bitstream, generates a prediction block, and then adds the residual block and the prediction block to generate a reconstructed block, that is, a reconstruction block.

엔트로피 복호화부(310)는 입력된 비트스트림을 확률 분포에 따라 엔트로피 복호화하여 양자화된 계수(quantized coefficient)를 출력한다. 양자화된 계수는 역양자화부(320)에서 역양자화되고 역변환부(330)에서 역변환되며, 양자화된 계수가 역양자화/역변환 된 결과, 잔여 블록(residual block)이 생성된다. The entropy decoding unit 310 entropy-decodes the input bitstream according to a probability distribution and outputs a quantized coefficient. The quantized coefficients are inversely quantized in the inverse quantization unit 320 and inversely transformed in the inverse transformation unit 330. As a result of inverse quantization / inverse transformation of the quantized coefficients, a residual block is generated.

인트라 예측 모드인 경우, 인트라 예측부(340)는 현재 블록 주변의 이미 부호화된 블록의 화소값을 이용하여 공간적 예측을 수행하여 예측 블록을 생성한다. In the intra-prediction mode, the intra-prediction unit 340 performs spatial prediction using the pixel values of the already-coded blocks around the current block to generate a prediction block.

인터 예측 모드인 경우, 움직임 보상부(350)는 움직임 벡터 및 참조 영상 버퍼(370)에 저장되어 있는 참조 영상을 이용하여 움직임 보상을 수행함으로써 예측 블록을 생성한다. In the inter prediction mode, the motion compensation unit 350 generates a prediction block by performing motion compensation using a motion vector and a reference image stored in the reference image buffer 370.

잔여 블록과 예측 블록은 가산기(355)를 통해 더해지고, 더해진 블록은 필터부(360)를 거친다. 필터부(360)는 디블록킹 필터, SAO, ALF 중 적어도 하나 이상을 복원 블록 또는 복원 픽쳐에 적용할 수 있다. 필터부(360)는 재구성된 영상, 즉 복원 영상을 출력한다. 복원 영상은 참조 영상 버퍼(370)에 저장되어 인터 예측에 사용될 수 있다.The residual block and the prediction block are added through the adder 355, and the added block is passed through the filter unit 360. [ The filter unit 360 may apply at least one of a deblocking filter, SAO, and ALF to a restoration block or a restored picture. The filter unit 360 outputs a reconstructed image, that is, a reconstructed image. The restored image is stored in the reference image buffer 370 and can be used for inter prediction.

부호화/복호화 장치의 예측 성능을 향상시키기 위한 방법에는 보간(interpolation) 영상의 정확도를 높이는 방법과 차신호를 예측하는 방법이 있다. 여기서 차신호란 원본 영상과 예측 영상과의 차이를 나타내는 신호이다. 본 발명에서 “차신호”는 문맥에 따라 “차분 신호”, “잔여 블록” 또는 “차분 블록”으로 대체되어 사용될 수 있으며, 해당 기술분야에서 통상의 지식을 가진 자는 발명의 사상, 본질에 영향을 주지 않는 범위 내에서 이를 구분할 수 있을 것이다.Methods for improving the prediction performance of the encoding / decoding apparatus include a method of increasing the accuracy of the interpolation image and a method of predicting the difference signal. Here, the difference signal is a signal indicating the difference between the original image and the predicted image. In the present invention, the term " difference signal " may be replaced by a " difference signal ", " residual block ", or " difference block " depending on the context. Those skilled in the art may influence the idea You will be able to distinguish this within the scope of not giving.

본 명세서에서는 설명의 편의상 코딩 유닛(Coding Unit)을 부호화 단위라는 용어로 사용하지만, 부호화뿐만 아니라 복호화를 수행하는 단위가 될 수도 있다. 전술한 본 발명의 일 실시예에 따른 인트라 예측 방법은 도 23 및 도 23에서 설명한 각 모듈의 기능에 맞게 구현될 수 있고, 이러한 부호화기 및 복호화기는 본 발명의 권리범위에 포함된다. 즉, 본 발명의 일 실시예에 따른 인트라 예측 방법은 도 23 및 도 23에서 설명한 영상 부호화기 및 영상 복호화기에 포함된 각 구성부에서 수행될 수 있다. 구성부의 의미는 하드웨어적인 의미뿐만 아니라 알고리즘을 통해 수행될 수 있는 소프트웨어적인 처리 단위도 포함할 수 있다.In the present specification, a coding unit (coding unit) is used as a coding unit for convenience of explanation, but it may be a unit for performing not only coding but also decoding. The intraprediction method according to an embodiment of the present invention described above can be implemented according to the functions of the modules described in FIGS. 23 and 23, and the encoder and the decoder are included in the scope of the present invention. That is, the intraprediction method according to an embodiment of the present invention can be performed in each component included in the image encoder and the image decoder described with reference to FIG. 23 and FIG. The meaning of the constituent part may include not only a hardware meaning but also a software processing unit which can be performed through an algorithm.

또한, 전술한 본 발명의 일 실시예에 따른 인트라 예측 방법은, 컴퓨터에서 실행되기 위한 프로그램으로 제작되어 컴퓨터가 읽을 수 있는 기록 매체에 저장될 수 있다. 상기 컴퓨터가 읽을 수 있는 기록 매체는 컴퓨터 시스템에 의하여 읽혀질 수 있는 데이터가 저장되는 모든 종류의 저장 장치를 포함한다. 컴퓨터가 읽을 수 있는 기록 매체의 예로는 ROM, RAM, CD-ROM, 자기 테이프, 플로피디스크, 광 데이터 저장장치 등이 있다.In addition, the intraprediction method according to an embodiment of the present invention described above can be stored in a computer-readable recording medium made of a program to be executed in a computer. The computer-readable recording medium includes all kinds of storage devices in which data that can be read by a computer system is stored. Examples of the computer-readable recording medium include ROM, RAM, CD-ROM, magnetic tape, floppy disk, optical data storage, and the like.

100: 인트라 예측 장치
11: 차분 계산부
12: 블록 타입 결정부
13: 모드 선택부
14: 인트라 예측 모드 결정부
100: Intra prediction device
11: Difference calculation section
12: Block type determination section
13: Mode selector
14: Intra prediction mode determining unit

Claims (27)

블록에 인접한 주변 픽셀들의 픽셀값의 차분을 계산하는 단계;
상기 차분을 기초로 상기 블록의 타입을 결정하는 단계;
상기 블록의 타입에 따라 인트라 예측 모드 중에서 일부를 선택하여 후보 인트라 예측 모드를 결정하는 단계; 및
상기 후보 인트라 예측 모드 중에서 상기 블록의 부호화에 이용될 인트라 예측 모드를 결정하는 단계;
를 포함하는 인트라 예측 방법.
Calculating a difference between pixel values of neighboring pixels adjacent to the block;
Determining a type of the block based on the difference;
Determining a candidate intra prediction mode by selecting a portion of the intra prediction modes according to the type of the block; And
Determining an intra prediction mode to be used for coding the block among the candidate intra prediction modes;
/ RTI >
제 1 항에 있어서,
상기 차분을 계산하는 단계는:
상기 블록의 상측에 인접한 상측 주변 픽셀들의 차분을 계산하는 단계; 및
상기 블록의 좌측에 인접한 좌측 주변 픽셀들의 차분을 계산하는 단계;
를 포함하는 인트라 예측 방법.
The method according to claim 1,
Wherein the step of calculating the difference comprises:
Calculating a difference of upper neighboring pixels on the upper side of the block; And
Calculating a difference of left neighboring pixels adjacent to the left side of the block;
/ RTI >
제 2 항에 있어서,
상기 상측 주변 픽셀들의 차분을 계산하는 단계는:
상기 상측 주변 픽셀들 중 인접한 픽셀들 간의 픽셀값의 차분의 절대값을 합산하여, 상측 주변 픽셀 차분값을 계산하는 단계를 포함하고,
상기 좌측 주변 픽셀들의 차분을 계산하는 단계는:
상기 좌측 주변 픽셀들 중 인접한 픽셀들 간의 픽셀값의 차분의 절대값을 합산하여, 좌측 주변 픽셀 차분값을 계산하는 단계를 포함하는 인트라 예측 방법.
3. The method of claim 2,
Wherein calculating the difference of the upper neighboring pixels comprises:
Calculating an upper peripheral pixel difference value by summing an absolute value of a difference of pixel values between adjacent pixels among the upper peripheral pixels,
Wherein calculating the difference of the left neighboring pixels comprises:
Calculating a left neighboring pixel difference value by summing an absolute value of a difference of pixel values between adjacent pixels among the left neighboring pixels.
제 3 항에 있어서,
상기 블록의 타입을 결정하는 단계는:
상기 상측 주변 픽셀 차분값이 기 설정된 상측 경계값보다 크고, 상기 좌측 주변 픽셀 차분값이 기 설정된 좌측 경계값보다 작거나 같은 경우, 상기 블록의 타입을 상측 고차분 블록으로 결정하는 단계를 포함하는 인트라 예측 방법.
The method of claim 3,
Wherein determining the type of block comprises:
Determining a type of the block as an upper side high differential block when the upper neighboring pixel difference value is greater than a preset upper boundary value and the left neighboring pixel difference value is less than or equal to a predetermined left boundary value, Prediction method.
제 3 항에 있어서,
상기 블록의 타입을 결정하는 단계는:
상기 상측 주변 픽셀 차분값이 기 설정된 상측 경계값보다 작거나 같고, 상기 좌측 주변 픽셀 차분값이 기 설정된 좌측 경계값보다 큰 경우, 상기 블록의 타입을 좌측 고차분 블록으로 결정하는 단계를 포함하는 인트라 예측 방법.
The method of claim 3,
Wherein determining the type of block comprises:
Determining a type of the block as a left high differential block if the upper neighboring pixel difference value is less than or equal to a predetermined upper boundary value and the left neighboring pixel difference value is greater than a predetermined left boundary value, Prediction method.
제 4 항 또는 제 5 항에 있어서,
상기 상측 경계값 및 상기 좌측 경계값은 상기 블록의 사이즈에 반비례하는 인트라 예측 방법.
The method according to claim 4 or 5,
Wherein the upper boundary value and the left boundary value are inversely proportional to the size of the block.
제 3 항에 있어서,
상기 블록의 타입을 결정하는 단계는:
상기 상측 주변 픽셀 차분값이 기 설정된 상측 제 1 경계값보다 크고, 상기 좌측 주변 픽셀 차분값이 기 설정된 좌측 제 2 경계값보다 작거나 같은 경우, 상기 블록의 타입을 상측 고차분 블록으로 결정하는 단계를 포함하는 인트라 예측 방법.
The method of claim 3,
Wherein determining the type of block comprises:
Determining the type of the block as an upper side high differential block if the upper neighboring pixel difference value is greater than a preset upper first boundary value and the left neighboring pixel difference value is less than or equal to a preset left second boundary value / RTI >
제 3 항에 있어서,
상기 블록의 타입을 결정하는 단계는:
상기 상측 주변 픽셀 차분값이 기 설정된 상측 제 2 경계값보다 작거나 같고, 상기 좌측 주변 픽셀 차분값이 기 설정된 좌측 제 1 경계값보다 큰 경우, 상기 블록의 타입을 좌측 고차분 블록으로 결정하는 단계를 포함하는 인트라 예측 방법.
The method of claim 3,
Wherein determining the type of block comprises:
Determining the type of the block as a left high differential block if the upper neighboring pixel difference value is less than or equal to a preset upper second boundary value and the left neighboring pixel difference value is greater than a preset left first boundary value / RTI >
제 4 항 또는 제 7 항에 있어서,
상기 후보 인트라 예측 모드를 결정하는 단계는:
상기 상측 고차분 블록의 경우, 인트라 예측 모드 중에서 평면 모드, DC 모드 및 상측을 향하는 모드를 선택하는 단계를 포함하는 인트라 예측 방법.
8. The method according to claim 4 or 7,
Wherein the step of determining the candidate intra prediction mode comprises:
And selecting an intra-prediction mode for the upper-side high-differential block, the intra-prediction mode being a plane mode, a DC mode, and an upward mode.
제 5 항 또는 제 8 항에 있어서,
상기 후보 인트라 예측 모드를 결정하는 단계는:
상기 좌측 고차분 블록의 경우, 인트라 예측 모드 중에서 평면 모드, DC 모드 및 좌측을 향하는 모드를 선택하는 단계를 포함하는 인트라 예측 방법.
9. The method according to claim 5 or 8,
Wherein the step of determining the candidate intra prediction mode comprises:
And selecting a plane mode, a DC mode, and a leftward mode among the intra prediction modes in the case of the left high-order difference block.
제 9 항에 있어서,
상기 후보 인트라 예측 모드를 결정하는 단계는:
상기 상측 고차분 블록의 경우, 인트라 예측 모드 중에서 수평 방향의 모드를 선택하는 단계를 더 포함하는 인트라 예측 방법.
10. The method of claim 9,
Wherein the step of determining the candidate intra prediction mode comprises:
And in the case of the upper side high-differential block, selecting a mode in the horizontal direction among the intra prediction modes.
제 10 항에 있어서,
상기 후보 인트라 예측 모드를 결정하는 단계는:
상기 좌측 고차분 블록의 경우, 인트라 예측 모드 중에서 수직 방향의 모드를 선택하는 단계를 더 포함하는 인트라 예측 방법.
11. The method of claim 10,
Wherein the step of determining the candidate intra prediction mode comprises:
And selecting a mode in the vertical direction among the intra prediction modes in the case of the left high-order difference block.
제 9 항에 있어서,
상기 후보 인트라 예측 모드를 결정하는 단계는:
상기 블록에 인접한 주변 블록의 부호화에 이용되는 인트라 예측 모드를 선택하는 단계를 더 포함하는 인트라 예측 방법.
10. The method of claim 9,
Wherein the step of determining the candidate intra prediction mode comprises:
And selecting an intra prediction mode to be used for coding a neighboring block adjacent to the block.
제 10 항에 있어서,
상기 후보 인트라 예측 모드를 결정하는 단계는:
상기 블록에 인접한 주변 블록의 부호화에 이용된 인트라 예측 모드를 선택하는 단계를 더 포함하는 인트라 예측 방법.
11. The method of claim 10,
Wherein the step of determining the candidate intra prediction mode comprises:
And selecting an intra prediction mode used for coding a neighboring block adjacent to the block.
블록에 인접한 주변 픽셀들의 픽셀값의 차분에 따라 인트라 예측 모드 중에서 일부를 선택하고, 선택된 일부 모드를 기반으로 인트라 예측을 수행하는 인트라 예측 방법.Selecting a part of the intra-prediction modes according to a difference between pixel values of neighboring pixels adjacent to the block, and performing intra-prediction based on the selected partial mode. 컴퓨터로 읽을 수 있는 기록매체에 있어서,
제 1 항 내지 제 15 항 중 어느 한 항에 따른 인트라 예측 방법을 실행하는 프로그램이 기록된 기록매체.
A computer-readable recording medium,
16. A recording medium on which a program for executing the intra prediction method according to any one of claims 1 to 15 is recorded.
블록에 인접한 주변 픽셀들의 픽셀값의 차분을 계산하는 차분 계산부;
상기 차분을 기초로 블록의 타입을 결정하는 블록 타입 결정부;
상기 블록의 타입에 따라 인트라 예측 모드 중에서 일부를 선택하는 모드 선택부; 및
선택된 일부 모드 중에서 상기 블록의 부호화에 이용될 인트라 예측 모드를 결정하는 인트라 예측 모드 결정부;
를 포함하는 인트라 예측 장치.
A difference calculator for calculating a difference between pixel values of neighboring pixels adjacent to the block;
A block type determination unit for determining a type of a block based on the difference;
A mode selection unit for selecting a part of the intra prediction mode according to the type of the block; And
An intra prediction mode determination unit for determining an intra prediction mode to be used for coding the block among the selected partial modes;
And an intra prediction unit.
제 17 항에 있어서,
상기 차분 계산부는:
상기 블록의 상측에 인접한 상측 주변 픽셀들 중 인접한 픽셀들 간의 픽셀값의 차분의 절대값을 합산하여 제 1 차분값을 계산하고,
상기 블록의 좌측에 인접한 좌측 주변 픽셀들 중 인접한 픽셀들 간의 픽셀값의 차분의 절대값을 합산하여 제 2 차분값을 계산하는 인트라 예측 장치.
18. The method of claim 17,
Wherein the difference calculator comprises:
Calculating a first difference value by summing absolute values of differences of pixel values between adjacent pixels among upper neighboring pixels adjacent to the upper side of the block,
Wherein the second difference value is calculated by summing absolute values of differences of pixel values between adjacent pixels among left neighboring pixels adjacent to the left side of the block.
제 18 항에 있어서,
상기 블록 타입 결정부는:
상기 제 1 차분값이 기 설정된 상측 경계값보다 크고, 상기 제 2 차분값이 기 설정된 좌측 경계값보다 작거나 같은 경우, 상기 블록을 제 1 타입으로 분류하고,
상기 제 1 차분값이 상기 상측 경계값보다 작거나 같고, 상기 제 2 차분값이 상기 좌측 경계값보다 큰 경우, 상기 블록을 제 2 타입으로 분류하는 인트라 예측 장치.
19. The method of claim 18,
Wherein the block type determining unit comprises:
Classifying the block into a first type when the first difference value is greater than a predetermined upper boundary value and the second difference value is less than or equal to a predetermined left boundary value,
And classifies the block into a second type when the first difference value is less than or equal to the upper boundary value and the second difference value is greater than the left boundary value.
제 19 항에 있어서,
상기 상측 경계값 및 상기 좌측 경계값은 상기 블록의 사이즈에 반비례하도록 설정되는 인트라 예측 장치.
20. The method of claim 19,
Wherein the upper boundary value and the left boundary value are set in inverse proportion to the size of the block.
제 18 항에 있어서,
상기 블록 타입 결정부는:
상기 제 1 차분값이 기 설정된 상측 제 1 경계값보다 크고, 상기 제 2 차분값이 기 설정된 좌측 제 2 경계값보다 작거나 같은 경우, 상기 블록을 제 1 타입으로 분류하고,
상기 제 1 차분값이 기 설정된 상측 제 2 경계값보다 작거나 같고, 상기 제 2 차분값이 기 설정된 좌측 제 1 경계값보다 큰 경우, 상기 블록을 제 2 타입으로 분류하는 인트라 예측 장치.
19. The method of claim 18,
Wherein the block type determining unit comprises:
Classifying the block into a first type if the first difference value is greater than a preset upper boundary value and the second difference value is less than or equal to a predetermined left second boundary value,
And classifies the block into a second type when the first difference value is less than or equal to a predetermined upper second boundary value and the second difference value is greater than a predetermined left boundary value.
제 21 항에 있어서,
상기 상측 제 1 경계값, 상기 상측 제 2 경계값, 상기 좌측 제 1 경계값 및 상기 좌측 제 2 경계값은 상기 블록의 사이즈에 반비례하도록 설정되는 인트라 예측 장치.
22. The method of claim 21,
Wherein the upper first boundary value, the upper second boundary value, the left first boundary value, and the left second boundary value are set in inverse proportion to the size of the block.
제 21 항에 있어서,
상기 상측 제 1 경계값은 상기 상측 제 2 경계값보다 크게 설정되고,
상기 좌측 제 1 경계값은 상기 좌측 제 2 경계값보다 크게 설정되는 인트라 예측 장치.
22. The method of claim 21,
Wherein the upper first boundary value is set to be larger than the upper second boundary value,
Wherein the left first boundary value is set to be larger than the left second boundary value.
제 19 항 또는 제 21 항에 있어서,
상기 모드 선택부는:
상기 블록이 상기 제 1 타입인 경우, 인트라 예측 모드 중에서 평면 모드, DC 모드 및 상측을 향하는 모드를 선택하고,
상기 블록이 상기 제 2 타입인 경우, 인트라 예측 모드 중에서 평면 모드, DC 모드 및 좌측을 향하는 모드를 선택하는 인트라 예측 장치.
The method according to claim 19 or 21,
Wherein the mode selector comprises:
When the block is the first type, selects a plane mode, a DC mode, and an upward direction mode among the intra prediction modes,
And selects a plane mode, a DC mode, and a leftward mode among the intra prediction modes when the block is the second type.
제 24 항에 있어서,
상기 모드 선택부는:
상기 블록이 상기 제 1 타입인 경우, 인트라 예측 모드 중에서 수평 방향의 모드를 더 선택하고,
상기 블록이 상기 제 2 타입인 경우, 인트라 예측 모드 중에서 수직 방향의 모드를 더 선택하는 인트라 예측 장치.
25. The method of claim 24,
Wherein the mode selector comprises:
When the block is the first type, further selecting a mode in the horizontal direction among the intra prediction modes,
And selects a mode in the vertical direction among the intra prediction modes when the block is the second type.
제 24 항에 있어서,
상기 모드 선택부는:
상기 블록에 인접한 주변 블록의 부호화에 이용된 인트라 예측 모드를 더 선택하는 인트라 예측 장치.
25. The method of claim 24,
Wherein the mode selector comprises:
And further selects an intra prediction mode used for coding a neighboring block adjacent to the block.
입력 블록의 주변에 위치한 참조 픽셀을 기반으로 인트라 예측을 수행하여 예측 블록을 생성하는 인트라 예측부;
참조 영상을 이용하여 입력 블록의 움직임 벡터를 산출하는 움직임 예측부;
상기 움직임 벡터를 기반으로 움직임 보상을 수행하여 예측 블록을 생성하는 움직임 보상부;
입력 블록과 예측 블록의 차분을 계산하여 잔여 블록을 생성하는 감산기;
잔여 블록에 대해 변환을 수행하여 변환 계수를 출력하는 변환부; 및
변환 계수를 양자화하여 양자화된 계수를 출력하는 양자화부;
를 포함하며, 상기 인트라 예측부는:
입력 블록에 인접한 주변 픽셀들의 픽셀값의 차분을 계산하는 차분 계산부;
상기 차분을 기초로 입력 블록의 타입을 결정하는 블록 타입 결정부;
상기 입력 블록의 타입에 따라 인트라 예측 모드 중에서 일부를 선택하는 모드 선택부; 및
선택된 일부 모드 중에서 상기 입력 블록의 부호화에 이용될 인트라 예측 모드를 결정하는 인트라 예측 모드 결정부;
를 포함하는 영상 처리 장치.
An intra prediction unit that performs intra prediction on the basis of a reference pixel located in the vicinity of an input block to generate a prediction block;
A motion prediction unit for calculating a motion vector of an input block using a reference image;
A motion compensation unit for performing motion compensation based on the motion vector to generate a prediction block;
A subtracter for calculating a difference between an input block and a prediction block to generate a residual block;
A transform unit for transforming the residual block to output a transform coefficient; And
A quantization unit for quantizing the transform coefficients and outputting the quantized coefficients;
Wherein the intraprediction unit comprises:
A difference calculator for calculating a difference between pixel values of neighboring pixels adjacent to the input block;
A block type determination unit for determining a type of an input block based on the difference;
A mode selection unit for selecting a part of the intra prediction mode according to the type of the input block; And
An intra prediction mode determining unit that determines an intra prediction mode to be used for coding the input block among the selected partial modes;
And the image processing apparatus.
KR1020130006023A 2013-01-18 2013-01-18 Method and apparatus for intra prediction, and apparatus for processing picture KR101475286B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020130006023A KR101475286B1 (en) 2013-01-18 2013-01-18 Method and apparatus for intra prediction, and apparatus for processing picture

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020130006023A KR101475286B1 (en) 2013-01-18 2013-01-18 Method and apparatus for intra prediction, and apparatus for processing picture

Publications (2)

Publication Number Publication Date
KR20140093869A true KR20140093869A (en) 2014-07-29
KR101475286B1 KR101475286B1 (en) 2014-12-23

Family

ID=51739844

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020130006023A KR101475286B1 (en) 2013-01-18 2013-01-18 Method and apparatus for intra prediction, and apparatus for processing picture

Country Status (1)

Country Link
KR (1) KR101475286B1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019194441A1 (en) * 2018-04-02 2019-10-10 엘지전자 주식회사 Method for image coding on basis of adaptively derived mpm list and device therefor
WO2020050704A1 (en) * 2018-09-07 2020-03-12 김기백 Image encoding/decoding method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100845209B1 (en) * 2006-09-15 2008-07-10 엠텍비젼 주식회사 Method and apparatus for selecting intra prediction mode
US9467705B2 (en) * 2009-12-30 2016-10-11 Ariscale Inc. Video encoding apparatus, video decoding apparatus, and video decoding method for performing intra-prediction based on directionality of neighboring block
KR101503269B1 (en) * 2010-04-05 2015-03-17 삼성전자주식회사 Method and apparatus for determining intra prediction mode of image coding unit, and method and apparatus for determining intra predion mode of image decoding unit

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019194441A1 (en) * 2018-04-02 2019-10-10 엘지전자 주식회사 Method for image coding on basis of adaptively derived mpm list and device therefor
WO2020050704A1 (en) * 2018-09-07 2020-03-12 김기백 Image encoding/decoding method and device
CN112740699A (en) * 2018-09-07 2021-04-30 有限公司B1影像技术研究所 Image encoding/decoding method and apparatus
US11128859B2 (en) 2018-09-07 2021-09-21 B1 Institute Of Image Technology, Inc. Image encoding/decoding method and device
RU2771250C1 (en) * 2018-09-07 2022-04-29 Б1 Инститьют Оф Имидж Текнолоджи, Инк. Method and apparatus for encoding/decoding an image
US11616944B2 (en) 2018-09-07 2023-03-28 B1 Institute Of Image Technology, Inc. Image encoding/decoding method and device
US20230171398A1 (en) * 2018-09-07 2023-06-01 B1 Institute Of Image Technoglogy, Inc. Image encoding/decoding method and device

Also Published As

Publication number Publication date
KR101475286B1 (en) 2014-12-23

Similar Documents

Publication Publication Date Title
DK3282705T3 (en) PROCEDURE FOR DECODING AND APPARATUS FOR ENCODING A PICTURE THROUGH INTRAPHIC PREDICTION.
US11350125B2 (en) Method and device for intra-prediction
KR102138828B1 (en) Method and Apparatus for image encoding
KR102014177B1 (en) Video encoding/decoding method using error-resilient in-loop filter and signaling method relating to the same
KR101621854B1 (en) Tsm rate-distortion optimizing method, encoding method and device using the same, and apparatus for processing picture
US11962803B2 (en) Method and device for intra-prediction
JP2013150084A (en) Image coding method, image coding device, image decoding method, image decoding device, and program therefor
KR101475286B1 (en) Method and apparatus for intra prediction, and apparatus for processing picture
KR101443865B1 (en) Method and apparatus for inter prediction
KR101373670B1 (en) Method and apparatus for intra prediction
KR101375699B1 (en) Method and apparatus for intra prediction
WO2014084674A2 (en) Intra prediction method and intra prediction apparatus using residual transform
KR101436949B1 (en) Method and apparatus for encoding picture, and apparatus for processing picture
KR20160106348A (en) Video Coding Method and Apparatus thereof
KR20130049604A (en) Mode Switching Method in Entropy Coding
KR102206225B1 (en) Video encoding/decoding method using error-resilient in-loop filter and signaling method relating to the same
KR20140043014A (en) Method and apparatus for image encoding
KR20180041831A (en) Video coding method and apparatus using skip candidate list according to block partition
KR101802304B1 (en) Methods of encoding using hadamard transform and apparatuses using the same
KR101347272B1 (en) Method and apparatus for inter prediction
KR20140076652A (en) Fast intra coding method and apparatus using coding unit split based on threshold value
KR20140129419A (en) Method for intra-prediction using residual transform, and apparatus thereof
KR20130107611A (en) Methods of encoding and decoding using bottom-up prediction mode decision and apparatuses for using the same

Legal Events

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

Payment date: 20171204

Year of fee payment: 4

FPAY Annual fee payment

Payment date: 20181224

Year of fee payment: 5

FPAY Annual fee payment

Payment date: 20191209

Year of fee payment: 6