KR101373670B1 - Method and apparatus for intra prediction - Google Patents

Method and apparatus for intra prediction Download PDF

Info

Publication number
KR101373670B1
KR101373670B1 KR1020120090198A KR20120090198A KR101373670B1 KR 101373670 B1 KR101373670 B1 KR 101373670B1 KR 1020120090198 A KR1020120090198 A KR 1020120090198A KR 20120090198 A KR20120090198 A KR 20120090198A KR 101373670 B1 KR101373670 B1 KR 101373670B1
Authority
KR
South Korea
Prior art keywords
current block
intra prediction
difference
mode
pixel group
Prior art date
Application number
KR1020120090198A
Other languages
Korean (ko)
Other versions
KR20130049709A (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 KR20130049709A publication Critical patent/KR20130049709A/en
Application granted granted Critical
Publication of KR101373670B1 publication Critical patent/KR101373670B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/503Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
    • H04N19/51Motion estimation or motion compensation
    • H04N19/53Multi-resolution motion estimation; Hierarchical motion estimation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/157Assigned coding mode, i.e. the coding mode being predefined or preselected to be further used for selection of another element or parameter
    • H04N19/159Prediction type, e.g. intra-frame, inter-frame or bidirectional frame prediction

Abstract

본 발명은 인트라 예측 방법 및 장치에 관한 것이다. 본 발명에 따르면, 현재 블록의 인트라 예측 모드를 나타내는 부호화된 데이터의 비트 수가 종래방식에 비해 감소하여 영상의 압축률이 증가하는 효과를 얻을 수 있다. The present invention relates to an intra prediction method and apparatus. According to the present invention, the number of bits of the encoded data indicating the intra prediction mode of the current block is reduced compared to the conventional method, thereby increasing the compression ratio of the image.

Description

인트라 예측 방법 및 장치{METHOD AND APPARATUS FOR INTRA PREDICTION}Intra prediction method and apparatus {METHOD AND APPARATUS FOR INTRA PREDICTION}

본 발명은 인트라 예측 방법 및 장치에 관한 것이다. The present invention relates to an intra prediction method and apparatus.

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

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

본 발명은 부호화하거나 복호화할 현재 블록에 인접한 주변 픽셀들의 픽셀값의 차분을 계산하고, 상기 차분에 따라 결정된 현재 블록의 타입에 대응하는 모드 랭킹 테이블을 참조하여 현재 블록의 인트라 예측 모드를 부호화하는 인트라 예측 방법 및 장치를 제공하는 것을 목적으로 한다. The present invention calculates a difference between pixel values of neighboring pixels adjacent to a current block to be encoded or decoded, and refers to an intra prediction mode of the current block by referring to a mode ranking table corresponding to the type of the current block determined according to the difference. It is an object to provide a prediction method and apparatus.

본 발명의 일 실시예에 따른 인트라 예측 방법은, 부호화할 현재 블록에 인접한 주변 픽셀들의 픽셀값의 차분을 계산하는 단계; 상기 차분에 기초하여 상기 현재 블록의 타입을 결정하는 단계; 상기 현재 블록의 인트라 예측 모드를 결정하는 단계; 그리고 상기 현재 블록의 인트라 예측 모드를 상기 현재 블록의 타입에 대응하는 모드 랭킹 테이블을 참조하여 부호화하는 단계를 포함할 수 있다.An intra prediction method according to an embodiment of the present invention includes: calculating a difference between pixel values of neighboring pixels adjacent to a current block to be encoded; Determining a type of the current block based on the difference; Determining an intra prediction mode of the current block; And encoding the intra prediction mode of the current block with reference to a mode ranking table corresponding to the type of the current block.

본 발명의 일 실시예에 따른 인트라 예측 장치는, 부호화할 현재 블록에 인접한 주변 픽셀들의 픽셀값의 차분을 계산하는 차분 계산부; 상기 현재 블록의 인트라 예측 모드를 결정하는 모드 결정부; 인트라 예측 모드의 발생 확률에 따라 랭킹을 매겨놓은 다수의 모드 랭킹 테이블을 저장하는 저장부; 그리고 상기 차분에 따라 결정된 현재 블록의 타입에 대응하는 모드 랭킹 테이블을 참조하여 상기 현재 블록의 인트라 예측 모드를 부호화하는 부호화부를 포함할 수 있다. Intra prediction device according to an embodiment of the present invention, the difference calculation unit for calculating the difference of the pixel value of the adjacent pixels adjacent to the current block to be encoded; A mode determination unit to determine an intra prediction mode of the current block; A storage unit for storing a plurality of mode ranking tables ranked according to a probability of occurrence of an intra prediction mode; And an encoder for encoding an intra prediction mode of the current block by referring to a mode ranking table corresponding to the type of the current block determined according to the difference.

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

본 발명에 따르면, 현재 블록의 인트라 예측 모드가 가변 길이 부호화에 사용되는 모드 랭킹 테이블에서 보다 높은 랭킹에 위치할 확률이 높아져, 부호화된 데이터의 비트수가 적어질 수 있다. According to the present invention, the probability that the intra prediction mode of the current block is located at a higher ranking in the mode ranking table used for variable length encoding is increased, so that the number of bits of the encoded data can be reduced.

나아가, 본 발명에 따르면, 현재 블록의 인트라 예측 모드를 부호화한 부호 비트의 수가 삭감됨으로써, 전체적으로 영상의 압축 효율이 증가하는 효과를 얻을 수 있다. Furthermore, according to the present invention, by reducing the number of code bits encoding the intra prediction mode of the current block, the overall compression efficiency of the image can be obtained.

도 1은 본 발명의 일 실시예에 따른 인트라 예측 장치를 나타내는 블록도이다.
도 2는 본 발명의 일 실시예에 따라 부호화 또는 복호화될 영상을 도시하는 도면이다.
도 3은 본 발명의 일 실시예에 따라 인트라 예측될 현재 블록 및 그 주변 픽셀들을 도시하는 도면이다.
도 4는 본 발명의 일 실시예에 따른 인트라 예측에 사용되는 주변 픽셀 및 상기 주변 픽셀의 픽셀값을 도시하는 도면이다.
도 5는 현재 블록의 타입 각각에 따른 발생 가능성이 높은 인트라 예측 모드를 설명하는 도면이다.
도 6은 본 발명의 일 실시예에 따른 인트라 예측에 사용되는 인트라 예측 모드를 예시적으로 설명하는 도면이다.
도 7은 본 발명의 일 실시예에 따른 영상의 블록 전체에서 발생되는 인트라 예측 모드의 빈도를 나타내는 그래프이다.
도 8은 본 발명의 일 실시예에 따른 영상 중 양측 고차분 블록 타입에서 발생되는 인트라 예측 모드의 빈도를 나타내는 그래프이다.
도 9는 본 발명의 일 실시예에 따른 영상 중 양측 저차분 블록 타입에서 발생되는 인트라 예측 모드의 빈도를 나타내는 그래프이다.
도 10은 본 발명의 일 실시예에 따른 영상 중 상측 고차분 블록 타입에서 발생되는 인트라 예측 모드의 빈도를 나타내는 그래프이다.
도 11은 본 발명의 일 실시예에 따른 영상 중 좌측 고차분 블록 타입에서 발생되는 인트라 예측 모드의 빈도를 나타내는 그래프이다.
도 12는 본 발명의 일 실시예에 따른 인트라 예측 방법을 설명하는 흐름도이다.
도 13은 본 발명의 일 실시예에 따른 주변 픽셀들의 픽셀값의 차분을 계산하는 단계를 설명하는 흐름도이다.
도 14는 본 발명의 일 실시예에 따른 차분에 기초하여 현재 블록의 타입을 결정하는 단계를 설명하는 흐름도이다.
도 15는 본 발명의 일 실시예에 따라 영상 복호화 시 수행되는 인트라 예측 방법을 설명하는 흐름도이다.
도 16은 본 발명의 일 실시예에 따른 영상 부호화 장치를 나타내는 블록도이다.
도 17는 본 발명의 일 실시예에 따른 영상 복호화 장치를 나타내는 블록도이다.
1 is a block diagram illustrating an intra prediction apparatus according to an embodiment of the present invention.
2 is a diagram illustrating an image to be encoded or decoded according to an embodiment of the present invention.
3 is a diagram illustrating a current block to be intra predicted and its neighboring pixels according to an embodiment of the present invention.
4 is a diagram illustrating neighboring pixels used for intra prediction and pixel values of the neighboring pixels according to an embodiment of the present invention.
5 is a diagram illustrating an intra prediction mode having a high probability of occurrence according to each type of a current block.
6 is a diagram illustrating an intra prediction mode used for intra prediction according to an embodiment of the present invention.
7 is a graph illustrating the frequency of intra prediction modes occurring in the entire block of an image according to an embodiment of the present invention.
FIG. 8 is a graph showing the frequency of intra prediction modes occurring in both sides of a high differential block type in an image according to an embodiment of the present invention. FIG.
FIG. 9 is a graph showing the frequency of intra prediction modes occurring in both sides of a low difference block type in an image according to an embodiment of the present invention.
FIG. 10 is a graph illustrating the frequency of intra prediction modes occurring in an upper high-order block type among images according to an embodiment of the present invention. FIG.
FIG. 11 is a graph illustrating the frequency of intra prediction modes occurring in a left high-order block type in an image according to an embodiment of the present invention. FIG.
12 is a flowchart illustrating an intra prediction method according to an embodiment of the present invention.
FIG. 13 is a flowchart illustrating an operation of calculating a difference between pixel values of neighboring pixels, according to an exemplary embodiment.
14 is a flowchart for describing a step of determining a type of a current block based on a difference according to an embodiment of the present invention.
15 is a flowchart illustrating an intra prediction method performed when decoding an image according to an embodiment of the present invention.
16 is a block diagram illustrating a video encoding apparatus according to an embodiment of the present invention.
17 is a block diagram illustrating an image decoding apparatus according to an embodiment of the present invention.

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

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

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

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

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

본 발명은 부호화 또는 복호화할 현재 블록에 인접한 주변 픽셀들의 픽셀값의 차분에 따라 서로 다른 모드 랭킹 테이블을 참조하여 상기 현재 블록의 인트라 예측 모드를 부호화 또는 복호화하는 인트라 예측 방법 및 장치를 제안한다. The present invention proposes an intra prediction method and apparatus for encoding or decoding an intra prediction mode of a current block by referring to a different mode ranking table according to a difference between pixel values of neighboring pixels adjacent to a current block to be encoded or decoded.

도 1은 본 발명의 일 실시예에 따른 인트라 예측 장치를 나타내는 블록도이다. 도 1에 도시된 바와 같이, 본 발명의 일 실시예에 따른 인트라 예측 장치(100)는 차분 계산부(101), 모드 결정부(102), 저장부(103) 및 부호화부(104)를 포함할 수 있다. 본 발명의 다른 실시예에 따르면, 상기 인트라 예측 장치(100)는 업데이트부(105)를 더 포함할 수 있다. 1 is a block diagram illustrating an intra prediction apparatus according to an embodiment of the present invention. As shown in FIG. 1, the intra prediction apparatus 100 according to an exemplary embodiment of the present invention includes a difference calculator 101, a mode determiner 102, a storage 103, and an encoder 104. can do. According to another embodiment of the present invention, the intra prediction apparatus 100 may further include an updater 105.

상기 차분 계산부(101)는 부호화 또는 복호화할 현재 블록에 인접한 주변 픽셀들의 픽셀값의 차분을 계산한다. 상기 모드 결정부(102)는 상기 현재 블록의 인트라 예측 모드를 결정한다. 상기 저장부(103)는 인트라 예측 모드의 발생 확률에 따라 랭킹을 매겨놓은 다수의 모드 랭킹 테이블을 저장한다. 상기 부호화부(104)는 차분에 따라 결정된 현재 블록의 타입에 대응하는 모드 랭킹 테이블을 참조하여 상기 현재 블록의 인트라 예측 모드를 부호화한다. 상기 업데이트부(105)는 상기 참조된 모드 랭킹 테이블에서 현재 블록의 인트라 예측 모드에 대응하는 랭킹이 최상위가 아닌 경우, 상기 현재 블록의 인트라 예측 모드의 랭킹을 상승시켜 모드 랭킹 테이블을 업데이트한다. The difference calculator 101 calculates a difference between pixel values of neighboring pixels adjacent to a current block to be encoded or decoded. The mode determiner 102 determines an intra prediction mode of the current block. The storage unit 103 stores a plurality of mode ranking tables that are ranked according to the probability of occurrence of the intra prediction mode. The encoder 104 encodes the intra prediction mode of the current block by referring to a mode ranking table corresponding to the type of the current block determined according to the difference. When the ranking corresponding to the intra prediction mode of the current block is not the highest in the referenced mode ranking table, the updater 105 updates the mode ranking table by raising the ranking of the intra prediction mode of the current block.

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

도 3은 본 발명의 일 실시예에 따른 현재 블록(201) 및 상기 현재 블록에 인접한 주변 픽셀들(202, 203)을 도시한다. 도 3에 도시된 바와 같이, 본 발명의 일 실시예에 따른 주변 픽셀들(202, 203)은 상기 현재 블록(201)의 상측에 인접하여 위치한 상측 주변 픽셀 그룹(202) 및 상기 현재 블록(201)의 좌측에 인접하여 위치한 좌측 주변 픽셀 그룹(203)을 포함할 수 있다. 하지만, 상기 주변 픽셀들(202, 203)은 전술한 바와 같이 상측 및 좌측에 위치한 픽셀들로 제한되지 않고, 실시예에 따라 현재 블록의 상측 및 우측, 하측 및 좌측, 또는 하측 및 우측에 위치한 픽셀들을 포함할 수도 있다. 3 illustrates a current block 201 and neighboring pixels 202 and 203 adjacent to the current block in accordance with one embodiment of the present invention. As shown in FIG. 3, the peripheral pixels 202 and 203 according to an embodiment of the present invention are the upper peripheral pixel group 202 and the current block 201 located adjacent to the upper side of the current block 201. ) May include a left peripheral pixel group 203 positioned adjacent to a left side of the. However, the peripheral pixels 202 and 203 are not limited to pixels located above and left as described above, and according to an embodiment, pixels located above and right, below and left, or below and right of the current block. It may also include.

상기 차분 계산부(101)는 현재 블록(201)에 인접한 주변 픽셀들(202, 203)의 픽셀값의 차분을 계산한다. 본 발명의 일 실시예에 따르면, 상기 차분 계산부(101)는 상측 주변 픽셀 그룹 중 인접한 픽셀들 간의 픽셀값의 차분의 절대값을 합산하여 상측 주변 픽셀 그룹 차분값을 계산할 수 있다. 본 발명의 일 실시예에 따르면, 상기 차분 계산부(101)는 좌측 주변 픽셀 그룹 중 인접한 픽셀들 간의 픽셀값의 차분의 절대값을 합산하여 좌측 주변 픽셀 그룹 차분값을 계산할 수 있다. The difference calculator 101 calculates a difference between pixel values of neighboring pixels 202 and 203 adjacent to the current block 201. According to an embodiment of the present disclosure, the difference calculator 101 may calculate an upper peripheral pixel group difference value by summing an absolute value of a difference between pixel values among adjacent pixels among the upper peripheral pixel group. According to an embodiment of the present invention, the difference calculator 101 may calculate a left peripheral pixel group difference value by summing an absolute value of a difference between pixel values among adjacent pixels in the left peripheral pixel group.

도 4는 본 발명의 일 실시예에 따른 인트라 예측에 사용되는 주변 픽셀(202, 203) 및 상기 주변 픽셀의 픽셀값을 도시하는 도면이다. 도 4를 참조하면, 상기 차분 계산부(101)는 상측 주변 픽셀 그룹(202) 중 인접한 픽셀들(예컨대, 2021과 2022, 2022와 2023, ... , 2024와 2025) 간의 픽셀값의 차분을 계산할 수 있다. 여기서, 상기 픽셀값은 휘도값을 의미하나, 이에 제한되지 않고 실시예에 따라 색차값, R, G, B 값 등을 의미할 수도 있다. 따라서, 도 4의 (a)를 참조하면, 상기 차분 계산부(101)는 상측 주변 픽셀 그룹(202)에 속하는 픽셀들 중 인접한 픽셀들 간의 픽셀값의 차분, 예컨대 Y11 - Y21, Y21 - Y31, ..., Yn -1 1 - Yn 1을 계산하고 이들의 절대값을 합산하여, 상측 주변 픽셀 그룹 차분값을 획득할 수 있다. 또한, 상기 차분 계산부(102)는 상기 좌측 주변 픽셀 그룹(203) 중 인접한 픽셀들(예컨대, 2031과 2032, 2032와 2033, ..., 2034와 2035) 간의 픽셀값의 차분을 계산할 수 있다. 예를 들어, 도 4의 (b)를 참조하면, 상기 차분 계산부(102)는 Y11 - Y12, Y12 - Y13, ..., Y1 n-1 - Y1 n을 계산하고 이들의 절대값을 합산하여, 좌측 주변 픽셀 그룹 차분값을 획득할 수 있다. 4 is a diagram illustrating peripheral pixels 202 and 203 and pixel values of the peripheral pixels used for intra prediction according to an embodiment of the present invention. Referring to FIG. 4, the difference calculator 101 calculates a difference between pixel values between adjacent pixels (eg, 2021 and 2022, 2022 and 2023,..., 2024 and 2025) among the upper peripheral pixel group 202. Can be calculated Here, the pixel value means a luminance value, but is not limited thereto and may mean a color difference value, an R, G, or B value according to an embodiment. Therefore, referring to FIG. 4A, the difference calculating unit 101 determines a difference between pixel values among adjacent pixels among pixels belonging to the upper peripheral pixel group 202, for example, Y 11 -Y 21 , Y 21. -Y 31 , ..., Y n -1 1 -Y n 1 can be calculated and their absolute values summed to obtain an upper peripheral pixel group difference value. In addition, the difference calculator 102 may calculate a difference of pixel values between adjacent pixels (eg, 2031 and 2032, 2032 and 2033,..., 2034 and 2035) of the left peripheral pixel group 203. . For example, referring to FIG. 4B, the difference calculator 102 calculates Y 11 -Y 12 , Y 12 -Y 13 , ..., Y 1 n-1 -Y 1 n . By summing these absolute values, the left peripheral pixel group difference value can be obtained.

상기 부호화부(104)는 상기 차분에 따라 현재 블록(201)의 타입을 결정하고, 상기 저장부(103)에 저장된 다수의 모드 랭킹 테이블 중 상기 현재 블록(201)의 타입에 대응하는 모드 랭킹 테이블을 참조하여 현재 블록(201)의 인트라 예측 모드를 부호화할 수 있다. The encoder 104 determines the type of the current block 201 according to the difference, and among the plurality of mode ranking tables stored in the storage 103, a mode ranking table corresponding to the type of the current block 201. The intra prediction mode of the current block 201 may be encoded with reference to FIG.

본 발명의 일 실시예에 따르면, 상기 부호화부(104)는, 상기 상측 주변 픽셀 그룹 차분값이 소정의 임계값보다 크고, 상기 좌측 주변 픽셀 그룹 차분값이 상기 임계값보다 작거나 같은 경우, 상기 현재 블록(201)의 타입을 상측 고차분 블록(Above_high Block)으로 결정할 수 있다. According to an embodiment of the present invention, the encoder 104, when the upper peripheral pixel group difference value is greater than a predetermined threshold value, and the left peripheral pixel group difference value is less than or equal to the threshold value, The type of the current block 201 may be determined as an upper high difference block (Above_high Block).

본 발명의 일 실시예에 따르면, 상기 부호화부(104)는, 상기 상측 주변 픽셀 그룹 차분값이 소정의 임계값보다 작거나 같고, 상기 좌측 주변 픽셀 그룹 차분값이 상기 임계값보다 큰 경우, 상기 현재 블록(201)의 타입을 좌측 고차분 블록(Left_high Block)으로 결정할 수 있다. According to an embodiment of the present invention, the encoder 104, when the upper peripheral pixel group difference value is less than or equal to a predetermined threshold value, and the left peripheral pixel group difference value is larger than the threshold value, the The type of the current block 201 may be determined as a left high difference block (Left_high Block).

본 발명의 일 실시예에 따르면, 상기 부호화부(104)는, 상기 상측 주변 픽셀 그룹 차분값 및 상기 좌측 주변 픽셀 그룹 차분값이 소정의 임계값보다 큰 경우, 상기 현재 블록(201)의 타입을 양측 고차분 블록(All_high Block)으로 결정할 수 있다. According to an embodiment of the present invention, the encoder 104 determines the type of the current block 201 when the upper peripheral pixel group difference value and the left peripheral pixel group difference value are larger than a predetermined threshold value. It can be determined as a bilateral high-order block (All_high Block).

본 발명의 일 실시예에 따르면, 상기 부호화부(104)는, 상기 상측 주변 픽셀 그룹 차분값 및 상기 좌측 주변 픽셀 그룹 차분값이 소정의 임계값보다 작거나 같은 경우, 상기 현재 블록(201)의 타입을 양측 저차분 블록(All_low Block)으로 결정할 수 있다. According to an embodiment of the present invention, the encoder 104 may determine that the upper peripheral pixel group difference value and the left peripheral pixel group difference value are smaller than or equal to a predetermined threshold value. The type may be determined as a bilateral low difference block (All_low Block).

도 5는 현재 블록(201)의 타입 각각에 따른 발생 가능성이 높은 모드(most probable mode)를 설명하는 도면이다. 도 5의 (a)에 도시된 바와 같이, 상측 주변 픽셀 그룹(202)의 차분값이 소정의 임계값보다 크고, 좌측 주변 픽셀 그룹(203)의 차분값이 임계값보다 작거나 같으면, 상기 현재 블록(201)을 구성하는 픽셀들 역시 수평 방향으로는 픽셀값의 차이가 크나 수직 방향으로는 픽셀값의 차이가 적을 가능성이 높다. 따라서, 이 경우 현재 블록(201)의 인트라 예측 모드는 수직 모드(vertical mode)일 확률이 높다고 예상할 수 있다.  5 is a diagram illustrating a most probable mode according to each type of the current block 201. As shown in FIG. 5A, when the difference value of the upper peripheral pixel group 202 is larger than a predetermined threshold and the difference value of the left peripheral pixel group 203 is smaller than or equal to the threshold, the current The pixels constituting the block 201 are also likely to have a large difference in pixel values in the horizontal direction but a small difference in pixel values in the vertical direction. Therefore, in this case, it can be expected that the intra prediction mode of the current block 201 has a high probability of being a vertical mode.

반면, 도 5의 (b)에 도시된 바와 같이, 상측 주변 픽셀 그룹(202)의 차분값이 임계값보다 작거나 같고, 좌측 주변 픽셀 그룹(203)의 차분값이 임계값보다 크면, 상기 현재 블록(201)을 구성하는 픽셀들 역시 수직 방향으로는 픽셀값의 차이가 크나 수평 방향으로는 픽셀값의 차이가 적을 가능성이 높다. 따라서, 이 경우 현재 블록(201)의 인트라 예측 모드는 수평 모드(horizontal mode)일 확률이 높다고 예상할 수 있다. On the other hand, as shown in (b) of FIG. 5, when the difference value of the upper peripheral pixel group 202 is smaller than or equal to the threshold value and the difference value of the left peripheral pixel group 203 is larger than the threshold value, the current The pixels constituting the block 201 are also likely to have a large difference in pixel values in the vertical direction but a small difference in pixel values in the horizontal direction. Therefore, in this case, it can be expected that the intra prediction mode of the current block 201 has a high probability of being in a horizontal mode.

상기 모드 결정부(102)는 현재 블록(201)의 인트라 예측 모드를 결정한다. 예를 들어, 도 7에 도시된 바와 같이 총 35 개의 인트라 예측 모드가 인트라 예측에 사용되는 경우, 상기 현재 블록(201)의 인트라 예측 모드는 35 개의 모드들 중 어느 하나로 결정될 것이다. The mode determiner 102 determines an intra prediction mode of the current block 201. For example, when a total of 35 intra prediction modes are used for intra prediction, as shown in FIG. 7, the intra prediction mode of the current block 201 may be determined as one of 35 modes.

상기 저장부(103)는 인트라 예측 모드의 발생 확률에 따라 랭킹을 매겨놓은 다수의 모드 랭킹 테이블을 저장한다. 본 발명의 일 실시예에 따르면, 상기 저장부(103)는, 블록의 상측을 향하는 인트라 예측 모드(예컨대, 도 6에 도시된 모드 4, 19, ..., 26, 7과 같이 상방향을 향하는 모드)의 발생 확률 랭킹이 블록의 좌측을 향하는 인트라 예측 모드(예컨대, 도 6에 도시된 모드 27, 15, ..., 34, 10과 같이 좌방향을 향하는 모드)의 발생 확률 랭킹보다 더 높은 제 1 모드 랭킹 테이블, 블록의 좌측을 향하는 인트라 예측 모드의 발생 확률 랭킹이 블록의 상측을 향하는 인트라 예측 모드의 발생 확률 랭킹보다 더 높은 제 2 모드 랭킹 테이블, 및 블록의 상측을 향하는 인트라 예측 모드 및 블록의 좌측을 향하는 인트라 예측 모드의 발생 확률 랭킹이 모드 발생에 관한 통계에 따라 사전에 매겨진 제 3 모드 랭킹 테이블을 저장할 수 있다. The storage unit 103 stores a plurality of mode ranking tables that are ranked according to the probability of occurrence of the intra prediction mode. According to one embodiment of the invention, the storage unit 103, the intra prediction mode toward the upper side of the block (for example, modes 4, 19, ..., 26, 7 shown in Figure 6 shown in the upward direction) Occurrence probability ranking of the forward facing mode is more than the occurrence probability ranking of the intra prediction mode facing the left side of the block (e.g., facing left as shown in Figures 27, 15, ..., 34, 10). A high first mode ranking table, a second mode ranking table in which the occurrence probability ranking of the intra prediction mode towards the left side of the block is higher than the occurrence probability ranking of the intra prediction mode towards the upper side of the block, and the intra prediction mode towards the upper side of the block And a third mode ranking table which is ranked in advance of the probability of occurrence of the intra prediction mode toward the left side of the block according to the statistics regarding the mode occurrence.

일반적으로, 영상에 포함된 블록들의 인트라 예측 모드를 분석해보면, 35 개의 모드들 중 평면 모드, DC 모드, 수직 모드 및 수평 모드가 빈번하게 발생하고, 나머지 모드들은 방향에 관계없이 고르게 발생함을 통계적으로 확인할 수 있다. 도 7은 본 발명의 일 실시예에 따른 영상의 블록 전체에서 발생되는 인트라 예측 모드의 빈도를 나타내는 그래프이다. 영상에 포함된 블록 전체에서는 평면, DC, 수직 및 수평 모드의 발생 빈도가 높고, 나머지 모드들은 고르게 발생함을 확인할 수 있다. In general, when analyzing the intra prediction modes of the blocks included in the image, among the 35 modes, planar mode, DC mode, vertical mode, and horizontal mode frequently occur, and the other modes occur statistically regardless of the direction. You can check with 7 is a graph illustrating the frequency of intra prediction modes occurring in the entire block of an image according to an embodiment of the present invention. In the entire block included in the image, the frequency of occurrence of the planar, DC, vertical, and horizontal modes is high, and the remaining modes are uniformly generated.

도 8은 본 발명의 일 실시예에 따른 영상 중 양측 고차분 블록(All_high Block) 타입에서 발생되는 인트라 예측 모드의 빈도를 나타내는 그래프이고, 도 9는 본 발명의 일 실시예에 따른 영상 중 양측 저차분 블록(All_low Block) 타입에서 발생되는 인트라 예측 모드의 빈도를 나타내는 그래프이다. 도 8 및 도 9에 도시된 바와 같이, 상측 주변 픽셀 그룹(202)의 차분값 및 좌측 주변 픽셀 그룹(203)의 차분값 둘 모두가 임계값보다 크거나 또는 임계값보다 작거나 같은 경우에는, 도 7에 도시된 전체 블록의 모드 발생 빈도와 유사하게, 평면, DC, 수직 및 수평 모드의 발생 빈도가 높고, 나머지 모드들은 방향에 관계없이 고르게 발생함을 알 수 있다. FIG. 8 is a graph showing the frequency of intra prediction modes occurring in both types of all_high block types in an image according to an embodiment of the present invention, and FIG. 9 is a graph showing both low and low frequencies in an image according to an embodiment of the present invention. A graph showing the frequency of intra prediction modes occurring in the differential block type (All_low Block). As shown in FIGS. 8 and 9, when both the difference value of the upper peripheral pixel group 202 and the difference value of the left peripheral pixel group 203 are greater than or less than or equal to the threshold value, Similar to the mode occurrence frequency of the entire block shown in FIG. 7, it can be seen that the occurrence frequency of the planar, DC, vertical and horizontal modes is high, and the remaining modes are generated evenly regardless of the direction.

하지만, 상측 주변 픽셀 그룹(202) 및 좌측 주변 픽셀 그룹(203) 중 어느 하나의 차분값만 임계값보다 큰 경우에는, 상측을 향하는 인트라 예측 모드 및 좌측을 향하는 인트라 예측 모드 중 어느 하나가 다른 하나보다 발생 빈도가 높을 수 있다. 도 10는 본 발명의 일 실시예에 따른 영상 중 상측 고차분 블록 타입에서 발생되는 인트라 예측 모드의 빈도를 나타내는 그래프이며, 도 11은 본 발명의 일 실시예에 따른 영상 중 상측 고차분 블록 타입에서 발생되는 인트라 예측 모드의 빈도를 나타내는 그래프이다. However, when only the difference value of any one of the upper peripheral pixel group 202 and the left peripheral pixel group 203 is larger than the threshold value, either one of the upward facing intra prediction mode and the left facing intra prediction mode is the other. It may be more frequent. FIG. 10 is a graph illustrating the frequency of intra prediction modes occurring in an upper high-order block type of an image according to an embodiment of the present invention, and FIG. 11 is a diagram of an upper high-order block type in an image according to an embodiment of the present invention. It is a graph showing the frequency of intra prediction modes generated.

도 10에 도시된 바와 같이, 상측 주변 픽셀 그룹(202)의 차분값이 임계값보다 크고, 좌측 주변 픽셀 그룹(203)의 차분값이 임계값보다 작거나 같은 경우(즉, 상측 고차분 블록(Above_high Block) 타입), 블록의 상측을 향하는 인트라 예측 모드의 발생 빈도가 블록의 좌측을 향하는 인트라 예측 모드의 발생 빈도보다 더 높음을 확인할 수 있다. As shown in FIG. 10, when the difference value of the upper peripheral pixel group 202 is larger than the threshold value, and the difference value of the left peripheral pixel group 203 is smaller than or equal to the threshold value (that is, the upper high difference block ( Above_high Block) type), and the frequency of occurrence of the intra prediction mode toward the upper side of the block is higher than the frequency of occurrence of the intra prediction mode toward the left side of the block.

또한, 도 11에 도시된 바와 같이, 상측 주변 픽셀 그룹(202)의 차분값이 임계값보다 작거나 같고, 좌측 주변 픽셀 그룹(203)의 차분값이 임계값보다 큰 경우(즉, 좌측 고차분 블록(Left_high Block) 타입), 블록의 좌측을 향하는 인트라 예측 모드의 발생 빈도가 블록의 상측을 향하는 인트라 예측 모드의 발생 빈도보다 더 높음을 확인할 수 있다. In addition, as shown in FIG. 11, when the difference value of the upper peripheral pixel group 202 is less than or equal to the threshold value, and the difference value of the left peripheral pixel group 203 is larger than the threshold value (that is, the left high difference value). It can be seen that the frequency of occurrence of the intra prediction mode toward the left side of the block (block type) is higher than that of the intra prediction mode toward the upper side of the block.

본 발명은 전술한 바와 같이 블록의 타입에 따라 상측 또는 좌측 방향을 향하는 인트라 예측 모드의 발생 빈도가 상이하게 분포하는 점에 착안하여, 다수의 모드 랭킹 테이블 중 현재 블록(201)의 타입에 대응하는 모드 랭킹 테이블을 참조하여 현재 블록(201)의 인트라 예측 모드를 부호화한다. The present invention focuses on the fact that the frequency of occurrence of the intra prediction mode toward the upper or left direction is distributed differently according to the type of the block as described above, and corresponds to the type of the current block 201 among the plurality of mode ranking tables. The intra prediction mode of the current block 201 is encoded by referring to the mode ranking table.

상기 저장부(103)에 저장된 제 1 모드 랭킹 테이블은 상측 고차분 블록(Above_high Block) 타입에 대응하는 모드 랭킹 테이블로서, 블록의 상측을 향하는 인트라 예측 모드의 발생 확률 랭킹이 블록의 좌측을 향하는 인트라 예측 모드의 발생 확률 랭킹보다 더 높게 설정되어 있다. The first mode ranking table stored in the storage unit 103 is a mode ranking table corresponding to the type of the high high block (Above_high Block), and the probability of occurrence of the intra prediction mode toward the upper side of the block is intra to the left side of the block. It is set higher than the occurrence probability ranking of the prediction mode.

상기 저장부(103)에 저장된 제 2 모드 랭킹 테이블은 좌측 고차분 블록(Left_high Block) 타입에 대응하는 모드 랭킹 테이블로서, 블록의 좌측을 향하는 인트라 예측 모드의 발생 확률 랭킹이 블록의 상측을 향하는 인트라 예측 모드의 발생 확률 랭킹보다 더 높게 설정되어 있다. The second mode ranking table stored in the storage unit 103 is a mode ranking table corresponding to a left high-order block type (Left_high Block) type. It is set higher than the occurrence probability ranking of the prediction mode.

상기 저장부(103)에 저장된 제 3 모드 랭킹 테이블은 양측 고차분 블록 타입 및 양측 저차분 블록 타입에 대응하는 모드 랭킹 테이블로서, 블록의 상측을 향하는 인트라 예측 모드와 블록의 좌측을 향하는 인트라 예측 모드의 발생 확률 랭킹이 도 7과 같은 기분석된 모드 별 발생 빈도 통계에 따라 매겨져 있다. 아래의 표는 본 발명의 일 실시예에 따른 제 1 내지 제 3 모드 랭킹 테이블을 나타내며, 표에 사용된 모드의 숫자는 도 6에 사용된 모드의 숫자에 대응된다:The third mode ranking table stored in the storage unit 103 is a mode ranking table corresponding to both high differential block types and both low differential block types, and the intra prediction mode toward the upper side of the block and the intra prediction mode toward the left side of the block. The occurrence probability ranking of is determined according to the occurrence frequency statistics for each pre-analyzed mode as shown in FIG. 7. The table below shows the first to third mode ranking tables according to an embodiment of the present invention, wherein the number of modes used in the table corresponds to the number of modes used in FIG.

랭킹ranking 1One 22 33 44 55 66 77 88 99 1010 1111 1212 1313 1414 1515 1616 제 1 모드 랭킹 테이블1st mode ranking table 00 1One 33 2222 2323 1212 2121 1313 55 2424 2020 1111 44 66 1919 22 제 2 모드 랭킹 테이블2nd mode ranking table 00 22 33 3131 3030 1717 1616 99 3232 1One 2929 44 88 55 2727 1111 제 3 모드 랭킹 테이블3rd mode ranking table 00 22 33 2929 1One 88 3030 2121 2828 1616 77 1515 2020 3131 99 1111

랭킹ranking 1717 1818 1919 2020 2121 2222 2323 2424 2525 2626 2727 2828 2929 3030 3131 제 1 모드 랭킹 테이블1st mode ranking table 88 1010 1515 2828 99 2727 2929 1818 1616 1717 2525 1414 3131 3434 3232 제 2 모드 랭킹 테이블2nd mode ranking table 2020 3333 1515 1919 1212 2828 1818 2121 77 2222 66 1313 2323 2626 1010 제 3 모드 랭킹 테이블3rd mode ranking table 66 44 55 1212 1010 1414 2222 1919 1717 2727 1313 1818 2323 2626 3232

랭킹ranking 3232 3333 3434 3535 제 1 모드 랭킹 테이블1st mode ranking table 77 3030 2626 3333 제 2 모드 랭킹 테이블2nd mode ranking table 2424 1414 3434 3535 제 3 모드 랭킹 테이블3rd mode ranking table 2424 2525 3333 3434

고차분 블록, 좌측 고차분 블록, 양측 고차분 블록 또는 양측 저차분 블록)에 대응하는 모드 랭킹 테이블을 참조하여, 상기 현재 블록(201)의 인트라 예측 모드를 부호화한다. The intra prediction mode of the current block 201 is encoded by referring to a mode ranking table corresponding to a high order block, a left high order block, both high order blocks, or both low order blocks.

본 발명의 일 실시예에 따르면, 상기 부호화부(104)는 상기 상측 주변 픽셀 그룹 차분값이 임계값보다 크고 좌측 주변 픽셀 그룹 차분값이 임계값보다 작은 경우(즉, 상측 고차분 블록), 제 1 모드 랭킹 테이블을 참조하여 현재 블록(201)의 인트라 예측 모드를 부호화할 수 있다.According to an embodiment of the present invention, the encoder 104 may determine that the upper peripheral pixel group difference value is greater than a threshold value and the left peripheral pixel group difference value is smaller than a threshold value (ie, the upper high difference block). The intra prediction mode of the current block 201 may be encoded by referring to the one mode ranking table.

본 발명의 일 실시예에 따르면, 상기 부호화부(104)는 상기 상측 주변 픽셀 그룹 차분값이 임계값보다 작거나 같고, 좌측 주변 픽셀 그룹 차분값이 임계값보다 큰 경우(즉, 좌측 고차분 블록), 제 2 모드 랭킹 테이블을 참조하여 현재 블록(201)의 인트라 예측 모드를 부호화할 수 있다. According to an embodiment of the present invention, the encoder 104 may determine that the upper peripheral pixel group difference value is less than or equal to a threshold value and the left peripheral pixel group difference value is larger than a threshold value (that is, the left high difference block). Intra prediction mode of the current block 201 may be encoded by referring to the second mode ranking table.

본 발명의 일 실시예에 따르면, 상기 부호화부(104)는 상기 상측 주변 픽셀 그룹 차분값 및 상기 좌측 주변 픽셀 그룹 차분값 둘 모두가 (i) 임계값보다 크거나 또는 (ii) 임계값보다 작거나 같은 경우(즉, 양측 고차분 블록 또는 양측 저차분 블록), 제 3 모드 랭킹 테이블을 참조하여 현재 블록(201)의 인트라 예측 모드를 부호화할 수 있다. According to an embodiment of the present invention, the encoder 104 determines that both the upper peripheral pixel group difference value and the left peripheral pixel group difference value are both (i) greater than the threshold or (ii) less than the threshold. In this case, the intra prediction mode of the current block 201 may be encoded by referring to the third mode ranking table.

본 발명의 일 실시예에 따르면, 상기 상측 고차분 블록에 대응하는 제 1 모드 랭킹 테이블은 인트라 예측 모드가 수직에 가까운 방향을 향할수록 발생 확률 랭킹이 높아질 수 있다. 예를 들어, 도 6 및 표 1 내지 3을 참조하면, 제 1 모드 랭킹 테이블에서, 수직에 가까운 mode_22, mode_23이 다른 모드들, 예컨대 mode 19, mode_26보다 랭킹이 더 높음을 알 수 있다. According to an embodiment of the present invention, the probability ranking of the first mode ranking table corresponding to the upper high-order block may increase as the intra prediction mode is directed toward the vertical direction. For example, referring to FIG. 6 and Tables 1 to 3, it can be seen that in the first mode ranking table, mode_22 and mode_23 which are close to vertical are ranked higher than other modes such as mode 19 and mode_26.

본 발명의 일 실시예에 따르면, 상기 좌측 고차분 블록에 대응하는 모드 랭킹 테이블은 인트라 예측 모드가 수평에 가까운 방향을 향할수록 발생 확률 랭킹이 높아질 수 있다. 예를 들어, 도 6 및 표 1 내지 3을 참조하면, 제 2 모드 랭킹 테이블에서, 수평에 가까운 mode_30, mode_31이 다른 모드들, 예컨대 mode_27, mode_34보다 랭킹이 더 높음을 알 수 있다.According to an embodiment of the present invention, the probability ranking of the mode ranking table corresponding to the left high-order block may increase as the intra prediction mode is toward the horizontal direction. For example, referring to FIG. 6 and Tables 1 to 3, it can be seen that in the second mode ranking table, mode_30 and mode_31 which are close to horizontal are ranked higher than other modes such as mode_27 and mode_34.

상기 업데이트부(105)는 부호화에 참조한 모드 랭킹 테이블에서 현재 블록(201)의 인트라 예측 모드에 대응하는 랭킹이 최상위 랭크가 아닌 경우(즉, 랭크 1이 아닌 경우), 모드 랭킹 테이블에서 현재 블록(201)의 인트라 예측 모드의 랭킹을 상승시켜, 모드 랭킹 테이블을 업데이트할 수 있다. 본 발명의 일 실시예에 따르면, 상기 업데이트부(105)는 상기 현재 블록(201)의 인트라 예측 모드의 랭킹을 한 단계 상승시킬 수 있으나, 본 발명은 이에 제한되지 않고, 두 단계 또는 그 이상을 상승시키거나, 다수 번에 걸쳐 한 단계를 상승시킬 수도 있다(예컨대, 두 번 또는 세 번에 한 단계 상승). When the ranking corresponding to the intra prediction mode of the current block 201 in the mode ranking table referred to the encoding is not the highest rank (that is, not the rank 1), the updater 105 determines the current block in the mode ranking table. The mode ranking table may be updated by increasing the ranking of the intra prediction mode of 201). According to an embodiment of the present invention, the updater 105 may raise the ranking of the intra prediction mode of the current block 201 by one step. However, the present invention is not limited thereto and two or more steps may be performed. It may be raised, or one step may be raised in multiple times (eg, one step in two or three times).

도 12는 본 발명의 일 실시예에 따른 인트라 예측 방법을 설명하는 흐름도이다. 도 12에 도시된 바와 같이, 본 발명의 일 실시예에 따른 인트라 예측 방법은, 현재 블록(201)에 인접한 주변 픽셀들의 픽셀값의 차분을 계산하는 단계(S11), 상기 차분에 기초하여 현재 블록(201)의 타입을 결정하는 단계(S12), 현재 블록(201)의 인트라 예측 모드를 결정하는 단계(S13), 및 현재 블록(201)의 인트라 예측 모드를 현재 블록(201)의 타입에 대응하는 모드 랭킹 테이블을 참조하여 부호화하는 단계(S14)를 포함할 수 있다. 12 is a flowchart illustrating an intra prediction method according to an embodiment of the present invention. As shown in FIG. 12, the intra prediction method according to an exemplary embodiment of the present disclosure may include calculating a difference between pixel values of neighboring pixels adjacent to the current block 201 (S11), and based on the difference. Determining the type of 201 (S12), Determining the intra prediction mode of the current block 201 (S13), and the intra prediction mode of the current block 201 corresponding to the type of the current block 201 The method may include encoding by referring to a mode ranking table (S14).

상기 주변 픽셀들은 현재 블록(201)의 상측에 인접한 상측 주변 픽셀 그룹(202) 및 현재 블록(201)의 좌측에 인접한 좌측 주변 픽셀 그룹(203)을 포함할 수 있다. The peripheral pixels may include an upper peripheral pixel group 202 adjacent to an upper side of the current block 201 and a left peripheral pixel group 203 adjacent to a left side of the current block 201.

도 13은 본 발명의 일 실시예에 따른 주변 픽셀들의 픽셀값의 차분을 계산하는 단계(S11)를 설명하는 흐름도이다. 본 발명의 일 실시예에 따르면, 상기 현재 블록(201)에 인접한 주변 픽셀들의 픽셀값의 차분을 계산하는 단계(S11)는, 상측 주변 픽셀 그룹(202) 중 인접한 픽셀들 간의 픽셀값의 차분의 절대값을 합산하여 상측 주변 픽셀 그룹 차분값을 계산하는 단계(S111), 및 좌측 주변 픽셀 그룹(203) 중 인접한 픽셀들 간의 픽셀값의 차분의 절대값을 합산하여 좌측 주변 픽셀 그룹 차분값을 계산하는 단계(S112)를 포함할 수 있다.FIG. 13 is a flowchart illustrating a step S11 of calculating a difference between pixel values of neighboring pixels according to an exemplary embodiment of the present invention. According to an embodiment of the present disclosure, calculating the difference of pixel values of neighboring pixels adjacent to the current block 201 (S11) may include determining a difference between pixel values between adjacent pixels in the upper peripheral pixel group 202. Computing the difference value of the upper peripheral pixel group by summing the absolute values (S111), and calculating the left peripheral pixel group difference value by summing the absolute value of the difference of pixel values between adjacent pixels among the left peripheral pixel group 203. It may include the step (S112).

도 14는 본 발명의 일 실시예에 따른 차분에 기초하여 현재 블록의 타입을 결정하는 단계(S12)를 설명하는 흐름도이다. 본 발명의 일 실시예에 따르면, 차분에 기초하여 현재 블록(201)의 타입을 결정하는 단계(S12)는, 상측 주변 픽셀 그룹 차분값이 소정의 임계값보다 크고(S121에서 예), 좌측 주변 픽셀 그룹 차분값이 임계값보다 작거나 같은 경우(S122에서 아니오), 현재 블록(201)의 타입을 상측 고차분 블록(Above_high Block)으로 결정하는 단계(S124)를 포함할 수 있다. 14 is a flowchart illustrating a step S12 of determining a type of a current block based on a difference according to an embodiment of the present invention. According to an embodiment of the present invention, in the step S12 of determining the type of the current block 201 based on the difference, the upper peripheral pixel group difference value is larger than a predetermined threshold value (YES in S121), and the left peripheral point. If the pixel group difference value is less than or equal to the threshold value (NO in S122), determining the type of the current block 201 as an upper high difference block (Above_high Block) may be included (S124).

본 발명의 일 실시예에 따르면, 차분에 기초하여 현재 블록(201)의 타입을 결정하는 단계(S12)는, 상측 주변 픽셀 그룹 차분값이 소정의 임계값보다 작거나 같고(S121에서 아니오), 좌측 주변 픽셀 그룹 차분값이 임계값보다 큰 경우(S123에서 예), 현재 블록(201)의 타입을 좌측 고차분 블록(Left_high Block)으로 결정하는 단계(S126)를 포함할 수 있다. According to one embodiment of the present invention, in the step S12 of determining the type of the current block 201 based on the difference, the upper peripheral pixel group difference value is less than or equal to a predetermined threshold value (NO in S121). If the left peripheral pixel group difference value is larger than the threshold value (YES in S123), determining the type of the current block 201 as the left high difference block (Left_high Block) may be included (S126).

본 발명의 일 실시예에 따르면, 차분에 기초하여 현재 블록(201)의 타입을 결정하는 단계(S12)는, 상측 주변 픽셀 그룹 차분값 및 좌측 주변 픽셀 그룹 차분값이 소정의 임계값보다 큰 경우(S121 및 S122에서 예), 현재 블록(201)의 타입을 양측 고차분 블록(All_high Block)으로 결정하는 단계(S125)를 포함할 수 있다. According to an embodiment of the present disclosure, the determining of the type of the current block 201 based on the difference (S12) may be performed when the upper peripheral pixel group difference value and the left peripheral pixel group difference value are larger than a predetermined threshold. (YES in S121 and S122), the method may include determining the type of the current block 201 as the two-sided high difference block (All_high Block) (S125).

본 발명의 일 실시예에 따르면, 차분에 기초하여 현재 블록(201)의 타입을 결정하는 단계(S12)는, 상측 주변 픽셀 그룹 차분값 및 좌측 주변 픽셀 그룹 차분값이 소정의 임계값보다 작거나 같은 경우(S121 및 S123에서 아니오), 현재 블록(201)의 타입을 양측 저차분 블록(All_low Block)으로 결정하는 단계(S127)를 포함할 수 있다. According to an embodiment of the present invention, in the determining of the type of the current block 201 based on the difference (S12), the upper peripheral pixel group difference value and the left peripheral pixel group difference value are smaller than or equal to a predetermined threshold value. In the same case (NO in S121 and S123), the method may include determining a type of the current block 201 as two-sided low difference blocks (All_low Block) (S127).

본 발명의 일 실시예에 따르면, 상기 임계값은 현재 블록(201)의 사이즈에 반비례하도록 설정될 수 있다. 예를 들어, 상측 주변 픽셀 그룹(202)의 차분값을 계산하기 위해 사용되는 임계값은 상측 주변 픽셀 그룹(202)을 구성하는 픽셀들의 픽셀값의 합에 현재 블록(201)의 사이즈에 반비례하는 계수를 곱하여 산출될 수 있다. 나아가, 좌측 주변 픽셀 그룹(203)의 차분값을 계산하기 위해 사용되는 임계값은 좌측 주변 픽셀 그룹(203)을 구성하는 픽셀들의 픽셀값의 합에 현재 블록(201)의 사이즈에 반비례하는 계수를 곱하여 산출될 수 있다. 본 발명의 일 실시예에 따르면, 상기 계수는 4 X 4 블록의 경우 1/16, 8 X 8 블록의 경우 1/32, 16 X 16 또는 그보다 큰 블록의 경우 1/64일 수 있다. According to one embodiment of the invention, the threshold may be set in inverse proportion to the size of the current block 201. For example, the threshold used to calculate the difference value of the upper peripheral pixel group 202 is inversely proportional to the size of the current block 201 to the sum of the pixel values of the pixels constituting the upper peripheral pixel group 202. It can be calculated by multiplying the coefficients. Further, the threshold value used to calculate the difference value of the left peripheral pixel group 203 may have a coefficient that is inversely proportional to the size of the current block 201 to the sum of the pixel values of the pixels constituting the left peripheral pixel group 203. Can be calculated by multiplication. According to an embodiment of the present invention, the coefficient may be 1/16 for 4 X 4 blocks, 1/32 for 8 X 8 blocks, or 1/64 for 16 X 16 or larger blocks.

도 15는 본 발명의 일 실시예에 따라 영상 복호화 시 수행되는 인트라 예측 방법을 설명하는 흐름도이다. 도 15에 도시된 바와 같이, 본 발명의 일 실시예에 따라 영상 복호화 시 수행되는 인트라 예측 방법은, 복호화할 현재 블록(201)에 인접한 주변 픽셀들의 픽셀값의 차분을 계산하는 단계(S31), 상기 차분에 기초하여 현재 블록(201)의 타입을 결정하는 단계(S32), 상기 현재 블록(201)의 타입에 대응하는 모드 랭킹 테이블을 참조하여 현재 블록(201)의 인트라 예측 모드를 획득하는 단계(S33), 및 현재 블록(201)의 인트라 예측 모드와 상기 현재 블록에 선행하여 복호화된 참조 블록을 사용하여 현재 블럭(201)을 복호화하는 단계(S34)를 포함할 수 있다. 15 is a flowchart illustrating an intra prediction method performed when decoding an image according to an embodiment of the present invention. As illustrated in FIG. 15, in the intra prediction method performed when decoding an image according to an embodiment of the present disclosure, calculating a difference between pixel values of neighboring pixels adjacent to a current block 201 to be decoded (S31). Determining a type of the current block 201 based on the difference (S32), and obtaining an intra prediction mode of the current block 201 by referring to a mode ranking table corresponding to the type of the current block 201. (S33) and decoding the current block 201 using the intra prediction mode of the current block 201 and the reference block decoded before the current block (S34).

전술한 부호화 프로세스에서 설명한 바와 유사하게, 복호화 프로세스에서도 주변 픽셀들은 현재 블록(201)의 상측에 인접한 상측 주변 픽셀 그룹(202) 및 현재 블록(201)의 좌측에 인접한 좌측 주변 픽셀 그룹(203)을 포함할 수 있다. Similarly as described in the encoding process described above, in the decoding process, the neighboring pixels include the upper peripheral pixel group 202 adjacent to the upper side of the current block 201 and the left peripheral pixel group 203 adjacent to the left side of the current block 201. It may include.

나아가, 주변 픽셀들의 픽셀값의 차분을 계산하는 단계(S31)는, 상측 주변 픽셀 그룹(202) 중 인접한 픽셀들 간의 픽셀값의 차분의 절대값을 합산하여 상측 주변 픽셀 그룹 차분값을 계산하는 단계, 및 좌측 주변 픽셀 그룹(203) 중 인접한 픽셀들 간의 픽셀값의 차분의 절대값을 합산하여 좌측 주변 픽셀 그룹 차분값을 계산하는 단계를 포함할 수 있다. In operation S31, the difference between pixel values of neighboring pixels may be calculated by adding the absolute values of the difference between pixel values among adjacent pixels in the upper peripheral pixel group 202 to calculate the upper peripheral pixel group difference. And calculating the left peripheral pixel group difference value by summing an absolute value of a difference of pixel values between adjacent pixels among the left peripheral pixel group 203.

전술한 부호화 프로세스에서 설명한 바와 유사하게, 상기 현재 블록(201)의 타입으로는 (i) 상측 고차분 블록(Above_high Block), (ii) 좌측 고차분 블록(Left_high Block), (iii) 양측 고차분 블록(All_high Block), 및 (iv) 양측 저차분 블록(All_low Block)이 있을 수 있다. Similar to the above-described encoding process, the type of the current block 201 includes (i) the upper high difference block (Above_high Block), (ii) the left high difference block (Left_high Block), and (iii) both high order differences. Blocks (All_high Block), and (iv) both low-order blocks (All_low Block).

나아가, 상기 모드 랭킹 테이블은, 블록의 상측을 향하는 인트라 예측 모드의 발생 확률 랭킹이 블록의 좌측을 향하는 인트라 예측 모드의 랭킹보다 더 높은 제 1 모드 랭킹 테이블, 블록의 좌측을 향하는 인트라 예측 모드의 발생 확률 랭킹이 블록의 상측을 향하는 인트라 예측 모드의 랭킹보다 더 높은 제 2 모드 랭킹 테이블, 및 블록의 상층을 향하는 인트라 예측 모드 및 블록의 좌측을 향하는 인트라 예측 모드의 발생 확률 랭킹이 기분석도니 모드 발생에 관한 통계에 따라 매겨진 제 3 모드 랭킹 테이블을 포함할 수 있다. 제 1 모드 랭킹 테이블은 상측 고차분 블록에 대응하며, 제 2 모드 랭킹 테이블은 좌측 고차분 블록에 대응하며, 제 3 모드 랭킹 테이블은 양측 고차분 블록 및 양측 저차분 블록에 대응할 수 있다. Further, the mode ranking table may include a first mode ranking table in which an occurrence probability ranking of an intra prediction mode toward the upper side of the block is higher than a ranking of an intra prediction mode toward the left side of the block, and generation of an intra prediction mode toward the left side of the block. The second mode ranking table in which the probability ranking is higher than the ranking of the intra prediction mode toward the upper side of the block, and the probability prediction of the intra prediction mode towards the upper layer of the block and the intra prediction mode toward the left side of the block are generated. And a third mode ranking table rated according to the statistics for. The first mode ranking table may correspond to an upper high difference block, the second mode ranking table may correspond to a left high difference block, and the third mode ranking table may correspond to both high difference blocks and both low difference blocks.

본 발명의 일 실시예에 따르면, 상기 참조된 모드 랭킹 테이블에서 현재 블록(201)의 인트라 예측 모드에 대응하는 랭킹이 최상위가 아닌 경우, 현재 블록(201)의 인트라 예측 모드의 랭킹을 상승시켜 모드 랭킹 테이블을 업데이트하는 단계를 더 포함할 수 있다. 이와 같이, 본 발명은 복호화 과정에서도 복호화하고자 하는 현재 블록의 타입에 따라 서로 다른 모드 랭킹 테이블을 참조하여, 현재 블록의 인트라 예측 모드를 복호화할 수 있다. According to an embodiment of the present invention, if the ranking corresponding to the intra prediction mode of the current block 201 in the referenced mode ranking table is not the highest, the mode of the intra prediction mode of the current block 201 is increased. The method may further include updating the ranking table. As described above, according to the present invention, the intra prediction mode of the current block may be decoded by referring to different mode ranking tables according to the type of the current block to be decoded.

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

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

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

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

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

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

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

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

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

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

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

도 17을 참조하면, 상기 영상 복호화 장치(300)는 엔트로피 복호화부(310), 역양자화부(320), 역변환부(330), 인트라 예측부(340), 움직임 보상부(350), 필터부(360) 및 참조 영상 버퍼(370)를 포함한다.Referring to FIG. 17, the image decoding apparatus 300 may include an entropy decoder 310, an inverse quantizer 320, an inverse transformer 330, an intra predictor 340, a motion compensator 350, and a filter. 360 and a reference image buffer 370.

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

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

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

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

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

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

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

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

이상에서, 부호화 또는 복호화할 현재 블록에 인접한 주변 픽셀들 간의 픽셀값의 차분을 계산하고, 계산된 차분에 따라 결정된 현재 블록의 타입에 따라 서로 다른 모드 랭킹 테이블을 참조하여 현재 블록의 인트라 예측 모드를 부호화 또는 복호화하는 인트라 예측 방법 및 장치를 설명하였다. 본 발명의 일 실시예에 따른 인트라 예측 방법 및 장치에 따르면, 현재 블록의 인트라 예측 모드를 나타내는 데이터의 비트 수가 종래방식에 비해 감소하여, 영상의 압축률이 증가하는 효과를 얻을 수 있다. In the above, the difference of pixel values between neighboring pixels adjacent to the current block to be encoded or decoded is calculated, and the intra prediction mode of the current block is referred to by referring to a different mode ranking table according to the type of the current block determined according to the calculated difference. An intra prediction method and apparatus for encoding or decoding have been described. According to the intra prediction method and the apparatus according to the embodiment of the present invention, the number of bits of data representing the intra prediction mode of the current block is reduced as compared with the conventional method, thereby increasing the compression ratio of the image.

100: 인트라 예측 장치 101: 차분 계산부
102: 모드 결정부 103: 저장부
104: 부호화부 105: 업데이트부
200: 영상 부호화 장치 300: 영상 복호화 장치
100: intra prediction device 101: difference calculation unit
102: mode determination unit 103: storage unit
104: encoder 105: update unit
200: video encoding apparatus 300: video decoding apparatus

Claims (22)

부호화할 현재 블록에 인접한 주변 픽셀들의 픽셀값의 차분을 계산하는 단계;
상기 차분에 기초하여 상기 현재 블록의 타입을 결정하는 단계;
상기 현재 블록의 인트라 예측 모드를 결정하는 단계;
상기 현재 블록의 인트라 예측 모드를 상기 현재 블록의 타입에 대응하는 모드 랭킹 테이블을 참조하여 부호화하는 단계; 및
상기 모드 랭킹 테이블에서 상기 현재 블록의 인트라 예측 모드에 대응하는 랭킹이 최상위가 아닌 경우, 상기 현재 블록의 인트라 예측 모드의 랭킹을 상승시켜 상기 모드 랭킹 테이블을 업데이트하는 단계;
를 포함하는 인트라 예측 방법.
Calculating a difference between pixel values of neighboring pixels adjacent to the current block to be encoded;
Determining a type of the current block based on the difference;
Determining an intra prediction mode of the current block;
Encoding an intra prediction mode of the current block with reference to a mode ranking table corresponding to the type of the current block; And
Updating the mode ranking table by raising the ranking of the intra prediction mode of the current block when the ranking corresponding to the intra prediction mode of the current block is not the highest in the mode ranking table;
/ RTI >
제 1 항에 있어서,
상기 주변 픽셀들은 상기 현재 블록의 상측에 인접한 상측 주변 픽셀 그룹 및 상기 현재 블록의 좌측에 인접한 좌측 주변 픽셀 그룹을 포함하는 인트라 예측 방법.
The method of claim 1,
The peripheral pixels include an upper peripheral pixel group adjacent to an upper side of the current block and a left peripheral pixel group adjacent to a left side of the current block.
제 2 항에 있어서,
상기 주변 픽셀들의 픽셀값의 차분을 계산하는 단계는:
상기 상측 주변 픽셀 그룹 중 인접한 픽셀들 간의 픽셀값의 차분의 절대값을 합산하여 상측 주변 픽셀 그룹 차분값을 계산하는 단계; 그리고
상기 좌측 주변 픽셀 그룹 중 인접한 픽셀들 간의 픽셀값의 차분의 절대값을 합산하여 좌측 주변 픽셀 그룹 차분값을 계산하는 단계;
를 포함하는 인트라 예측 방법.
3. The method of claim 2,
The step of calculating the difference of pixel values of the neighboring pixels is:
Calculating an upper peripheral pixel group difference value by summing an absolute value of a difference of pixel values between adjacent pixels in the upper peripheral pixel group; And
Calculating a left peripheral pixel group difference value by summing an absolute value of a difference of pixel values between adjacent pixels in the left peripheral pixel group;
/ RTI >
제 3 항에 있어서,
상기 차분에 기초하여 현재 블록의 타입을 결정하는 단계는:
상기 상측 주변 픽셀 그룹 차분값이 소정의 임계값보다 크고, 상기 좌측 주변 픽셀 그룹 차분값이 상기 임계값보다 작거나 같은 경우, 상기 현재 블록의 타입을 상측 고차분 블록으로 결정하는 단계를 포함하는 인트라 예측 방법.
The method of claim 3, wherein
Determining the type of the current block based on the difference:
If the upper peripheral pixel group difference is greater than a predetermined threshold and the left peripheral pixel group difference is less than or equal to the threshold, determining the type of the current block as an upper high difference block; Forecast method.
제 3 항에 있어서,
상기 차분에 기초하여 현재 블록의 타입을 결정하는 단계는:
상기 상측 주변 픽셀 그룹 차분값이 소정의 임계값보다 작거나 같고, 상기 좌측 주변 픽셀 그룹 차분값이 상기 임계값보다 큰 경우, 상기 현재 블록의 타입을 좌측 고차분 블록으로 결정하는 단계를 포함하는 인트라 예측 방법.
The method of claim 3, wherein
Determining the type of the current block based on the difference:
If the upper peripheral pixel group difference is less than or equal to a predetermined threshold and the left peripheral pixel group difference is greater than the threshold, determining the type of the current block as a left high difference block; Forecast method.
제 3 항에 있어서,
상기 차분에 기초하여 현재 블록의 타입을 결정하는 단계는:
상기 상측 주변 픽셀 그룹 차분값 및 상기 좌측 주변 픽셀 그룹 차분값이 소정의 임계값보다 큰 경우, 상기 현재 블록의 타입을 양측 고차분 블록으로 결정하는 단계를 포함하는 인트라 예측 방법.
The method of claim 3, wherein
Determining the type of the current block based on the difference:
And determining the type of the current block as a bilateral high difference block when the upper peripheral pixel group difference value and the left peripheral pixel group difference value are larger than a predetermined threshold value.
제 3 항에 있어서,
상기 차분에 기초하여 현재 블록의 타입을 결정하는 단계는:
상기 상측 주변 픽셀 그룹 차분값 및 상기 좌측 주변 픽셀 그룹 차분값이 소정의 임계값보다 작거나 같은 경우, 상기 현재 블록의 타입을 양측 저차분 블록으로 결정하는 단계를 포함하는 인트라 예측 방법.
The method of claim 3, wherein
Determining the type of the current block based on the difference:
And determining the type of the current block as both low-order blocks when the upper peripheral pixel group difference value and the left peripheral pixel group difference value are less than or equal to a predetermined threshold value.
제 4 항에 있어서,
상기 상측 고차분 블록에 대응하는 모드 랭킹 테이블은, 블록의 상측을 향하는 인트라 예측 모드의 발생 확률 랭킹이 블록의 좌측을 향하는 인트라 예측 모드의 랭킹보다 더 높은 인트라 예측 방법.
5. The method of claim 4,
And a mode ranking table corresponding to the upper higher difference block has a higher probability of occurrence of an intra prediction mode toward an upper side of the block than a ranking of an intra prediction mode toward the left side of the block.
제 8 항에 있어서,
상기 상측 고차분 블록에 대응하는 모드 랭킹 테이블은, 인트라 예측 모드가 수직에 가까운 방향을 향할수록 발생 확률 랭킹이 높은 인트라 예측 방법.
The method of claim 8,
And a mode ranking table corresponding to the upper high-order block has a higher probability of occurrence ranking as the intra prediction mode is directed toward the vertical direction.
제 5 항에 있어서,
상기 좌측 고차분 블록에 대응하는 모드 랭킹 테이블은, 블록의 좌측을 향하는 인트라 예측 모드의 발생 확률 랭킹이 블록의 상측을 향하는 인트라 예측 모드의 발생 확률 랭킹보다 더 높은 인트라 예측 방법.
The method of claim 5, wherein
And a mode ranking table corresponding to the left high-order block has a higher probability of occurrence of the intra prediction mode toward the left side of the block than an occurrence probability ranking of the intra prediction mode toward the upper side of the block.
제 10 항에 있어서,
상기 좌측 고차분 블록에 대응하는 모드 랭킹 테이블은, 인트라 예측 모드가 수평에 가까운 방향을 향할수록 발생 확률 랭킹이 높은 인트라 예측 방법.
11. The method of claim 10,
And a mode ranking table corresponding to the left high-order block has a higher probability of occurrence ranking as the intra prediction mode is directed toward a horizontal direction.
부호화할 현재 블록에 인접한 주변 픽셀들의 픽셀값의 차분을 계산하는 단계;
상기 차분에 기초하여 상기 현재 블록의 타입을 결정하는 단계;
상기 현재 블록의 인트라 예측 모드를 결정하는 단계; 그리고
상기 현재 블록의 인트라 예측 모드를 상기 현재 블록의 타입에 대응하는 모드 랭킹 테이블을 참조하여 부호화하는 단계를 포함하며,
상기 주변 픽셀들은 상기 현재 블록의 상측에 인접한 상측 주변 픽셀 그룹 및 상기 현재 블록의 좌측에 인접한 좌측 주변 픽셀 그룹을 포함하며,
상기 주변 픽셀들의 픽셀값의 차분을 계산하는 단계는:
상기 상측 주변 픽셀 그룹 중 인접한 픽셀들 간의 픽셀값의 차분의 절대값을 합산하여 상측 주변 픽셀 그룹 차분값을 계산하는 단계; 그리고
상기 좌측 주변 픽셀 그룹 중 인접한 픽셀들 간의 픽셀값의 차분의 절대값을 합산하여 좌측 주변 픽셀 그룹 차분값을 계산하는 단계를 포함하며,
상기 차분에 기초하여 현재 블록의 타입을 결정하는 단계는:
상기 상측 주변 픽셀 그룹 차분값이 소정의 임계값보다 크고, 상기 좌측 주변 픽셀 그룹 차분값이 상기 임계값보다 작거나 같은 경우, 상기 현재 블록의 타입을 상측 고차분 블록으로 결정하는 단계;
상기 상측 주변 픽셀 그룹 차분값이 소정의 임계값보다 작거나 같고, 상기 좌측 주변 픽셀 그룹 차분값이 상기 임계값보다 큰 경우, 상기 현재 블록의 타입을 좌측 고차분 블록으로 결정하는 단계;
상기 상측 주변 픽셀 그룹 차분값 및 상기 좌측 주변 픽셀 그룹 차분값이 소정의 임계값보다 큰 경우, 상기 현재 블록의 타입을 양측 고차분 블록으로 결정하는 단계; 및
상기 상측 주변 픽셀 그룹 차분값 및 상기 좌측 주변 픽셀 그룹 차분값이 소정의 임계값보다 작거나 같은 경우, 상기 현재 블록의 타입을 양측 저차분 블록으로 결정하는 단계;
중 적어도 하나를 포함하고,
상기 임계값은 상기 현재 블록의 사이즈에 반비례하는 인트라 예측 방법.
Calculating a difference between pixel values of neighboring pixels adjacent to the current block to be encoded;
Determining a type of the current block based on the difference;
Determining an intra prediction mode of the current block; And
Encoding the intra prediction mode of the current block with reference to a mode ranking table corresponding to the type of the current block,
The peripheral pixels include an upper peripheral pixel group adjacent to an upper side of the current block and a left peripheral pixel group adjacent to a left side of the current block;
The step of calculating the difference of pixel values of the neighboring pixels is:
Calculating an upper peripheral pixel group difference value by summing an absolute value of a difference of pixel values between adjacent pixels in the upper peripheral pixel group; And
Calculating a left peripheral pixel group difference value by summing an absolute value of a difference of pixel values between adjacent pixels in the left peripheral pixel group;
Determining the type of the current block based on the difference:
Determining the type of the current block as an upper higher difference block when the upper peripheral pixel group difference value is greater than a predetermined threshold and the left peripheral pixel group difference value is less than or equal to the threshold value;
If the upper peripheral pixel group difference value is less than or equal to a predetermined threshold value and the left peripheral pixel group difference value is greater than the threshold value, determining a type of the current block as a left high difference block;
If the upper peripheral pixel group difference value and the left peripheral pixel group difference value are larger than a predetermined threshold value, determining the type of the current block as both high differential blocks; And
If the upper peripheral pixel group difference value and the left peripheral pixel group difference value are less than or equal to a predetermined threshold value, determining the type of the current block as both lower difference blocks;
, ≪ / RTI >
And the threshold is inversely proportional to the size of the current block.
삭제delete 부호화할 현재 블록에 인접한 주변 픽셀들의 픽셀값의 차분을 계산하는 차분 계산부;
상기 현재 블록의 인트라 예측 모드를 결정하는 모드 결정부;
인트라 예측 모드의 발생 확률에 따라 랭킹을 매겨놓은 다수의 모드 랭킹 테이블을 저장하는 저장부;
상기 차분에 따라 결정된 현재 블록의 타입에 대응하는 모드 랭킹 테이블을 참조하여 상기 현재 블록의 인트라 예측 모드를 부호화하는 부호화부; 및
상기 모드 랭킹 테이블에서 상기 현재 블록의 인트라 예측 모드에 대응하는 랭킹이 최상위가 아닌 경우, 상기 현재 블록의 인트라 예측 모드의 랭킹을 상승시켜 상기 모드 랭킹 테이블을 업데이트하는 업데이트부;
를 포함하는 인트라 예측 장치.
A difference calculator which calculates a difference between pixel values of neighboring pixels adjacent to the current block to be encoded;
A mode determination unit to determine an intra prediction mode of the current block;
A storage unit for storing a plurality of mode ranking tables ranked according to a probability of occurrence of an intra prediction mode;
An encoder which encodes an intra prediction mode of the current block by referring to a mode ranking table corresponding to the type of the current block determined according to the difference; And
An updater configured to update the mode ranking table by raising the ranking of the intra prediction mode of the current block when the ranking corresponding to the intra prediction mode of the current block is not the highest in the mode ranking table;
And an intra prediction unit.
제 14 항에 있어서,
상기 주변 픽셀들은 상기 현재 블록의 상측에 인접한 상측 주변 픽셀 그룹 및 상기 현재 블록의 좌측에 인접한 좌측 주변 픽셀 그룹을 포함하는 인트라 예측 장치.
15. The method of claim 14,
The peripheral pixels include an upper peripheral pixel group adjacent to an upper side of the current block and a left peripheral pixel group adjacent to a left side of the current block.
제 15 항에 있어서,
상기 차분 계산부는, 상기 상측 주변 픽셀 그룹 중 인접한 픽셀들 간의 픽셀값의 차분의 절대값을 합산하여 상측 주변 픽셀 그룹 차분값을 계산하고, 상기 좌측 주변 픽셀 그룹 중 인접한 픽셀들 간의 픽셀값의 차분의 절대값을 합산하여 좌측 주변 픽셀 그룹 차분값을 계산하는 인트라 예측 장치.
The method of claim 15,
The difference calculator calculates an upper peripheral pixel group difference value by summing an absolute value of a difference of pixel values between adjacent pixels in the upper peripheral pixel group, and calculates a difference of pixel values between adjacent pixels in the left peripheral pixel group. An intra prediction device that calculates a difference of left peripheral pixel groups by summing absolute values.
제 16 항에 있어서,
상기 저장부는:
블록의 상측을 향하는 인트라 예측 모드의 발생 확률 랭킹이 블록의 좌측을 향하는 인트라 예측 모드의 발생 확률 랭킹보다 더 높은 제 1 모드 랭킹 테이블;
블록의 좌측을 향하는 인트라 예측 모드의 발생 확률 랭킹이 블록의 상측을 향하는 인트라 예측 모드의 발생 확률 랭킹보다 더 높은 제 2 모드 랭킹 테이블; 그리고
블록의 상측을 향하는 인트라 예측 모드 및 블록의 좌측을 향하는 인트라 예측 모드의 발생 확률 랭킹이 모드 발생에 관한 통계에 따라 매겨진 제 3 모드 랭킹 테이블;
을 저장하는 인트라 예측 장치.
17. The method of claim 16,
Wherein the storage unit comprises:
A first mode ranking table in which an occurrence probability ranking of the intra prediction mode facing upwards of the block is higher than an occurrence probability ranking of the intra prediction mode facing leftward of the block;
A second mode ranking table in which an occurrence probability ranking of the intra prediction mode toward the left side of the block is higher than an occurrence probability ranking of the intra prediction mode toward the upper side of the block; And
A third mode ranking table in which an occurrence probability ranking of the intra prediction mode toward the upper side of the block and the intra prediction mode toward the left side of the block is ranked according to the statistics on the mode occurrence;
Intra prediction device for storing the.
제 17 항에 있어서,
상기 부호화부는, 상기 상측 주변 픽셀 그룹 차분값이 소정의 임계값보다 크고 상기 좌측 주변 픽셀 그룹 차분값이 상기 임계값보다 작거나 같은 경우, 상기 제 1 모드 랭킹 테이블을 참조하여 상기 현재 블록의 인트라 예측 모드를 부호화하는 인트라 예측 장치.
The method of claim 17,
If the upper peripheral pixel group difference value is greater than a predetermined threshold and the left peripheral pixel group difference value is less than or equal to the threshold value, the encoder may refer to the first mode ranking table to predict an intra of the current block. Intra prediction device for encoding the mode.
제 17 항에 있어서,
상기 부호화부는, 상기 상측 주변 픽셀 그룹 차분값이 소정의 임계값보다 작거나 같고 상기 좌측 주변 픽셀 그룹 차분값이 상기 임계값보다 큰 경우, 상기 제 2 모드 랭킹 테이블을 참조하여 상기 현재 블록의 인트라 예측 모드를 부호화하는 인트라 예측 장치.
The method of claim 17,
The encoder, when the upper peripheral pixel group difference value is less than or equal to a predetermined threshold value and the left peripheral pixel group difference value is larger than the threshold value, refers to an intra prediction of the current block by referring to the second mode ranking table. Intra prediction device for encoding the mode.
제 17 항에 있어서,
상기 부호화부는, 상기 상측 주변 픽셀 그룹 차분값 및 상기 좌측 주변 픽셀 그룹 차분값 둘 모두가 소정의 임계값보다 크거나 또는 상기 임계값보다 작거나 같은 경우, 상기 제 3 모드 랭킹 테이블을 참조하여 상기 현재 블록의 인트라 예측 모드를 부호화하는 인트라 예측 장치.
The method of claim 17,
The encoder may determine the current mode by referring to the third mode ranking table when both the upper peripheral pixel group difference value and the left peripheral pixel group difference value are greater than or equal to or less than a predetermined threshold. An intra prediction apparatus for encoding an intra prediction mode of a block.
삭제delete 컴퓨터로 읽을 수 있는 기록매체에 있어서, 상기 기록매체는:
부호화할 현재 블록에 인접한 주변 픽셀들의 픽셀값의 차분을 계산하는 단계;
상기 차분에 기초하여 상기 현재 블록의 타입을 결정하는 단계;
상기 현재 블록의 인트라 예측 모드를 결정하는 단계;
상기 현재 블록의 인트라 예측 모드를 상기 현재 블록의 타입에 대응하는 모드 랭킹 테이블을 참조하여 부호화하는 단계;
상기 모드 랭킹 테이블에서 상기 현재 블록의 인트라 예측 모드에 대응하는 랭킹이 최상위가 아닌 경우, 상기 현재 블록의 인트라 예측 모드의 랭킹을 상승시켜 상기 모드 랭킹 테이블을 업데이트하는 단계;
를 포함하는 인트라 예측 프로세스를 실행하기 위한 프로그램이 기록된 기록매체.
In a computer-readable recording medium, the recording medium may be:
Calculating a difference between pixel values of neighboring pixels adjacent to the current block to be encoded;
Determining a type of the current block based on the difference;
Determining an intra prediction mode of the current block;
Encoding an intra prediction mode of the current block with reference to a mode ranking table corresponding to the type of the current block; And
Updating the mode ranking table by raising the ranking of the intra prediction mode of the current block when the ranking corresponding to the intra prediction mode of the current block is not the highest in the mode ranking table;
The recording medium on which a program for executing the intra prediction process is recorded.
KR1020120090198A 2011-11-04 2012-08-17 Method and apparatus for intra prediction KR101373670B1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR1020110114715 2011-11-04
KR20110114715 2011-11-04

Publications (2)

Publication Number Publication Date
KR20130049709A KR20130049709A (en) 2013-05-14
KR101373670B1 true KR101373670B1 (en) 2014-03-14

Family

ID=48660377

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020120090198A KR101373670B1 (en) 2011-11-04 2012-08-17 Method and apparatus for intra prediction

Country Status (1)

Country Link
KR (1) KR101373670B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20190037946A (en) * 2017-09-29 2019-04-08 한밭대학교 산학협력단 System and method for effectively deciding intra prediction mode for hevc encoder

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160255371A1 (en) * 2013-10-18 2016-09-01 Lg Electronics Inc. Method and apparatus for coding/decoding 3d video
KR101621854B1 (en) 2014-02-21 2016-05-17 연세대학교 산학협력단 Tsm rate-distortion optimizing method, encoding method and device using the same, and apparatus for processing picture

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20090066035A (en) * 2007-12-18 2009-06-23 한국전자통신연구원 Method of constituting intra prediction mode using spatial edge detection
JP2010135864A (en) 2007-03-29 2010-06-17 Toshiba Corp Image encoding method, device, image decoding method, and device
WO2010101063A1 (en) 2009-03-06 2010-09-10 ソニー株式会社 Image processing device and method
KR20110079543A (en) * 2009-12-30 2011-07-07 한양대학교 산학협력단 Video encoding apparatus for performing intra-prediction based on directionality of neighboring block, video decoding apparatus and video decoding method for performing the same

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010135864A (en) 2007-03-29 2010-06-17 Toshiba Corp Image encoding method, device, image decoding method, and device
KR20090066035A (en) * 2007-12-18 2009-06-23 한국전자통신연구원 Method of constituting intra prediction mode using spatial edge detection
WO2010101063A1 (en) 2009-03-06 2010-09-10 ソニー株式会社 Image processing device and method
KR20110079543A (en) * 2009-12-30 2011-07-07 한양대학교 산학협력단 Video encoding apparatus for performing intra-prediction based on directionality of neighboring block, video decoding apparatus and video decoding method for performing the same

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20190037946A (en) * 2017-09-29 2019-04-08 한밭대학교 산학협력단 System and method for effectively deciding intra prediction mode for hevc encoder
KR102050238B1 (en) 2017-09-29 2019-11-29 한밭대학교 산학협력단 System and method for effectively deciding intra prediction mode for hevc encoder

Also Published As

Publication number Publication date
KR20130049709A (en) 2013-05-14

Similar Documents

Publication Publication Date Title
KR102412271B1 (en) Video encoding/decoding method and apparatus using prediction based on in-loop filtering
KR20190016983A (en) Method and apparatus for encoding intra prediction information
KR20190016989A (en) Method and apparatus for decoding image
JP4317814B2 (en) Encoding apparatus and encoding method for moving picture information
KR101621854B1 (en) Tsm rate-distortion optimizing method, encoding method and device using the same, and apparatus for processing picture
WO2013089129A1 (en) Method, device, and program for coding and decoding of images
KR20180061027A (en) Method and apparatus for encoding/decoding image and recording medium for storing bitstream
KR20070037532A (en) Intra prediction encoding method and encoder thereof
US20230328280A1 (en) Method and device for intra-prediction
KR101373670B1 (en) Method and apparatus for intra prediction
KR20210000689A (en) Method and Apparatus for Image Encoding and Decoding Thereof
KR20200145761A (en) Method and Apparatus for Image Encoding and Decoding Thereof
JP2010041191A (en) Image encoding method and image encoding device
KR101443865B1 (en) Method and apparatus for inter prediction
KR101475286B1 (en) Method and apparatus for intra prediction, and apparatus for processing picture
KR101375699B1 (en) Method and apparatus for intra prediction
JP5183573B2 (en) Video encoding device
KR20170058870A (en) Method and apparatus for encoding/dicoding a video with non linear mapping
KR101436949B1 (en) Method and apparatus for encoding picture, and apparatus for processing picture
KR20160106348A (en) Video Coding Method and Apparatus thereof
KR20130049604A (en) Mode Switching Method in Entropy Coding
JP7357481B2 (en) Deblocking filter control device and program
JP5814191B2 (en) Deblocking processing method, deblocking processing apparatus, program, and recording medium
JP2010010768A (en) Image encoding apparatus and image encoding method
Yeh et al. A new intra prediction with adaptive template matching through finite state machine

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
LAPS Lapse due to unpaid annual fee