KR20170125724A - Method for coding and decoding intra-prediction, and atparatus for the same - Google Patents

Method for coding and decoding intra-prediction, and atparatus for the same Download PDF

Info

Publication number
KR20170125724A
KR20170125724A KR1020170054664A KR20170054664A KR20170125724A KR 20170125724 A KR20170125724 A KR 20170125724A KR 1020170054664 A KR1020170054664 A KR 1020170054664A KR 20170054664 A KR20170054664 A KR 20170054664A KR 20170125724 A KR20170125724 A KR 20170125724A
Authority
KR
South Korea
Prior art keywords
prediction
temporary
mode
adaptive
unit
Prior art date
Application number
KR1020170054664A
Other languages
Korean (ko)
Other versions
KR102031120B1 (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 한국항공대학교산학협력단
Publication of KR20170125724A publication Critical patent/KR20170125724A/en
Application granted granted Critical
Publication of KR102031120B1 publication Critical patent/KR102031120B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/103Selection of coding mode or of prediction mode
    • H04N19/11Selection of coding mode or of prediction mode among a plurality of spatial predictive coding modes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/103Selection of coding mode or of prediction mode
    • H04N19/105Selection of the reference unit for prediction within a chosen coding or prediction mode, e.g. adaptive choice of position and number of pixels used for prediction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/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

Abstract

A method for coding and decoding intra-prediction according to the present invention includes a step of setting a plurality of temporary prediction directions; a step of generating temporal prediction direction information corresponding to the plurality of temporal prediction directions; a step of setting at least one adaptive directional mode selected from the plurality of temporary prediction directions; and a step of performing intra-prediction on the intra-prediction modes including the at least one adaptive direction mode, and determining the intra-prediction mode of a current block. It is possible to reduce the number of encoding bits.

Description

인트라 예측 부호화 및 복호화 방법과 상기 방법을 수행하는 장치{METHOD FOR CODING AND DECODING INTRA-PREDICTION, AND ATPARATUS FOR THE SAME}BACKGROUND OF THE INVENTION 1. Field of the Invention [0001] The present invention relates to an intra prediction encoding method and an apparatus for performing the intra prediction encoding and decoding method,

본 발명은 영상 부호화 및 복호화 방법 및 장치에 관한 것으로, 특히 인트라 예측 부호화 및 복호화 방법 및 장치에 관한 것이다.BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a video encoding and decoding method and apparatus, and more particularly, to a method and apparatus for intraprediction encoding and decoding.

최근 HD(High Definition) 영상 및 UHD(Ultra High Definition) 영상과 같은 고해상도, 고품질의 영상에 대한 수요가 다양한 응용 분야에서 증가하고 있다. 영상 데이터가 고해상도, 고품질이 될수록 기존의 영상 데이터에 비해 상대적으로 데이터량이 증가하기 때문에 기존의 유무선 광대역 회선과 같은 매체를 이용하여 영상 데이터를 전송하거나 기존의 저장 매체를 이용해 저장하는 경우, 전송 비용과 저장 비용이 증가하게 된다. 영상 데이터가 고해상도, 고 품질화 됨에 따라 발생하는 이러한 문제들을 해결하기 위해서는 고효율의 영상 압축 기술들이 활용될 수 있다.Recently, the demand for high resolution and high quality images such as high definition (HD) image and ultra high definition (UHD) image is increasing in various applications. As the image data has high resolution and high quality, the amount of data 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 using an existing storage medium, The storage cost is increased. High-efficiency image compression techniques can be used to solve these problems caused by high-resolution and high-quality image data.

영상 압축 기술로 현재 픽쳐의 이전 또는 이후 픽쳐로부터 현재 픽쳐에 포함된 픽셀값을 예측하는 화면 간 예측 기술, 현재 픽쳐 내의 픽셀 정보를 이용하여 현재 픽쳐에 포함된 픽셀값을 예측하는 화면 내 예측 기술, 출현 빈도가 높은 값에 짧은 부호를 할당하고 출현 빈도가 낮은 값에 긴 부호를 할당하는 엔트로피 부호화 기술 등 다양한 기술이 존재하고 이러한 영상 압축 기술을 이용해 영상 데이터를 효과적으로 압축하여 전송 또는 저장할 수 있다.An inter picture 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 picture prediction technique for predicting a pixel value included in a current picture using pixel information in the current picture, There are various techniques such as an entropy encoding technique in which a short code is assigned to a value having a high appearance frequency and a long code is assigned to a value having a low appearance frequency. Image data can be effectively compressed and transmitted or stored using such an image compression technique.

한편, 고해상도 영상에 대한 수요가 증가함과 함께, 새로운 영상 서비스로서 입체 영상 콘텐츠에 대한 수요도 함께 증가하고 있다. 고해상도 및 초고해상도의 입체 영상 콘텐츠를 효과적으로 제공하기 위한 비디오 압축 기술에 대하여 논의가 진행되고 있다.On the other hand, demand for high resolution images is increasing, and demand for stereoscopic image contents as a new image service is also increasing. Video compression techniques are being discussed to effectively provide high resolution and ultra-high resolution stereoscopic content.

본 발명은 비디오 신호를 부호화/복호화함에 있어서, 상대적으로 많이 참조되는 영역을 고려하여 적응적으로 인트라 예측 방향을 설정할 수 있는 방법 및 장치를 제공할 수 있다. The present invention can provide a method and apparatus for adaptively setting an intra prediction direction in consideration of a relatively large reference area in coding / decoding a video signal.

또한, 본 발명은 적응적으로 인트라 예측 방향을 설정함에 따라, 정확한 인트라 예측 모드를 설정할 수 있으며, 나아가 부호화 비트수를 줄일 수 있는 방법 및 장치를 제공할 수 있다. In addition, the present invention can provide a method and apparatus capable of setting an accurate intra prediction mode by setting the intra prediction direction adaptively and further reducing the number of encoding bits.

또한, 본 발명은 부호화 장치 및 복호화 장치의 하드웨어 환경, 부호화 장치와 복호화 장치 사이의 통신 환경 등을 고려하여 적응적으로 인트라 예측 방향을 설정할 수 있는 방법 및 장치를 제공할 수 있다. In addition, the present invention can provide a method and apparatus for adaptively setting an intra prediction direction in consideration of a hardware environment of an encoding apparatus and a decoding apparatus, a communication environment between the encoding apparatus and a decoding apparatus, and the like.

본 발명의 일 측면에 따른 인트라 예측 부호화 방법은 복수의 임시 예측 방향을 설정하는 단계와, 상기 복수의 임시 예측 방향에 대응되는 임시 예측 방향 정보를 생성하는 단계와, 상기 복수의 임시 예측 방향에서 선택된 적어도 하나의 적응적 방향 모드를 설정하는 단계와, 상기 적어도 하나의 적응적 방향 모드를 포함하는 인트라 예측 모드들에 대한 인트라 예측을 수행하여, 현재 블록의 인트라 예측 모드를 결정하는 단계를 포함할 수 있다. According to an aspect of the present invention, there is provided an intra prediction encoding method comprising: setting a plurality of temporary prediction directions; generating temporary prediction direction information corresponding to the plurality of temporary prediction directions; Setting at least one adaptive directional mode and performing intra prediction for intra prediction modes including the at least one adaptive directional mode to determine an intra prediction mode of the current block have.

본 발명의 다른 측면에 따른 인트라 예측 복호화 방법은 복수의 임시 예측 방향을 설정하는 단계와, 상기 임시 예측 방향에 대한 임시 예측 방향 정보를 생성하는 단계와, 상기 복수의 임시 예측 방향에서 선택되는 적어도 하나의 적응적 방향 모드를 설정하는 단계와, 부호화된 인트라 예측 모드를 확인하고, 상기 적어도 하나의 적응적 방향 모드를 포함하는 인트라 예측 모드들에 대한 인트라 예측을 수행하여, 예측 블록을 복원하는 단계를 포함할 수 있다. According to another aspect of the present invention, there is provided an intra prediction decoding method comprising: setting a plurality of temporary prediction directions; generating temporary prediction direction information for the temporary prediction direction; Determining an intra prediction mode of the coded intra prediction mode, performing intra prediction on the intra prediction modes including the at least one adaptive direction mode, and restoring the prediction block .

본 발명의 또 다른 측면에 따른 인트라 예측 부호화 장치는 복수의 임시 예측 방향을 설정하고, 상기 복수의 임시 예측 방향에 대한 임시 예측 방향 정보를 생성하는 임시 예측 방향 정보 생성부와, 상기 복수의 임시 예측 방향에서 선택된 적어도 하나의 적응적 방향 모드를 설정하는 적응적 방향 모드 설정부와, 상기 적어도 하나의 적응적 방향 모드를 포함하는 인트라 예측 모드들에 대한 인트라 예측을 수행하여, 상기 현재 블록의 인트라 예측 모드를 결정하는 인트라 예측 모드 결정부를 포함힐 수 있다. According to another aspect of the present invention, there is provided an intra-prediction encoding apparatus including a temporary prediction direction information generation unit for setting a plurality of temporary prediction directions and generating temporary prediction direction information for the plurality of temporary prediction directions, Wherein the intra prediction mode comprises at least one adaptive directional mode setting unit configured to set at least one adaptive directional mode selected from a plurality of intra-prediction modes, and intra-prediction modes including the at least one adaptive directional mode, And an intra prediction mode determining unit for determining a mode.

본 발명의 또 다른 측면에 따른 인트라 예측 복호화 장치는 복수의 임시 예측 방향을 설정하고, 상기 복수의 임시 예측 방향에 대한 임시 예측 방향 정보를 생성하는 임시 예측 방향 정보 생성부와, 상기 복수의 임시 예측 방향에서 선택된 적어도 하나의 적응적 방향 모드를 설정하는 적응적 방향 모드 설정부와, 부호화된 인트라 예측 모드를 확인하고, 상기 적어도 하나의 적응적 방향 모드를 포함하는 인트라 예측 모드들에 대한 인트라 예측을 수행하여, 예측 블록을 복원하는 인트라 예측 모드 복원부를 포함할 수 있다. According to another aspect of the present invention, there is provided an intra prediction decoding apparatus comprising: a temporary prediction direction information generation unit that sets a plurality of temporary prediction directions and generates temporary prediction direction information for the plurality of temporary prediction directions; And an intra prediction mode setting unit for setting at least one of the intra prediction modes for the intra prediction modes including the at least one adaptive direction mode, And an intra prediction mode reconstructing unit for reconstructing the prediction block.

본 발명에 의하면, 상대적으로 많이 참조되는 영역에 위치한 참조 픽처가 존재하는 방향에 대응하여 적응적으로 인트라 예측 방향을 설정함으로써, 정확한 인트라 예측 모드를 설정할 수 있으며, 나아가 부호화 비트수를 줄일 수 있다. According to the present invention, an intraprediction direction can be set adaptively according to a direction in which a reference picture located in a relatively-referenced area exists, thereby making it possible to set an accurate intra prediction mode and further reduce the number of encoding bits.

또한, 본 발명에 의하면, 부호화 장치 및 복호화 장치의 하드웨어 환경, 부호화 장치와 복호화 장치 사이의 통신 환경 등을 고려하여 적응적으로 인트라 예측 방향을 설정하여 효율적인 부호화 및 복호화를 실현할 수 있다. Further, according to the present invention, it is possible to adaptively set the intra prediction direction in consideration of the hardware environment of the coding apparatus and the decoding apparatus, the communication environment between the coding apparatus and the decoding apparatus, and realize efficient coding and decoding.

도 1은 본 발명의 일 실시예에 따른 영상 부호화 장치를 나타낸 블록도이다.
도 2는 본 발명의 일 실시예에 따른 영상 복호화 장치를 나타낸 블록도이다.
도 3은 본 발명의 일 실시예에 따른 영상 부호화 장치에 구비된 인트라 예측부의 상세 구성을 예시하는 블록도이다.
도 4는 본 발명의 일 실시예에 따른 현재 블록과 참조 블록을 예시하는 도면이다.
도 5는 본 발명의 일 실시예에 따른 임시 예측 방향 정보 생성부에 의해 설정되는 임시 예측 방향을 예시하는 도면이다.
도 6는 본 발명의 일 실시예에 따른 임시 예측 방향 정보 생성부에 의해 생성되는 임시 블록의 일 예시도 이다.
도 7은 본 발명의 일 실시예에 따른 적응적 방향 모드 설정부에 의해 단계적으로 결정되는 적응적 방향 모드를 예시하는 도면이다.
도 8은 본 발명의 일 실시예에 따른 적응적 방향 모드 설정부에 의해 결정된 적응적 방향 모드의 일 예시도이다.
도 9는 본 발명의 일 실시예에 따른 영상 복호화 장치에 구비되는 인트라 예측부의 상세 구성을 예시하는 블록도이다.
도 10은 본 발명의 일 실시예에 따른 인트라 예측 부호화 방법을 설명하기 위한 흐름도이다.
도 11은 본 발명의 일 실시예에 따른 인트라 예측 복호화 방법을 설명하기 위한 흐름도이다.
1 is a block diagram illustrating an image encoding apparatus according to an embodiment of the present invention.
2 is a block diagram illustrating an image decoding apparatus according to an embodiment of the present invention.
3 is a block diagram illustrating a detailed configuration of an intra predictor included in an image encoding apparatus according to an exemplary embodiment of the present invention.
4 is a diagram illustrating a current block and a reference block according to an embodiment of the present invention.
5 is a diagram illustrating a temporary prediction direction set by the temporary prediction direction information generation unit according to an embodiment of the present invention.
6 is a diagram illustrating an example of a temporary block generated by the temporary prediction direction information generation unit according to an embodiment of the present invention.
FIG. 7 is a diagram illustrating an adaptive direction mode that is determined stepwise by an adaptive directional mode setting unit according to an embodiment of the present invention.
8 is an example of an adaptive direction mode determined by the adaptive direction mode setting unit according to an embodiment of the present invention.
9 is a block diagram illustrating a detailed configuration of an intra predictor included in an image decoding apparatus according to an embodiment of the present invention.
10 is a flowchart illustrating an intra prediction encoding method according to an embodiment of the present invention.
11 is a flowchart illustrating an intra prediction decoding method according to an embodiment of the present invention.

본 발명은 다양한 변경을 가할 수 있고 여러 가지 실시예를 가질 수 있는 바, 특정 실시예들을 도면에 예시하고 상세한 설명에 상세하게 설명하고자 한다. 그러나, 이는 본 발명을 특정한 실시 형태에 대해 한정하려는 것이 아니며, 본 발명의 사상 및 기술 범위에 포함되는 모든 변경, 균등물 내지 대체물을 포함하는 것으로 이해되어야 한다. 각 도면을 설명하면서 유사한 참조부호를 유사한 구성요소에 대해 사용하였다.While the invention is susceptible to various modifications and alternative forms, specific embodiments thereof are shown by way of example in the drawings and will herein be described in detail. It should be understood, however, that the invention is not intended to be limited to the particular embodiments, but includes all modifications, equivalents, and alternatives falling within the spirit and scope of the invention. Like reference numerals are used for like elements in describing each drawing.

제1, 제2 등의 용어는 다양한 구성요소들을 설명하는데 사용될 수 있지만, 상기 구성요소들은 상기 용어들에 의해 한정되어서는 안 된다. 상기 용어들은 하나의 구성요소를 다른 구성요소로부터 구별하는 목적으로만 사용된다. 예를 들어, 본 발명의 권리 범위를 벗어나지 않으면서 제1 구성요소는 제2 구성요소로 명명될 수 있고, 유사하게 제2 구성요소도 제1 구성요소로 명명될 수 있다. 및/또는 이라는 용어는 복수의 관련된 기재된 항목들의 조합 또는 복수의 관련된 기재된 항목들 중의 어느 항목을 포함한다.The terms first, second, etc. may be used to describe various components, but the components should not be limited by the terms. The terms are used only for the purpose of distinguishing one component from another. For example, without departing from the scope of the present invention, the first component may be referred to as a second component, and similarly, the second component may also be referred to as a first component. And / or < / RTI > includes any combination of a plurality of related listed items or any of a plurality of related listed items.

어떤 구성요소가 다른 구성요소에 "연결되어" 있다거나 "접속되어"있다고 언급된 때에는, 그 다른 구성요소에 직접적으로 연결되어 있거나 또는 접속되어 있을 수도 있지만, 중간에 다른 구성요소가 존재할 수도 있다고 이해되어야 할 것이다. 반면에, 어떤 구성요소가 다른 구성요소에 "직접 연결되어"있다거나 "직접 접속되어"있다고 언급된 때에는, 중간에 다른 구성요소가 존재하지 않는 것으로 이해되어야 할 것이다.It is to be understood that when an element is referred to as being "connected" or "connected" to another element, it may be directly connected or connected to the other element, . On the other hand, when an element is referred to as being "directly connected" or "directly connected" to another element, it should be understood that there are no other elements in between.

본 출원에서 사용한 용어는 단지 특정한 실시예를 설명하기 위해 사용된 것으로, 본 발명을 한정하려는 의도가 아니다. 단수의 표현은 문맥상 명백하게 다르게 뜻하지 않는 한, 복수의 표현을 포함한다. 본 출원에서, "포함하다" 또는 "가지다" 등의 용어는 명세서상에 기재된 특징, 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것이 존재함을 지정하려는 것이지, 하나 또는 그 이상의 다른 특징들이나 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것들의 존재 또는 부가 가능성을 미리 배제하지 않는 것으로 이해되어야 한다.The terminology used in this application is used only to describe a specific embodiment and is not intended to limit the invention. The singular expressions include plural expressions unless the context clearly dictates otherwise. In the present application, the terms "comprises" or "having" and the like are used to specify that there is a feature, a number, a step, an operation, an element, a component or a combination thereof described in the specification, But do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, or combinations thereof.

본 개시에서 사용하는 용어에 대한 정의는 다음과 같다.The definitions of the terms used in the present disclosure are as follows.

임시 예측 방향은 전체 예측 방향의 범위를 미리 정해진 규칙에 따라, 미리 정해진 수로 분할한 방향일 수 있다.The temporary prediction direction may be a direction in which the range of the entire prediction direction is divided into a predetermined number according to a predetermined rule.

임시 블록은 각각의 상기 임시 예측 방향에 존재하는 참조 픽셀 정보를 바탕으로 예측한 블록을 포함할 수 있다. The temporary block may include a block predicted based on reference pixel information existing in each temporary prediction direction.

이하, 첨부한 도면들을 참조하여, 본 발명의 바람직한 실시예를 보다 상세하게 설명하고자 한다. 이하, 도면상의 동일한 구성요소에 대해서는 동일한 참조부호를 사용하고 동일한 구성요소에 대해서 중복된 설명은 생략한다.Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings. Hereinafter, the same reference numerals will be used for the same constituent elements in the drawings, and redundant explanations for the same constituent elements will be omitted.

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

도 1을 참조하면, 영상 부호화 장치(100)는 픽쳐 분할부(110), 예측부(120, 125), 변환부(130), 양자화부(135), 재정렬부(160), 엔트로피 부호화부(165), 역양자화부(140), 역변환부(145), 필터부(150) 및 메모리(155)를 포함할 수 있다.1, the image encoding apparatus 100 includes a picture division unit 110, prediction units 120 and 125, a transform unit 130, a quantization unit 135, a reordering unit 160, an entropy encoding unit An inverse quantization unit 140, an inverse transform unit 145, a filter unit 150, and a memory 155. [

도 1에 나타난 각 구성부들은 영상 부호화 장치에서 서로 다른 특징적인 기능들을 나타내기 위해 독립적으로 도시한 것으로, 각 구성부들이 분리된 하드웨어나 하나의 소프트웨어 구성단위로 이루어짐을 의미하지 않는다. 즉, 각 구성부는 설명의 편의상 각각의 구성부로 나열하여 포함한 것으로 각 구성부 중 적어도 두 개의 구성부가 합쳐져 하나의 구성부로 이루어지거나, 하나의 구성부가 복수개의 구성부로 나뉘어져 기능을 수행할 수 있고 이러한 각 구성부의 통합된 실시예 및 분리된 실시예도 본 발명의 본질에서 벗어나지 않는 한 본 발명의 권리범위에 포함된다.Each of the components shown in FIG. 1 is shown independently to represent different characteristic functions in the image encoding apparatus, and does not mean that each component is composed of separate hardware or one software configuration unit. That is, each constituent unit is included in each constituent unit for convenience of explanation, and at least two constituent units of the constituent units may be combined to form one constituent unit, or one constituent unit may be divided into a plurality of constituent units to perform a function. The integrated embodiments and separate embodiments of the components are also included within the scope of the present invention, unless they depart from the essence of the present invention.

또한, 일부의 구성 요소는 본 발명에서 본질적인 기능을 수행하는 필수적인 구성 요소는 아니고 단지 성능을 향상시키기 위한 선택적 구성 요소일 수 있다. 본 발명은 단지 성능 향상을 위해 사용되는 구성 요소를 제외한 본 발명의 본질을 구현하는데 필수적인 구성부만을 포함하여 구현될 수 있고, 단지 성능 향상을 위해 사용되는 선택적 구성 요소를 제외한 필수 구성 요소만을 포함한 구조도 본 발명의 권리범위에 포함된다.In addition, some of the components are not essential components to perform essential functions in the present invention, but may be optional components only to improve performance. The present invention can be implemented only with components essential for realizing the essence of the present invention, except for the components used for the performance improvement, and can be implemented by only including the essential components except the optional components used for performance improvement Are also included in the scope of the present invention.

픽쳐 분할부(110)는 입력된 픽쳐를 적어도 하나의 처리 단위로 분할할 수 있다. 이때, 처리 단위는 예측 단위(Prediction Unit: PU)일 수도 있고, 변환 단위(Transform Unit: TU)일 수도 있으며, 부호화 단위(Coding Unit: CU)일 수도 있다. 픽쳐 분할부(110)에서는 하나의 픽쳐에 대해 복수의 부호화 단위, 예측 단위 및 변환 단위의 조합으로 분할하고 소정의 기준(예를 들어, 비용 함수)으로 하나의 부호화 단위, 예측 단위 및 변환 단위 조합을 선택하여 픽쳐를 부호화 할 수 있다.The picture division unit 110 may divide the input picture into at least one processing unit. At this time, the processing unit may be a prediction unit (PU), a transform unit (TU), or a coding unit (CU). The picture division unit 110 divides one picture into a plurality of coding units, a prediction unit, and a combination of conversion units, and generates a coding unit, a prediction unit, and a conversion unit combination So that the picture can be encoded.

예를 들어, 하나의 픽쳐는 복수개의 부호화 단위로 분할될 수 있다. 픽쳐에서 부호화 단위를 분할하기 위해서는 쿼드 트리 구조(Quad Tree Structure)와 같은 재귀적인 트리 구조를 사용할 수 있는데 하나의 영상 또는 최대 크기 부호화 단위(largest coding unit)를 루트로 하여 다른 부호화 단위로 분할되는 부호화 유닛은 분할된 부호화 단위의 개수만큼의 자식 노드를 가지고 분할될 수 있다. 일정한 제한에 따라 더 이상 분할되지 않는 부호화 단위는 리프 노드가 된다. 즉, 하나의 코딩 유닛에 대하여 정방형 분할만이 가능하다고 가정하는 경우, 하나의 부호화 단위는 최대 4개의 다른 부호화 단위로 분할될 수 있다.For example, one picture may be divided into a plurality of coding units. In order to divide a coding unit in a picture, a recursive tree structure such as a quad tree structure can be used. In a coding or decoding scheme in which one picture or a largest coding unit is used as a root and divided into other coding units A unit can be divided with as many child nodes as the number of divided coding units. Under certain constraints, an encoding unit that is no longer segmented becomes a leaf node. That is, when it is assumed that only one square division is possible for one coding unit, one coding unit can be divided into a maximum of four different coding units.

이하, 본 발명의 실시예에서는 부호화 단위는 부호화를 수행하는 단위의 의미로 사용할 수도 있고, 복호화를 수행하는 단위의 의미로 사용할 수도 있다.Hereinafter, in the embodiment of the present invention, a coding unit may be used as a unit for performing coding, or may be used as a unit for performing decoding.

예측 단위는 하나의 부호화 단위 내에서 동일한 크기의 적어도 하나의 정사각형 또는 직사각형 등의 형태를 가지고 분할된 것일 수도 있고, 하나의 부호화 단위 내에서 분할된 예측 단위 중 어느 하나의 예측 단위가 다른 하나의 예측 단위와 상이한 형태 및/또는 크기를 가지도록 분할된 것일 수도 있다.The prediction unit may be one divided into at least one square or rectangular shape having the same size in one coding unit, and one of the prediction units in one coding unit may be divided into another prediction Or may have a shape and / or size different from the unit.

부호화 단위를 기초로 인트라 예측을 수행하는 예측 단위를 생성시 최소 부호화 단위가 아닌 경우, 복수의 예측 단위 NxN 으로 분할하지 않고 인트라 예측을 수행할 수 있다.If a prediction unit performing intra prediction on the basis of an encoding unit is not the minimum encoding unit at the time of generation, intraprediction can be performed without dividing the prediction unit into a plurality of prediction units NxN.

예측부(120, 125)는 인터 예측을 수행하는 인터 예측부(120)와 인트라 예측을 수행하는 인트라 예측부(125)를 포함할 수 있다. 예측 단위에 대해 인터 예측을 사용할 것인지 또는 인트라 예측을 수행할 것인지를 결정하고, 각 예측 방법에 따른 구체적인 정보(예컨대, 인트라 예측 모드, 모션 벡터, 참조 픽쳐 등)를 결정할 수 있다. 이때, 예측이 수행되는 처리 단위와 예측 방법 및 구체적인 내용이 정해지는 처리 단위는 다를 수 있다. 예컨대, 예측의 방법과 예측 모드 등은 예측 단위로 결정되고, 예측의 수행은 변환 단위로 수행될 수도 있다. 생성된 예측 블록과 원본 블록 사이의 잔차값(잔차 블록)은 변환부(130)로 입력될 수 있다. 또한, 예측을 위해 사용한 예측 모드 정보, 모션 벡터 정보 등은 잔차값과 함께 엔트로피 부호화부(165)에서 부호화되어 복호화기에 전달될 수 있다. 특정한 부호화 모드를 사용할 경우, 예측부(120, 125)를 통해 예측 블록을 생성하지 않고, 원본 블록을 그대로 부호화하여 복호화부에 전송하는 것도 가능하다.The prediction units 120 and 125 may include an inter prediction unit 120 for performing inter prediction and an intra prediction unit 125 for performing intra prediction. It is possible to determine whether to use inter prediction or intra prediction for a prediction unit and to determine concrete information (e.g., intra prediction mode, motion vector, reference picture, etc.) according to each prediction method. At this time, the processing unit in which the prediction is performed may be different from the processing unit in which the prediction method and the concrete contents are determined. For example, the method of prediction, the prediction mode and the like are determined as a prediction unit, and the execution of the prediction may be performed in a conversion unit. The residual value (residual block) between the generated prediction block and the original block can be input to the conversion unit 130. [ In addition, the prediction mode information, motion vector information, and the like used for prediction can be encoded by the entropy encoding unit 165 together with the residual value and transmitted to the decoder. When a particular encoding mode is used, it is also possible to directly encode the original block and transmit it to the decoding unit without generating a prediction block through the prediction units 120 and 125.

인터 예측부(120)는 현재 픽쳐의 이전 픽쳐 또는 이후 픽쳐 중 적어도 하나의 픽쳐의 정보를 기초로 예측 단위를 예측할 수도 있고, 경우에 따라서는 현재 픽쳐 내의 부호화가 완료된 일부 영역의 정보를 기초로 예측 단위를 예측할 수도 있다. 인터 예측부(120)는 참조 픽쳐 보간부, 모션 예측부, 움직임 보상부를 포함할 수 있다. The inter-prediction unit 120 may predict a prediction unit based on information of at least one of a previous picture or a following picture of the current picture, and may predict a prediction unit based on information of a partially- Unit may be predicted. The inter prediction unit 120 may include a reference picture interpolation unit, a motion prediction unit, and a motion compensation unit.

참조 픽쳐 보간부에서는 메모리(155)로부터 참조 픽쳐 정보를 제공받고 참조 픽쳐에서 정수 픽셀 이하의 픽셀 정보를 생성할 수 있다. 휘도 픽셀의 경우, 1/4 픽셀 단위로 정수 픽셀 이하의 픽셀 정보를 생성하기 위해 필터 계수를 달리하는 DCT 기반의 8탭 보간 필터(DCT-based Interpolation Filter)가 사용될 수 있다. 색차 신호의 경우 1/8 픽셀 단위로 정수 픽셀 이하의 픽셀 정보를 생성하기 위해 필터 계수를 달리하는 DCT 기반의 4탭 보간 필터(DCT-based Interpolation Filter)가 사용될 수 있다.In the reference picture interpolating unit, reference picture information is supplied from the memory 155 and pixel information of an integer pixel or less can be generated in the reference picture. In the case of a luminance pixel, a DCT-based Interpolation Filter (DCT) based on a different filter coefficient may be used to generate pixel information of less than an integer number of pixels in quarter-pixel units. In the case of a color difference signal, a DCT-based 4-tap interpolation filter may be used that generates a pixel information of an integer number of pixels or less in units of 1/8 pixel.

모션 예측부는 참조 픽쳐 보간부에 의해 보간된 참조 픽쳐를 기초로 모션 예측을 수행할 수 있다. 모션 벡터를 산출하기 위한 방법으로 FBMA(Full search-based Block Matching Algorithm), TSS(Three Step Search), NTS(New Three-Step Search Algorithm) 등 다양한 방법이 사용될 수 있다. 모션 벡터는 보간된 픽셀을 기초로 1/2 또는 1/4 픽셀 단위의 모션 벡터값을 가질 수 있다. 모션 예측부에서는 모션 예측 방법을 다르게 하여 현재 예측 단위를 예측할 수 있다. 모션 예측 방법으로 스킵(Skip) 방법, 머지(Merge) 방법, AMVP(Advanced Motion Vector Prediction) 방법, 인트라 블록 카피(Intra Block Copy) 방법 등 다양한 방법이 사용될 수 있다.The motion prediction unit may perform motion prediction based on the reference picture interpolated by the reference picture interpolating unit. Various methods such as Full Search-based Block Matching Algorithm (FBMA), Three Step Search (TSS), and New Three-Step Search Algorithm (NTS) can be used as methods for calculating motion vectors. The motion vector may have a motion vector value of 1/2 or 1/4 pixel unit based on the interpolated pixel. The motion prediction unit can predict the current prediction unit by making the motion prediction method different. Various methods such as a skip method, a merge method, an AMVP (Advanced Motion Vector Prediction) method, and an Intra Block Copy method can be used as the motion prediction method.

인트라 예측부(125)는 현재 픽쳐 내의 픽셀 정보인 현재 블록 주변의 참조 픽셀 정보를 기초로 예측 단위를 설정하고, 설정된 예측 단위에 대한 인트라 예측을 수행하여 예측 블록을 생성할 수 있다. 현재 예측 단위의 주변 블록이 인터 예측을 수행한 블록이어서, 참조 픽셀이 인터 예측을 수행한 픽셀일 경우, 인터 예측을 수행한 블록에 포함되는 참조 픽셀을 주변의 인트라 예측을 수행한 블록의 참조 픽셀 정보로 대체하여 사용할 수 있다. 즉, 참조 픽셀이 가용하지 않는 경우, 가용하지 않은 참조 픽셀 정보를 가용한 참조 픽셀 중 적어도 하나의 참조 픽셀로 대체하여 사용할 수 있다.The intraprediction unit 125 may set a prediction unit based on reference pixel information around the current block, which is pixel information in the current picture, and perform intra prediction on the set prediction unit to generate a prediction block. In the case where the neighboring block of the current prediction unit is the block in which the inter prediction is performed so that the reference pixel is the pixel performing the inter prediction, the reference pixel included in the block in which the inter prediction is performed is referred to as the reference pixel Information. That is, when the reference pixel is not available, the reference pixel information that is not available may be replaced by at least one reference pixel among the available reference pixels.

인트라 예측에서 예측 모드는 참조 픽셀 정보를 예측 방향에 따라 사용하는 방향성 예측 모드와 예측을 수행시 방향성 정보를 사용하지 않는 비방향성 모드를 가질 수 있다. 휘도 정보를 예측하기 위한 모드와 색차 정보를 예측하기 위한 모드가 상이할 수 있고, 색차 정보를 예측하기 위해 휘도 정보를 예측하기 위해 사용된 인트라 예측 모드 정보 또는 예측된 휘도 신호 정보를 활용할 수 있다.In intra prediction, the prediction mode may have a directional prediction mode in which reference pixel information is used according to a prediction direction, and a non-directional mode in which direction information is not used in prediction. The mode for predicting the luminance information may be different from the mode for predicting the chrominance information and the intra prediction mode information or predicted luminance signal information used for predicting the luminance information may be utilized to predict the chrominance information.

인트라 예측을 수행할 때 예측 단위의 크기와 변환 단위의 크기가 동일할 경우, 예측 단위의 좌측에 존재하는 픽셀, 좌측 상단에 존재하는 픽셀, 상단에 존재하는 픽셀을 기초로 예측 단위에 대한 인트라 예측을 수행할 수 있다. 그러나 인트라 예측을 수행할 때 예측 단위의 크기와 변환 단위의 크기가 상이할 경우, 변환 단위를 기초로 한 참조 픽셀을 이용하여 인트라 예측을 수행할 수 있다. 또한, 최소 부호화 단위에 대해서만 N x N 분할을 사용하는 인트라 예측을 사용할 수 있다.When intraprediction is performed, when the size of the prediction unit is the same as the size of the conversion unit, intra prediction is performed on the prediction unit based on pixels existing on the left side of the prediction unit, pixels existing on the upper left side, Can be performed. However, when intra prediction is performed, when the size of the prediction unit differs from the size of the conversion unit, intraprediction can be performed using the reference pixel based on the conversion unit. It is also possible to use intra prediction using N x N divisions for only the minimum coding units.

인트라 예측 방법은 예측 모드에 따라 참조 픽셀에 적응형 인트라 평활 필터(AISFAdaptive Intra Smoothing Filter)를 적용한 후 예측 블록을 생성할 수 있다. 참조 픽셀에 적용되는 적응형 인트라 평활 필터의 종류는 상이할 수 있다. 인트라 예측 방법을 수행하기 위해 현재 예측 단위의 인트라 예측 모드는 현재 예측 단위의 주변에 존재하는 예측 단위의 인트라 예측 모드로부터 예측할 수 있다. 주변 예측 단위로부터 예측된 모드 정보를 이용하여 현재 예측 단위의 예측 모드를 예측하는 경우, 현재 예측 단위와 주변 예측 단위의 인트라 예측 모드가 동일하면 소정의 플래그 정보를 이용하여 현재 예측 단위와 주변 예측 단위의 예측 모드가 동일하다는 정보를 전송할 수 있고, 만약 현재 예측 단위와 주변 예측 단위의 예측 모드가 상이하면 엔트로피 부호화를 수행하여 현재 블록의 예측 모드 정보를 부호화할 수 있다.In the intra prediction method, an adaptive intra-smoothing filter (AISFAdaptive Intra Smoothing Filter) may be applied to a reference pixel according to a prediction mode, and then a prediction block may be generated. The type of adaptive intra smoothing filter applied to the reference pixel may be different. In order to perform the intra prediction method, the intra prediction mode of the current prediction unit can be predicted from the intra prediction mode of the prediction unit existing around the current prediction unit. In the case where the prediction mode of the current prediction unit is predicted using the mode information predicted from the peripheral prediction unit, if the intra prediction mode of the current prediction unit is the same as the intra prediction mode of the current prediction unit, The prediction mode information of the current block can be encoded by performing entropy encoding if the prediction mode of the current prediction unit is different from the prediction mode of the neighbor prediction unit.

또한, 예측부(120, 125)에서 생성된 예측 단위를 기초로 예측을 수행한 예측 단위와 예측 단위의 원본 블록과 차이값인 잔차값(Residual) 정보를 포함하는 잔차 블록이 생성될 수 있다. 생성된 잔차 블록은 변환부(130)로 입력될 수 있다. In addition, a residual block including a prediction unit that has been predicted based on the prediction unit generated by the prediction units 120 and 125 and a residual value that is a difference value from the original block of the prediction unit may be generated. The generated residual block may be input to the transform unit 130. [

변환부(130)에서는 원본 블록과 예측부(120, 125)를 통해 생성된 예측 단위의 잔차값(residual)정보를 포함한 잔차 블록을 DCT(Discrete Cosine Transform), DST(Discrete Sine Transform), KLT(Karhunen-Loeve Transform)와 같은 변환 방법을 사용하여 변환시킬 수 있다. 잔차 블록을 변환하기 위해 DCT를 적용할지, DST를 적용할지 또는 KLT를 적용할지는 잔차 블록을 생성하기 위해 사용된 예측 단위의 인트라 예측 모드 정보를 기초로 결정할 수 있다. The transforming unit 130 transforms the residual block including the residual information of the prediction unit generated through the original block and the predictors 120 and 125 into a DCT (Discrete Cosine Transform), a DST (Discrete Sine Transform), a KLT Karhunen-Loeve Transform). The decision to apply the DCT, DST, or KLT to transform the residual block may be based on the intra prediction mode information of the prediction unit used to generate the residual block.

양자화부(135)는 변환부(130)에서 주파수 영역으로 변환된 값들을 양자화할 수 있다. 블록에 따라 또는 영상의 중요도에 따라 양자화 계수는 변할 수 있다. 양자화부(135)에서 산출된 값은 역양자화부(140)와 재정렬부(160)에 제공될 수 있다.The quantization unit 135 may quantize the values converted into the frequency domain by the conversion unit 130. [ The quantization factor may vary depending on the block or the importance of the image. The values calculated by the quantization unit 135 may be provided to the inverse quantization unit 140 and the reorder unit 160.

재정렬부(160)는 양자화된 잔차값에 대해 계수값의 재정렬을 수행할 수 있다.The reordering unit 160 can reorder the coefficient values with respect to the quantized residual values.

재정렬부(160)는 계수 스캐닝(Coefficient Scanning) 방법을 통해 2차원의 블록 형태 계수를 1차원의 벡터 형태로 변경할 수 있다. 예를 들어, 재정렬부(160)에서는 지그-재그 스캔(Zig-Zag Scan)방법을 이용하여 DC 계수부터 고주파수 영역의 계수까지 스캔하여 1차원 벡터 형태로 변경시킬 수 있다. 변환 단위의 크기 및 인트라 예측 모드에 따라 지그-재그 스캔 대신 2차원의 블록 형태 계수를 열 방향으로 스캔하는 수직 스캔, 2차원의 블록 형태 계수를 행 방향으로 스캔하는 수평 스캔이 사용될 수도 있다. 즉, 변환 단위의 크기 및 인트라 예측 모드에 따라 지그-재그 스캔, 수직 방향 스캔 및 수평 방향 스캔 중 어떠한 스캔 방법이 사용될지 여부를 결정할 수 있다.The reordering unit 160 may change the two-dimensional block type coefficient to a one-dimensional vector form through a coefficient scanning method. For example, the rearranging unit 160 may scan a DC coefficient to a coefficient in a high frequency region using a Zig-Zag scan method, and change the DC coefficient to a one-dimensional vector form. Instead of the jig-jag scan, a vertical scan may be used to scan two-dimensional block type coefficients in a column direction, and a horizontal scan to scan a two-dimensional block type coefficient in a row direction depending on the size of the conversion unit and the intra prediction mode. That is, it is possible to determine whether any scanning method among the jig-jag scan, the vertical direction scan and the horizontal direction scan is used according to the size of the conversion unit and the intra prediction mode.

엔트로피 부호화부(165)는 재정렬부(160)에 의해 산출된 값들을 기초로 엔트로피 부호화를 수행할 수 있다. 엔트로피 부호화는 예를 들어, 지수 골롬(Exponential Golomb), CAVLC(Context-Adaptive Variable Length Coding), CABAC(Context-Adaptive Binary Arithmetic Coding)과 같은 다양한 부호화 방법을 사용할 수 있다.The entropy encoding unit 165 may perform entropy encoding based on the values calculated by the reordering unit 160. For entropy encoding, various encoding methods such as Exponential Golomb, Context-Adaptive Variable Length Coding (CAVLC), and Context-Adaptive Binary Arithmetic Coding (CABAC) may be used.

엔트로피 부호화부(165)는 재정렬부(160) 및 예측부(120, 125)로부터 부호화 단위의 잔차값 계수 정보 및 블록 타입 정보, 예측 모드 정보, 분할 단위 정보, 예측 단위 정보 및 전송 단위 정보, 모션 벡터 정보, 참조 프레임 정보, 블록의 보간 정보, 필터링 정보 등 다양한 정보를 부호화할 수 있다. The entropy encoding unit 165 receives the residual value count information of the encoding unit, the block type information, the prediction mode information, the division unit information, the prediction unit information and the transmission unit information, and the motion information of the motion unit from the reordering unit 160 and the prediction units 120 and 125 Vector information, reference frame information, interpolation information of a block, filtering information, and the like.

엔트로피 부호화부(165)에서는 재정렬부(160)에서 입력된 부호화 단위의 계수값을 엔트로피 부호화할 수 있다.The entropy encoding unit 165 can entropy-encode the coefficient value of the encoding unit input by the reordering unit 160. [

역양자화부(140) 및 역변환부(145)에서는 양자화부(135)에서 양자화된 값들을 역양자화하고 변환부(130)에서 변환된 값들을 역변환한다. 역양자화부(140) 및 역변환부(145)에서 생성된 잔차값(Residual)은 예측부(120, 125)에 포함된 움직임 추정부, 움직임 보상부 및 인트라 예측부를 통해서 예측된 예측 단위와 합쳐져 복원 블록(Reconstructed Block)을 생성할 수 있다. The inverse quantization unit 140 and the inverse transformation unit 145 inverse quantize the quantized values in the quantization unit 135 and inversely transform the converted values in the conversion unit 130. [ The residual value generated by the inverse quantization unit 140 and the inverse transform unit 145 is combined with the prediction unit predicted through the motion estimation unit, the motion compensation unit and the intra prediction unit included in the prediction units 120 and 125, A block (Reconstructed Block) can be generated.

필터부(150)는 디블록킹 필터, 오프셋 보정부, 적응형 루프 필터(ALF; Adaptive Loop Filter)중 적어도 하나를 포함할 수 있다.The filter unit 150 may include at least one of a deblocking filter, an offset correction unit, and an adaptive loop filter (ALF).

디블록킹 필터는 복원된 픽쳐에서 블록간의 경계로 인해 생긴 블록 왜곡을 제거할 수 있다. 디블록킹을 수행할지 여부를 판단하기 위해 블록에 포함된 몇 개의 열 또는 행에 포함된 픽셀을 기초로 현재 블록에 디블록킹 필터 적용할지 여부를 판단할 수 있다. 블록에 디블록킹 필터를 적용하는 경우 필요한 디블록킹 필터링 강도에 따라 강한 필터(Strong Filter) 또는 약한 필터(Weak Filter)를 적용할 수 있다. 또한 디블록킹 필터를 적용함에 있어 수직 필터링 및 수평 필터링 수행시 수평 방향 필터링 및 수직 방향 필터링이 병행 처리되도록 할 수 있다.The deblocking filter can remove block distortion caused by the boundary between the blocks in the reconstructed picture. It may be determined whether to apply a deblocking filter to the current block based on pixels included in a few columns or rows included in the block to determine whether to perform deblocking. When a deblocking filter is applied to a block, a strong filter or a weak filter may be applied according to the deblocking filtering strength required. In applying the deblocking filter, horizontal filtering and vertical filtering may be performed concurrently in performing vertical filtering and horizontal filtering.

오프셋 보정부는 디블록킹을 수행한 영상에 대해 픽셀 단위로 원본 영상과의 오프셋을 보정할 수 있다. 특정 픽쳐에 대한 오프셋 보정을 수행하기 위해 영상에 포함된 픽셀을 일정한 수의 영역으로 구분한 후 오프셋을 수행할 영역을 결정하고 해당 영역에 오프셋을 적용하는 방법 또는 각 픽셀의 에지 정보를 고려하여 오프셋을 적용하는 방법을 사용할 수 있다.The offset correction unit may correct the offset of the deblocked image with respect to the original image in units of pixels. In order to perform offset correction for a specific picture, pixels included in an image are divided into a predetermined number of areas, and then an area to be offset is determined and an offset is applied to the area. Alternatively, Can be used.

적응형 루프 필터는 필터링한 복원 영상과 원래의 영상을 비교한 값을 기초로 수행될 수 있다. 영상에 포함된 픽셀을 소정의 그룹으로 나눈 후 해당 그룹에 적용될 하나의 필터를 결정하여 그룹마다 차별적으로 필터링을 수행할 수 있다. 적응형 루프 필터를 적용할지 여부에 관련된 정보는 휘도 신호는 부호화 단위(Coding Unit, CU) 별로 전송될 수 있고, 각각의 블록에 따라 적용될 적응형 루프 필터필터의 모양 및 필터 계수는 달라질 수 있다. 또한, 적용 대상 블록의 특성에 상관없이 동일한 형태(고정된 형태)의 적응형 루프 필터필터가 적용될 수도 있다.  The adaptive loop filter can be performed based on a value obtained by comparing the filtered reconstructed image with the original image. After dividing the pixels included in the image into a predetermined group, one filter to be applied to the group may be determined and different filtering may be performed for each group. Information related to whether to apply the adaptive loop filter may be transmitted for each coding unit (CU), and the shape and the filter coefficient of the adaptive loop filter to be applied to each block may be different. Also, an adaptive loop filter filter of the same type (fixed form) may be applied regardless of the characteristics of the application target block.

메모리(155)는 필터부(150)를 통해 산출된 복원 블록 또는 픽쳐를 저장할 수 있고, 저장된 복원 블록 또는 픽쳐는 인터 예측을 수행 시 예측부(120, 125)에 제공될 수 있다.The memory 155 may store the reconstructed block or picture calculated through the filter unit 150 and the reconstructed block or picture stored therein may be provided to the predictor 120 or 125 when the inter prediction is performed.

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

도 2를 참조하면, 영상 복호화기(200)는 엔트로피 복호화부(210), 재정렬부(215), 역양자화부(220), 역변환부(225), 예측부(230, 235), 필터부(240), 메모리(245)가 포함될 수 있다.2, the image decoder 200 includes an entropy decoding unit 210, a reordering unit 215, an inverse quantization unit 220, an inverse transform unit 225, prediction units 230 and 235, 240, and a memory 245 may be included.

영상 부호화기에서 영상 비트스트림이 입력된 경우, 입력된 비트스트림은 영상 부호화기와 반대의 절차로 복호화될 수 있다.When an image bitstream is input in the image encoder, the input bitstream may be decoded in a procedure opposite to that of the image encoder.

엔트로피 복호화부(210)는 영상 부호화기의 엔트로피 부호화부에서 엔트로피 부호화를 수행한 것과 반대의 절차로 엔트로피 복호화를 수행할 수 있다. 예를 들어, 영상 부호화기에서 수행된 방법에 대응하여 지수 골롬(Exponential Golomb), CAVLC(Context-Adaptive Variable Length Coding), CABAC(Context-Adaptive Binary Arithmetic Coding)과 같은 다양한 방법이 적용될 수 있다. The entropy decoding unit 210 can perform entropy decoding in a procedure opposite to that in which entropy encoding is performed in the entropy encoding unit of the image encoder. For example, various methods such as Exponential Golomb, Context-Adaptive Variable Length Coding (CAVLC), and Context-Adaptive Binary Arithmetic Coding (CABAC) may be applied in accordance with the method performed by the image encoder.

엔트로피 복호화부(210)에서는 부호화기에서 수행된 인트라 예측 및 인터 예측에 관련된 정보를 복호화할 수 있다.The entropy decoding unit 210 may decode information related to intra prediction and inter prediction performed in the encoder.

재정렬부(215)는 엔트로피 복호화부(210)에서 엔트로피 복호화된 비트스트림을 부호화부에서 재정렬한 방법을 기초로 재정렬을 수행할 수 있다. 1차원 벡터 형태로 표현된 계수들을 다시 2차원의 블록 형태의 계수로 복원하여 재정렬할 수 있다. 재정렬부(215)에서는 부호화부에서 수행된 계수 스캐닝에 관련된 정보를 제공받고 해당 부호화부에서 수행된 스캐닝 순서에 기초하여 역으로 스캐닝하는 방법을 통해 재정렬을 수행할 수 있다.The reordering unit 215 can perform reordering based on a method in which the entropy decoding unit 210 rearranges the entropy-decoded bitstreams in the encoding unit. The coefficients represented by the one-dimensional vector form can be rearranged by restoring the coefficients of the two-dimensional block form again. The reordering unit 215 can perform reordering by receiving information related to the coefficient scanning performed by the encoding unit and performing a reverse scanning based on the scanning order performed by the encoding unit.

역양자화부(220)는 부호화기에서 제공된 양자화 파라미터와 재정렬된 블록의 계수값을 기초로 역양자화를 수행할 수 있다. The inverse quantization unit 220 can perform inverse quantization based on the quantization parameters provided by the encoder and the coefficient values of the re-arranged blocks.

역변환부(225)는 영상 부호화기에서 수행한 양자화 결과에 대해 변환부에서 수행한 변환 즉, DCT, DST, 및 KLT에 대해 역변환 즉, 역 DCT, 역 DST 및 역 KLT를 수행할 수 있다. 역변환은 영상 부호화기에서 결정된 전송 단위를 기초로 수행될 수 있다. 영상 복호화기의 역변환부(225)에서는 예측 방법, 현재 블록의 크기 및 예측 방향 등 복수의 정보에 따라 변환 기법(예를 들어, DCT, DST, KLT)이 선택적으로 수행될 수 있다.The inverse transform unit 225 may perform an inverse DCT, an inverse DST, and an inverse KLT on the DCT, DST, and KLT transformations performed by the transform unit on the quantization result performed by the image encoder. The inverse transform can be performed based on the transmission unit determined by the image encoder. In the inverse transform unit 225 of the image decoder, a transform technique (e.g., DCT, DST, KLT) may be selectively performed according to a plurality of information such as a prediction method, a size of a current block, and a prediction direction.

예측부(230, 235)는 엔트로피 복호화부(210)에서 제공된 예측 블록 생성 관련 정보와 메모리(245)에서 제공된 이전에 복호화된 블록 또는 픽쳐 정보를 기초로 예측 블록을 생성할 수 있다. The prediction units 230 and 235 can generate a prediction block based on the prediction block generation related information provided by the entropy decoding unit 210 and the previously decoded block or picture information provided in the memory 245. [

전술한 바와 같이 영상 부호화기에서의 동작과 동일하게 인트라 예측을 수행시 예측 단위의 크기와 변환 단위의 크기가 동일할 경우, 예측 단위의 좌측에 존재하는 픽셀, 좌측 상단에 존재하는 픽셀, 상단에 존재하는 픽셀을 기초로 예측 단위에 대한 인트라 예측을 수행하지만, 인트라 예측을 수행시 예측 단위의 크기와 변환 단위의 크기가 상이할 경우, 변환 단위를 기초로 한 참조 픽셀을 이용하여 인트라 예측을 수행할 수 있다. 또한, 최소 부호화 단위에 대해서만 N x N 분할을 사용하는 인트라 예측을 사용할 수도 있다.As described above, when intra prediction is performed in the same manner as in the image encoder, when the size of the prediction unit is the same as the size of the conversion unit, pixels existing on the left side of the prediction unit, pixels existing on the upper left side, However, when the size of the prediction unit differs from the size of the prediction unit in intra prediction, intraprediction is performed using a reference pixel based on the conversion unit . It is also possible to use intra prediction using N x N divisions for only the minimum coding unit.

예측부(230, 235)는 예측 단위 판별부, 인터 예측부 및 인트라 예측부를 포함할 수 있다. 예측 단위 판별부는 엔트로피 복호화부(210)에서 입력되는 예측 단위 정보, 인트라 예측 방법의 예측 모드 정보, 인터 예측 방법의 모션 예측 관련 정보 등 다양한 정보를 입력 받고 현재 부호화 단위에서 예측 단위를 구분하고, 예측 단위가 인터 예측을 수행하는지 아니면 인트라 예측을 수행하는지 여부를 판별할 수 있다. 인터 예측부(230)는 영상 부호화기에서 제공된 현재 예측 단위의 인터 예측에 필요한 정보를 이용해 현재 예측 단위가 포함된 현재 픽쳐의 이전 픽쳐 또는 이후 픽쳐 중 적어도 하나의 픽쳐에 포함된 정보를 기초로 현재 예측 단위에 대한 인터 예측을 수행할 수 있다. 또는, 현재 예측 단위가 포함된 현재 픽쳐 내에서 기-복원된 일부 영역의 정보를 기초로 인터 예측을 수행할 수도 있다.The prediction units 230 and 235 may include a prediction unit determination unit, an inter prediction unit, and an intra prediction unit. The prediction unit determination unit receives various information such as prediction unit information input from the entropy decoding unit 210, prediction mode information of the intra prediction method, motion prediction related information of the inter prediction method, and identifies prediction units in the current coding unit. It is possible to determine whether the unit performs inter prediction or intra prediction. The inter prediction unit 230 predicts the current prediction based on the information included in at least one of the previous picture of the current picture or the following picture including the current prediction unit by using information necessary for inter prediction of the current prediction unit provided by the image encoder, Unit can be performed. Alternatively, the inter prediction may be performed on the basis of the information of the partial region previously reconstructed in the current picture including the current prediction unit.

인터 예측을 수행하기 위해 부호화 단위를 기준으로 해당 부호화 단위에 포함된 예측 단위의 모션 예측 방법이 스킵 모드(Skip Mode), 머지 모드(Merge 모드), AMVP 모드(AMVP Mode), 인트라 블록 카피 모드 중 어떠한 방법인지 여부를 판단할 수 있다.In order to perform inter prediction, a motion prediction method of a prediction unit included in a corresponding encoding unit on the basis of an encoding unit includes a skip mode, a merge mode, an AMVP mode, and an intra block copy mode It is possible to judge whether or not it is any method.

인트라 예측부(235)는 현재 픽쳐 내의 픽셀 정보를 기초로 예측 블록을 생성할 수 있다. 예측 단위가 인트라 예측을 수행한 예측 단위인 경우, 영상 부호화기에서 제공된 예측 단위의 인트라 예측 모드 정보를 기초로 인트라 예측을 수행하여, 예측 블록을 생성할 수 있다. 인트라 예측부(235)에는 적응형 인트라 평활 필터(AISF; Adaptive Intra Smoothing Filter), 참조 픽셀 보간부, DC 필터를 포함할 수 있다. 적응형 인트라 평활 필터는 현재 블록의 참조 픽셀에 필터링을 수행하는 부분으로써 현재 예측 단위의 예측 모드에 따라 필터의 적용 여부를 결정하여 적용할 수 있다. 영상 부호화기에서 제공된 예측 단위의 예측 모드 및 적응형 인트라 평활 필터 정보를 이용하여 현재 블록의 참조 픽셀에 적응형 인트라 평활 필터링을 수행할 수 있다. 현재 블록의 예측 모드가 적응형 인트라 평활 필터링을 수행하지 않는 모드일 경우, 적응형 인트라 평활 필터는 적용되지 않을 수 있다.The intra prediction unit 235 can generate a prediction block based on the pixel information in the current picture. If the prediction unit is a prediction unit that performs intra prediction, intra prediction can be performed based on intra prediction mode information of a prediction unit provided by the image encoder to generate a prediction block. The intraprediction unit 235 may include an Adaptive Intra Smoothing Filter (AISF), a reference pixel interpolator, and a DC filter. The adaptive intra-smoothing filter performs filtering on the reference pixels of the current block, and can determine whether to apply the filter according to the prediction mode of the current prediction unit. The adaptive intra-smoothing filtering can be performed on the reference pixels of the current block by using the prediction mode of the prediction unit provided in the image encoder and the adaptive intra-smoothing filter information. If the prediction mode of the current block is a mode in which adaptive intra-smoothing filtering is not performed, the adaptive intra-smoothing filter may not be applied.

참조 픽셀 보간부는 예측 단위의 예측 모드가 참조 픽셀을 보간한 픽셀값을 기초로 인트라 예측을 수행하는 예측 단위일 경우, 참조 픽셀을 보간하여 정수값 이하의 픽셀 단위의 참조 픽셀을 생성할 수 있다. 현재 예측 단위의 예측 모드가 참조 픽셀을 보간하지 않고 예측 블록을 생성하는 예측 모드일 경우 참조 픽셀은 보간되지 않을 수 있다. DC 필터는 현재 블록의 예측 모드가 DC 모드일 경우 필터링을 통해서 예측 블록을 생성할 수 있다.The reference pixel interpolator may interpolate the reference pixel to generate a reference pixel in units of pixels less than an integer value when the prediction mode of the prediction unit is a prediction unit that performs intra prediction based on the pixel value obtained by interpolating the reference pixel. The reference pixel may not be interpolated in the prediction mode in which the prediction mode of the current prediction unit generates a prediction block without interpolating the reference pixel. The DC filter can generate a prediction block through filtering when the prediction mode of the current block is the DC mode.

복원된 블록 또는 픽쳐는 필터부(240)로 제공될 수 있다. 필터부(240)는 디블록킹 필터, 오프셋 보정부, 적응형 루프 필터를 포함할 수 있다.The restored block or picture may be provided to the filter unit 240. The filter unit 240 may include a deblocking filter, an offset correction unit, and an adaptive loop filter.

영상 부호화기로부터 해당 블록 또는 픽쳐에 디블록킹 필터를 적용하였는지 여부에 대한 정보 및 디블록킹 필터를 적용하였을 경우, 강한 필터를 적용하였는지 또는 약한 필터를 적용하였는지에 대한 정보를 제공받을 수 있다. 영상 복호화기의 디블록킹 필터에서는 영상 부호화기에서 제공된 디블록킹 필터 관련 정보를 제공받고 영상 복호화기에서 해당 블록에 대한 디블록킹 필터링을 수행할 수 있다. When information on whether a deblocking filter is applied to a corresponding block or picture from the image encoder or a deblocking filter is applied, information on whether a strong filter or a weak filter is applied can be provided. In the deblocking filter of the video decoder, the deblocking filter related information provided by the video encoder is provided, and the video decoder can perform deblocking filtering for the corresponding block.

오프셋 보정부는 부호화시 영상에 적용된 오프셋 보정의 종류 및 오프셋 값 정보 등을 기초로 복원된 영상에 오프셋 보정을 수행할 수 있다.The offset correction unit may perform offset correction on the reconstructed image based on the type of offset correction applied to the image and the offset value information during encoding.

적응형 루프 필터는 부호화기로부터 제공된 적응형 루프 필터 적용 여부 정보, 적응형 루프 필터 계수 정보 등을 기초로 부호화 단위에 적용될 수 있다. 이러한 적응형 루프 필터 정보는 특정한 파라메터 셋에 포함되어 제공될 수 있다.The adaptive loop filter can be applied to an encoding unit based on adaptive loop filter application information provided from an encoder, adaptive loop filter coefficient information, and the like. Such adaptive loop filter information may be provided in a specific set of parameters.

메모리(245)는 복원된 픽쳐 또는 블록을 저장하여 참조 픽쳐 또는 참조 블록으로 사용할 수 있도록 할 수 있고 또한 복원된 픽쳐를 출력부로 제공할 수 있다. The memory 245 may store the reconstructed picture or block to be used as a reference picture or a reference block, and may also provide the reconstructed picture to the output unit.

전술한 바와 같이 이하, 본 발명의 실시예에서는 설명의 편의상 코딩 유닛(Coding Unit)을 부호화 단위라는 용어로 사용하지만, 부호화뿐만 아니라 복호화를 수행하는 단위가 될 수도 있다.As described above, in the embodiment of the present invention, 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.

도 3은 본 발명의 일 실시예에 따른 영상 부호화 장치에 구비된 인트라 예측부의 상세 구성을 예시하는 블록도이다. 도3을 참조하면, 본 발명의 일 실시예에 따른 인트라 예측부(125)는 임시 예측 방향 정보 생성부(31), 적응적 방향 모드 설정부(33), 및 인트라 예측 모드 결정부(35)를 포함할 수 있다. 3 is a block diagram illustrating a detailed configuration of an intra predictor included in an image encoding apparatus according to an exemplary embodiment of the present invention. 3, an intra-prediction unit 125 according to an embodiment of the present invention includes a temporary prediction direction information generation unit 31, an adaptive direction mode setting unit 33, and an intra-prediction mode determination unit 35. [ . ≪ / RTI >

임시 예측 방향 정보 생성부(31)는 인트라 예측 모드를 설정하는데 기초가 되는 임시 예측 방향을 미리 정해진 개수로 설정하고, 상기 미리 설정된 개수의 임시 예측 방향을 기반으로 하는 임시 예측 방향 정보를 생성할 수 있다. The temporary prediction direction information generating unit 31 may set the temporary prediction directions as the basis for setting the intra prediction mode to a predetermined number and generate the temporary prediction direction information based on the predetermined number of temporary prediction directions have.

구체적으로, 임시 예측 방향 정보 생성부(31)는 현재 블록에 대한 인트라 예측 모드를 결정하는데 사용할 수 있는 임시 예측 방향의 수를 N개(여기서, N은 자연수)로 설정할 수 있다. 여기서, 임시 예측 방향 정보 생성부(31)는 인트라 예측 모드를 결정하는데 사용할 수 있는 전체 예측 방향의 범위를 미리 정해진 규칙에 따라, 미리 정해진 수(N개)로 분할하여 임시 예측 방향을 설정할 수 있다. 상기 미리 정해진 규칙은 전체 예측 방향의 범위를 균등하게 분할하는 것일 수 있다. Specifically, the temporary prediction direction information generator 31 may set the number of temporary prediction directions that can be used for determining the intra prediction mode for the current block to N (where N is a natural number). Here, the temporary prediction direction information generator 31 may divide the range of the entire prediction direction that can be used for determining the intra prediction mode into a predetermined number (N) in accordance with a predetermined rule, and set the temporary prediction direction . The predetermined rule may be to evenly divide the range of the entire prediction direction.

나아가, 임시 예측 방향 정보 생성부(31)는 각각의 임시 예측 방향에 존재하는 참조 픽셀 정보에 기초하여 N개의 임시 블록을 생성하고, 생성된 N개의 임시 블록의 픽셀 정보를 임시 예측 방향 정보로 결정할 수 있다.Furthermore, the temporary prediction direction information generating unit 31 generates N temporary blocks based on the reference pixel information existing in each temporary prediction direction, and determines the pixel information of the generated N temporary blocks as temporary prediction direction information .

적응적 방향 모드 설정부(33)는 임시 예측 방향 정보를 사용하여 미리 정해진 개수(예, M개(M은 자연수))만큼의 적응적 방향 모드를 설정한다. 적응적 방향 모드가 설정되는 상기 미리 정해진 개수는 본 발명의 일 실시예에 따른 부호화 장치의 설계 단계에서 고정된 값으로 설정될 수 있다. 다른 예로서, 상기 적응적 방향 모드가 설정되는 상기 미리 정해진 개수는 부호화 장치 및 복호화 장치의 하드웨어 연산능력, 부호화 장치 및 복호화 장치의 저장 용량의 크기, 부호화 장치와 복호화 장치 사이의 통신 환경 등을 고려하여 적응적으로 설정될 수 있다. The adaptive direction mode setting unit 33 sets the adaptive direction mode by a predetermined number (e.g., M (M is a natural number)) using the temporary prediction direction information. The predetermined number in which the adaptive direction mode is set may be set to a fixed value in the designing stage of the encoding apparatus according to an embodiment of the present invention. As another example, the predetermined number in which the adaptive direction mode is set considers the hardware computing capability of the encoder and the decoder, the size of the storage capacity of the encoder and the decoder, the communication environment between the encoder and the decoder, and the like And can be set adaptively.

비록, 본 발명의 일 실시예에서, 적응적 방향 모드 설정부(33)가 적응적 방향 모드를 설정하는 미리 정해진 개수(예, M개(M은 자연수))를 설정하는 방법을 예시하고 있으나, 본 발명이 이를 한정하는 것은 아니다. 본 발명의 일 실시예에 따른 부호화 장치가 상기 미리 정해진 개수를 설정하기 위해 사용하는 규칙과 동일한 규칙으로 복호화 장치가 상기 미리 정해진 개수를 설정할 수 있으면 충분하다. 따라서, 상기 미리 정해진 개수를 설정하기 위해 사용하는 규칙은 전술한 바와 같이 사전에 부호화 장치 및 복호화 장치에 미리 설정되거나, 부호화 장치가 데이터를 부호화하는 과정에서 상기 미리 정해진 개수를 설정하기 위해 사용하는 규칙을 식별할 수 있는 정보를 삽입하고, 복호화 장치가 데이터를 복호화하는 과정에서 상기 미리 정해진 개수를 설정하기 위해 사용하는 규칙을 확인하도록 구비될 수 있다. Although the method of setting the predetermined number (e.g., M (M is a natural number)) for setting the adaptive direction mode is illustrated in the adaptive direction mode setting unit 33 in the embodiment of the present invention, The present invention is not limited thereto. It suffices that the decoding apparatus can set the predetermined number to the same rule as the rule used by the encoding apparatus according to the embodiment of the present invention to set the predetermined number. Therefore, the rules used to set the predetermined number may be set in advance in the coding apparatus and the decoding apparatus as described above, or the rules used for setting the predetermined number in the process of coding the data by the coding apparatus And to confirm a rule used by the decoding apparatus to set the predetermined number in the process of decoding the data.

적응적 방향 모드 설정부(33)는 임시 블록들 사이의 차이값을 확인하고, 확인된 차이값을 기초로 임시 블록을 병합(merge)하거나, 분리(Split)함으로써 적응적 방향 모드를 상기 미리 정해진 개수로 설정할 수 있다. 예컨대, 적응적 방향 모드 설정부(33)는 상기 차이값에 대한 임계값을 단계적으로 설정하고, 단계적으로 설정된 임계값을 기준으로 하여 임시 블록을 병합(merge)하거나, 분리(Split)할 수 있다. 그리고, 적응적 방향 모드 설정부(33)는 병합 또는 분리되어 남아 있는 임시 블록들에 대응되는 방향 모드를 적응적 방향 모드로 사용할 수 있다. 이로써, 인트라 예측 방향은 종래의 방법과 같이 고정된 각도로 나누어진 방향으로 이루어 지지 않고 실제 주변 참조 픽셀이 가지고 있는 값에 따라 적응적으로 설정될 수 있다. 따라서, 종래의 방법에 따라 고정된 각도 방향으로 이루어지는 인트라 예측 방향 보다 상대적으로 더 정확한 인트라 예측 모드를 설정할 수 있으며, 나아가 부호화 비트수를 줄이는데 기여할 수 있다.The adaptive direction mode setting unit 33 identifies the difference value between the temporary blocks and merges or splits the temporary blocks on the basis of the identified difference value to determine the adaptive direction mode as the predetermined The number can be set. For example, the adaptive direction mode setting unit 33 may set a threshold value for the difference value step by step, and may merge or split the temporary block based on the threshold value set in a stepwise manner . The adaptive direction mode setting unit 33 may use the directional mode corresponding to the temporary blocks merged or separated and used as the adaptive directional mode. As a result, the intra prediction direction can be adaptively set according to the value of the actual peripheral reference pixel, not in a direction divided by a fixed angle as in the conventional method. Therefore, it is possible to set a more accurate intra prediction mode than the intra prediction direction in the fixed angular direction according to the conventional method, and further, it can contribute to reduce the number of encoding bits.

인트라 예측 모드 결정부(35)는 플레이너 모드, DC 모드와 함께 적응적 방향 모드 설정부(33)에서 설정된 적응적 방향 모드의 방향성 모드를 기초로하여 현재 블록에 대한 인트라 예측을 수행하여, 인트라 예측 모드를 결정할 수 있다. The intraprediction mode determination unit 35 performs intraprediction on the current block based on the directional mode of the adaptive directional mode set by the adaptive directional mode setting unit 33 together with the planar mode and the DC mode, The prediction mode can be determined.

한편, 전술한 실시예에서, 임시 예측 방향 정보 생성부(31)가 임시 예측 방향의 수(N개)에 대응하는 만큼의 임시 블록을 생성하고, 생성된 N개의 임시 블록의 픽셀 정보를 임시 예측 방향 정보로 결정하는 것을 예시하였으나, 본 발명이 이를 한정하는 것은 아니다. 임시 예측 방향 정보 생성부(31)는 전술한 임시 예측 방향에 기초하여 현재 블록에 포함된 픽셀에 대한 정보를 확인할 수 있으면 충분하다. 예를 들어, 임시 예측 방향 정보 생성부(31)는 임시 예측 방향을 기준으로, 상기 임시 예측 방향에 대응되는 참조 픽셀이 반영될 수 있는 임시 블록의 픽셀들을 매핑한 정보(이하, `임시 블록 매핑정보`라 함.)를 구성하고, 상기 임시 블록 매핑정보를 임시 예측 방향 정보로 결정할 수도 있다. 이 경우, 적응적 방향 모드 설정부(33)는 임시 블록 매핑정보에 포함되는 참조 픽셀과 임시 블록의 픽셀들 사이의 관계에 대한 수치 연산을 처리함으로써, 임시 예측 방향들 중에서 적응적 방향 모드를 빠르게 결정할 수 있다. 이와 같이, 임시 블록 매핑정보를 기준으로 적응적 방향 모드를 설정하면, 적응적 방향 모드를 설정하는데 소요되는 연산량 또는 하드웨어 자원을 줄일 수 있어 효과적인 처리가 가능하다. On the other hand, in the above-described embodiment, the temporary prediction direction information generating section 31 generates temporary blocks corresponding to the number (N) of temporary prediction directions, and stores the pixel information of the generated N temporary blocks as a temporary prediction Direction information, but the present invention is not limited thereto. It is sufficient that the temporary prediction direction information generating unit 31 can confirm the information on the pixels included in the current block based on the aforementioned temporary prediction direction. For example, the temporary prediction direction information generation unit 31 generates information (hereinafter referred to as " temporary block mapping ") by mapping pixels of a temporary block that can reflect a reference pixel corresponding to the temporary prediction direction, Information "), and may determine the temporary block mapping information as the temporary prediction direction information. In this case, the adaptive direction mode setting unit 33 processes a numerical operation on the relationship between the reference pixels included in the temporary block mapping information and the pixels of the temporary block, thereby quickly changing the adaptive direction mode out of the temporary prediction directions You can decide. As described above, if the adaptive direction mode is set based on the temporary block mapping information, the computation amount or hardware resources required to set the adaptive direction mode can be reduced, and effective processing can be performed.

이하, 도면을 참조하여 본 발명의 일 실시예에 따른 인트라 예측부의 동작을 상세히 설명한다.Hereinafter, the operation of the intra-prediction unit according to an embodiment of the present invention will be described in detail with reference to the drawings.

도 4는 본 발명의 일 실시예에 따른 현재 블록과 참조 블록을 예시하는 도면이고, 도 5는 본 발명의 일 실시예에 따른 임시 예측 방향 정보 생성부에 의해 설정되는 임시 예측 방향을 예시하는 도면이고, 도 6는 본 발명의 일 실시예에 따른 임시 예측 방향 정보 생성부에 의해 생성되는 임시 블록의 일 예시도 이다. 4 is a diagram illustrating a current block and a reference block according to an embodiment of the present invention. FIG. 5 is a diagram illustrating a temporary prediction direction set by a temporary prediction direction information generation unit according to an embodiment of the present invention. 6 is a diagram illustrating an example of a temporary block generated by the temporary prediction direction information generation unit according to an embodiment of the present invention.

도 4는 현재 블록(40)이 정방형으로 배치된 복수의 픽셀(TP1 ~ TP16)을 구비하고, 현재 블록(40)을 기준으로 임시 블록을 생성하는데 참조되는 참조 픽셀(RP1 내지 RP17)이 현재 블록(40)의 상단부, 현재 블록(40)의 우측 상단부, 현재 블록(40)의 좌측부, 현재 블록(40)의 좌측 하단부에 존재하는 것을 예시한다. 그리고, 도 5는 임시 예측 방향 정보 생성부(31)에 의해 설정되는 임시 예측 방향(V1~Vn, H1~Hn, VH0)을 예시한다.4 shows a case where the current block 40 has a plurality of pixels TP1 to TP16 arranged in a square and the reference pixels RP1 to RP17 referenced in generating a temporary block based on the current block 40 are arranged in the current block 40. [ The upper left portion of the current block 40, the upper right portion of the current block 40, the left portion of the current block 40, and the lower left portion of the current block 40. [ 5 illustrates the temporary prediction directions (V1 to Vn, H1 to Hn, VH0) set by the temporary prediction direction information generation unit 31. [

전술한 도면을 참조하면, 우선 임시 예측 방향 정보 생성부(31)는 인트라 예측 모드를 설정하는데 기초가 되는 임시 예측 방향을 설정할 수 있다. 상기 임시 예측 방향은 현재 블록(40)의 주변에 위치한 참조 픽셀을 지시하는 방향을 나타내는 것으로써, 참조 픽셀이 위치한 영역의 범위를 미리 정해진 수(예, N개)로 분할한 방향일 수 있다. 예컨대, 도 4에서와 같이 현재 블록(40)을 중심으로 참조 픽셀이 분포될 경우, 참조 픽셀이 위치한 영역의 범위를 미리 정해진 수(예, N개)만큼 균등하게 분할하고, 분할된 영역에 대응되는 방향을 임시 예측 방향(도 5, V1~Vn, H1~Hn, VH0)으로 설정할 수 있다. Referring to the above-mentioned drawings, the temporary prediction direction information generating unit 31 can first set the temporary prediction direction on which the intra prediction mode is set. The temporary prediction direction indicates a direction indicating a reference pixel located in the vicinity of the current block 40, and may be a direction obtained by dividing the range of the region where the reference pixel is located into a predetermined number (e.g., N). For example, when the reference pixels are distributed around the current block 40 as shown in FIG. 4, the range of the region in which the reference pixel is located is equally divided by a predetermined number (for example, N) (Fig. 5, V1 to Vn, H1 to Hn, and VH0).

본 발명의 일 실시예에서, 임시 예측 방향(V1~Vn, H1~Hn, VH0)이 설정되는 미리 정해진 수는 N개로 예시할 수 있는데, 이는 적응적 방향 모드 설정부(33)가 최종적으로 결정하는 적응적 방향 모드의 수(M개)보다 크게 설정될 수 있다.In one embodiment of the present invention, the predetermined number in which the temporary prediction directions (V1 to Vn, H1 to Hn, VH0) are set can be exemplified by N. This is because the adaptive direction mode setting unit 33 finally determines The number of adaptive directional modes (M).

다음으로, 임시 예측 방향 정보 생성부(31)는 전술한 동작을 통해 설정된 N 개의 임시 예측 방향(V1~Vn, H1~Hn, VH0)에 대응되는 임시 블록(도 6 참조, TB1 내지 TBn)을 생성할 수 있다. 즉, 임시 예측 방향 정보 생성부(31)는 현재 블록을 중심으로 하여 N 개의 예측 방향(V1~Vn, H1~Hn, VH0)이 지시하는 영역에 존재하는 참조 픽셀의 색차 정보를 참조하여 임시 블록에 구비되는 픽셀에 반영함으로써, 임시 블록을 구성할 수 있다. 이와 같은 동작을 통해 구성된 N 개의 임시 블록을 임시 예측 방향 정보로서 적응적 방향 모드 설정부(33)에 제공할 수 있다.Next, the temporary prediction direction information generating unit 31 generates a temporary block (refer to FIG. 6, TB1 to TBn) corresponding to the N temporary prediction directions (V1 to Vn, H1 to Hn, VH0) set through the above- Can be generated. That is, the temporary prediction direction information generation unit 31 refers to the color difference information of the reference pixels existing in the region indicated by the N prediction directions (V1 to Vn, H1 to Hn, VH0) centering on the current block, So that a temporary block can be constructed. The N temporary blocks configured through the above operation can be provided to the adaptive direction mode setting unit 33 as the temporary prediction direction information.

적응적 방향 모드 설정부(33)는 임시 예측 방향 정보 생성부(31)로부터 제공받은 임시 예측 방향 정보를 확인하고, N 개의 임시 예측 방향(V1~Vn, H1~Hn, VH0)을 단계적으로 병합하는 동작을 진행하여 인트라 예측을 수행하는데 사용할 M 개의 적응적 방향 모드를 결정할 수 있다. The adaptive direction mode setting unit 33 identifies the provisional prediction direction information provided from the provisional prediction direction information generating unit 31 and sequentially integrates the N temporary prediction directions V1 to Vn and H1 to Hn and VH0 And determine M adaptive directional modes to be used for intra prediction.

도 7은 본 발명의 일 실시예에 따른 적응적 방향 모드 설정부에 의해 단계적으로 결정되는 적응적 방향 모드를 예시하는 도면이고, 도 8은 본 발명의 일 실시예에 따른 적응적 방향 모드 설정부에 의해 결정된 적응적 방향 모드의 일 예시도이다.FIG. 7 is a diagram illustrating an adaptive direction mode determined step by step by the adaptive direction mode setting unit according to an embodiment of the present invention, and FIG. 8 is a diagram illustrating an adaptive direction mode setting unit according to an embodiment of the present invention. Lt; RTI ID = 0.0 > directional < / RTI >

적응적 방향 모드 설정부(33)는 일차적으로 N 개의 임시 블록들(71) 사이의 차이값(Dk)을 확인한다. 임시 블록들(71) 사이의 차이값(Dk)은 하기의 수학식 1의 연산을 통해 확인할 수 있다. The adaptive direction mode setting unit 33 first confirms the difference value Dk between the N temporary blocks 71. [ The difference value Dk between the temporary blocks 71 can be confirmed by an operation of Equation 1 below.

Figure pat00001
Figure pat00001

여기서, distance는 예측 블록 사이의 차이를 산출하는 함수로서, SSD(Sum of Squared Diffrence), SAD(Sum of Absolute Diffrence) 등이 사용될 수 있다. Here, distance is a function for calculating a difference between prediction blocks, such as a Sum of Squared Difference (SSD), a Sum of Absolute Diffrence (SAD), or the like.

일차적으로, 임시 블록들(71) 사이의 차이값(Dk)이 0일 경우 이웃한 임시 블록들을 하나의 임시 블록으로 병합하고, 이웃한 임시 블록들(71) 사이의 차이값이 0이 아닐 경우 임시 블록을 유지한다. 예를 들면, 도 7에서 제1임시블록(TB1)과 제2임시블록(TB2), 제4임시블록(TB4)과 제5임시블록(TB5), 제6임시블록(TB6)과 제7임시블록(TB7) 사이의 차이값(Dk)이 각각 0일 경우, 차이값(Dk)이 0인 임시 블록들은 서로 동일한 임시 블록이므로, 해당 블록들 중 하나의 임시 블록을 삭제하여 일차 병합을 처리한다. 일차적으로 병합을 처리한 후 남아 있는 임시 블록들(72)의 수가, 적응적 방향 모드를 설정하는 기준이 되는 미리 정해진 개수(예, M개)와 같거나 작은지 확인한다. 일차적으로 병합을 처리한 후 남아 있는 임시 블록(72)의 수가 전술한 M개보다 클 경우, 다음과 같이 이차적인 병합을 진행한다. First, when the difference value Dk between the temporary blocks 71 is 0, the neighboring temporary blocks are merged into one temporary block. If the difference value between neighboring temporary blocks 71 is not 0 Maintain temporary blocks. For example, in FIG. 7, the first temporary block TB1 and the second temporary block TB2, the fourth temporary block TB4 and the fifth temporary block TB5, the sixth temporary block TB6, When the difference values Dk between the blocks TB7 and TB7 are 0, the temporary blocks having the difference value Dk = 0 are the same temporary blocks, and one temporary block is deleted from the corresponding blocks to process the primary merge . First, it is confirmed whether the number of temporary blocks 72 remaining after merging is equal to or smaller than a predetermined number (for example, M) which is a reference for setting the adaptive direction mode. If the number of temporary blocks 72 remaining after the merge processing is larger than M, the secondary merge proceeds as follows.

적응적 방향 모드 설정부(33)는 이웃한 임시 블록들 사이의 차이값(Dk)이 미리 정해진 임계값 이하일 경우 이웃한 임시 블록들을 하나의 임시 블록으로 병합하고, 이웃한 임시 블록들 사이의 차이값(Dk)이 미리 정해진 임계값보다 클 경우 임시 블록을 유지한다. 적응적 방향 모드 설정부(33)는 병합을 진행한 후 남아 있는 임시 블록(73)의 수가 적응적 방향 모드를 설정하는 기준이 되는 미리 정해진 개수(예, M개)와 같거나 작아질 때까지 미리 정해진 임계값을 순차적으로 증가시키면서 전술한 병합 처리 동작을 반복적으로 진행할 수 있다. The adaptive direction mode setting unit 33 merges neighboring temporary blocks into one temporary block when the difference value Dk between neighboring temporary blocks is equal to or less than a predetermined threshold value, If the value Dk is greater than a predetermined threshold value, the temporary block is maintained. The adaptive direction mode setting unit 33 sets the adaptive direction mode until the number of temporary blocks 73 remaining after merging is equal to or smaller than a predetermined number (for example, M) The above-described merging process operation can be repeatedly performed while sequentially increasing the predetermined threshold value.

그리고, 적응적 방향 모드 설정부(33)는 병합을 진행한 후 남아 있는 임시 블록의 수가 적응적 방향 모드를 설정하는 기준이 되는 미리 정해진 개수(예, M개)와 같거나 작을 경우, 병합을 진행한 후 남아 있는 임시 블록들(74)에 대응되는 방향을 적응적 방향 모드로 결정할 수 있다(도 8참조). When the number of temporary blocks remaining after merging is equal to or smaller than a predetermined number (for example, M) that is a reference for setting the adaptive direction mode, the adaptive direction mode setting unit 33 sets the merging The direction corresponding to the remaining temporary blocks 74 may be determined as the adaptive direction mode (see FIG. 8).

다음으로, 인트라 예측 모드 결정부(35)는 플레이너 모드, DC 모드와 함께 적응적 방향 모드 설정부(33)에서 설정된 적응적 방향 모드의 방향성 모드를 포함하는 인트라 예측 모드의 인덱스를 할당할 수 있다. 그리고, 인트라 예측 모드 결정부(35)는 인트라 예측 모드의 인덱스에 할당된 복수의 모드들 중에서, 어느 하나의 인트라 예측 모드를 결정할 수 있다. Next, the intra-prediction mode determining unit 35 may assign an index of the intra-prediction mode including the directional mode of the adaptive directional mode set by the adaptive directional mode setting unit 33 together with the planar mode and the DC have. The intra prediction mode determination unit 35 can determine any intra prediction mode among a plurality of modes allocated to the index of the intra prediction mode.

전술한 본 발명의 일 실시예에 따른 인트라 예측부의 동작을 예시하면서, 적응적 방향 모드 설정부(33)가 N 개의 임시 예측 방향(V1~Vn, H1~Hn, VH0)을 단계적으로 병합하여 M 개(여기서, N > M)의 적응적 방향 모드를 결정하는 것을 예시하였으나, 본 발명이 이를 한정하는 것은 아니다. 최종 결정되는 적응적 방향 모드는 참조 픽셀과 예측 블록에 포함되는 픽셀과의 관계를 반영하여 가변적으로 설정되는 것을 고려하여, 임시 예측 방향의 수는 최종 결정되는 적응적 방향 모드의 수와 다르게 설정될 수 있으면 충분하다. The adaptive direction mode setting unit 33 may merge the N temporal prediction directions V1 to Vn and H1 to Hn and VH0 step by step while illustrating the operation of the intra prediction unit according to an embodiment of the present invention, (Where N > M) is determined, the present invention is not limited thereto. The number of temporal prediction directions is set to be different from the number of adaptive directional modes that are finally determined in consideration of the fact that the finally determined adaptive directional mode is variably set reflecting the relationship between the reference pixel and the pixels included in the prediction block Sufficient is enough.

전술한 일 실시예와 다른 예로서, N 개의 임시 예측 방향(V1~Vn, H1~Hn, VH0)을 단계적으로 분할(Sprit)하여 M 개(여기서, N < M)의 적응적 방향 모드를 결정하는 것도 가능하다. As an example different from the above-described embodiment, the adaptive direction mode of M (where N < M) is determined by stepwise dividing N temporary prediction directions (V1 to Vn, H1 to Hn, VH0) It is also possible to do.

구체적으로, 적응적 방향 모드 설정부(33)는 적응적 방향 모드의 수(M)보다 적은 수(N)의 임시 예측 방향을 설정하고, 임시 예측 방향에 대응하는 임시 블록들(71)을 생성한다. 그리고, 적응적 방향 모드 설정부(33)는 전술한 수학식 1에서 예시한 바에 따라 N 개의 임시 블록들 사이의 차이값(Dk)을 확인하고, 그 결과에 따라 N 개의 임시 예측 방향(V1~Vn, H1~Hn, VH0)을 단계적으로 분할(Sprit)할 수 있다. Specifically, the adaptive direction mode setting unit 33 sets a temporary prediction direction of a number (N) smaller than the number of adaptive directional modes (M) and generates temporary blocks 71 corresponding to the temporary prediction direction do. The adaptive direction mode setting unit 33 identifies the difference value Dk between the N temporary blocks according to the above-described Equation 1, and outputs the N temporary predictive directions V1- Vn, H1 to Hn, and VH0) can be stepwise divided (sprit).

적응적 방향 모드 설정부(33)는 이웃한 임시 블록들 사이의 차이값(Dk)이 미리 정해진 임계값 이상일 경우, 임시 예측 방향 정보 생성부(31)로 해당 임시 블록들에 대한 정보를 제공하고, 복수의 블록으로 분할을 요청할 수 있다. 이에 대응하여 임시 예측 방향 정보 생성부(31)는 해당 임시 블록들이 형성하는 임시 예측 방향을 분할(Sprit)하여 적어도 하나의 임시 블록을 생성하고, 생성된 임시 블록에 대응되는 임시 예측 방향 정보를 적응적 방향 모드 설정부(33)로 제공할 수 있다. 적응적 방향 모드 설정부(33)는 분할을 진행한 후 존재하는 임시 블록의 수가 적응적 방향 모드를 설정하는 기준이 되는 미리 정해진 개수(예, M개)와 동일한지를 확인하고, 임시 블록의 수가 적응적 방향 모드를 설정하는 기준이 되는 미리 정해진 개수(예, M개)와 동일해질 때까지 미리 정해진 임계값을 순차적으로 감소시키면서 전술한 분할 처리 동작을 반복적으로 진행할 수 있다. 그리고, 적응적 방향 모드 설정부(33)는 분할을 진행한 후 잔존하는 임시 블록의 수가 인트라 예측 방향을 설정하는 기준이 되는 미리 정해진 개수(예, M개)와 동일해질 경우, 존재하는 임시 블록들에 대응되는 방향 모드를 적응적 방향 모드로 결정할 수 있다. The adaptive direction mode setting unit 33 provides the temporary prediction direction information generating unit 31 with information on the temporary blocks when the difference value Dk between neighboring temporary blocks is equal to or greater than a predetermined threshold value , And can request division into a plurality of blocks. In response to this, the temporary prediction direction information generating unit 31 generates at least one temporary block by spitting the temporary prediction direction formed by the temporary blocks, and temporarily converts the temporary prediction direction information corresponding to the generated temporary block Directional mode setting unit 33 as shown in FIG. The adaptive direction mode setting unit 33 confirms whether the number of temporary blocks existing after the division is the same as a predetermined number (for example, M) as a reference for setting the adaptive direction mode, and the number of temporary blocks It is possible to repeatedly perform the dividing processing operation described above while sequentially decreasing the predetermined threshold value until the number of the thresholds becomes equal to a predetermined number (for example, M) which is a reference for setting the adaptive direction mode. If the number of temporary blocks remaining after the division is equal to a predetermined number (for example, M) which is a reference for setting the intra prediction direction, the adaptive direction mode setting unit 33 sets the number of temporary blocks Can be determined as the adaptive direction mode.

전술한 본 발명의 일 실시예에 따른 인트라 예측부의 동작을 예시하면서, 임시 예측 방향 정보 생성부(31)가 임시 블록을 생성하고, 이를 기반으로 임시 예측 방향 정보를 구성하는 것을 예시하였으나, 본 발명이 이를 한정하는 것은 아니다. 임시 예측 방향 정보는 전술한 임시 예측 방향에 기초하여 현재 블록에 포함된 픽셀에 대한 정보를 예측할 수 있으면 충분하다. 예를 들어, 임시 예측 방향 정보 생성부(31)는 임시 예측 방향을 기준으로, 상기 임시 예측 방향에 대응되는 참조 픽셀이 반영될 수 있는 임시 블록의 픽셀(이하, '임시 픽셀'이라 함)을 매핑한 정보(이하, `임시 블록 매핑정보`라 함.)를 구성하고, 상기 임시 블록 매핑정보를 임시 예측 방향 정보로 결정할 수도 있다. 예컨대, 도 4에 예시되는 임시 블록을 참조하면, 제1참조 픽셀(RP1)은 수직(Vertical)방향에서 제1임시픽셀(TP1), 제5임시픽셀(TP5), 제9임시픽셀(TP9), 및 제13임시픽셀(TP13)에 반영될 수 있고, 대각선 방향에서 제2임시픽셀(TP2), 제7임시픽셀(TP7), 및 제12임시픽셀(TP12)에 반영될 수 있다. 상기 임시 블록 매핑정보는 이와 같은 임시 예측 방향, 참조 픽셀, 및 임시 픽셀을 포함하는 정보를 서로 매칭시켜놓은 정보일 수 있다. Although it has been illustrated that the temporary prediction direction information generation unit 31 generates temporary blocks and constructs the temporary prediction direction information based on the generated temporary blocks while illustrating the operation of the intra prediction unit according to the embodiment of the present invention, It is not limited thereto. It is sufficient that the temporary prediction direction information can predict information on the pixels included in the current block based on the aforementioned temporary prediction direction. For example, the temporary prediction direction information generating unit 31 generates a temporary pixel of a temporary block (hereinafter, referred to as a 'temporary pixel') to which a reference pixel corresponding to the temporary prediction direction can be reflected Mapped information (hereinafter referred to as `temporary block mapping information`), and may determine the temporary block mapping information as the temporary prediction direction information. For example, referring to the temporary block illustrated in FIG. 4, the first reference pixel RP1 includes a first temporary pixel TP1, a fifth temporary pixel TP5, a ninth temporary pixel TP9 in the vertical direction, And the thirteenth temporary pixel TP13 and may be reflected in the second temporary pixel TP2, the seventh temporary pixel TP7, and the twelfth temporary pixel TP12 in the diagonal direction. The temporary block mapping information may be information that matches the information including the temporary prediction direction, the reference pixel, and the temporary pixel.

나아가, 상기 임시 예측 방향 정보가 임시 블록 매핑정보로 이루어질 경우, 적응적 방향 모드 설정부(33)는 임시 블록 매핑정보에 포함되는 참조 픽셀과 및 임시 픽셀 사이의 관계에 대한 수치 연산을 처리함으로써, 임시 예측 방향들로부터 적응적 방향 모드를 빠르게 결정할 수 있다. 예컨대, 참조 픽셀이 몇 개의 임시 픽셀에 반영되는지 산출하고, 임시 픽셀이 많이 반영되는 수를 기준으로 참조 픽셀을 정렬하고, M 개의 참조 픽셀에 대응되는 방향 모드를 적응적 방향 모드로 설정할 수 있다. 이와 같이, 임시 블록 매핑정보를 기준으로 적응적 방향 모드를 설정하면, 적응적 방향 모드를 설정하는데 소요되는 연산량 또는 하드웨어 자원을 줄일 수 있어 효과적인 처리가 가능하다. When the temporary prediction direction information is temporary block mapping information, the adaptive direction mode setting unit 33 performs a numerical calculation on the relationship between the reference pixel and the temporary pixel included in the temporary block mapping information, The adaptive direction mode can be quickly determined from the temporary prediction directions. For example, it is possible to calculate how many reference pixels are reflected in the temporary pixels, align the reference pixels based on the number of times the temporary pixels are reflected, and set the direction mode corresponding to the M reference pixels to the adaptive direction mode. As described above, if the adaptive direction mode is set based on the temporary block mapping information, the computation amount or hardware resources required to set the adaptive direction mode can be reduced, and effective processing can be performed.

도 9는 본 발명의 일 실시예에 따른 영상 복호화 장치에 구비되는 인트라 예측부의 상세 구성을 예시하는 블록도이다. 도 9를 참조하면, 본 발명의 일 실시예에 따른 영상 복호화 장치에 구비되는 인트라 예측부(235)는 임시 예측 방향 정보 생성부(91), 적응적 방향 모드 설정부(93), 및 인트라 예측 모드 복원부(95)를 포함할 수 있다. 9 is a block diagram illustrating a detailed configuration of an intra predictor included in an image decoding apparatus according to an embodiment of the present invention. 9, an intra predictor 235 included in an image decoding apparatus according to an exemplary embodiment of the present invention includes a temporary prediction direction information generation unit 91, an adaptive direction mode setting unit 93, And a mode recovery unit 95.

영상 복호화 장치의 인트라 예측부(235)에 구비되는 임시 예측 방향 정보 생성부(91), 및 적응적 방향 모드 설정부(93)는 영상 부호화 장치의 인트라 예측부(125)에 구비되는 임시 예측 방향 정보 생성부(31), 및 적응적 방향 모드 설정부(33)와 동일하게 구성될 수 있다. 따라서, 임시 예측 방향 정보 생성부(91), 및 적응적 방향 모드 설정부(93)의 구체적인 구성은 영상 부호화 장치의 인트라 예측부(125)에 구비되는 임시 예측 방향 정보 생성부(31), 및 적응적 방향 모드 설정부(33)의 구성에 기재된 바를 참조한다.The temporal prediction direction information generating unit 91 and the adaptive directional mode setting unit 93 provided in the intra prediction unit 235 of the video decoding apparatus perform temporal prediction with respect to the temporal prediction direction included in the intra prediction unit 125 of the video encoding apparatus The information generating unit 31, and the adaptive direction mode setting unit 33 shown in FIG. Therefore, the concrete configuration of the temporary prediction direction information generation unit 91 and the adaptive direction mode setting unit 93 is the temporary prediction direction information generation unit 31 provided in the intra prediction unit 125 of the image encoding apparatus, The description of the configuration of the adaptive direction mode setting unit 33 will be referred to.

임시 예측 방향 정보 생성부(91)는 인트라 예측 모드를 설정하는데 기초가 되는 임시 예측 방향을 미리 정해진 개수로 설정하고, 상기 미리 설정된 개수의 임시 예측 방향을 기반으로 하는 임시 예측 방향 정보를 생성할 수 있다.The temporary prediction direction information generation unit 91 sets a temporary prediction direction as a basis for setting an intra prediction mode to a predetermined number and generates temporary prediction direction information based on the predetermined number of temporary prediction directions have.

적응적 방향 모드 설정부(93)는 임시 예측 방향 정보에 포함된 임시 블록의 픽셀 정보를 기반으로 상기 임시 블록을 병합(merge)하거나, 분리(Split)함으로써 상기 미리 정해진 개수의 적응적 방향 모드를 설정할 수 있다. 다른 예로서, 적응적 방향 모드 설정부(93)는 임시 예측 방향 정보에 포함된 임시 블록 매핑정보를 기반으로, 참조 픽셀과 임시 블록에 포함된 픽셀들 사이의 관계에 대한 수치 연산을 처리함으로써, 상기 미리 정해진 개수의 적응적 방향 모드를 설정할 수 있다. The adaptive direction mode setting unit 93 merges or splits the temporary blocks on the basis of the pixel information of the temporary blocks included in the temporary prediction direction information to determine the predetermined number of adaptive directional modes Can be set. As another example, the adaptive direction mode setting unit 93 may perform a numerical calculation on the relationship between the reference pixels and the pixels included in the temporary block based on the temporary block mapping information included in the temporary prediction direction information, The predetermined number of adaptive direction modes can be set.

인트라 예측 모드 복원부(95)는 플레이너 모드, DC 모드와 함께 적응적 방향 모드 설정부(33)에서 설정된 적응적 방향 모드를 포함하는 인트라 예측 모드의 인덱스를 할당할 수 있다. 그리고, 인트라 예측 모드 결정부(95)는 인트라 예측 모드로 부호화된 블록에 대한 인트라 예측 복원을 처리할 수 있다. 예를 들오, 인트라 예측 모드 결정부(95)는 예측 단위의 블록이 인트라 예측 모드로 부호화되어 있음을 확인하고, 상기 인트라 예측 모드의 인덱스에 기초하여 해당 블록의 인트라 예측 모드를 확인한다. 예컨대, 인트라 예측 모드 결정부(95)가 확인한 인트라 예측 모드가 방향성 모드일 경우, 인트라 예측 모드 결정부(95)는 적응적 방향 모드를 기반으로 설정된 인트라 예측 모드의 방향을 확인하고, 확인된 방향에 대응되는 참조 픽셀의 정보를 메모리(245)로부터 확인할 수 있다. 예측 단위의 블록에 포함된 적어도 하나의 픽셀에 대해 이와 같은 동작을 반복적으로 수행하여, 예측 블록을 복원할 수 있다. The intraprediction mode restoration unit 95 may assign an index of an intra prediction mode including the adaptive direction mode set by the adaptive direction mode setting unit 33 together with the planer mode and the DC mode. The intra prediction mode determination unit 95 may process the intra prediction prediction for the block encoded in the intra prediction mode. For example, the intra prediction mode determination unit 95 confirms that the prediction unit block is coded in the intra prediction mode, and confirms the intra prediction mode of the block based on the index of the intra prediction mode. For example, when the intra-prediction mode determined by the intra-prediction mode determining unit 95 is the directional mode, the intra-prediction mode determining unit 95 determines the direction of the intra-prediction mode based on the adaptive direction mode, From the memory 245, the information of the reference pixel corresponding to the reference pixel. Such an operation may be repeatedly performed on at least one pixel included in the block of the prediction unit to restore the prediction block.

영상 복호화 장치가 전술한 바와 같은 인트라 예측부를 구비함에 따라, 종래의 방법에 따라 고정된 각도 방향으로 이루어지는 인트라 예측 방향보다 상대적으로 더 정확한 인트라 예측 모드를 설정할 수 있으며, 나아가 부호화 비트수를 줄이는데 기여할 수 있다. 또한, 영상 복호화 장치의 인트라 예측부는 영상 부호화 장치와 연동하여 인트라 예측에 사용되는 모드를 적응적으로 설정할 수 있도록 구비됨에 따라, 영상 부호화 장치 및 복호화 장치의 하드웨어 환경이나, 영상 부호화 장치와 복호화 장치 사이의 통신 환경 등을 고려하여 적응적으로 인트라 예측 모드를 설정할 수 있다. 특히, 적응적으로 인트라 예측 모드를 설정함으로써, 고품질의 영상 부호화/복호화를 실현하거나, 영상 부호화 데이터를 줄이거나, 효율적인 영상 데이터의 전송을 실현할 수 있다. Since the image decoding apparatus includes the intra prediction unit as described above, it is possible to set a more accurate intra prediction mode than the intra prediction direction in the fixed angle direction according to the conventional method, and further, to reduce the number of encoding bits have. The intraprediction unit of the video decoding apparatus is provided to adaptively set a mode used for intraprediction in cooperation with the video encoding apparatus, and thus can be implemented in a hardware environment of the video encoding apparatus and the decode apparatus, or in a hardware environment of the video encoding apparatus and the decode apparatus The intra-prediction mode can be adaptively set in consideration of the communication environment of the terminal. Particularly, by setting the intra prediction mode adaptively, high-quality image encoding / decoding can be realized, image encoding data can be reduced, and efficient image data transmission can be realized.

도 10은 본 발명의 일 실시예에 따른 인트라 예측 부호화 방법을 설명하기 위한 흐름도이다. 인트라 예측 부호화 방법은 전술한 부호화 장치의 인트라 예측부에 의해 처리될 수 있다. 10 is a flowchart illustrating an intra prediction encoding method according to an embodiment of the present invention. The intra prediction coding method can be processed by the intra prediction unit of the above-described coding apparatus.

S1001 단계에서, 인트라 예측부는 인트라 예측 모드를 설정하는데 기초가 되는 임시 예측 방향을 미리 정해진 개수로 설정할 수 있다. 구체적으로, 인트라 예측부는 인트라 예측 모드를 결정하는데 사용할 수 있는 전체 예측 방향의 범위를 미리 정해진 규칙에 따라, 미리 정해진 수(예, N개)로 분할하여 임시 예측 방향을 설정할 수 있다. 여기서, 상기 미리 정해진 규칙은 전체 예측 방향의 범위를 미리 정해진 수(N개)로 균등하게 분할하는 것일 수 있다. 예를 들면, 상기 임시 예측 방향은 현재 블록(도 4 참조, 40)의 주변에 위치한 참조 픽셀을 지시하는 방향을 나타내는 것일 수 있다. 인트라 예측부는 참조 픽셀이 위치한 영역의 범위를 미리 정해진 수(예, N개)만큼 균등하게 분할하고, 분할된 영역에 대응되는 방향을 임시 예측 방향(도 5 참조, V1~Vn, H1~Hn, VH0)으로 설정할 수 있다. 본 발명의 일 실시예에서, 임시 예측 방향(V1~Vn, H1~Hn, VH0)이 설정되는 미리 정해진 수(N개)는 최종적으로 결정되는 적응적 방향 모드의 수(M개)보다 크게 설정되는 것을 예시하지만, 본 발명이 이를 한정하는 것은 아니며, 후술되는 S1002 및 S1003 단계의 구성 및 동작을 고려하여 다양하게 설정될 수 있다.In step S1001, the intra prediction unit may set a predetermined number of temporary prediction directions on which the intra prediction mode is set. Specifically, the intra-prediction unit can divide the range of the entire prediction direction that can be used for determining the intra-prediction mode into a predetermined number (e.g., N) according to a predetermined rule to set the temporary prediction direction. Here, the predetermined rule may be to evenly divide the range of the entire prediction direction into a predetermined number (N). For example, the temporary prediction direction may indicate a direction indicating a reference pixel located in the vicinity of the current block (see FIG. 4). The intra-prediction unit uniformly divides the range of the region in which the reference pixel is located by a predetermined number (for example, N) and divides the direction corresponding to the divided region into a temporary prediction direction (see FIG. 5, V1 to Vn, H1 to Hn, VH0). In the embodiment of the present invention, the predetermined number (N) in which the temporary prediction directions (V1 to Vn, H1 to Hn, VH0) are set is set to be larger than the number of the finally determined adaptive directional modes However, the present invention is not limited thereto, and may be variously set in consideration of the configuration and operation of steps S1002 and S1003 described later.

S1002 단계에서, 인트라 예측부는 전술한 동작을 통해 설정된 N 개의 임시 예측 방향(V1~Vn, H1~Hn, VH0)에 대응되는 임시 블록(도 6 참조, TB1 내지 TBn)을 생성할 수 있다. 즉, 인트라 예측부는 현재 블록을 중심으로 하여 N 개의 예측 방향(V1~Vn, H1~Hn, VH0)이 지시하는 영역에 존재하는 참조 픽셀의 색차 정보를 참조하여 임시 블록에 구비되는 픽셀에 반영함으로써, 임시 블록을 구성할 수 있다. 이와 같은 동작을 통해 구성된 N 개의 임시 블록을 임시 예측 방향 정보로서 사용할 수 있다. In step S1002, the intraprediction unit may generate a temporary block (see FIG. 6, TB1 to TBn) corresponding to the N temporary prediction directions (V1 to Vn, H1 to Hn, and VH0) set through the above operation. That is, the intra predictor refers to the chrominance information of the reference pixel existing in the region indicated by the N prediction directions (V1 to Vn, H1 to Hn, VH0) around the current block, and reflects the chrominance information on the pixels included in the temporary block , Temporary blocks can be constructed. N temporary blocks constructed through such operations can be used as temporary prediction direction information.

S1003 단계에서, 인트라 예측부는 임시 예측 방향 정보를 사용하여 미리 정해진 개수(예, M개) 만큼의 적응적 방향 모드를 설정한다. 적응적 방향 모드가 설정되는 상기 미리 정해진 개수는 본 발명의 일 실시예에 따른 부호화 장치의 설계 단계에서 고정된 값으로 설정될 수 있다. 다른 예로서, 상기 적응적 방향 모드가 설정되는 상기 미리 정해진 개수는 부호화 장치 및 복호화 장치의 하드웨어 환경, 부호화 장치와 복호화 장치 사이의 통신 환경 등을 고려하여 적응적으로 설정될 수 있다. In step S1003, the intra predictor sets the adaptive direction mode by a predetermined number (e.g., M) using the temporary prediction direction information. The predetermined number in which the adaptive direction mode is set may be set to a fixed value in the designing stage of the encoding apparatus according to an embodiment of the present invention. As another example, the predetermined number in which the adaptive direction mode is set may be adaptively set in consideration of a hardware environment of the encoding apparatus and the decoding apparatus, a communication environment between the encoding apparatus and the decoding apparatus, and the like.

비록, 본 발명의 일 실시예에서, 인트라 예측부가 적응적 방향 모드를 설정하는 미리 정해진 개수(예, M개)를 설정하는 방법을 예시하고 있으나, 본 발명이 이를 한정하는 것은 아니다. 본 발명의 일 실시예에 따른 부호화 장치가 상기 미리 정해진 개수를 설정하기 위해 사용하는 규칙과 동일한 규칙으로 복호화 장치가 상기 미리 정해진 개수를 설정할 수 있으면 충분하다. 따라서, 상기 미리 정해진 개수를 설정하기 위해 사용하는 규칙은 전술한 바와 같이 사전에 부호화 장치 및 복호화 장치에 미리 설정되거나, 부호화 장치가 데이터를 부호화하는 과정에서 상기 미리 정해진 개수를 설정하기 위해 사용하는 규칙을 식별할 수 있는 정보를 삽입하고, 복호화 장치가 데이터를 복호화하는 과정에서 상기 미리 정해진 개수를 설정하기 위해 사용하는 규칙을 확인하도록 구비될 수도 있다. Although the exemplary embodiment of the present invention illustrates a method of setting a predetermined number (e.g., M) of the intra predictor to set the adaptive direction mode, the present invention is not limited thereto. It suffices that the decoding apparatus can set the predetermined number to the same rule as the rule used by the encoding apparatus according to the embodiment of the present invention to set the predetermined number. Therefore, the rules used to set the predetermined number may be set in advance in the coding apparatus and the decoding apparatus as described above, or the rules used for setting the predetermined number in the process of coding the data by the coding apparatus And to confirm a rule used by the decoding apparatus to set the predetermined number in the process of decoding the data.

S1003 단계에서, 인트라 예측부는 임시 블록들 사이의 차이값을 확인하고, 확인된 차이값을 기초로 임시 블록을 단계적으로 병합(merge)하여 적응적 방향 모드를 상기 미리 정해진 개수로 설정할 수 있다. In step S1003, the intraprediction unit may check the difference value between the temporary blocks, and may merge the temporary blocks step by step based on the determined difference value to set the adaptive direction mode to the predetermined number.

구체적으로, 인트라 예측부는 임시 예측 방향 정보를 확인하고, N 개의 임시 예측 방향(V1~Vn, H1~Hn, VH0)을 단계적으로 병합하는 동작을 진행하여 인트라 예측을 수행하는데 사용할 M 개의 적응적 방향 모드를 결정할 수 있다. 즉, 인트라 예측부는 일차적으로 N 개의 임시 블록들(도 7 참조, 71) 사이의 차이값(Dk)을 확인한다. 임시 블록들(71) 사이의 차이값(Dk)은 전술한 수학식 1의 연산을 통해 확인할 수 있다. 일차적으로, 인트라 예측부는 임시 블록들(71) 사이의 차이값(Dk)이 0일 경우 이웃한 임시 블록들을 하나의 임시 블록으로 병합하고, 이웃한 임시 블록들(71) 사이의 차이값이 0이 아닐 경우 임시 블록을 유지한다. 예를 들면, 도 7에서 제1임시블록(TB1)과 제2임시블록(TB2), 제4임시블록(TB4)과 제5임시블록(TB5), 제6임시블록(TB6)과 제7임시블록(TB7) 사이의 차이값(Dk)이 각각 0일 경우, 차이값(Dk)이 0인 임시 블록들은 서로 동일한 임시 블록이므로, 인트라 예측부는 해당 블록들 중 하나의 임시 블록을 삭제하여 일차 병합을 처리한다. 인트라 예측부는 일차적으로 병합을 처리한 후 남아 있는 임시 블록들(72)의 수가, 적응적 방향 모드를 설정하는 기준이 되는 미리 정해진 개수(예, M개)와 같거나 작은지 확인한다. 일차적으로 병합을 처리한 후 남아 있는 임시 블록(72)의 수가 전술한 M개보다 클 경우, 다음과 같이 이차적인 병합을 진행한다. Specifically, the intra-prediction unit confirms the temporal prediction direction information and performs an operation of stepwise merging the N temporary prediction directions (V1 to Vn, H1 to Hn, VH0) to generate M adaptive directions Mode can be determined. That is, the intraprediction unit first confirms the difference value Dk between N temporary blocks (see FIG. 7, 71). The difference value Dk between the temporary blocks 71 can be confirmed through the operation of Equation (1). First, when the difference value Dk between the temporary blocks 71 is 0, the intra predictor merges the neighboring temporary blocks into one temporary block, and when the difference value between neighboring temporary blocks 71 is 0 If not, keep the temporary block. For example, in FIG. 7, the first temporary block TB1 and the second temporary block TB2, the fourth temporary block TB4 and the fifth temporary block TB5, the sixth temporary block TB6, When the difference values Dk between blocks TB7 and TB7 are 0, the temporary blocks having the difference value Dk = 0 are the same temporary blocks. Therefore, the intra-prediction unit deletes one temporary block among the corresponding blocks, Lt; / RTI &gt; The intraprediction unit first confirms whether the number of temporary blocks 72 remaining after the merge processing is equal to or smaller than a predetermined number (for example, M) which is a reference for setting the adaptive direction mode. If the number of temporary blocks 72 remaining after the merge processing is larger than M, the secondary merge proceeds as follows.

인트라 예측부는 이웃한 임시 블록들 사이의 차이값(Dk)이 미리 정해진 임계값 이하일 경우 이웃한 임시 블록들을 하나의 임시 블록으로 병합하고, 이웃한 임시 블록들 사이의 차이값(Dk)이 미리 정해진 임계값보다 클 경우 임시 블록을 유지한다. 적응적 방향 모드 설정부(33)는 병합을 진행한 후 남아 있는 임시 블록(73)의 수가 적응적 방향 모드를 설정하는 기준이 되는 미리 정해진 개수(예, M개)와 같거나 작아질 때까지 미리 정해진 임계값을 순차적으로 증가시키면서 반복적으로 진행할 수 있다. 그리고, 인트라 예측부는 병합 후 잔존하는 임시 블록의 수가 적응적 방향 모드를 설정하는 기준이 되는 미리 정해진 개수(예, M개)와 같거나 작을 경우, 병합 후 잔존하는 임시 블록들(74)에 대응되는 방향을 적응적 방향 모드로 결정할 수 있다(도 8참조). The intra predictor merges neighboring temporary blocks into one temporary block when the difference value Dk between neighboring temporary blocks is equal to or less than a predetermined threshold value, and when the difference value Dk between neighboring temporary blocks is smaller than a predetermined threshold value If it is larger than the threshold value, the temporary block is maintained. The adaptive direction mode setting unit 33 sets the adaptive direction mode until the number of temporary blocks 73 remaining after merging is equal to or smaller than a predetermined number (for example, M) It is possible to repeatedly proceed while increasing a predetermined threshold sequentially. If the number of temporary blocks remaining after merging is equal to or smaller than a predetermined number (for example, M) that is a reference for setting the adaptive direction mode, the intra predictor corresponds to the remaining temporary blocks 74 after merging (Refer to FIG. 8).

이와 같이, 인트라 예측부가 임시 예측 방향에 기초하여 생성된 임시 블록들 중 일부를 병합하고, 병합 후 잔존하는 임시 블록들에 대응되는 방향 모드를 적응적 방향 모드로 사용할 수 있다. 이로써, 인트라 예측 방향은 종래의 방법과 같이 고정된 각도로 나누어진 방향으로 이루어 지지 않고 실제 주변 참조 픽셀이 가지고 있는 값에 따라 적응적으로 설정될 수 있다. 따라서, 종래의 방법에 따라 고정된 각도 방향으로 이루어지는 인트라 예측 방향보다 상대적으로 더 정확한 인트라 예측 모드를 설정할 수 있으며, 나아가 부호화 비트수를 줄이는데 기여할 수 있다.In this manner, the intraprediction unit may merge some of the temporary blocks generated based on the temporary prediction direction, and use the directional mode corresponding to the remaining temporary blocks after the merging as the adaptive directional mode. As a result, the intra prediction direction can be adaptively set according to the value of the actual peripheral reference pixel, not in a direction divided by a fixed angle as in the conventional method. Therefore, it is possible to set a more accurate intra prediction mode than the intra prediction direction in the fixed angular direction according to the conventional method, and further, it can contribute to reduce the number of encoding bits.

한편, S1004 단계에서, 인트라 예측부는 플레이너 모드, DC 모드와 함께 적응적 방향 모드를 기초로하여 현재 블록에 대한 인트라 예측을 수행하여, 인트라 예측 모드를 결정할 수 있다. Meanwhile, in step S1004, the intraprediction unit may perform intraprediction on the current block based on the adaptive direction mode together with the planer mode and the DC mode, thereby determining the intra prediction mode.

전술한 본 발명의 일 실시예에 따른 인트라 예측 방법을 설명하면서, 인트라 예측부가 N 개의 임시 예측 방향(V1~Vn, H1~Hn, VH0)을 단계적으로 병합하여 M 개(여기서, N > M)의 적응적 방향 모드를 결정하는 것을 예시하였으나, 본 발명이 이를 한정하는 것은 아니다. 본 발명에 따른 인트라 예측 방법은, 참조 픽셀과 예측 블록에 포함되는 픽셀과의 관계를 반영하여 가변적으로 설정되는 것을 고려하여, 임시 예측 방향의 수를 최종 결정되는 적응적 방향 모드의 수와 다르게 설정할 수 있으면 충분하다. (N > M) by merging the N temporal prediction directions (V1 to Vn, H1 to Hn, VH0) step by step by the intraprediction unit, while explaining the intra prediction method according to an embodiment of the present invention. The present invention is not limited to this. The intra prediction method according to the present invention sets the number of temporal prediction directions different from the number of adaptive directional modes finally determined in consideration of the fact that the intra prediction method according to the present invention is variably set reflecting the relationship between the reference pixels and the pixels included in the prediction block Sufficient is enough.

인트라 예측 방법은 전술한 일 실시예와 다른 예로서, N 개의 임시 예측 방향(V1~Vn, H1~Hn, VH0)을 단계적으로 분할(Sprit)하여 M 개(여기서, N < M)의 적응적 방향 모드를 결정하는 것도 가능하다. 구체적으로, S1001단계에서, 인트라 예측부는 적응적 방향 모드의 수(M)보다 적은 수(N)의 임시 예측 방향을 설정하고, S1002 단계에서, 임시 예측 방향에 대응하는 임시 블록들(71)과, 이에 대한 임시 예측 방향 정보를 생성한다. 그리고, S1003단계에서, 인트라 예측부는 전술한 수학식 1에서 예시한 바에 따라 N 개의 임시 블록들 사이의 차이값(Dk)을 확인하고, 그 결과에 따라 N 개의 임시 예측 방향(V1~Vn, H1~Hn, VH0)을 단계적으로 분할(Sprit)할 수 있다. 인트라 예측부는 임시 블록들 사이의 차이값(Dk)이 미리 정해진 임계값 이상일 경우, 해당 임시 블록들에 대해, 복수의 블록으로 분할을 처리할 수 있다. 그리고, 인트라 예측부는 분할을 진행한 후 존재하는 임시 블록의 수가 적응적 방향 모드를 설정하는 기준이 되는 미리 정해진 개수(예, M개)와 동일한지를 확인하고, 임시 블록의 수가 적응적 방향 모드를 설정하는 기준이 되는 미리 정해진 개수(예, M개)와 동일해질 때까지 미리 정해진 임계값을 순차적으로 감소시키면서 분할하는 동작을 반복적으로 진행할 수 있다. 그리고, 인트라 예측부는 분할을 진행한 후 존재하는 임시 블록의 수가 인트라 예측 방향을 설정하는 기준이 되는 미리 정해진 개수(예, M개)와 동일해질 경우, 잔존하는 임시 블록들에 대응되는 방향 모드를 적응적 방향 모드로 결정할 수 있다. The intra prediction method differs from the above embodiment in that N temporary prediction directions (V1 to Vn, H1 to Hn, VH0) are stepwise divided into a plurality of M (where N < M) It is also possible to determine the direction mode. Specifically, in step S1001, the intra predictor sets a temporary prediction direction of a number N smaller than the number M of adaptive directional modes. In step S1002, the temporary blocks 71 corresponding to the temporary prediction direction, , And generates temporal prediction direction information on the temporal prediction direction information. In step S1003, the intra predictor determines the difference value Dk between the N temporary blocks according to the above-described equation (1), and generates N temporary prediction directions V1 to Vn, H1 ~ Hn, VH0) can be stepped (sprit). If the difference value Dk between the temporary blocks is equal to or greater than a predetermined threshold value, the intra predictor can process the corresponding temporary blocks into a plurality of blocks. Then, the intra-prediction unit confirms whether the number of temporary blocks existing after the division is the same as a predetermined number (for example, M) that is a reference for setting the adaptive direction mode, and if the number of temporary blocks is the adaptive direction mode It is possible to repeatedly perform the operation of dividing the threshold value sequentially decreasing until a predetermined number (for example, M number) of the thresholds to be set becomes equal to the predetermined number. If the number of temporary blocks existing after the partitioning is equal to a predetermined number (for example, M), which is a reference for setting the intra-prediction direction, the intra-prediction unit sets the direction mode corresponding to the remaining temporary blocks to An adaptive direction mode can be determined.

전술한 실시예에서, 인트라 예측 방법은 임시 예측 방향의 수(N개)에 대응하는 만큼의 임시 블록을 생성하고, 생성된 N개의 임시 블록의 픽셀 정보를 임시 예측 방향 정보로 결정하는 것을 예시하였으나, 본 발명이 이를 한정하는 것은 아니다. 인트라 예측 방법은 전술한 임시 예측 방향에 기초하여 현재 블록에 포함된 픽셀에 대한 정보를 확인할 수 있으면 충분하다. In the above-described embodiment, the intra prediction method has exemplified the generation of the temporary blocks corresponding to the number (N) of temporary prediction directions and the pixel information of the generated N temporary blocks as the temporary prediction direction information , But the present invention is not limited thereto. It is sufficient that the intra prediction method can confirm information on the pixels included in the current block based on the temporary prediction direction described above.

다른 예로서, 인트라 예측 방법은 S1002 단계에서 상기 임시 예측 방향에 대응되는 참조 픽셀이 반영될 수 있는 임시 블록의 픽셀들을 매핑한 정보(즉, 임시 블록 매핑정보)를 구성하고, 상기 임시 블록 매핑정보를 임시 예측 방향 정보로 결정할 수도 있다. 구체적으로, 도 4에 예시되는 임시 블록을 참조하면, 제1참조 픽셀(RP1)은 수직(Vertical)방향에서 제1임시픽셀(TP1), 제5임시픽셀(TP5), 제9임시픽셀(TP9), 및 제13임시픽셀(TP13)에 반영될 수 있고, 대각선 방향에서 제2임시픽셀(TP2), 제7임시픽셀(TP7), 및 제12임시픽셀(TP12)에 반영될 수 있다. 상기 임시 블록 매핑정보는 이와 같은 임시 예측 방향, 참조 픽셀, 및 임시 픽셀을 포함하는 정보를 서로 매칭시켜놓은 정보일 수 있다. As another example, in step S1002, the intraprediction method configures information (i.e., temporary block mapping information) in which pixels of a temporary block that can reflect a reference pixel corresponding to the temporary prediction direction are mapped (i.e., temporary block mapping information) As the temporary prediction direction information. 4, the first reference pixel RP1 includes a first temporary pixel TP1, a fifth temporary pixel TP5, a ninth temporary pixel TP9 in the vertical direction, ), And the thirteenth temporary pixel TP13 and may be reflected in the second temporary pixel TP2, the seventh temporary pixel TP7, and the twelfth temporary pixel TP12 in the diagonal direction. The temporary block mapping information may be information that matches the information including the temporary prediction direction, the reference pixel, and the temporary pixel.

전술한 임시 블록 매핑정보를 고려하여, 인트라 예측 방법은 S1003 단계에서 임시 블록 매핑정보에 포함되는 참조 픽셀과 및 임시 블록의 픽셀들 사이의 관계에 대한 수치 연산을 처리함으로써, 임시 블록들 사이의 차이값을 빠르게 처리할 수 있다. 예컨대, 참조 픽셀이 몇 개의 임시 픽셀에 반영되는지 산출하고, 임시 픽셀이 많이 반영되는 수를 기준으로 참조 픽셀을 정렬하고, M 개의 참조 픽셀에 대응되는 방향 모드를 적응적 방향 모드로 설정할 수 있다. 이와 같이, 임시 블록 매핑정보를 기준으로 적응적 방향 모드를 설정하면, 적응적 방향 모드를 설정하는데 소요되는 연산량 또는 하드웨어 자원을 줄일 수 있어 효과적인 처리가 가능하다. In consideration of the temporary block mapping information described above, the intra prediction method performs a numerical calculation on the relationship between the reference pixels included in the temporary block mapping information and the pixels of the temporary block in step S1003, You can process values quickly. For example, it is possible to calculate how many reference pixels are reflected in the temporary pixels, align the reference pixels based on the number of times the temporary pixels are reflected, and set the direction mode corresponding to the M reference pixels to the adaptive direction mode. As described above, if the adaptive direction mode is set based on the temporary block mapping information, the computation amount or hardware resources required to set the adaptive direction mode can be reduced, and effective processing can be performed.

도 11은 본 발명의 일 실시예에 따른 인트라 예측 복호화 방법을 설명하기 위한 흐름도이다. 인트라 예측 복호화 방법은 전술한 복호화 장치의 인트라 예측부에 의해 처리될 수 있다. 11 is a flowchart illustrating an intra prediction decoding method according to an embodiment of the present invention. The intra prediction decoding method can be processed by the intra prediction unit of the above-described decoding apparatus.

도 11을 참조하면, 본 발명의 일 실시예에 따른 인트라 예측 복호화 방법은 임시 예측 방향을 설정하는 단계(S1101), 임시 예측 방향 정보를 생성하는 단계(S1102), 적응적 방향 모드를 설정하는 단계(S1103), 및 인트라 예측 모드를 복원하는 단계(S1104)를 포함할 수 있다. Referring to FIG. 11, an intra prediction decoding method according to an exemplary embodiment of the present invention includes setting a temporary prediction direction (S1101), generating temporary prediction direction information (S1102), setting an adaptive direction mode (S1103), and restoring the intra prediction mode (S1104).

인트라 예측 복호화 방법에 구비된 임시 예측 방향을 설정하는 단계(S1101), 임시 예측 방향 정보를 생성하는 단계(S1102), 및 적응적 방향 모드를 설정하는 단계(S1103)는 인트라 예측 부호화 방법에 포함된 임시 예측 방향을 설정하는 단계(S1001), 임시 예측 방향 정보를 생성하는 단계(S1002), 및 적응적 방향 모드를 설정하는 단계(S1003)에 각각 대응되며, 그 동작 또한 동일하게 진행될 수 있다. 따라서, 인트라 예측 복호화 방법에 구비된 임시 예측 방향을 설정하는 단계(S1101), 임시 예측 방향 정보를 생성하는 단계(S1102), 및 적응적 방향 모드를 설정하는 단계(S1103)에 대한 구체적인 구성 및 동작은 인트라 예측 부호화 방법에서 설명한 단계들(S1001, S1002, S1003)의 설명에 기재된 바를 참조한다.(S1101), generating the temporary prediction direction information (S1102), and setting the adaptive direction mode (S1103) included in the intraprediction decoding method, A step S1001 of setting a temporary prediction direction, a step S1002 of generating temporary prediction direction information, and a step S1003 of setting an adaptive direction mode, respectively, and the operation may also proceed in the same manner. Therefore, the concrete construction and operation (step S1102) of setting the temporary prediction direction included in the intra prediction decoding method (S1101), generating the temporary prediction direction information (S1102), and setting the adaptive direction mode (S1001, S1002, S1003) described in the intra prediction coding method.

인트라 예측부는 인트라 예측 모드를 설정하는데 기초가 되는 임시 예측 방향을 미리 정해진 개수로 설정할 수 있으며(S1101), 상기 미리 설정된 개수의 임시 예측 방향을 기반으로 하는 임시 예측 방향 정보를 생성할 수 있다(S1102).The intraprediction unit may set a predetermined number of temporary prediction directions to be used for setting the intra prediction mode (S1101), and may generate temporary prediction direction information based on the predetermined number of temporary prediction directions (S1102 ).

S1103 단계에서, 인트라 예측부는 임시 예측 방향 정보를 참조하여, 임시 블록을 병합(merge) 또는 분리(Split)하거나, 임시 블록 매핑정보를 기반으로 수치 연산을 처리함으로써 상기 미리 정해진 개수의 적응적 방향 모드를 설정할 수 있다. In step S1103, the intra-prediction unit refers to the temporary prediction direction information to merge or split the temporary blocks, or to process the predetermined number of adaptive directional modes by processing the numerical operations based on the temporary block mapping information Can be set.

S1104 단계에서, 인트라 예측부는 플레이너 모드, DC 모드, 및 적응적 방향 모드의 방향성 모드를 포함하는 인트라 예측 모드에 대한 인덱스를 할당할 수 있다. 그리고, 인트라 예측부는 인트라 예측 모드로 부호화된 블록에 대한 인트라 예측 복원을 처리할 수 있다. 즉, 인트라 예측부는 예측 단위의 블록이 인트라 예측 모드로 부호화되어 있음을 확인하고, 상기 인트라 예측 모드의 인덱스에 기초하여 해당 블록의 인트라 예측 모드를 확인한다. 예컨대, 확인된 인트라 예측 모드가 방향성 모드일 경우, 인트라 예측부는 적응적 방향 모드를 기반으로 설정된 인트라 예측 모드의 방향을 확인하고, 확인된 방향에 대응되는 참조 픽셀의 정보를 메모리(245)로부터 확인할 수 있다. 예측 단위의 블록에 포함된 적어도 하나의 픽셀에 대해 이와 같은 동작을 반복적으로 수행하여, 예측 블록을 복원할 수 있다. In step S1104, the intra prediction unit may assign an index for an intra prediction mode including a directional mode of a planer mode, a DC mode, and an adaptive directional mode. The intraprediction unit may process intraprediction reconstruction for the block encoded in the intra prediction mode. That is, the intra-prediction unit confirms that the block of the prediction unit is coded in the intra-prediction mode, and confirms the intra-prediction mode of the block based on the index of the intra-prediction mode. For example, when the identified intra prediction mode is the directional mode, the intra prediction unit confirms the direction of the intra prediction mode set based on the adaptive direction mode, and confirms the information of the reference pixels corresponding to the identified direction from the memory 245 . Such an operation may be repeatedly performed on at least one pixel included in the block of the prediction unit to restore the prediction block.

전술한 인트라 예측 복호화 방법을 수행함에 따라, 종래의 방법에 따라 고정된 각도 방향으로 이루어지는 인트라 예측 방향보다 상대적으로 더 정확한 인트라 예측 모드를 설정할 수 있으며, 나아가 부호화 비트수를 줄이는데 기여할 수 있다. 또한, 인트라 예측 복호화 방법은 인트라 예측 부호화 방법과 연동하여 인트라 예측에 사용되는 모드를 적응적으로 설정할 수 있도록 구비됨에 따라, 영상 부호화 및 복호화를 수행하는 하드웨어 환경이나, 통신 환경 등을 고려하여 적응적으로 인트라 예측 모드를 설정할 수 있다. 결국, 적응적으로 인트라 예측 모드를 설정함으로써, 고품질의 영상 부호화/복호화, 부호화 데이터를 최적화, 영상 데이터의 효율적인 전송 등을 실현할 수 있다. By performing the intra prediction decoding method described above, it is possible to set a more accurate intra prediction mode than the intra prediction direction in the fixed angular direction according to the conventional method, and further contribute to reduce the number of encoding bits. In addition, the intra prediction decoding method is adaptable to a mode used for intraprediction in conjunction with the intra prediction coding method. Therefore, the intra prediction decoding method can adaptively set the mode used for the intra prediction by adaptively setting the intra prediction mode in consideration of the hardware environment for performing image encoding and decoding, The intra prediction mode can be set. As a result, by setting the intra prediction mode adaptively, high-quality image encoding / decoding, optimization of encoded data, and efficient transmission of image data can be realized.

전술한 본 발명의 실시예에서, 임시 예측 방향, 적응적 방향 모드, 인트라 예측 방향에 대한 설명시, 참조 또는 예측되는 단위를 픽셀 단위로 예시하였으나, 본 발명이 이를 한정하는 것은 아니다. 참조 또는 예측되는 단위는 다양하게 변경될 수 있으며, 이를 고려하여 임시 예측 방향, 적응적 방향 모드, 인트라 예측 방향 등이 설정될 수 있음은 물론이다.In the embodiments of the present invention described above, the units to be referred to or predicted in the description of the temporary prediction direction, the adaptive direction mode, and the intra prediction direction are exemplified in pixel units, but the present invention is not limited thereto. The units to be referred to or predicted can be variously changed, and it is needless to say that the temporary prediction direction, the adaptive direction mode, and the intra prediction direction can be set in consideration of this.

본 발명의 예시적인 방법들(즉, 인트라 예측 부호화 방법 및 인트라 예측 복호화 방법)은 설명의 명확성을 위해서 동작의 시리즈로 표현되어 있지만, 이는 단계가 수행되는 순서를 제한하기 위한 것은 아니며, 필요한 경우에는 각각의 단계가 동시에 또는 상이한 순서로 수행될 수도 있다. 본 발명에 따른 방법을 구현하기 위해서, 예시하는 단계에 추가적으로 다른 단계를 포함하거나, 일부의 단계를 제외하고 나머지 단계를 포함하거나, 또는 일부의 단계를 제외하고 추가적인 다른 단계를 포함할 수도 있다.Although the exemplary methods of the present invention (i. E. Intraprediction coding method and intra prediction decoding method) are represented by a series of operations for clarity of explanation, they are not intended to limit the order in which the steps are performed, Each step may be performed simultaneously or in a different order. In order to implement the method according to the present invention, the illustrative steps may additionally include other steps, include the remaining steps except for some steps, or may include additional steps other than some steps.

본 발명의 다양한 실시 예는 모든 가능한 조합을 나열한 것이 아니고 본 발명의 대표적인 양상을 설명하기 위한 것이며, 다양한 실시 예에서 설명하는 사항들은 독립적으로 적용되거나 또는 둘 이상의 조합으로 적용될 수도 있다.The various embodiments of the present invention are not intended to be all-inclusive and are intended to illustrate representative aspects of the present invention, and the elements described in the various embodiments may be applied independently or in a combination of two or more.

또한, 본 발명의 다양한 실시 예는 하드웨어, 펌웨어(firmware), 소프트웨어, 또는 그들의 결합 등에 의해 구현될 수 있다. 하드웨어에 의한 구현의 경우, 하나 또는 그 이상의 ASICs(ATPlication Specific Integrated Circuits), DSPs(Digital Signal Processors), DSPDs(Digital Signal Processing Devices), PLDs(Programmable Logic Devices), FPGAs(Field Programmable Gate Arrays), 범용 프로세서(general processor), 컨트롤러, 마이크로 컨트롤러, 마이크로 프로세서 등에 의해 구현될 수 있다. Furthermore, various embodiments of the invention may be implemented by means of hardware, firmware, software, or a combination thereof. In the case of hardware implementation, one or more ASICs, Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs) A general processor, a controller, a microcontroller, a microprocessor, and the like.

본 발명의 범위는 다양한 실시 예의 방법에 따른 동작이 장치 또는 컴퓨터 상에서 실행되도록 하는 소프트웨어 또는 머신-실행 가능한 명령들(예를 들어, 운영체제, 애플리케이션, 펌웨어(firmware), 프로그램 등), 및 이러한 소프트웨어 또는 명령 등이 저장되어 장치 또는 컴퓨터 상에서 실행 가능한 비-일시적 컴퓨터-판독가능 매체(non-transitory computer-readable medium)를 포함한다. The scope of the present invention includes software or machine-executable instructions (e.g., operating system, applications, firmware, programs, etc.) that cause an operation in accordance with the methods of the various embodiments to be performed on a device or computer, Instructions, and the like are stored and are non-transitory computer-readable medium executable on the device or computer.

Claims (20)

인트라 예측 부호화 방법에 있어서,
복수의 임시 예측 방향을 설정하는 단계와,
상기 복수의 임시 예측 방향에 대응되는 임시 예측 방향 정보를 생성하는 단계와,
상기 복수의 임시 예측 방향에서 선택된 적어도 하나의 적응적 방향 모드를 설정하는 단계와,
상기 적어도 하나의 적응적 방향 모드를 포함하는 인트라 예측 모드들에 대한 인트라 예측을 수행하여, 현재 블록의 인트라 예측 모드를 결정하는 단계를 포함하는 인트라 예측 부호화 방법.
In the intra prediction coding method,
Setting a plurality of temporary prediction directions,
Generating temporary prediction direction information corresponding to the plurality of temporary prediction directions;
Setting at least one adaptive directional mode selected in the plurality of temporary prediction directions,
And performing intra prediction on the intra prediction modes including the at least one adaptive direction mode to determine an intra prediction mode of the current block.
제1항에 있어서, 상기 임시 예측 방향 정보를 생성하는 단계는,
상기 복수의 임시 예측 방향의 참조 픽처를 각각 반영한 복수의 임시 블록을 생성하고, 상기 복수의 임시 블록에 대한 정보를 포함하는 임시 예측 방향 정보를 생성하는 단계를 포함하는 것을 특징으로 하는 인트라 예측 부호화 방법.
2. The method of claim 1, wherein generating the temporary prediction direction information comprises:
Generating a plurality of temporary blocks each reflecting the reference pictures in the plurality of temporary prediction directions and generating temporary prediction direction information including information on the plurality of temporary blocks, .
제2항에 있어서, 상기 적응적 방향 모드를 설정하는 단계는,
상기 임시 블록을 병합 처리하는 단계와,
병합 처리 후 잔존하는 상기 임시 블록의 방향에 대응되는 적어도 하나의 적응적 방향 모드를 설정하는 단계를 포함하는 것을 특징으로 하는 인트라 예측 부호화 방법.
3. The method of claim 2, wherein setting the adaptive direction mode comprises:
Merging the temporary blocks;
And setting at least one adaptive direction mode corresponding to a direction of the temporary block remaining after the merging process.
제1항에 있어서, 상기 임시 예측 방향 정보를 생성하는 단계는,
상기 복수의 임시 예측 방향에 대응되는 참조 픽셀과, 임시 블록에 포함되는 픽셀들 사이의 관계를 매칭한 임시 블록 매핑정보를 포함하는 임시 예측 방향 정보를 생성하는 단계를 포함하는 것을 특징으로 하는 인트라 예측 부호화 방법.
2. The method of claim 1, wherein generating the temporary prediction direction information comprises:
Generating temporal prediction direction information including temporal block mapping information matching a reference pixel corresponding to the plurality of temporal prediction directions and a relation between pixels included in the temporal block, Encoding method.
제4항에 있어서, 상기 적응적 방향 모드를 설정하는 단계는,
상기 임시 블록 매핑정보에 포함되는 상기 참조 픽셀과 상기 임시 블록에 포함되는 픽셀들 사이의 관계를 수치 연산하여 상기 적어도 하나의 적응적 방향 모드를 설정하는 단계를 포함하는 것을 특징으로 하는 인트라 예측 부호화 방법.
5. The method of claim 4, wherein the step of setting the adaptive direction mode comprises:
And setting the at least one adaptive direction mode by performing a numerical calculation on the relationship between the reference pixels included in the temporary block mapping information and the pixels included in the temporary block, .
제4항에 있어서, 상기 적응적 방향 모드를 설정하는 단계는,
상기 임시 블록에 포함되는 픽셀들에 상대적으로 많이 참조되는 상기 참조 픽셀을 기준으로 상기 적어도 하나의 적응적 방향 모드를 설정하는 단계를 포함하는 것을 특징으로 하는 인트라 예측 부호화 방법.
5. The method of claim 4, wherein the step of setting the adaptive direction mode comprises:
And setting the at least one adaptive directional mode based on the reference pixels that are relatively frequently referred to pixels included in the temporary block.
제1항에 있어서, 상기 임시 예측 방향 정보를 생성하는 단계는,
상기 적어도 하나의 적응적 방향 모드를 포함하는 인트라 예측 모드들에 대한 인덱스를 할당하고, 상기 할당된 인덱스를 기반으로 상기 인트라 예측을 수행하는 단계를 포함하는 것을 특징으로 하는 인트라 예측 부호화 방법.
2. The method of claim 1, wherein generating the temporary prediction direction information comprises:
And allocating an index for intra prediction modes including the at least one adaptive direction mode and performing the intra prediction based on the allocated index.
인트라 예측 복호화 방법에 있어서,
복수의 임시 예측 방향을 설정하는 단계와,
상기 임시 예측 방향에 대한 임시 예측 방향 정보를 생성하는 단계와,
상기 복수의 임시 예측 방향에서 선택되는 적어도 하나의 적응적 방향 모드를 설정하는 단계와,
부호화된 인트라 예측 모드를 확인하고, 상기 적어도 하나의 적응적 방향 모드를 포함하는 인트라 예측 모드들에 대한 인트라 예측을 수행하여, 예측 블록을 복원하는 단계를 포함하는 인트라 예측 복호화 방법.
In the intra prediction decoding method,
Setting a plurality of temporary prediction directions,
Generating temporary prediction direction information for the temporary prediction direction;
Setting at least one adaptive directional mode selected in the plurality of temporary prediction directions,
Determining a coded intra prediction mode, and performing intra prediction on intra prediction modes including the at least one adaptive direction mode to reconstruct a prediction block.
제8항에 있어서, 상기 임시 예측 방향 정보를 생성하는 단계는,
상기 복수의 임시 예측 방향의 참조 픽처를 각각 반영한 상기 복수의 임시 블록을 생성하는 단계와,
상기 복수의 임시 블록에 대한 정보를 포함하는 임시 예측 방향 정보를 생성하는 단계를 포함하는 것을 특징으로 하는 인트라 예측 복호화 방법.
9. The method of claim 8, wherein generating the temporary prediction direction information comprises:
Generating the plurality of temporary blocks each reflecting the reference pictures in the plurality of temporary prediction directions;
And generating temporal prediction direction information including information on the plurality of temporal blocks.
제9항에 있어서, 상기 적응적 방향 모드를 설정하는 단계는,
상기 복수의 임시 블록을 병합 처리하는 단계와,
병합 처리 후 잔존하는 상기 임시 블록에 대응되는 상기 적어도 하나의 적응적 방향 모드를 설정하는 단계를 포함하는 것을 특징으로 하는 인트라 예측 복호화 방법.
10. The method of claim 9, wherein setting the adaptive direction mode comprises:
Merging the plurality of temporary blocks;
And setting the at least one adaptive direction mode corresponding to the temporary block remaining after the merging process.
제8항에 있어서, 상기 임시 예측 방향 정보를 생성하는 단계는,
상기 복수의 임시 예측 방향에 대응되는 참조 픽셀과, 임시 블록에 포함되는 픽셀들 사이의 관계를 매칭한 임시 블록 매핑정보를 포함하는 임시 예측 방향 정보를 생성하는 단계를 포함하는 것을 특징으로 하는 인트라 예측 복호화 방법.
9. The method of claim 8, wherein generating the temporary prediction direction information comprises:
Generating temporal prediction direction information including temporal block mapping information matching a reference pixel corresponding to the plurality of temporal prediction directions and a relation between pixels included in the temporal block, Decoding method.
제11항에 있어서, 상기 적응적 방향 모드를 설정하는 단계는,
상기 임시 블록 매핑정보에 포함되는 상기 참조 픽셀과 상기 임시 블록에 포함되는 픽셀들 사이의 관계를 수치 연산하여 상기 적어도 하나의 적응적 방향 모드를 설정하는 단계를 포함하는 것을 특징으로 하는 인트라 예측 복호화 방법.
12. The method of claim 11, wherein setting the adaptive direction mode comprises:
And setting the at least one adaptive direction mode by performing a numerical calculation on a relationship between the reference pixels included in the temporary block mapping information and the pixels included in the temporary block, .
인트라 예측 부호화 장치에 있어서,
복수의 임시 예측 방향을 설정하고, 상기 복수의 임시 예측 방향에 대한 임시 예측 방향 정보를 생성하는 임시 예측 방향 정보 생성부와,
상기 복수의 임시 예측 방향에서 선택된 적어도 하나의 적응적 방향 모드를 설정하는 적응적 방향 모드 설정부와,
상기 적어도 하나의 적응적 방향 모드를 포함하는 인트라 예측 모드들에 대한 인트라 예측을 수행하여, 상기 현재 블록의 인트라 예측 모드를 결정하는 인트라 예측 모드 결정부를 포함하는 인트라 예측 부호화 장치.
In the intra prediction coding apparatus,
A temporary prediction direction information generation unit that sets a plurality of temporary prediction directions and generates temporary prediction direction information for the plurality of temporary prediction directions,
An adaptive direction mode setting unit configured to set at least one adaptive directional mode selected from the plurality of temporary prediction directions,
And an intra prediction mode determiner for performing intra prediction on intra prediction modes including the at least one adaptive direction mode to determine an intra prediction mode of the current block.
제13항에 있어서, 상기 예측 방향 정보 생성부는,
상기 복수의 임시 예측 방향의 참조 픽처를 각각 반영한 복수의 임시 블록을 생성하고, 상기 복수의 임시 블록에 대한 정보를 포함하는 임시 예측 방향 정보를 생성하는 것을 특징으로 하는 인트라 예측 부호화 장치.
14. The apparatus according to claim 13,
And generates temporary prediction direction information including information on the plurality of temporary blocks by generating a plurality of temporary blocks each reflecting the reference pictures in the plurality of temporary prediction directions.
제14항에 있어서, 상기 적응적 방향 모드 설정부는,
상기 복수의 임시 블록을 병합 처리하고, 병합 처리 후 잔존하는 ㅇ미시 블록에 대응되는 상기 적어도 하나의 적응적 방향 모드를 결정하는 것을 특징으로 하는 인트라 예측 부호화 장치.
15. The apparatus of claim 14, wherein the adaptive direction-
And the at least one adaptive direction mode corresponding to the remaining micro blocks is determined after the merging process.
제13항에 있어서, 상기 예측 방향 정보 생성부는,
상기 복수의 임시 예측 방향에 대응되는 참조 픽셀과, 임시 블록에 포함되는 픽셀들 사이의 관계를 매칭한 임시 블록 매핑정보를 포함하는 임시 예측 방향 정보를 생성하는 것을 특징으로 하는 인트라 예측 부호화 장치.
14. The apparatus according to claim 13,
Wherein the temporal prediction direction information generating unit generates temporal prediction direction information including reference pixels corresponding to the plurality of temporal prediction directions and temporal block mapping information matching a relation between pixels included in the temporal block.
제16항에 있어서, 상기 적응적 방향 모드 설정부는,
상기 임시 블록 매핑정보에 포함되는 상기 참조 픽셀과 상기 임시 블록에 포함되는 픽셀들 사이의 관계를 수치 연산하여 상기 적어도 하나의 적응적 방향 모드를 설정하는 것을 특징으로 하는 인트라 예측 부호화 장치.
17. The apparatus as claimed in claim 16, wherein the adaptive direction-
Wherein the at least one adaptive directional mode is set by performing a numerical calculation on the relationship between the reference pixels included in the temporary block mapping information and the pixels included in the temporary block.
제16항에 있어서, 상기 적응적 방향 모드 설정부는,
상기 복수의 임시 블록에 포함되는 픽셀들에 상대적으로 많이 참조되는 상기 참조 픽셀을 기준으로 상기 적어도 하나의 적응적 방향 모드를 설정하는 것을 특징으로 하는 인트라 예측 부호화 장치.
17. The apparatus as claimed in claim 16, wherein the adaptive direction-
Wherein the at least one adaptive directional mode is set based on the reference pixels that are relatively frequently referred to the pixels included in the plurality of temporary blocks.
제13항에 있어서, 상기 인트라 예측 모드 결정부는,
상기 적어도 하나의 적응적 방향 모드를 포함하는 인트라 예측 모드들에 대한 인덱스를 할당하고, 상기 할당된 인덱스를 기반으로 상기 인트라 예측을 수행하는 것을 특징으로 하는 인트라 예측 부호화 장치.
14. The apparatus of claim 13, wherein the intra-
An index for intra prediction modes including the at least one adaptive direction mode is allocated, and the intra prediction is performed based on the allocated index.
인트라 예측 복호화 장치에 있어서,
복수의 임시 예측 방향을 설정하고, 상기 복수의 임시 예측 방향에 대한 임시 예측 방향 정보를 생성하는 임시 예측 방향 정보 생성부와,
상기 복수의 임시 예측 방향에서 선택된 적어도 하나의 적응적 방향 모드를 설정하는 적응적 방향 모드 설정부와,
부호화된 인트라 예측 모드를 확인하고, 상기 적어도 하나의 적응적 방향 모드를 포함하는 인트라 예측 모드들에 대한 인트라 예측을 수행하여, 예측 블록을 복원하는 인트라 예측 모드 복원부를 포함하는 인트라 예측 복호화 장치.
In the intra prediction decoding apparatus,
A temporary prediction direction information generation unit that sets a plurality of temporary prediction directions and generates temporary prediction direction information for the plurality of temporary prediction directions,
An adaptive direction mode setting unit configured to set at least one adaptive directional mode selected from the plurality of temporary prediction directions,
And an intra prediction mode reconstruction unit for reconstructing a prediction block by performing intra prediction on the intra prediction modes including the at least one adaptive direction mode.
KR1020170054664A 2016-05-04 2017-04-27 Method for coding and decoding intra-prediction, and atparatus for the same KR102031120B1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR20160055570 2016-05-04
KR1020160055570 2016-05-04

Publications (2)

Publication Number Publication Date
KR20170125724A true KR20170125724A (en) 2017-11-15
KR102031120B1 KR102031120B1 (en) 2019-10-11

Family

ID=60387430

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020170054664A KR102031120B1 (en) 2016-05-04 2017-04-27 Method for coding and decoding intra-prediction, and atparatus for the same

Country Status (1)

Country Link
KR (1) KR102031120B1 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20130067038A (en) * 2011-12-13 2013-06-21 연세대학교 산학협력단 Method of adaptive intra prediction mode encoding and apparatus for the same, and method of decoding and apparatus for the same
KR20130072139A (en) * 2011-12-21 2013-07-01 연세대학교 산학협력단 Apparatus and method for intra prediction coding based on adaptive candidate modes

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20130067038A (en) * 2011-12-13 2013-06-21 연세대학교 산학협력단 Method of adaptive intra prediction mode encoding and apparatus for the same, and method of decoding and apparatus for the same
KR20130072139A (en) * 2011-12-21 2013-07-01 연세대학교 산학협력단 Apparatus and method for intra prediction coding based on adaptive candidate modes

Also Published As

Publication number Publication date
KR102031120B1 (en) 2019-10-11

Similar Documents

Publication Publication Date Title
JP6429960B2 (en) Video information signaling method and video information decoding method using video information signaling method
US20230269367A1 (en) Method and apparatus for encoding/decoding an image signal
KR102061201B1 (en) Methods of transformation based on block information and appratuses using the same
KR20170108367A (en) Method and apparatus for processing a video signal based on intra prediction
KR20130126928A (en) Intra prediction method and encoding apparatus and decoding apparatus using same
KR102502216B1 (en) Method and apparatus for encoding/decoding an image
KR20170007069A (en) A method and an apparatus for correcting distortion of a paranomic video
KR20160046297A (en) Method and apparatus for processing a video signal
KR20160093565A (en) Method and apparatus for processing a video signal
KR20190140423A (en) A method and an apparatus for encoding/decoding a residual block using scaling
KR20160051343A (en) A method and an apparatus for encoding/decoding a video signal using intra prediction
KR101802375B1 (en) Methods of derivation of temporal motion vector predictor and appratuses using the same
KR102389267B1 (en) A method and an apparatus for processing a video signal based on reference between components
KR20180096194A (en) Apparatus for coding and decoding a transform coefficient, and coding device and decoding device for the same
KR20190140422A (en) A method and an apparatus for encoding/decoding a residual block based on quantization parameter
KR102009634B1 (en) Method and apparatus for coding image compensation information and decoding using the same
KR102031120B1 (en) Method for coding and decoding intra-prediction, and atparatus for the same
KR20200026394A (en) A method and an apparatus for encoding/decoding a intra prediction
KR102525555B1 (en) A method and an apparatus for encoding/decoding a residual block based on quantization parameter
KR101981687B1 (en) Method and apparatus for coding offset information and decoding using the same
KR20160037110A (en) Method and apparatus for processing a video signal
KR20220051156A (en) A method and an apparatus for processing a video signal based on reference between components
KR20200076807A (en) A method and an apparatus for processing a block divided into sub-block units
KR20120100742A (en) Methods of coding usnig skip mode and apparatuses for using the same
KR20180000886A (en) Method and apparatus for processing a video signal

Legal Events

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