[go: up one dir, main page]

KR102365937B1 - Method and apparatus for encoding/decoding a video signal - Google Patents

Method and apparatus for encoding/decoding a video signal Download PDF

Info

Publication number
KR102365937B1
KR102365937B1 KR1020170050054A KR20170050054A KR102365937B1 KR 102365937 B1 KR102365937 B1 KR 102365937B1 KR 1020170050054 A KR1020170050054 A KR 1020170050054A KR 20170050054 A KR20170050054 A KR 20170050054A KR 102365937 B1 KR102365937 B1 KR 102365937B1
Authority
KR
South Korea
Prior art keywords
block
current block
prediction
information
prediction mode
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
KR1020170050054A
Other languages
Korean (ko)
Other versions
KR20170124082A (en
Inventor
문주희
원동재
임성원
Original Assignee
세종대학교산학협력단
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 세종대학교산학협력단 filed Critical 세종대학교산학협력단
Priority to CN202311058445.0A priority Critical patent/CN116916013A/en
Priority to CN202311054774.8A priority patent/CN116915995A/en
Priority to US16/097,394 priority patent/US10805607B2/en
Priority to CN202311054843.5A priority patent/CN116915996A/en
Priority to CN202311054848.8A priority patent/CN116915997A/en
Priority to CN202311055806.6A priority patent/CN116916000A/en
Priority to CN202311057067.4A priority patent/CN116916006A/en
Priority to CN202311054699.5A priority patent/CN116915994A/en
Priority to CN202311054573.8A priority patent/CN116915990A/en
Priority to CN202311055556.6A priority patent/CN116915999A/en
Priority to PCT/KR2017/004576 priority patent/WO2017188784A2/en
Priority to CN202311057660.9A priority patent/CN116916008A/en
Priority to CN202311054691.9A priority patent/CN116915993A/en
Priority to CN202311056041.8A priority patent/CN116916004A/en
Priority to CN202311055507.2A priority patent/CN116915998A/en
Priority to CN202311051162.3A priority patent/CN116915988A/en
Priority to CN202311050260.5A priority patent/CN116915987A/en
Priority to CN202311055993.8A priority patent/CN116916003A/en
Priority to CN202311054618.1A priority patent/CN116915992A/en
Priority to CN202311055914.3A priority patent/CN116916002A/en
Priority to CN201780039690.3A priority patent/CN109328461B/en
Priority to CN202311056416.0A priority patent/CN116916005A/en
Publication of KR20170124082A publication Critical patent/KR20170124082A/en
Priority to US17/016,940 priority patent/US11122265B2/en
Priority to US17/016,867 priority patent/US11115659B2/en
Priority to US17/363,911 priority patent/US20210329238A1/en
Priority to KR1020220020578A priority patent/KR20220024390A/en
Application granted granted Critical
Publication of KR102365937B1 publication Critical patent/KR102365937B1/en
Priority to US17/812,158 priority patent/US11849111B2/en
Priority to US18/309,726 priority patent/US11849074B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/593Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving spatial prediction techniques
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/103Selection of coding mode or of prediction mode
    • H04N19/105Selection of the reference unit for prediction within a chosen coding or prediction mode, e.g. adaptive choice of position and number of pixels used for prediction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/103Selection of coding mode or of prediction mode
    • H04N19/107Selection of coding mode or of prediction mode between spatial and temporal predictive coding, e.g. picture refresh
    • 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/12Selection from among a plurality of transforms or standards, e.g. selection between discrete cosine transform [DCT] and sub-band transform or selection between H.263 and H.264
    • H04N19/122Selection of transform size, e.g. 8x8 or 2x4x8 DCT; Selection of sub-band transforms of varying structure or type
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/124Quantisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/90Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using coding techniques not provided for in groups H04N19/10-H04N19/85, e.g. fractals
    • H04N19/91Entropy coding, e.g. variable length coding [VLC] or arithmetic coding

Landscapes

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

Abstract

본 발명에 따른 영상 신호 복호화 방법은, 현재 블록이 다중 인트라 예측 모드를 이용하여 부호화되었는지 여부를 나타내는 정보를 복호화하는 단계, 상기 현재 블록이 다중 인트라 예측 모드로 부호화된 것으로 판단되는 경우, 상기 현재 블록을 복수의 부분 블록으로 분할하는 단계, 및 상기 복수의 부분 블록 각각의 인트라 예측 모드를 획득하는 단계를 포함한다.A video signal decoding method according to the present invention includes decoding information indicating whether a current block is encoded using a multi-intra prediction mode, and when it is determined that the current block is encoded in a multi-intra prediction mode, the current block partitioning into a plurality of partial blocks, and obtaining an intra prediction mode of each of the plurality of partial blocks.

Description

영상 신호 부호화/복호화 방법 및 장치{METHOD AND APPARATUS FOR ENCODING/DECODING A VIDEO SIGNAL}Video signal encoding/decoding method and apparatus

본 발명은 영상 신호 부호화/복호화 방법 및 장치에 관한 것이다. The present invention relates to a method and apparatus for encoding/decoding a video signal.

최근, 인터넷에서는 동영상과 같은 멀티미디어 데이터의 수요가 급격히 증가하고 있다. 하지만 채널(Channel)의 대역폭(Bandwidth)이 발전하는 속도는 급격히 증가하고 있는 멀티미디어 데이터의 양을 따라가기 힘든 상황이다. Recently, the demand for multimedia data such as moving pictures is rapidly increasing on the Internet. However, it is difficult to keep up with the rapidly increasing amount of multimedia data at the rate of development of the bandwidth of the channel.

본 발명은 영상을 부호화/복호화함에 있어서, 다중 인트라 예측 모드를 이용함으로써 영상의 압축 효율을 향상시키는 것에 주된 목적이 있다. A main object of the present invention is to improve image compression efficiency by using a multiple intra prediction mode in encoding/decoding an image.

본 발명은 영상을 부호화/복호화함에 있어서, 부호화/복호화 대상 블록의 다중 인트라 예측 모드를 효율적으로 부호화/복호화 함으로써, 영상의 압축 효율을 향상시키는 것에 주된 목적이 있다.A main object of the present invention is to improve image compression efficiency by efficiently encoding/decoding multiple intra prediction modes of an encoding/decoding target block in encoding/decoding an image.

본 발명에 따른 영상 신호 복호화 방법 및 장치는, 현재 블록이 다중 인트라 예측 모드를 이용하여 부호화되었는지 여부를 나타내는 정보를 복호화하고, 상기 현재 블록이 다중 인트라 예측 모드로 부호화된 것으로 판단되는 경우, 상기 현재 블록을 복수의 부분 블록으로 분할하고, 상기 복수의 부분 블록 각각의 인트라 예측 모드를 획득할 수 있다.A video signal decoding method and apparatus according to the present invention decodes information indicating whether a current block is encoded using a multi-intra-prediction mode, and when it is determined that the current block is encoded in a multi-intra-prediction mode, the current A block may be divided into a plurality of partial blocks, and an intra prediction mode of each of the plurality of partial blocks may be obtained.

본 발명에 따른 영상 신호 복호화 방법 및 장치는, 상기 현재 블록을 복수의 부분 블록으로 분할할 때, 상기 현재 블록 주변의 주변 화소들 중 변곡점을 결정하고, 상기 변곡점 주변 복수 화소들을 기초로 기울기 정보를 획득하고, 상기 변곡점 및 상기 기울기 정보를 기초로, 상기 현재 블록의 분할 형태를 결정할 수 있다.In an image signal decoding method and apparatus according to the present invention, when the current block is divided into a plurality of partial blocks, an inflection point is determined among pixels surrounding the current block, and slope information is obtained based on the plurality of pixels surrounding the inflection point. obtained, and based on the inflection point and the slope information, it is possible to determine a division form of the current block.

본 발명에 따른 영상 신호 복호화 방법 및 장치에 있어서, 상기 변곡점은, 상기 주변 화소들 각각의 변곡값을 기초로 결정되고, 상기 변곡값은, 주변 화소에 이웃하는 이웃 화소들 사이의 차분값에 기초하여 생성될 수 있다.In the video signal decoding method and apparatus according to the present invention, the inflection point is determined based on an inflection value of each of the neighboring pixels, and the inflection value is based on a difference value between neighboring pixels adjacent to the neighboring pixel can be created by

본 발명에 따른 영상 신호 복호화 방법 및 장치는, 상기 복수의 부분 블록 각각의 인트라 예측 모드를 획득할 때, 제1 부분 블록의 제1 인트라 예측 모드를 획득하고, 상기 제1 인트라 예측 모드 및 제2 부분 블록의 제2 인트라 예측 모드 사이의 차분값을 복호화하고, 상기 차분값에 기초하여, 상기 제2 인트라 예측 모드를 획득할 수 있다.A video signal decoding method and apparatus according to the present invention, when obtaining the intra prediction mode of each of the plurality of partial blocks, obtains a first intra prediction mode of a first partial block, and obtains the first intra prediction mode and the second intra prediction mode A difference value between second intra prediction modes of partial blocks may be decoded, and the second intra prediction mode may be obtained based on the difference value.

본 발명에 따른 영상 신호 복호화 방법 및 장치에 있어서, 상기 복수의 부분 블록 각각의 인트라 예측 모드는 상이한 값을 가질 수 있다.In the method and apparatus for decoding an image signal according to the present invention, the intra prediction mode of each of the plurality of partial blocks may have different values.

본 발명에 따른 영상 신호 부호화 방법 및 장치는, 현재 블록이 다중 인트라 예측 모드로 부호화되었는지 여부를 판단하고, 상기 판단 결과를 기초로, 상기 현재 블록이 다중 인트라 예측 모드를 이용하는지 여부를 나타내는 정보를 부호화하고, 상기 현재 블록이 다중 인트라 예측 모드를 이용하도록 설정된 경우, 상기 현재 블록을 복수의 부분 블록으로 분할하고, 상기 복수의 부분 블록 각각의 인트라 예측 모드를 결정할 수 있다.A video signal encoding method and apparatus according to the present invention determines whether a current block is encoded in a multi-intra-prediction mode, and receives information indicating whether the current block uses a multi-intra-prediction mode based on a result of the determination encoding, and when the current block is set to use a multiple intra prediction mode, the current block may be divided into a plurality of partial blocks, and an intra prediction mode of each of the plurality of partial blocks may be determined.

본 발명에 따른 영상 신호 부호화 방법 및 장치는,상기 현재 블록을 복수의 부분 블록으로 분할할 때, 상기 현재 블록 주변의 주변 화소들 중 변곡점을 결정하고, 상기 변곡점 주변 복수 화소들을 기초로 기울기 정보를 획득하고, 상기 변곡점 및 상기 기울기 정보를 기초로, 상기 현재 블록의 분할 형태를 결정할 수 있다.An image signal encoding method and apparatus according to the present invention, when dividing the current block into a plurality of partial blocks, determine an inflection point among pixels surrounding the current block, and obtain gradient information based on the plurality of pixels around the inflection point obtained, and based on the inflection point and the slope information, it is possible to determine a division form of the current block.

본 발명에 따른 영상 신호 부호화 방법 및 장치에 있어서, 상기 변곡점은, 상기 주변 화소들 각각의 변곡값을 기초로 결정되고, 상기 변곡값은, 주변 화소에 이웃하는 이웃 화소들 사이의 차분값에 기초하여 생성될 수 있다.In the video signal encoding method and apparatus according to the present invention, the inflection point is determined based on an inflection value of each of the neighboring pixels, and the inflection value is based on a difference value between neighboring pixels adjacent to the neighboring pixel. can be created by

본 발명에 따른 영상 신호 부호화 방법 및 장치는, 상기 복수의 부분 블록 중 제1 부분 블록의 제1 인트라 예측 모드를 결정하고, 상기 복수의 부분 블록 중 제1 부분 블록의 제2 인트라 예측 모드를 결정하고, 상기 제1 인트라 예측 모드 및 상기 제2 인트라 예측 모드 사이의 차분값을 부호화할 수 있다.In a video signal encoding method and apparatus according to the present invention, a first intra prediction mode of a first partial block among the plurality of partial blocks is determined, and a second intra prediction mode of a first partial block of the plurality of partial blocks is determined. and a difference value between the first intra prediction mode and the second intra prediction mode may be encoded.

본 발명에 따른 영상 신호 부호화 방법 및 장치에 있어서, 상기 복수의 부분 블록 각각의 인트라 예측 모드는 상이한 값을 가질 수 있다.In the video signal encoding method and apparatus according to the present invention, the intra prediction mode of each of the plurality of partial blocks may have different values.

본 발명에 따르면, 다중 인트라 예측 모드를 이용함으로써, 영상의 압축 효율을 향상시킬 수 있다.According to the present invention, image compression efficiency can be improved by using the multiple intra prediction mode.

본 발명에 따르면, 부호화/복호화 대상 블록의 다중 인트라 예측 모드를 효율적으로 부호화/복호화함으로써, 영상의 압축 효율을 향상시킬 수 있다.According to the present invention, image compression efficiency can be improved by efficiently encoding/decoding multiple intra prediction modes of an encoding/decoding target block.

도 1은 본 발명의 일실시예에 따른 영상 부호화 장치를 나타낸 블록도이다.
도 2는 본 발명의 일실시예에 따른 영상 복호화 장치를 나타낸 블록도이다.
도 3은 DC 모드를 이용한 인트라 예측 방법을 설명하기 위한 도면이다.
도 4는 플래너 모드를 이용한 인트라 예측 방법을 설명하기 위한 도면이다.
도 5는 방향성 예측 모드를 이용한 인트라 예측 방법을 설명하기 위한 도면이다.
도 6은 부호화 과정에서 다중 인트라 예측 모드의 이용 여부를 결정하는 과정을 나타낸 흐름도이다.
도 7은 변곡점을 탐색하는 예를 설명하기 위한 도면이다.
도 8은 현재 블록의 형태에 따른 분할 형태를 예시한 도면이다.
도 9는 주변 화소의 기울기 정보를 계산하는 예를 설명하기 위한 도면이다.
도 10은 현재 블록의 분할 형태에 따라, 중복 영역이 발생되는 예를 나타낸 도면이다.
도 11은 부분 블록의 인트라 예측 모드를 부호화하는 과정을 나타낸 흐름도이다.
도 12는 MPM 후보를 이용하여, 인트라 예측 모드를 부호화하는 방법을 나타낸 흐름도이다.
도 13은 현재 블록의 MPM 후보를 결정하는 것을 예시한 도면이다.
도 14는 현재 블록의 인트라 예측 모드를 복호화하는 방법을 나타낸 흐름도이다.
도 15는 MPM 후보를 이용하여 현재 블록의 인트라 예측 모드를 복호화하는 과정을 나타낸 흐름도이다.
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 diagram for explaining an intra prediction method using a DC mode.
4 is a diagram for explaining an intra prediction method using a planar mode.
5 is a diagram for explaining an intra prediction method using a directional prediction mode.
6 is a flowchart illustrating a process of determining whether to use a multi-intra prediction mode in an encoding process.
7 is a diagram for explaining an example of searching for an inflection point.
8 is a diagram illustrating a division shape according to the shape of a current block.
9 is a diagram for explaining an example of calculating inclination information of neighboring pixels.
10 is a diagram illustrating an example in which an overlapping area is generated according to a division form of a current block.
11 is a flowchart illustrating a process of encoding an intra prediction mode of a partial block.
12 is a flowchart illustrating a method of encoding an intra prediction mode using an MPM candidate.
13 is a diagram illustrating determining an MPM candidate of a current block.
14 is a flowchart illustrating a method of decoding an intra prediction mode of a current block.
15 is a flowchart illustrating a process of decoding an intra prediction mode of a current block using an MPM candidate.

본 발명은 다양한 변경을 가할 수 있고 여러 가지 실시예를 가질 수 있는 바, 특정 실시예들을 도면에 예시하고 상세한 설명에 상세하게 설명하고자 한다. 그러나, 이는 본 발명을 특정한 실시 형태에 대해 한정하려는 것이 아니며, 본 발명의 사상 및 기술 범위에 포함되는 모든 변경, 균등물 내지 대체물을 포함하는 것으로 이해되어야 한다. 각 도면을 설명하면서 유사한 참조부호를 유사한 구성요소에 대해 사용하였다.Since the present invention can have various changes and can have various embodiments, specific embodiments are illustrated in the drawings and described in detail in the detailed description. However, this is not intended to limit the present invention to specific embodiments, and it should be understood to include all modifications, equivalents and substitutes included in the spirit and scope of the present invention. In describing each figure, like reference numerals have been used for like elements.

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

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

본 출원에서 사용한 용어는 단지 특정한 실시예를 설명하기 위해 사용된 것으로, 본 발명을 한정하려는 의도가 아니다. 단수의 표현은 문맥상 명백하게 다르게 뜻하지 않는 한, 복수의 표현을 포함한다. 본 출원에서, "포함하다" 또는 "가지다" 등의 용어는 명세서상에 기재된 특징, 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것이 존재함을 지정하려는 것이지, 하나 또는 그 이상의 다른 특징들이나 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것들의 존재 또는 부가 가능성을 미리 배제하지 않는 것으로 이해되어야 한다.The terms used in the present application are only used to describe specific embodiments, and are not intended to limit the present invention. The singular expression includes the plural expression unless the context clearly dictates otherwise. In the present application, terms such as “comprise” or “have” are intended to designate that a feature, number, step, operation, component, part, or combination thereof described in the specification exists, but one or more other features It should be understood that this does not preclude the existence or addition of numbers, steps, operations, components, parts, or combinations thereof.

이하, 첨부한 도면들을 참조하여, 본 발명의 바람직한 실시예를 보다 상세하게 설명하고자 한다. 이하, 도면상의 동일한 구성요소에 대해서는 동일한 참조부호를 사용하고 동일한 구성요소에 대해서 중복된 설명은 생략한다.Hereinafter, preferred embodiments of the present invention will be described in more detail with reference to the accompanying drawings. Hereinafter, the same reference numerals are used for the same components in the drawings, and repeated descriptions of the same components are 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)를 포함할 수 있다.Referring to FIG. 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 rearrangement unit 160 , and an entropy encoding unit ( 165 ), an inverse quantization unit 140 , an inverse transform unit 145 , a filter unit 150 , and a memory 155 .

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

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

픽쳐 분할부(110)는 입력된 픽쳐를 적어도 하나의 블록으로 분할할 수 있다. 이때, 블록은 부호화 단위(CU), 예측 단위(PU) 또는 변환 단위(TU)를 의미할 수 있다. 상기 분할은 쿼드 트리(Quadtree) 또는 바이너리 트리(Biniary tree) 중 적어도 하나에 기반하여 수행될 수 있다. 쿼드 트리는 상위 블록을 너비와 높이가 상위 블록의 절반인 하위 블록으로 사분할하는 방식이다. 바이너리 트리는 상위 블록을 너비 또는 높이 중 어느 하나가 상위 블록의 절반인 하위 블록으로 이분할하는 방식이다. 전술한 바이너리 트리 기반의 분할을 통해, 블록은 정방형뿐만 아니라 비정방형의 형태를 가질 수 있다.The picture divider 110 may divide the input picture into at least one block. In this case, a block may mean a coding unit (CU), a prediction unit (PU), or a transformation unit (TU). The division may be performed based on at least one of a quadtree and a binary tree. The quad tree divides the upper block into lower blocks whose width and height are half that of the upper block. Binary tree is a method of dividing the upper block into lower blocks whose either width or height is half that of the upper block. Through the binary tree-based partitioning described above, a block may have a non-square shape as well as a square shape.

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

예측부(120, 125)는 인터 예측을 수행하는 인터 예측부(120)와 인트라 예측을 수행하는 인트라 예측부(125)를 포함할 수 있다. 예측 단위에 대해 인터 예측을 사용할 것인지 또는 인트라 예측을 수행할 것인지를 결정하고, 각 예측 방법에 따른 구체적인 정보(예컨대, 인트라 예측 모드, 모션 벡터, 참조 픽쳐 등)를 결정할 수 있다. 이때, 예측이 수행되는 처리 단위와 예측 방법 및 구체적인 내용이 정해지는 처리 단위는 다를 수 있다. 예컨대, 예측의 방법과 예측 모드 등은 예측 단위로 결정되고, 예측의 수행은 변환 단위로 수행될 수도 있다. The prediction units 120 and 125 may include an inter prediction unit 120 performing inter prediction and an intra prediction unit 125 performing intra prediction. Whether to use inter prediction or to perform intra prediction for a prediction unit may be determined, and specific information (eg, intra prediction mode, motion vector, reference picture, etc.) according to each prediction method may be determined. In this case, a processing unit in which prediction is performed and a processing unit in which a prediction method and specific content are determined may be different. For example, a prediction method and a prediction mode may be determined in a prediction unit, and prediction may be performed in a transformation unit.

부호화 장치는, 원본 블록과 예측 블록을 뺀 잔차 블록에 대한 율-왜곡 최적화(RDO: Rate-Distortion Optimization) 등을 수행하는 등 다양한 기법을 이용하여 부호화 블록에 대한 최적 예측 모드를 결정할 수 있다. 일 예로, RDO는 하기 수학식 1에 의해 결정될 수 있다.The encoding apparatus may determine the optimal prediction mode for the coding block by using various techniques, such as rate-distortion optimization (RDO) on the residual block obtained by subtracting the original block and the prediction block. As an example, RDO may be determined by Equation 1 below.

Figure 112017038055711-pat00001
Figure 112017038055711-pat00001

상기 수학식 1에서, D는 양자화에 의한 열화, R은 압축 스트림의 레이트, J는 RD 비용을 나타낸다. 또한, Φ는 부호화 모드, λ는 라그랑지안 승수(Lagranginan multiplier)를 나타낸다. λ는 에러의 양과 비트량 간의 단위를 일치시키기 위한 스케일 보정용 계수로 이용될 수 있다. 부호화 과정에서 부호화 장치는, RD 비용값이 최소인 모드를 부호화 블록에 대한 최적 모드로 결정할 수 있다. 이때, RD-비용값은, 비트율과 에러를 동시에 고려하여 계산한다.In Equation 1, D denotes degradation due to quantization, R denotes a rate of a compressed stream, and J denotes RD cost. In addition, Φ denotes a coding mode, and λ denotes a Lagrangian multiplier. λ may be used as a scale correction coefficient for matching the unit between the amount of error and the amount of bits. During the encoding process, the encoding apparatus may determine a mode having the minimum RD cost value as the optimal mode for the encoding block. In this case, the RD-cost value is calculated by considering the bit rate and the error simultaneously.

인트라 예측 모드 중, 비방향성 예측 모드(또는 비각도 예측 모드)인 DC 모드는 현재 블록의 주변 화소들의 평균값을 이용하는 것이다. 도 3은 DC 모드를 이용한 인트라 예측 방법을 설명하기 위한 도면이다.Among intra prediction modes, a DC mode, which is a non-directional prediction mode (or a non-angle prediction mode), uses an average value of neighboring pixels of the current block. 3 is a diagram for explaining an intra prediction method using a DC mode.

예측 블록에 주변 화소들의 평균값을 채워 넣은 뒤, 예측 블록의 경계에 위치하는 화소들에 대해 필터링을 수행할 수 있다. 일 예로, 예측 블록의 좌측 또는 상단 경계에 위치하는 화소들에는, 주변 참조 화소들과의 가중합 필터링이 적용될 수 있다. 일 예로, 수학식 2는 구역별 DC 모드를 통한 예측 화소를 생성하는 예를 나타낸 도면이다. 하기 수학식 1에서, R1, R2, R3 영역은, 예측 블록의 최외각(즉, 경계)에 위치하는 영역으로, 상기 영역에 포함된 화소들에는 가중합 필터링이 적용될 수 있다.After filling the prediction block with the average value of neighboring pixels, filtering may be performed on pixels located at the boundary of the prediction block. For example, weighted sum filtering with neighboring reference pixels may be applied to pixels located at the left or upper boundary of the prediction block. As an example, Equation 2 is a diagram illustrating an example of generating a prediction pixel through a DC mode for each zone. In Equation 1 below, regions R1, R2, and R3 are regions located at the outermost (ie, boundary) of the prediction block, and weighted sum filtering may be applied to pixels included in the region.

Figure 112017038055711-pat00002
Figure 112017038055711-pat00002

수학식식 2의 Wid는 예측 블록의 가로 길이, Hei는 예측 블록의 세로 길이를 의미한다. x, y는 예측 블록의 맨 왼쪽 상단 지점을 (0,0)으로 정하였을 때의 각 예측 화소 별 좌표 위치를 의미한다. R은 주변 화소를 의미한다. 일 예로, 도 3에 도시된 s화소를 R[-1][-1]로 정의할 경우, a화소부터 i화소 까지는 R[0][-1]~R[8][-1]로 나타내고 j화소부터 r화소까지는 R[-1][0]~R[-1][8]로 나타낼 수 있다. 도 3에 도시된 예에서, R1~R4 구역 별로 수학식 2와 같이 가중합 필터링 방식에 따라 예측 화소값 Pred를 구하게 된다.In Equation 2, Wid denotes the horizontal length of the prediction block, and Hei denotes the vertical length of the prediction block. x and y mean the coordinate positions of each prediction pixel when the upper leftmost point of the prediction block is set to (0,0). R stands for surrounding pixels. For example, when the s pixel shown in FIG. 3 is defined as R[-1][-1], the pixels a to i are represented by R[0][-1] to R[8][-1]. Pixels j to r can be expressed as R[-1][0] to R[-1][8]. In the example shown in FIG. 3 , the predicted pixel value Pred is obtained according to the weighted sum filtering method as in Equation 2 for each region R1 to R4.

비방향성 모드 중 플래너(Planar) 모드는, 현재 블록 주변 화소들을 거리에 따라 선형 보간하여, 현재 블록의 예측 화소를 생성하는 방법이다. 일 예로, 도 4는 플래너 모드를 이용한 인트라 예측 방법을 설명하기 위한 도면이다.Among the non-directional modes, the planar mode is a method of generating prediction pixels of the current block by linearly interpolating pixels surrounding the current block according to distances. As an example, FIG. 4 is a diagram for explaining an intra prediction method using a planar mode.

예를 들어서 8x8 부호화 블록에서 도 4에 도시된 Pred를 예측 하고자 하는 경우를 가정한다. 이 경우, Pred의 위쪽에 있는 화소 e화소와 왼쪽 아래에 있는 r화소를 Pred의 맨 아래쪽에 복사 하여 세로 방향으로 거리에 따른 선형 보간 방식으로 세로 예측 값을 구할 수 있다. 또한, Pred의 왼쪽에 있는 n화소와 위쪽 오른편에 있는 i화소를 Pred의 맨 오른쪽에 복사 하여 가로 방향으로 거리에 따른 선형 보간 방식으로 가로 예측 값을 구할 수 있다. 이후, 가로 세로 예측 값의 평균값을 Pred의 값으로 정할 수 있다. 수학식 3은 플래너 모드 하에서, 예측값 Pred를 구하는 과정을 수식으로 표현한 것이다.For example, it is assumed that Pred shown in FIG. 4 is to be predicted in an 8x8 coding block. In this case, the e-pixel above Pred and the r pixel at the bottom left of Pred are copied to the bottom of Pred, and the vertical prediction value can be obtained by linear interpolation according to the distance in the vertical direction. Also, by copying the n-pixels on the left of Pred and i-pixels on the upper right of Pred to the far right of Pred, the horizontal prediction value can be obtained by linear interpolation according to the distance in the horizontal direction. Thereafter, the average value of the horizontal and vertical predicted values may be determined as the value of Pred. Equation 3 is a formula for calculating the predicted value Pred under the planner mode.

Figure 112017038055711-pat00003
Figure 112017038055711-pat00003

수학식 3의 Wid는 예측 블록의 가로 길이, Hei는 예측 블록의 세로 길이를 의미한다. x, y는 예측 블록의 맨 왼쪽 상단 지점을 (0, 0)으로 정하였을 때의 각 예측 화소 별 좌표 위치를 의미한다. R은 주변 화소를 의미한다. 일 예로, 도 4에 도시된 s화소를 R[-1][-1]로 정의할 경우, a화소부터 i화소 까지는 R[0][-1]~R[8][-1]로 나타내고 j화소부터 r화소까지는 R[-1][0]~R[-1][8]로 나타낼 수 있다.In Equation 3, Wid denotes the horizontal length of the prediction block, and Hei denotes the vertical length of the prediction block. x and y mean the coordinate positions of each prediction pixel when the upper leftmost point of the prediction block is set as (0, 0). R stands for surrounding pixels. For example, when the s pixel shown in FIG. 4 is defined as R[-1][-1], the pixels a to i are represented by R[0][-1] to R[8][-1]. Pixels j to r can be expressed as R[-1][0] to R[-1][8].

도 5는 방향성 예측 모드를 이용한 인트라 예측 방법을 설명하기 위한 도면이다.5 is a diagram for explaining an intra prediction method using a directional prediction mode.

방향성 예측 모드(또는 각도 예측 모드)는 현재 블록의 주변 화소들 중, 미리 정해 놓은 N가지 방향 중 어느 하나의 방향에 위치하는 적어도 하나 이상의 화소를 예측 샘플로 생성하는 방식이다. The directional prediction mode (or angle prediction mode) is a method of generating at least one or more pixels located in any one of N predetermined directions among neighboring pixels of the current block as prediction samples.

방향성 예측 모드는, 가로 방향 모드와 세로 방향 모드를 포함할 수 있다. 여기서, 가로 방향 모드란 좌상단으로 45도 방향을 향하는 각도 예측 모드보다 가로 방향성이 큰 모드들을 의미하고, 세로 방향 모드란 좌상단으로 45도 방향을 향하는 각도 예측 모드 보다 세로 방향성이 큰 모드들을 의미한다. 좌상단으로 45도 방향으로 향하는 예측 방향을 갖는 방향성 예측 모드는, 가로 방향 모드로 취급될 수도 있고, 세로 방향 모드로 취급될 수도 있다. 도 5에, 가로 방향 모드 및 세로 방향 모드가 도시되어 있다. The directional prediction mode may include a horizontal mode and a vertical mode. Here, the horizontal mode means modes having a greater horizontal direction than the angle prediction mode oriented at 45 degrees to the upper left, and the vertical mode means modes having a greater vertical direction than the angle prediction mode oriented to the upper left at 45 degrees. A directional prediction mode having a prediction direction directed in a 45 degree direction to the upper left may be treated as a horizontal mode or a vertical mode. In Fig. 5, a landscape mode and a portrait mode are shown.

도 5를 참조하면, 각 방향 별로 정수 화소 부분에 부합이 안 되는 방향도 있는데, 이런 경우는 주변 화소와 화소 사이를 거리에 따른 선형 보간 방식이나 DCT-IF 방식, Cubic convolution 보간 방식 등 다양한 보간 방식을 이용하여 보간을 한 후, 그 화소 값을 예측 블록 방향에 부합하는 화소 위치에 넣을 수 있다.Referring to FIG. 5 , there are also directions that do not match the integer pixel portion in each direction. In this case, various interpolation methods such as a linear interpolation method, DCT-IF method, and cubic convolution interpolation method according to the distance between neighboring pixels and pixels After interpolation using , the pixel value may be put into a pixel position corresponding to the direction of the prediction block.

생성된 예측 블록과 원본 블록 사이의 잔차값(잔차 블록 또는 변환 블록)은 변환부(130)로 입력될 수 있다. 잔차 블록은 변환 및 양자화 과정을 위한 최소 단위이다. 부호화 블록의 분할 방식이 변환 블록에도 적용될 수 있다. 일 예로, 변환 블록은 4개 또는 2개의 부분 블록으로 분할될 수 있다. A residual value (residual block or transform block) between the generated prediction block and the original block may be input to the transform unit 130 . The residual block is the smallest unit for transform and quantization processes. The coding block partitioning method may also be applied to the transform block. As an example, the transform block may be divided into 4 or 2 partial blocks.

예측을 위해 사용한 예측 모드 정보, 모션 벡터 정보 등은 잔차값과 함께 엔트로피 부호화부(165)에서 부호화되어 복호화기에 전달될 수 있다. 특정한 부호화 모드를 사용할 경우, 예측부(120, 125)를 통해 예측 블록을 생성하지 않고, 원본 블록을 그대로 부호화하여 복호화부에 전송하는 것도 가능하다.Prediction mode information, motion vector information, etc. used for prediction may be encoded in the entropy encoder 165 together with a residual value and transmitted to a decoder. When a specific encoding mode is used, the original block may be encoded and transmitted to the decoder without generating the prediction block through the predictors 120 and 125 .

인터 예측부(120)는 현재 픽쳐의 이전 픽쳐 또는 이후 픽쳐 중 적어도 하나의 픽쳐의 정보를 기초로 예측 단위를 예측할 수도 있고, 경우에 따라서는 현재 픽쳐 내의 부호화가 완료된 일부 영역의 정보를 기초로 예측 단위를 예측할 수도 있다. 인터 예측부(120)는 참조 픽쳐 보간부, 모션 예측부, 움직임 보상부를 포함할 수 있다. The inter prediction unit 120 may predict a prediction unit based on information on at least one of a picture before or after the current picture, and in some cases, prediction based on information of a partial region in the current picture that has been encoded Units can also be predicted. The inter prediction unit 120 may include a reference picture interpolator, a motion prediction unit, and a motion compensator.

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

모션 예측부는 참조 픽쳐 보간부에 의해 보간된 참조 픽쳐를 기초로 모션 예측을 수행할 수 있다. 모션 벡터를 산출하기 위한 방법으로 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) 방법 등 다양한 방법이 사용될 수 있다.The motion prediction unit may perform motion prediction based on the reference picture interpolated by the reference picture interpolator. As a method for calculating the motion vector, various methods such as Full search-based Block Matching Algorithm (FBMA), Three Step Search (TSS), and New Three-Step Search Algorithm (NTS) may be used. 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 may predict the current prediction unit by using a different motion prediction method. As the motion prediction method, various methods such as a skip method, a merge method, and an AMVP (Advanced Motion Vector Prediction) method may be used.

부호화 장치는, 움직임 추정 또는 이웃 블록의 움직임 정보에 기초하여 현재 블록의 움직임 정보를 생성할 수 있다. 여기서, 움직임 정보는, 움직임 벡터, 참조 영상 인덱스 및 예측 방향 중 적어도 하나를 포함할 수 있다. The encoding apparatus may generate motion information of the current block based on motion estimation or motion information of a neighboring block. Here, the motion information may include at least one of a motion vector, a reference image index, and a prediction direction.

인트라 예측부(125)는 현재 픽쳐 내의 화소 정보인 현재 블록 주변의 참조 픽셀 정보를 기초로 예측 단위를 생성할 수 있다. 현재 예측 단위의 주변 블록이 인터 예측을 수행한 블록이어서, 참조 픽셀이 인터 예측을 수행한 픽셀일 경우, 인터 예측을 수행한 블록에 포함되는 참조 픽셀을 주변의 인트라 예측을 수행한 블록의 참조 픽셀 정보로 대체하여 사용할 수 있다. 즉, 참조 픽셀이 가용하지 않는 경우, 가용하지 않은 참조 픽셀 정보를 가용한 참조 픽셀 중 적어도 하나의 참조 픽셀로 대체하여 사용할 수 있다.The intra prediction unit 125 may generate a prediction unit based on reference pixel information around the current block, which is pixel information in the current picture. When the neighboring block of the current prediction unit is a block on which inter prediction is performed, and thus the reference pixel is a pixel on which inter prediction is performed, the reference pixel included in the block on which the inter prediction is performed is a reference pixel of the block on which the intra prediction is performed. information can be used instead. That is, when the reference pixel is not available, the unavailable reference pixel information may be replaced with 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 directional information is not used when prediction is performed. A mode for predicting luminance information and a mode for predicting chrominance information may be different, and intra prediction mode information used for predicting luminance information or predicted luminance signal information may be utilized to predict chrominance information.

인트라 예측 방법은 예측 모드에 따라 참조 화소에 AIS(Adaptive Intra Smoothing) 필터를 적용한 후 예측 블록을 생성할 수 있다. 참조 화소에 적용되는 AIS 필터의 종류는 상이할 수 있다. 인트라 예측 방법을 수행하기 위해 현재 예측 단위의 인트라 예측 모드는 현재 예측 단위의 주변에 존재하는 예측 단위의 인트라 예측 모드로부터 예측할 수 있다. 주변 예측 단위로부터 예측된 모드 정보를 이용하여 현재 예측 단위의 예측 모드를 예측하는 경우, 현재 예측 단위와 주변 예측 단위의 인트라 예측 모드가 동일하면 소정의 플래그 정보를 이용하여 현재 예측 단위와 주변 예측 단위의 예측 모드가 동일하다는 정보를 전송할 수 있고, 만약 현재 예측 단위와 주변 예측 단위의 예측 모드가 상이하면 엔트로피 부호화를 수행하여 현재 블록의 예측 모드 정보를 부호화할 수 있다.The intra prediction method may generate a prediction block after applying an adaptive intra smoothing (AIS) filter to a reference pixel according to a prediction mode. The type of AIS 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 may be predicted from the intra prediction mode of the prediction unit existing around the current prediction unit. When the prediction mode of the current prediction unit is predicted using mode information predicted from the neighboring prediction unit, if the intra prediction mode of the current prediction unit and the neighboring prediction unit are the same, the current prediction unit and the neighboring prediction unit are used using predetermined flag information It is possible to transmit information indicating that the prediction modes of , and if the prediction modes of the current prediction unit and the neighboring prediction units are different from each other, entropy encoding may be performed to encode the prediction mode information of the current block.

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

변환부(130)에서는 잔차 신호를 주파수 영역으로 변환하여 변환 계수를 갖는 잔차 블록(또는 변환 블록)을 생성한다. 여기서 잔차 신호를 주파수 영역으로 변환하기 위해, 이산 코사인 변환(DCT: Discrete Cosine Transform)기반 변환, 이산 사인 변환(DST: Discreate Sine Transform), KLT(Karhunen Loeve Transform) 등 다양한 변환 기법이 이용될 수 있다. 변환 기법을 편하게 사용하기 위해 기저벡터(basis vector)를 이용하여 행렬 연산을 하게 된다. 이때, 예측 블록이 어떤 예측 모드로 부호화 되었는지에 따라서 행렬 연산 시 변환 기법들을 다양하게 혼합하여 사용할 수도 있다. 예를 들어, 인트라 예측 시 예측 모드에 따라 가로 방향으로는 이산 코사인 변환을 사용하고 세로 방향으로는 이산 사인 변환을 사용 할 수도 있다.The transform unit 130 transforms the residual signal into the frequency domain to generate a residual block (or transform block) having transform coefficients. Here, in order to transform the residual signal into the frequency domain, various transform techniques such as a discrete cosine transform (DCT)-based transform, a discrete sine transform (DST), and a Karhunen Loeve transform (KLT) may be used. . In order to conveniently use the transformation method, matrix operation is performed using a basis vector. In this case, various transformation techniques may be mixed and used during matrix operation according to which prediction mode the prediction block is encoded. For example, in intra prediction, a discrete cosine transform may be used in a horizontal direction and a discrete sine transform may be used in a vertical direction depending on the prediction mode.

양자화부(135)는 변환부(130)에서 주파수 영역으로 변환된 값들을 양자화할 수 있다. 즉, 양자화부(135)는 변환부(130)로부터 생성된 변환 블록의 변환 계수들을 양자화하여, 양자화된 변환 계수를 갖는 양자화된 변환 블록을 생성할 수 있다. 여기서, 양자화 기법은, 데드존 균일 경계 양자화(DZUTQ: Dead Zone Uniform Threshold Quantization) 또는 양자화 가중치 행렬 (Quantization Weighted Matrix) 등을 포함할 수 있다. 이들 양자화 기법을 개량한 개량된 양자화 기법을 이용할 수도 있다. 블록에 따라 또는 영상의 중요도에 따라 양자화 계수는 변할 수 있다. 양자화부(135)에서 산출된 값은 역양자화부(140)와 재정렬부(160)에 제공될 수 있다.The quantization unit 135 may quantize values transformed in the frequency domain by the transform unit 130 . That is, the quantization unit 135 may generate a quantized transform block having the quantized transform coefficient by quantizing the transform coefficients of the transform block generated by the transform unit 130 . Here, the quantization technique may include Dead Zone Uniform Threshold Quantization (DZUTQ) or Quantization Weighted Matrix. An improved quantization technique that improves these quantization techniques may be used. The quantization coefficient may vary according to blocks or the importance of an image. The value calculated by the quantization unit 135 may be provided to the inverse quantization unit 140 and the rearrangement unit 160 .

상기 변환부(130) 및/또는 양자화부(135)는, 영상 부호화 장치(100)에 선택적으로 포함될 수 있다. 즉, 영상 부호화 장치(100)는, 잔차 블록의 잔차 데이터에 대해 변환 또는 양자화 중 적어도 하나를 수행하거나, 변환 및 양자화를 모두 스킵하여 잔차 블록을 부호화할 수 있다. 영상 부호화 장치(100)에서 변환 또는 양자화 중 어느 하나가 수행되지 않거나, 변환 및 양자화 모두 수행되지 않더라도, 엔트로피 부호화부(165)의 입력으로 들어가는 블록을 통상적으로 변환 블록(또는 양자화된 변환 블록)이라 일컫는다.The transform unit 130 and/or the quantizer 135 may be selectively included in the image encoding apparatus 100 . That is, the image encoding apparatus 100 may encode the residual block by performing at least one of transform or quantization on the residual data of the residual block, or skipping both transform and quantization. Even if either transform or quantization is not performed in the image encoding apparatus 100, or neither transform nor quantization is performed, a block entering the input of the entropy encoder 165 is generally referred to as a transform block (or quantized transform block). refers to

재정렬부(160)는 양자화된 잔차값에 대해 계수값의 재정렬을 수행할 수 있다.The rearrangement unit 160 may rearrange the coefficient values on the quantized residual values.

재정렬부(160)는 계수 스캐닝(Coefficient Scanning) 방법을 통해 2차원의 블록 형태 계수를 1차원의 벡터 형태로 변경할 수 있다. 예를 들어, 재정렬부(160)에서는 소정의 스캔 타입을 이용하여 DC 계수부터 고주파수 영역의 계수까지 스캔하여 1차원 벡터 형태로 변경시킬 수 있다. The rearrangement unit 160 may change the two-dimensional block form coefficient into a one-dimensional vector form through a coefficient scanning method. For example, the reordering unit 160 may scan from DC coefficients to coefficients in a high frequency region using a predetermined scan type, and may change it into a one-dimensional vector form.

엔트로피 부호화부(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)로부터 부호화 단위의 잔차값 계수 정보 및 블록 타입 정보, 예측 모드 정보, 분할 단위 정보, 예측 단위 정보 및 전송 단위 정보, 모션 벡터 정보, 참조 프레임 정보, 블록의 보간 정보, 필터링 정보 등 다양한 정보를 부호화할 수 있다. 엔트로피 부호화부(165)에서, 변환 블록의 계수는, 변환 블록 내 부분 블록 단위로, 0이 아닌 계수, 절대값이 1 또는 2보다 큰 계수, 그리고 계수의 부호 등을 나타내는 여러 종류의 플래그를 부호화될 수 있다. 상기 플래그만으로 부호화되지 않는 계수는, 플래그를 통해 부호화된 계수와 실제 변환 블록의 계수 간의 차이의 절대값을 통해 부호화될 수 있다. The entropy encoder 165 receives the residual value coefficient information, block type information, prediction mode information, division unit information, prediction unit information and transmission unit information, motion of the coding unit from the reordering unit 160 and the prediction units 120 and 125 . Various information such as vector information, reference frame information, interpolation information of a block, and filtering information may be encoded. In the entropy encoding unit 165, coefficients of the transform block are encoded in units of subblocks within the transform block, and various kinds of flags indicating non-zero coefficients, coefficients having an absolute value greater than 1 or 2, and signs of coefficients are encoded. can be Coefficients that are not encoded using only the flag may be encoded using an absolute value of a difference between a coefficient encoded through the flag and a coefficient of an actual transform block.

엔트로피 부호화부(165)에서는 재정렬부(160)에서 입력된 부호화 단위의 계수값을 엔트로피 부호화할 수 있다.The entropy encoder 165 may entropy-encode the coefficient values of the coding units input from the reordering unit 160 .

역양자화부(140) 및 역변환부(145)에서는 양자화부(135)에서 양자화된 값들을 역양자화하고 변환부(130)에서 변환된 값들을 역변환한다. The inverse quantizer 140 and the inverse transform unit 145 inversely quantize the values quantized by the quantizer 135 and inversely transform the values transformed by the transform unit 130 .

한편, 역양자화부(140)와 역변환부(145)는 양자화부(135)와 변환부(130)에서 사용한 양자화 방식과 변환 방식을 역으로 사용하여 역 양자화 및 역 변환 할 수 있다. 또한 변환부(130)와 양자화부(135)에서 양자화만을 수행하고 변환을 수행하지 않은 경우에는 역 양자화만을 수행하고 역 변환을 수행하지 않을 수 있다. 만약, 변환 및 양자화를 모두 수행하지 않은 경우, 역 양자화부(140)와역 변환부(145)도 역 변환 및 역 양자화를 모두 수행하지 않거나 영상 부호화 장치(100)에 포함되지 않고 생략 될 수 있다.Meanwhile, the inverse quantization unit 140 and the inverse transform unit 145 may perform inverse quantization and inverse transformation by inversely using the quantization method and the transformation method used by the quantization unit 135 and the transform unit 130 . In addition, when the transform unit 130 and the quantizer 135 perform only quantization and no transform, only inverse quantization and no inverse transform may be performed. If neither transform nor quantization is performed, the inverse quantization unit 140 and the inverse transform unit 145 may not perform both inverse transform and inverse quantization or may be omitted from being included in the image encoding apparatus 100 .

역양자화부(140) 및 역변환부(145)에서 생성된 잔차값(Residual)은 예측부(120, 125)에 포함된 움직임 추정부, 움직임 보상부 및 인트라 예측부를 통해서 예측된 예측 단위와 합쳐져 복원 블록(Reconstructed Block)을 생성할 수 있다. The residual values generated by the inverse quantizer 140 and the inverse transform unit 145 are combined with the prediction units predicted through the motion estimation unit, the motion compensator, and the intra prediction unit included in the prediction units 120 and 125 and restored. You can create a Reconstructed Block.

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

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

오프셋 보정부는 디블록킹을 수행한 영상에 대해 픽셀 단위로 원본 영상과의 오프셋을 보정할 수 있다. 특정 픽쳐에 대한 오프셋 보정을 수행하기 위해 영상에 포함된 픽셀을 일정한 수의 영역으로 구분한 후 오프셋을 수행할 영역을 결정하고 해당 영역에 오프셋을 적용하는 방법 또는 각 픽셀의 에지 정보를 고려하여 오프셋을 적용하는 방법을 사용할 수 있다.The offset correcting unit may correct an offset from the original image in units of pixels with respect to the image on which the deblocking has been performed. In order to perform offset correction on a specific picture, a method of dividing pixels included in an image into a certain number of regions, determining the region to be offset and applying the offset to the region, or taking edge information of each pixel into account can be used to apply

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

메모리(155)는 필터부(150)를 통해 산출된 복원 블록 또는 픽쳐를 저장할 수 있고, 저장된 복원 블록 또는 픽쳐는 인터 예측을 수행 시 예측부(120, 125)에 제공될 수 있다.The memory 155 may store the reconstructed block or picture calculated through the filter unit 150 , and the stored reconstructed block or picture may be provided to the predictors 120 and 125 when 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)가 포함될 수 있다.Referring to FIG. 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, and a filter unit ( 240) and a memory 245 may be included.

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

엔트로피 복호화부(210)는 영상 부호화기의 엔트로피 부호화부에서 엔트로피 부호화를 수행한 것과 반대의 절차로 엔트로피 복호화를 수행할 수 있다. 예를 들어, 영상 부호화기에서 수행된 방법에 대응하여 지수 골롬(Exponential Golomb), CAVLC(Context-Adaptive Variable Length Coding), CABAC(Context-Adaptive Binary Arithmetic Coding)과 같은 다양한 방법이 적용될 수 있다. 엔트로피 복호화부(210)에서, 변환 블록의 계수는, 변환 블록 내 부분 블록 단위로, 0이 아닌 계수, 절대값이 1 또는 2보다 큰 계수, 그리고 계수의 부호 등을 나타내는 여러 종류의 플래그를 기반으로 복호화될 수 있다. 상기 플래그만으로 표현되지 않는 계수는, 플래그를 통해 표현되는 계수와 시그날링된 계수의 합을 통해 복호화될 수 있다. The entropy decoding unit 210 may perform entropy decoding in a procedure opposite to that performed by 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 corresponding to the method performed by the image encoder. In the entropy decoding unit 210, the coefficients of the transform block are based on various kinds of flags indicating non-zero coefficients, coefficients with absolute values greater than 1 or 2, and signs of coefficients in units of partial blocks within the transform block. can be decrypted as Coefficients that are not expressed only by the flag may be decoded through the sum of the coefficients expressed through the flags and the signaled coefficients.

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

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

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

역변환부(225)는 역양자화된 변환 계수를 소정의 변환 방법으로 역변환을 수행할 수 있다. 이때, 변환 방법은 예측 방법(인터/인트라 예측), 블록의 크기/형태, 인트라 예측 모드 등에 관한 정보를 기반으로 결정될 수 있다.The inverse transform unit 225 may perform inverse transform on the inverse quantized transform coefficient using a predetermined transform method. In this case, the transformation method may be determined based on information about a prediction method (inter/intra prediction), a size/shape of a block, an intra prediction mode, and the like.

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

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

인터 예측을 수행하기 위해 부호화 단위를 기준으로 해당 부호화 단위에 포함된 예측 단위의 모션 예측 방법이 스킵 모드(Skip Mode), 머지 모드(Merge 모드), AMVP 모드(AMVP Mode) 중 어떠한 방법인지 여부를 판단할 수 있다.In order to perform inter prediction, based on the coding unit, it is determined whether the motion prediction method of the prediction unit included in the corresponding coding unit is a skip mode, a merge mode, or an AMVP mode. can judge

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

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

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

영상 부호화기로부터 해당 블록 또는 픽쳐에 디블록킹 필터를 적용하였는지 여부에 대한 정보 및 디블록킹 필터를 적용하였을 경우, 강한 필터를 적용하였는지 또는 약한 필터를 적용하였는지에 대한 정보를 제공받을 수 있다. 영상 복호화기의 디블록킹 필터에서는 영상 부호화기에서 제공된 디블록킹 필터 관련 정보를 제공받고 영상 복호화기에서 해당 블록에 대한 디블록킹 필터링을 수행할 수 있다. Information on whether a deblocking filter is applied to a corresponding block or picture and information on whether a strong filter or a weak filter is applied when the deblocking filter is applied may be provided from the video encoder. The deblocking filter of the image decoder may receive deblocking filter-related information provided from the image encoder, and the image decoder may perform deblocking filtering on 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 during encoding and information on the offset value.

ALF는 부호화기로부터 제공된 ALF 적용 여부 정보, ALF 계수 정보 등을 기초로 부호화 단위에 적용될 수 있다. 이러한 ALF 정보는 특정한 파라메터 셋에 포함되어 제공될 수 있다.ALF may be applied to a coding unit based on information on whether ALF is applied, ALF coefficient information, etc. provided from the encoder. Such ALF information may be provided by being included in a specific parameter set.

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

부호화 블록은 적어도 하나 이상의 예측 블록으로 분할될 수 있고, 각 예측 블록은 추가 분할 과정을 통해 적어도 하나 이상의 부분 블록(또는 예측 부분 블록)으로 분할될 수 있다. 이때, 각각의 부분 블록은, 서로 다른 인트라 예측 모드를 이용하여 부호화될 수 있다. 즉, 부호화 블록 또는 예측 블록은 다중 인트라 예측 모드(또는 다중 모드)를 이용하여 복수의 예측 블록 또는 복수의 부분 블록으로 분할될 수 있다. 예측 블록은 기 설정된 패턴에 따라 복수의 부분 블록으로 분할될 수 있다. 이때, 예측 블록의 분할 형태는 영상 부호화 장치 및 영상 복호화 장치에서 기 설정되어 사용될 수 있다. A coding block may be divided into at least one prediction block, and each prediction block may be divided into at least one or more partial blocks (or prediction partial blocks) through an additional division process. In this case, each partial block may be encoded using different intra prediction modes. That is, the coding block or the prediction block may be divided into a plurality of prediction blocks or a plurality of partial blocks using a multiple intra prediction mode (or multiple modes). The prediction block may be divided into a plurality of partial blocks according to a preset pattern. In this case, the segmentation form of the prediction block may be preset and used in an image encoding apparatus and an image decoding apparatus.

이하, 도면을 참조하여, 다중 인트라 예측 모드 정보를 부호화/복호화하는 것에 대해 상세히 살펴보기로 한다.Hereinafter, encoding/decoding of multiple intra prediction mode information will be described in detail with reference to the drawings.

도 6은 부호화 과정에서 다중 인트라 예측 모드의 이용 여부를 결정하는 과정을 나타낸 흐름도이다. 본 실시예에서, 현재 블록은, 현재 인트라 예측 모드로 부호화되는 예측 블록을 나타내는 것으로 가정한다. 경우에 따라, 현재 블록은, 부호화 블록, 변환 블록 또는 예측 블록이 분할됨으로써 생성되는 부분 블록 등을 의미할 수도 있다. 6 is a flowchart illustrating a process of determining whether to use a multi-intra prediction mode in an encoding process. In this embodiment, it is assumed that the current block represents a prediction block currently encoded in the intra prediction mode. In some cases, the current block may mean a partial block generated by splitting a coding block, a transform block, or a prediction block.

먼저, 부호화 장치는 현재 블록에 인접한 주변 화소들 중 화소값이 두드러지게 변화하는 지점(이하, '변곡점'이라 호칭함)을 탐색할 수 있다(S601). 변곡점은 주변 화소 및 주변 화소에 이웃하는 이웃 화소 사이의 화소값 변화가 기 설정된 한계값 이상인 지점, 또는 주변 화소 및 주변 화소에 이웃하는 이웃 화소 사이의 화소값 변화가 가장 큰 지점 등을 의미할 수 있다. First, the encoding apparatus may search for a point (hereinafter, referred to as an 'inflection point') at which a pixel value significantly changes among neighboring pixels adjacent to the current block ( S601 ). The inflection point may mean a point at which a pixel value change between a neighboring pixel and a neighboring pixel adjacent to the neighboring pixel is equal to or greater than a preset threshold, or a point at which a pixel value change between a neighboring pixel and a neighboring pixel neighboring the neighboring pixel is greatest. there is.

도 7은 변곡점을 탐색하는 예를 설명하기 위한 도면이다. 설명의 편의를 위해, 현재 블록은 4x4 크기의 예측 블록인 것으로 가정한다. 7 is a diagram for explaining an example of searching for an inflection point. For convenience of description, it is assumed that the current block is a 4x4 prediction block.

부호화 장치는 현재 블록에 인접한 주변 화소들 각각에 대한 화소값 변화 정도(이하, '변곡값'이라 호칭함)를 계산할 수 있다. 변곡값은 현재 블록에 인접한 주변 화소 및 주변 화소에 인접한 이웃 화소 사이의 변화량(또는 차분값), 또는 주변 화소에 이웃한 이웃 화소들 사이의 변화량(또는 차분값)에 기초하여 계산될 수 있다. The encoding apparatus may calculate a pixel value change degree (hereinafter, referred to as an 'inflection value') for each of the neighboring pixels adjacent to the current block. The inflection value may be calculated based on a change amount (or a difference value) between a neighboring pixel adjacent to the current block and a neighboring pixel adjacent to the neighboring pixel, or a change amount (or a difference value) between neighboring pixels adjacent to the neighboring pixel.

여기서, 현재 블록에 인접한 주변 화소는, 현재 블록의 상단 경계에 인접한 화소, 현재 블록의 좌측 경계에 인접한 화소 및 현재 블록의 코너(예컨대, 좌측 상단 코너, 우측 상단 코너 및 좌측 하단 코너)에 인접한 화소 중 적어도 하나를 포함할 수 있다. 일 예로, 도 7에 도시된 예에서는, 현재 블록의 주변 화소로 a~k 가 예시되었다. Here, the neighboring pixels adjacent to the current block include pixels adjacent to the upper boundary of the current block, pixels adjacent to the left boundary of the current block, and pixels adjacent to corners (eg, upper left corner, upper right corner, and lower left corner) of the current block. may include at least one of For example, in the example shown in FIG. 7 , a to k are exemplified as neighboring pixels of the current block.

다른 예로, 부호화 장치는 현재 블록에 인접한 주변 화소들 중 현재 블록의 코너에 인접한 화소(예컨대, 현재 블록의 좌측 상단 코너에 인접한 화소, 현재 블록의 좌측 하단 코너에 인접한 화소 또는 현재 블록의 우측 상단 코너에 인접한 화소 중 적어도 하나)를 제외한 잔여 주변 화소들을 대상으로, 변곡값을 계산할 수도 있다. 또는, 부호화 장치는 현재 블록에 인접한 주변 화소들 중 최우측 화소 또는 최하단 화소를 제외한 잔여 주변 화소들을 대상으로, 변곡값을 계산할 수도 있다. 일 예로, 부호화 장치는 도 7에 도시된 예에서, a~k 주변 화소들 중 f 및 k 화소를 제외한 잔여 화소에 대한 변곡값을 계산할 수 있다. As another example, the encoding apparatus may configure a pixel adjacent to a corner of the current block among neighboring pixels adjacent to the current block (eg, a pixel adjacent to an upper-left corner of the current block, a pixel adjacent to a lower-left corner of the current block, or an upper-right corner of the current block) The inflection value may be calculated with respect to the remaining neighboring pixels except for at least one of the pixels adjacent to . Alternatively, the encoding apparatus may calculate the inflection value for the remaining neighboring pixels except for the rightmost pixel or the lowest pixel among neighboring pixels adjacent to the current block. For example, in the example shown in FIG. 7 , the encoding apparatus may calculate an inflection value for the remaining pixels excluding pixels f and k among pixels a to k.

현재 예측 블록의 크기와 모양에 따라 주변 화소의 개수 또는 범위는 달라질 수 있다. 이에 따라, 현재 블록의 크기와 모양에 따라, 변곡값 계산 대상이 되는 주변 화소의 개수 또는 범위 또한 달라질 수 있다. The number or range of neighboring pixels may vary according to the size and shape of the current prediction block. Accordingly, according to the size and shape of the current block, the number or range of neighboring pixels for which the inflection value is calculated may also vary.

수학식 4는 변곡값 계산 방법의 일 예를 나타낸 것이다.Equation 4 shows an example of a method for calculating an inflection value.

Figure 112017038055711-pat00004
Figure 112017038055711-pat00004

수학식 4에서, 현재 주변 화소는, 현재 블록에 인접한 주변 화소 중 변곡값 계산 대상이 되는 주변 화소를 나타낸다. 현재 주변 화소의 변곡값은, 현재 주변 화소에 인접한 인접 주변 화소들의 차분에 절대값을 취한 값으로 계산될 수 있다. 일 예로, 현재 블록의 상단에 인접한 주변 화소들(예컨대, 도 7의 화소 'b~e')의 변곡값은, 주변 화소의 좌측에 인접한 주변 화소 및 주변 화소의 우측에 인접한 주변 화소 사이의 차분값에 기초하여 계산될 수 있다. 현재 블록의 좌측에 인접하는 주변 화소들(예컨대, 도 7의 화소 'g~j')의 변곡값은 주변 화소의 상단에 인접한 주변 화소 및 주변 화소의 하단에 인접한 주변 화소 사이의 차분값에 기초하여 계산될 수 있다. 또한, 현재 블록의 좌측 상단 코너에 인접한 주변 화소(예컨대, 도 7의 화소 'a')는 주변 화소의 하단에 인접한 주변 화소 및 주변 화소의 우측에 인접한 주변 화소 사이의 차분값에 기초하여 계산될 수 있다. In Equation 4, the current neighboring pixel represents a neighboring pixel to be calculated inflection value among neighboring pixels adjacent to the current block. The inflection value of the current neighboring pixel may be calculated as a value obtained by taking an absolute value from a difference between neighboring neighboring pixels adjacent to the current neighboring pixel. As an example, the inflection value of the neighboring pixels adjacent to the upper end of the current block (eg, pixels 'b to e' of FIG. 7 ) is a difference between the neighboring pixel adjacent to the left side of the neighboring pixel and the neighboring pixel adjacent to the right side of the neighboring pixel It can be calculated based on the value. The inflection value of the neighboring pixels adjacent to the left side of the current block (eg, pixels 'g to j' in FIG. 7 ) is based on a difference value between the neighboring pixel adjacent to the upper end of the neighboring pixel and the neighboring pixel adjacent to the lower end of the neighboring pixel can be calculated by In addition, the neighboring pixel adjacent to the upper left corner of the current block (eg, pixel 'a' in FIG. 7 ) is to be calculated based on a difference value between the neighboring pixel adjacent to the lower end of the neighboring pixel and the neighboring pixel adjacent to the right of the neighboring pixel. can

앞서, 설명한 바와 같이, 현재 블록의 주변 화소들 중 일부(예컨대, 주변 화소들 중 현재 블록의 경계에 인접하지 않은 화소, f 및 k)는 변곡값 계산 대상에서 제외될 수 있다. 현재 블록의 주변 화소들 중 변곡값 계산 대상에서 제외되는 주변 화소들의 변곡값은 기 설정된 값(예컨대, 0)으로 설정될 수 있다.As described above, some of the neighboring pixels of the current block (eg, pixels that are not adjacent to the boundary of the current block, f and k among the neighboring pixels) may be excluded from calculation of the inflection value. Inflection values of neighboring pixels of the current block, which are excluded from calculation of inflection values, may be set to a preset value (eg, 0).

주변 화소들에 대한 변곡값 계산이 완료되면, 부호화 장치는, 계산된 변곡값을 기초로, 변곡점을 선택할 수 있다. 일 예로, 부호화 장치는 변곡값이 가장 큰 주변 화소 또는 변곡값이 임계값 이상인 주변 화소 중 변곡값이 가장 큰 주변 화소를 변곡점으로 설정할 수 있다. 일 예로, 도 7에 도시된 예에서, 주변 화소 b의 변곡값이 최대인 경우, 부호화 장치는 도 7에 도시된 'O' 지점을 변곡점으로 설정할 수 있다.When the calculation of the inflection values for the neighboring pixels is completed, the encoding apparatus may select an inflection point based on the calculated inflection values. As an example, the encoding apparatus may set a neighboring pixel having the largest inflection value or a neighboring pixel having the largest inflection value among neighboring pixels having an inflection value equal to or greater than a threshold value as the inflection point. For example, in the example illustrated in FIG. 7 , when the inflection value of the neighboring pixel b is the maximum, the encoding apparatus may set the point 'O' illustrated in FIG. 7 as the inflection point.

동일한 최대 변곡값을 갖는 주변 화소가 복수개 존재하는 경우, 부호화 장치는 상기 복수개의 주변 화소를 대상으로, 변곡값을 재산정 하거나, 기 설정된 우선 순위에 기초하여, 복수개의 주변 화소들 중 어느 하나를 변곡점으로 선택할 수 있다.When there are a plurality of neighboring pixels having the same maximum inflection value, the encoding device recalculates the inflection value for the plurality of neighboring pixels or selects any one of the plurality of neighboring pixels based on a preset priority It can be selected as an inflection point.

일 예로, 동일한 최대 변곡값을 갖는 주변 화소가 복수개 존재하는 경우, 부호화 장치는 해당 변곡점들의 변곡값을 재산정하되, 변곡값의 재산정시 이용되는 주변 화소들의 개수 또는 위치를 조정할 수 있다. 일 예로, 부호화 장치는 주변 화소의 변곡값 재계산시, 주변 화소에 인접한 인접 화소의 개수를 양방향(또는 단방향)으로 1개씩 증가시킬 수 있다. 이에 따라, 최대 변곡값을 갖는 주변 화소가 현재 블록의 상단에 인접한 주변 화소인 경우, 상기 주변 화소의 좌측에 인접한 2개의 주변 화소 및 상기 주변 화소의 우측에 인접한 2개의 주변 화소를 이용하여, 상기 주변 화소의 변곡값을 재산정할 수 있다.For example, when there are a plurality of neighboring pixels having the same maximum inflection value, the encoding apparatus may recalculate the inflection values of the corresponding inflection points, but may adjust the number or positions of neighboring pixels used when the inflection value is recalculated. For example, when recalculating the inflection value of the neighboring pixel, the encoding apparatus may increase the number of neighboring pixels adjacent to the neighboring pixel by one in both directions (or unidirectional). Accordingly, when the neighboring pixel having the maximum inflection value is the neighboring pixel adjacent to the upper end of the current block, using two neighboring pixels adjacent to the left side of the neighboring pixel and two neighboring pixels adjacent to the right side of the neighboring pixel, Inflection values of neighboring pixels may be recalculated.

다른 예로, 동일한 최대 변곡값을 갖는 주변 화소가 복수개 존재하는 경우, 부호화 장치는 특정 위치의 화소와 가까운 주변 화소를 변곡점으로 선택할 수도 있다. 예컨대, 부호화 장치는 현재 블록의 좌측 상단 주변 화소에 가까운 변곡점일 수록 더 높은 우선순위를 부여할 수 있다. As another example, when a plurality of neighboring pixels having the same maximum inflection value exist, the encoding apparatus may select a neighboring pixel close to the pixel at a specific position as the inflection point. For example, the encoding apparatus may give a higher priority to an inflection point closer to the upper left peripheral pixel of the current block.

다른 예로, 부호화 장치는 동일한 최대 변곡값을 갖는 주변 화소가 복수개 존재하는 경우, 해당 변곡점들의 변곡값을 재산정하고, 재선정된 변곡값을 기초로 변곡점을 결정하되, 변곡값을 재선정하였음에도 불구하고, 최대 변곡값을 갖는 주변 화소가 복수개 존재할 경우, 우선 순위에 기초하여 변곡점을 선택할 수도 있다.As another example, when a plurality of neighboring pixels having the same maximum inflection value exist, the encoding apparatus recalculates the inflection values of the corresponding inflection points and determines the inflection point based on the reselected inflection value, even though the inflection value is reselected. , when there are a plurality of neighboring pixels having the maximum inflection value, the inflection point may be selected based on priority.

상술한 예에서는, 현재 블록에 인접한 주변 화소 및 주변 화소에 이웃하는 주변 화소들에 기초하여 변곡점이 결정되는 것으로 설명하였다. 설명한 예와 달리, 변곡점은, 현재 블록에 이웃한 주변 블록들의 부호화 파라미터를 기초로 결정될 수도 있다. 여기서, 부호화 파라미터는 주변 블록들을 부호화하는데 이용되는 파라미터들로, 인트라 예측 모드, 움직임 벡터 등의 예측 관련 정보를 포함할 수 있다. 일 예로, 변곡점은, 현재 블록에 이웃하는 주변 블록 간 인트라 예측 모드의 차이가 기 설정된 임계값 이상인 경우 또는 현재 블록에 이웃하는 주변 블록 간 움직임 벡터의 차이가 기 설정된 임계값 이상인 경우 등에 있어서, 주변 블록의 경계를 변곡점으로 설정할 수도 있다. 이처럼, 주변 블록 간 부호화 파라미터의 차이가 큰 경우, 주변 블록의 경계에서 급격한 변화가 발생한 것이라 예측할 수 있으므로, 주변 블록의 경계를 변곡점으로 삼아 부호화/복호화 효율을 향상시킬 수 있다. 복호화 장치 역시, 주변 블록들의 부호화 파라미터를 이용하여, 변곡점을 결정할 수 있다.In the above-described example, it has been described that the inflection point is determined based on the neighboring pixel adjacent to the current block and the neighboring pixels adjacent to the neighboring pixel. Unlike the described example, the inflection point may be determined based on encoding parameters of neighboring blocks adjacent to the current block. Here, the encoding parameters are parameters used to encode neighboring blocks, and may include prediction-related information such as an intra prediction mode and a motion vector. As an example, the inflection point is when the difference in intra prediction modes between neighboring blocks neighboring the current block is equal to or greater than a preset threshold or when the difference in motion vectors between neighboring blocks neighboring the current block is equal to or greater than a preset threshold, etc. Block boundaries can also be set as inflection points. As described above, when the difference in encoding parameters between neighboring blocks is large, it can be predicted that a sudden change occurs at the boundary of the neighboring blocks, so that encoding/decoding efficiency can be improved by using the boundary of the neighboring blocks as an inflection point. The decoding apparatus may also determine the inflection point by using the encoding parameters of the neighboring blocks.

변곡점이 결정되면, 부호화 장치는 변곡점을 기준으로, 현재 블록의 분할 형태를 결정할 수 있다(S602).When the inflection point is determined, the encoding apparatus may determine a division form of the current block based on the inflection point ( S602 ).

도 8은 현재 블록의 형태에 따른 분할 형태를 예시한 도면이다. 8 is a diagram illustrating a division shape according to the shape of a current block.

도 8에 도시된 예에서, 현재 블록은 적어도 하나의 기준선에 따라, 두개 이상의 부분 블록으로 분할될 수 있다. 이때, 현재 블록이 분할됨으로써 생성되는 부분 블록은, 직사각형 형태뿐만 아니라, 삼각형 또는 사다리꼴 형태를 띨 수도 있다. 도 8의 식별부호 801은 현재 블록이 정사각형 형태일 때, 18개의 분할선(또는 18개의 분할 형태)이 존재할 수 있음을 예시한 것이고, 도 8의 식별부호 802 및 803은 현재 블록이 직사각형 형태일 때, 20개의 분할선(또는 20개의 분할형태)를 가질 수 있음을 예시한 것이다. 다만, 현재 블록의 분할 형태는 도시된 예에 한정되는 것은 아니라 할 것이다. 도시된 것 이외에도, 다양한 형태의 대각 분할 또는 이분 분할이 적용될 수 있다. In the example shown in FIG. 8 , the current block may be divided into two or more partial blocks according to at least one reference line. In this case, a partial block generated by dividing the current block may have a triangular or trapezoidal shape as well as a rectangular shape. Identifier 801 of FIG. 8 exemplifies that 18 dividing lines (or 18 division shapes) may exist when the current block has a square shape, and IDs 802 and 803 of FIG. 8 indicate that the current block has a rectangular shape In this case, it is exemplified that it can have 20 dividing lines (or 20 dividing lines). However, the division form of the current block is not limited to the illustrated example. In addition to those shown, various types of diagonal division or bipartite division may be applied.

부호화 장치는 결정된 변곡점을 시작점으로 하는 분할선 또는 결정된 변곡점과 가장 가까운 시작점으로 하는 분할선을 선택하고, 선택된 분할선에 따라, 현재 블록을 분할할 수 있다. 일 예로, 변곡점의 위치가 분할선의 좌측 또는 상단 시작점과 일치하지 않는 경우, 부호화 장치는 변곡점의 위치를 가장 가까운 분할선의 시작점으로 변경할 수 있다. The encoding apparatus may select a dividing line having the determined inflection point as a starting point or a dividing line having a starting point closest to the determined inflection point, and divide the current block according to the selected dividing line. For example, when the position of the inflection point does not coincide with the left or upper starting point of the dividing line, the encoding apparatus may change the position of the inflection point to the closest starting point of the dividing line.

이후, 부호화 장치는 변곡점으로부터 어떠한 형태로 현재 블록을 분할할 것인지를 결정하기 위해, 변곡점 주변 화소의 기울기 정보를 계산할 수 있다. Thereafter, the encoding apparatus may calculate gradient information of pixels around the inflection point in order to determine how to divide the current block from the inflection point.

일 예로, 도 9는 주변 화소의 기울기 정보를 계산하는 예를 설명하기 위한 도면이다. 설명의 편의를 위해, 현재 블록의 크기는 4x4이고, 변곡점은 b1 인 것으로 가정한다.As an example, FIG. 9 is a diagram for explaining an example of calculating inclination information of neighboring pixels. For convenience of description, it is assumed that the size of the current block is 4x4 and the inflection point is b1.

부호화 장치는 변곡점을 기초로 선택된 N 개의 화소를 이용하여, 기울기 정보를 계산할 수 있다. 일 예로, 부호화 장치는 도 9에 도시된 예에서와 같이, 변곡점 b1을 포함하는 3x3 블록을 구성하고, 구성된 3x3 블록에 포함된 화소들을 기초로 기울기 정보를 계산할 수 있다.The encoding apparatus may calculate gradient information by using the N pixels selected based on the inflection point. For example, as in the example shown in FIG. 9 , the encoding apparatus may configure a 3x3 block including the inflection point b1, and calculate gradient information based on pixels included in the configured 3x3 block.

현재 블록의 변곡점이 현재 블록의 상단에 위치한 주변 화소일 경우, 변곡점은 3x3 블록의 최하단행에 포함될 수 있다. 반면, 현재 블록의 변곡점이 현재 블록의 좌측에 위치한 주변 화소일 경우, 변곡점은 3x3 블록의 최우측 열에 포함될 수 있다. 즉, 현재 블록의 변곡점이 상단에 존재하는 경우, 변곡점의 주변 화소 및 변곡점의 상단 방향에 위치한 화소들을 중심으로 3x3 블록을 구성할 수 있다. 반면, 현재 블록의 변곡점이 좌측에 존재하는 경우, 변곡점의 주변 화소 및 변곡점의 좌측 방향에 위치한 화소들을 중심으로 3x3 블록을 구성할 수 있다.When the inflection point of the current block is a neighboring pixel located at the top of the current block, the inflection point may be included in the lowest row of the 3x3 block. On the other hand, when the inflection point of the current block is a neighboring pixel located on the left side of the current block, the inflection point may be included in the rightmost column of the 3x3 block. That is, when the inflection point of the current block is located at the top, the 3x3 block may be configured with pixels surrounding the inflection point and pixels located in the upper direction of the inflection point. On the other hand, when the inflection point of the current block exists on the left, a 3x3 block may be configured with pixels surrounding the inflection point and pixels located in the left direction of the inflection point.

부호화 장치는 변곡점에 인접한 주변 화소들을 이용하여, 가로 방향 기울기 및 세로 방향 기울기를 계산하고, 가로 방향 기울기 및 세로 방향 기울기를 기초로, 현재 블록에 대한 기울기 정보를 계산할 수 있다. 일 예로, 수학식 5는 기울기 정보를 계산하기 위한 일련의 과정을 나타낸 것이다.The encoding apparatus may calculate a horizontal gradient and a vertical gradient by using neighboring pixels adjacent to the inflection point, and may calculate gradient information on the current block based on the horizontal gradient and the vertical gradient. As an example, Equation 5 shows a series of processes for calculating slope information.

Figure 112017038055711-pat00005
Figure 112017038055711-pat00005

Figure 112017038055711-pat00006
Figure 112017038055711-pat00006

Figure 112017038055711-pat00007
Figure 112017038055711-pat00007

상기 수학식 5에서, fx(x, y)는 가로 방향의 기울기 정도를 나타내고, fy(x, y)는 세로 방향의 기울기 정도를 나타낸다. 현재 블록의 기울기는 세로 방향의 기울기 값에 대한 가로 방향 기울기 값에 아크 탄젠트를 취함으로써 획득될 수 있다. 현재 블록의 기울기 값을 통해 현재 블록의 윤곽선 방향을 알 수 있다.In Equation 5, f x (x, y) represents the degree of inclination in the horizontal direction, and f y (x, y) represents the degree of inclination in the vertical direction. The gradient of the current block may be obtained by taking the arc tangent to a horizontal gradient value with respect to a vertical gradient value. The direction of the outline of the current block can be known through the gradient value of the current block.

상술한 예에서는, 현재 블록에 이웃한 주변 화소 및 주변 화소에 인접한 주변 화소들을 기초로 기울기 값이 계산되는 것으로 설명하였다. 다른 예로, 현재 블록의 기울기는 현재 블록에 이웃하는 주변 블록들의 부호화 파라미터를 기초로 결정될 수도 있다. 일 예로, 기울기 값은 변곡점 주변의 주변 블록들의 인트라 예측 모드(또는 인트라 예측 모드 각도) 또는 변곡점 주변의 주변 블록들의 모션 벡터 등을 기초로 결정될 수 있다. 변곡점이 주변 블록들 사이의 경계에 위치하는 경우, 부호화 장치는 변곡점에 위치한 주변 블록들 중 어느 블록의 부호화 파라미터를 이용하여 기울기 값을 결정할 것인지를 나타내기 위한 인덱스 정보를 부호화할 수 있다. 여기서, 인덱스 정보는 주변 블록들 중 어느 하나를 나타내는 정보일 수 있다.In the above-described example, it has been described that the gradient value is calculated based on the neighboring pixels adjacent to the current block and the neighboring pixels adjacent to the neighboring pixels. As another example, the slope of the current block may be determined based on encoding parameters of neighboring blocks adjacent to the current block. As an example, the gradient value may be determined based on intra prediction modes (or intra prediction mode angles) of neighboring blocks around the inflection point or motion vectors of neighboring blocks around the inflection point. When the inflection point is located at the boundary between the neighboring blocks, the encoding apparatus may encode index information indicating which block of the neighboring blocks located at the inflection point will use the encoding parameter to determine the gradient value. Here, the index information may be information indicating any one of the neighboring blocks.

현재 블록의 기울기가 계산되면, 부호화 장치는 변곡점의 위치 및 기울기 정도를 고려하여, 현재 블록에 대한 최적의 분할 형태를 결정할 수 있다. 여기서, 최적의 분할 형태는, 현재 블록의 변곡점을 시작점으로 하는 분할선 중 현재 블록의 기울기 각도와 일치하는 기울기 각도를 갖는 분할선, 또는 현재 블록의 기울기 각도와 가장 유사한 기울기 각도를 갖는 분할선(즉, 현재 블록의 기울기 각도와의 차이가 최소인 기울기 각도를 갖는 분할선)을 이용한 것일 수 있다. 이때, 현재 블록의 기울기 각도와 가장 유사한 기울기 각도를 갖는 분할 형태가 복수개 존재하는 경우, 부호화 장치는 기 설정된 우선 순위에 따라, 우선 순위가 높은 분할 형태를 선택할 수도 있다.When the gradient of the current block is calculated, the encoding apparatus may determine an optimal partitioning form for the current block in consideration of the position of the inflection point and the degree of inclination. Here, the optimal division form is a dividing line having an inclination angle coincident with the inclination angle of the current block among dividing lines using the inflection point of the current block as a starting point, or a dividing line having an inclination angle most similar to the inclination angle of the current block ( That is, a dividing line having an inclination angle with a minimum difference from the inclination angle of the current block) may be used. In this case, when there are a plurality of division types having a slope angle most similar to the slope angle of the current block, the encoding apparatus may select a division type having a higher priority according to a preset priority.

부호화 장치는 현재 블록의 분할 형태를 결정하기 위한 정보를 부호화하고, 부호화된 정보를 비트스트림을 통해 복호화 장치로 전송할 수 있다. 현재 블록의 분할 형태를 결정하기 위한 정보는 예측 블록 단위 또는 상위 헤더를 통해 부호화될 수 있다. 여기서, 상위 헤더는, 부호화 블록 계층, 슬라이스 계층, 픽처 계층, 시퀀스 계층 및 비디오 계층 등을 의미할 수 있다.The encoding apparatus may encode information for determining the division form of the current block, and transmit the encoded information to the decoding apparatus through a bitstream. Information for determining the splitting form of the current block may be encoded in units of prediction blocks or through higher headers. Here, the upper header may mean a coding block layer, a slice layer, a picture layer, a sequence layer, a video layer, and the like.

현재 블록의 분할 형태를 결정하기 위한 정보는, 현재 블록의 분할 형태를 식별하기 위한 인덱스, 변곡점의 위치 또는 기울기 정보 중 적어도 하나를 포함할 수 있다. 일 예로, 변곡점의 위치는 예측 블록 단위 또는 상위 헤더를 통해 부호화되어 복호화 장치로 전송될 수 있다. The information for determining the partition shape of the current block may include at least one of an index for identifying the partition shape of the current block, location of an inflection point, or slope information. For example, the position of the inflection point may be encoded in units of prediction blocks or through higher headers and transmitted to the decoding apparatus.

다른 예로, 복호화 장치는 부호화 장치와 동일한 방법으로, 현재 블록의 분할 형태를 결정할 수도 있다. 일 예로, 복호화 장치는, 주변 블록들 사이의 화소값 변화량을 기초로, 변곡점을 유도하고, 유도된 변곡점을 중심으로 N 개의 화소를 이용해 기울기 정보를 계산한 뒤, 기 설정된 분할 패턴 중 어느 하나를 현재 블록의 분할 형태를 결정할 수 있다.As another example, the decoding apparatus may determine the splitting form of the current block in the same way as the encoding apparatus. For example, the decoding apparatus derives an inflection point based on the amount of change in pixel values between neighboring blocks, calculates gradient information using N pixels around the induced inflection point, and then selects any one of the preset division patterns. The division type of the current block may be determined.

이때, 부호화 장치는 다중 인트라 예측 모드를 이용할 것인지 여부(즉, 한 현재 블록을 복수의 부분 블록으로 분할하여 인트라 예측을 수행할 것인지 여부)에 대한 정보를 부호화하고, 비트스트림을 통해 부호화된 정보를 전송할 수 있다. 복호화 장치는 상기 정보를 부호화하고, 상기 정보가 현재 블록을 복수의 부분 블록으로 나누어 인트라 예측을 수행할 것을 나타내는 경우에만, 현재 블록을 복수의 부분 블록으로 분할할 수 있다. In this case, the encoding apparatus encodes information on whether to use the multiple intra prediction mode (that is, whether to perform intra prediction by dividing one current block into a plurality of partial blocks), and transmits the encoded information through the bitstream. can be transmitted The decoding apparatus may encode the information and divide the current block into a plurality of partial blocks only when the information indicates that intra prediction is to be performed by dividing the current block into a plurality of partial blocks.

현재 블록에 대한 분할 형태가 결정되면, 부호화 장치는 현재 블록에 포함된 각 부분 블록에 대한 인트라 예측 모드를 결정할 수 있다(S603). 이때, 부호화 장치는 각 부분 블록에 서로 다른 인트라 예측 모드를 할당할 수 있다. When the partitioning form of the current block is determined, the encoding apparatus may determine an intra prediction mode for each partial block included in the current block ( S603 ). In this case, the encoding apparatus may allocate different intra prediction modes to each partial block.

부호화 장치는, 부분 블록에 대해 인트라 예측 모드별 RDO(Rate Distortion Optimization)를 수행함으로써 계산되는 RD-비용값(Rate Distortion-Cost)에 기초하여, 현재 블록에 포함된 각 부분 블록의 인트라 예측 모드를 결정할 수 있다. 일 예로, 부호화 장치는 현재 블록에 포함된 각 부분 블록에 대해 RD-비용값이 최소가 되는 인트라 예측 모드를, 각 부분 블록의 인트라 예측 모드로 결정할 수 있다.The encoding apparatus determines the intra prediction mode of each partial block included in the current block based on a Rate Distortion-Cost calculated by performing Rate Distortion Optimization (RDO) for each intra prediction mode on the partial block. can decide As an example, the encoding apparatus may determine the intra prediction mode in which the RD-cost value for each partial block included in the current block is minimized as the intra prediction mode of each partial block.

RDO를 수행함에 있어서, 부호화 장치는, 모든 이용 가능한 인트라 예측 모드를 대상으로 RD-비용값을 계산할 수도 있고, 일부 인트라 예측 모드를 대상으로 RD-비용값을 계산할 수도 있다. 일부 인트라 예측 모드는, 영상 부호화 장치 및 영상 복호화 장치에서 동일하게 설정되어 사용될 수 있다. 또는, 일부 인트라 예측 모드는, 현재 블록과 인접한 참조 화소만을 이용하는 인트라 예측 모드만을 포함할 수도 있다.In performing RDO, the encoding apparatus may calculate the RD-cost value for all available intra prediction modes or calculate the RD-cost value for some intra prediction modes. Some intra prediction modes may be set and used in the same manner in the image encoding apparatus and the image decoding apparatus. Alternatively, some intra prediction modes may include only the intra prediction mode using only reference pixels adjacent to the current block.

다른 예로, 일부 인트라 예측 모드는, 현재 블록에 인접한 주변 블록의 인트라 예측 모드 및 기 설정된 추가 인트라 예측 모드 중 적어도 하나를 포함할 수도 있다. 일 예로, 주변 블록의 인트라 예측 모드가 비방향성 모드인 경우, 모든 비방향성 모드와 선택 빈도가 높은 일부 방향성 예측 모드(예컨대, 수직 방향 예측 모드, 수평 방향 예측 모드 등) 등을 후보로 삼아 RDO를 수행할 수 있다. 또는, 주변 블록의 인트라 예측 모드가 방향성 모드인 경우, 모든 비방형성 예측 모드와 주변 블록의 인트라 예측 모드 및 주변 블록의 인트라 예측 모드와 유사한 방향을 갖는 인트라 예측 모드(예컨대, 주변 블록의 인트라 예측 모드와 차이가 임계값 이하인 인트라 예측 모드) 등을 후보로 삼아 RDO를 수행할 수 있다. As another example, some intra prediction modes may include at least one of an intra prediction mode of a neighboring block adjacent to the current block and a preset additional intra prediction mode. As an example, when the intra prediction mode of the neighboring block is the non-directional mode, RDO is selected by selecting all non-directional modes and some directional prediction modes with high selection frequency (eg, vertical prediction mode, horizontal prediction mode, etc.) as candidates. can be done Alternatively, when the intra-prediction mode of the neighboring block is the directional mode, all non-asymmetric prediction modes and the intra-prediction mode of the neighboring block and the intra-prediction mode having a similar direction to the intra-prediction mode of the neighboring block (eg, the intra-prediction mode of the neighboring block) RDO may be performed by selecting an intra prediction mode (with a difference of equal to or less than a threshold) as a candidate.

부호화 장치는, 선택된 인트라 예측 모드를 이용하여, 현재 블록에 대한 인트라 예측을 수행할 수 있다. 이때, 현재 블록이 사선에 의해 부분 블록으로 분할되었다면, 분할선이 화소 경계와 일치하지 않아, 부분 블록 간 중복 화소(즉, 중복되는 영역)가 나타날 수 있다. The encoding apparatus may perform intra prediction on the current block by using the selected intra prediction mode. In this case, if the current block is divided into partial blocks by an oblique line, the dividing line does not coincide with the pixel boundary, and overlapping pixels (ie, overlapping regions) may appear between the partial blocks.

일 예로, 도 10은 현재 블록의 분할 형태에 따라, 중복 영역이 발생되는 예를 나타낸 도면이다.As an example, FIG. 10 is a diagram illustrating an example in which an overlapping area is generated according to a division form of a current block.

도 10에 도시된 식별부호 1001 및 1002에 대응하는 블록의 경우, 분할선이 화소 경계에 일치하므로, 부분 블록 간 중복 영역이 발생하지 않는다. 그러나, 식별부호 1003 내지 1005에 대응하는 블록의 경우, 분할선이 화소 경계와 일치하지 않는 부분(즉, 화소를 관통하는 부분)이 존재하므로, 부분 블록간 중복된 화소(즉, 중복 영역)이 존재하는 것으로 볼 수 있다. In the case of blocks corresponding to the identification codes 1001 and 1002 shown in FIG. 10, since the dividing line coincides with the pixel boundary, overlapping regions between partial blocks do not occur. However, in the case of the blocks corresponding to the identification codes 1003 to 1005, there is a portion where the dividing line does not coincide with the pixel boundary (ie, the portion passing through the pixel), so that the overlapping pixels between the partial blocks (ie, the overlapping region) can be seen to exist.

이처럼, 부분 블록 간 중복 영역이 존재하는 경우, 중복 영역에 포함된 화소의 예측값은, 중복 영역을 포함하는 부분 블록들의 인트라 예측 결과로 생성된 예측값들의 평균 또는 예측값들의 선형 보간 등을 통해 획득될 수 있다. 일 예로, 현재 블록이 제1 부분 블록 및 제2 부분 블록으로 분할되었다고 가정할 경우, 제1 부분 블록 및 제2 부분 블록에 공통적으로 포함된 화소의 예측값은, 제1 부분 블록의 인트라 예측 모드를 이용하여 계산된 제1 예측값 및 제2 부분 블록의 인트라 예측 모드를 이용하여 계산된 제2 예측값 사이의 평균값 또는 제1 예측값 및 제2 예측값을 선형 보간한 값으로 결정될 수 있다.As such, when there is an overlapping region between partial blocks, the prediction value of a pixel included in the overlapping region may be obtained through an average of prediction values generated as a result of intra prediction of partial blocks including the overlapping region or linear interpolation of the predicted values. there is. For example, if it is assumed that the current block is divided into a first partial block and a second partial block, a prediction value of a pixel commonly included in the first partial block and the second partial block is based on the intra prediction mode of the first partial block. It may be determined as an average value between the first prediction value calculated using the , and the second prediction value calculated using the intra prediction mode of the second partial block, or a value obtained by linearly interpolating the first prediction value and the second prediction value.

다른 예로, 중복 영역에 포함된 화소의 예측값은, 중복 영역을 포함하는 부분 블록들 중 어느 하나의 인트라 예측 모드를 이용하여 생성될 수도 있다. 이때, 부분 블록들 중 어느 블록을 이용할 것인지는, 부분 블록 간 기 설정된 우선 순위, 인트라 예측 모드 간 기 설정된 우선 순위 또는 중복 영역에 포함된 화소의 위치 등에 기초하여 결정될 수 있다. 일 예로, 중복 영역에 포함된 화소의 예측값은, 중복 영역을 포함하는 부분 블록들의 인트라 예측 모드 중 기 설정된 우선 순위가 높은 것을 이용하여 생성될 수 있다.As another example, the prediction value of the pixel included in the overlapping region may be generated using an intra prediction mode of any one of the partial blocks including the overlapping region. In this case, which block of the partial blocks to use may be determined based on a predetermined priority between partial blocks, a predetermined priority between intra prediction modes, or a position of a pixel included in an overlapping area, and the like. For example, the prediction value of the pixel included in the overlapping region may be generated using a preset priority among intra prediction modes of partial blocks including the overlapping region.

다음으로, 부호화 장치에서, 각 부분 블록별 인트라 예측 모드를 부호화하는 것에 대해 상세히 살펴보기로 한다. Next, the encoding apparatus for encoding the intra prediction mode for each partial block will be described in detail.

도 11은 부분 블록의 인트라 예측 모드를 부호화하는 과정을 나타낸 흐름도이다. 설명의 편의를 위해, 부분 블록들의 인트라 예측 모드를, 주 예측 모드 및 부 예측 모드로 구분하기로 한다. 여기서, 주 예측 모드는 부분 블록들 중 어느 하나의 인트라 예측 모드를 나타내고, 부 예측 모드는 부분 블록들 중 다른 하나의 인트라 예측 모드를 나타낼 수 있다. 또는, 주 예측 모드 및 부 예측 모드는 인트라 예측 모드에 대한 우선 순위, 부분 블록의 크기, 부분 블록의 위치 또는 부분 블록의 크기 등에 따라 결정될 수도 있다. 부 예측 모드는 주 예측 모드와 상이한 인트라 예측 모드로 결정될 수 있다.11 is a flowchart illustrating a process of encoding an intra prediction mode of a partial block. For convenience of description, intra prediction modes of partial blocks are divided into a main prediction mode and a sub prediction mode. Here, the main prediction mode may indicate an intra prediction mode of any one of the partial blocks, and the sub prediction mode may indicate the intra prediction mode of the other one of the partial blocks. Alternatively, the main prediction mode and the sub-prediction mode may be determined according to the priority of the intra prediction mode, the size of the partial block, the position of the partial block, the size of the partial block, and the like. The sub-prediction mode may be determined as an intra-prediction mode different from the main prediction mode.

먼저, 부호화 장치는 다중 인트라 예측을 위한 동작 정보를 부호화할 수 있다(S1101). 여기서, 다중 모드 동작 정보는 현재 블록에 대해 단일의 인트라 예측 모드를 사용하는 것이 최적인지 혹은 복수의 인트라 예측 모드를 사용하는 것이 최적인지 여부를 나타낸다. First, the encoding apparatus may encode motion information for multi-intra prediction (S1101). Here, the multi-mode operation information indicates whether it is optimal to use a single intra prediction mode or to use a plurality of intra prediction modes for the current block.

다중 인트라 예측 모드가 참인 경우(S1102), 부호화 장치는 주 예측 모드로 결정된 인트라 예측 모드를 부호화하고(S1103), 뒤이어 부 예측 모드로 결정된 인트라 예측 모드를 부호화할 수 있다(S1104). 주 예측 모드는 MPM(Most Probable Mode) 후보를 이용한 부호화 과정을 거쳐 부호화될 수도 있고, MPM 후보를 이용함이 없이 부호화될 수도 있다. 부 예측 모드는 MPM 후보를 이용한 부호화 과정을 거쳐 부호화될 수도 있고, MPM 후보를 이용함이 없이 부호화될 수도 있다. When the multiple intra prediction mode is true ( S1102 ), the encoding apparatus may encode the intra prediction mode determined as the main prediction mode ( S1103 ), and then encode the intra prediction mode determined as the sub prediction mode ( S1104 ). The main prediction mode may be encoded through an encoding process using a Most Probable Mode (MPM) candidate or may be encoded without using an MPM candidate. The sub-prediction mode may be encoded through an encoding process using an MPM candidate or may be encoded without using an MPM candidate.

부호화 장치는 주 예측 모드와 부 예측 모드 사이의 차분값을 부호화할 수도 있다. 일 예로, 부호화 장치는 주 예측 모드를 MPM 후보를 이용하여, 주 예측 모드를 부호화하는 한편, 주 예측 모드와 부 예측 모드 사이의 차분값을 부호화할 수 있다. 이 경우, 복호화 장치는 MPM 후보를 이용하여 주 예측 모드를 유도하는 한편, 주 예측 모드와 부 예측 모드 사이의 차분값을 통해 부 예측 모드를 획득할 수 있을 것이다.The encoding apparatus may encode a difference value between the main prediction mode and the sub-prediction mode. As an example, the encoding apparatus may encode the main prediction mode by using the MPM candidate as the main prediction mode, and may encode a difference value between the main prediction mode and the sub-prediction mode. In this case, the decoding apparatus may derive the main prediction mode using the MPM candidate and obtain the sub-prediction mode through a difference value between the main prediction mode and the sub-prediction mode.

다중 인트라 예측 모드가 거짓인 경우(S1102), 부호화 장치는 현재 블록에 대한 단일의 인트라 예측 모드를 부호화할 수 있다(S1105). 일 예로, 부호화 장치는 MPM 후보를 이용하여, 현재 블록에 대한 인트라 예측 모드를 부호화할 수 있다.When the multiple intra prediction mode is false (S1102), the encoding apparatus may encode a single intra prediction mode for the current block (S1105). As an example, the encoding apparatus may encode the intra prediction mode for the current block by using the MPM candidate.

도 12를 기초로, MPM 후보를 이용하여, 현재 블록에 대한 인트라 예측 모드를 부호화하는 것에 대해 상세히 설명하기로 한다.Based on FIG. 12 , encoding of an intra prediction mode for a current block using an MPM candidate will be described in detail.

도 12는 MPM 후보를 이용하여, 인트라 예측 모드를 부호화하는 방법을 나타낸 흐름도이다. 본 실시예에서, 현재 블록의 인트라 예측 모드는, 주 예측 모드, 부 예측 모드 또는 단일 예측 모드 중 어느 하나를 의미할 수 있다.12 is a flowchart illustrating a method of encoding an intra prediction mode using an MPM candidate. In this embodiment, the intra prediction mode of the current block may mean any one of a main prediction mode, a sub prediction mode, or a single prediction mode.

도 12를 참조하면, 먼저, 부호화 장치는 현재 블록에 대한 MPM 후보를 결정할 수 있다(S1201). 부호화 장치는 현재 블록에 이웃하는 이웃 블록들의 인트라 예측 모드에 기초하여, 현재 블록의 MPM 후보를 결정할 수 있다. Referring to FIG. 12 , first, the encoding apparatus may determine an MPM candidate for the current block ( S1201 ). The encoding apparatus may determine an MPM candidate of the current block based on intra prediction modes of neighboring blocks adjacent to the current block.

일 예로, 도 13은 현재 블록의 MPM 후보를 결정하는 것을 예시한 도면이다. 도 13에서, L은, 현재 블록의 좌측에 인접한 좌측 주변 블록들의 인트라 예측 모드 중 사용 빈도수가 가장 높은 인트라 예측 모드이고, A는 현재 블록의 상단에 인접한 상단 주변 블록들의 인트라 예측 모드 중 사용 빈도수가 가장 높은 인트라 예측 모드를 나타낸다. 또는, L은 특정 위치의 좌측 주변 블록의 인트라 예측 모드를 타나내고, A는 특정 위치의 상단 주변 블록의 인트라 예측 모드를 나타낼 수도 있다.As an example, FIG. 13 is a diagram illustrating determining an MPM candidate of a current block. In FIG. 13 , L denotes an intra prediction mode with the highest frequency of use among intra prediction modes of left neighboring blocks adjacent to the left of the current block, and A denotes the frequency of use among intra prediction modes of upper neighboring blocks adjacent to the top of the current block. Indicates the highest intra prediction mode. Alternatively, L may indicate an intra prediction mode of a left neighboring block of a specific position, and A may indicate an intra prediction mode of an upper neighboring block of a specific position.

도 13에서는, 현재 블록의 MPM 후보가 3개이고, 3개의 MPM 후보는, L, A, L과 유사한 방향의 인트라 예측 모드(즉, L-1, L+1), 비 방향성 모드(Planar, DC) 및 기 설정된 방향성 모드(수직 방향 모드) 중 적어도 하나를 포함하는 것으로 도시되었다. 다만, 도시된 예에 따라, 본 발명이 한정되는 것은 아니며, 현재 블록의 MPM 후보는 도시된 것과 다른 방법에 의해 생성되는 것도 가능하다. 일 예로, 현재 블록의 MPM 후보는 3개보다 더 많은 수를 포함할 수도 있다.In FIG. 13 , there are three MPM candidates of the current block, and the three MPM candidates are an intra prediction mode (ie, L-1, L+1) in a direction similar to L, A, and L, and a non-directional mode (Planar, DC). ) and a preset directional mode (vertical mode). However, according to the illustrated example, the present invention is not limited, and the MPM candidate of the current block may be generated by a method different from that illustrated. As an example, the MPM candidates of the current block may include more than three.

만약, 현재 블록에 이웃한 주변 블록이 다중 인트라 예측 모드로 부호화되었다면, 현재 블록의 MPM 후보는 주변 블록의 다중 인트라 예측 모드를 모두 고려하여 결정될 수도 있고, 주변 블록의 다중 인트라 예측 모드 중 어느 하나만을 고려하여 결정될 수도 있다. 일 예로, 현재 블록의 MPM 후보는 주변 블록의 다중 인트라 예측 모드 중 주 예측 모드를 고려하여 결정될 수 있다.If a neighboring block adjacent to the current block is encoded in the multiple intra prediction mode, the MPM candidate of the current block may be determined by considering all the multiple intra prediction modes of the neighboring block, or only one of the multiple intra prediction modes of the neighboring block It may be decided by considering As an example, the MPM candidate of the current block may be determined in consideration of a main prediction mode among multiple intra prediction modes of a neighboring block.

또는, 현재 블록의 주 예측 모드에 대한 MPM 후보는, 주변 블록의 주 예측 모드를 이용하여 결정하고, 현재 블록의 부 예측 모드에 대한 MPM 후보는, 주변 블록의 부 예측 모드를 이용하여 결정할 수도 있다.Alternatively, the MPM candidate for the main prediction mode of the current block may be determined using the main prediction mode of the neighboring block, and the MPM candidate for the sub-prediction mode of the current block may be determined using the sub-prediction mode of the neighboring block. .

부호화 장치는 현재 블록의 인트라 예측 모드와 동일한 MPM 후보가 존재하는지 여부를 판단하고, 판단 결과에 따라, 동작 정보를 부호화할 수 있다(S1202). 여기서, 동작 정보는 1비트의 플래그(예컨대, MPM 플래그)일 수 있다. 일 예로, 현재 블록의 인트라 예측 모드와 동일한 MPM 후보가 존재하는 경우, 부호화 장치는 MPM 플래그를 '참'으로 부호화하고, 현재 블록의 인트라 예측 모드와 동일한 MPM 후보가 존재하는 않는 경우, 부호화 장치는 MPM 플래그를 '거짓'으로 부호화할 수 있다.The encoding apparatus may determine whether an MPM candidate identical to the intra prediction mode of the current block exists, and may encode motion information according to the determination result (S1202). Here, the operation information may be a 1-bit flag (eg, an MPM flag). For example, when the same MPM candidate as the intra prediction mode of the current block exists, the encoding apparatus encodes the MPM flag as 'true', and when the same MPM candidate as the intra prediction mode of the current block does not exist, the encoding apparatus MPM flag can be encoded as 'false'.

현재 블록의 인트라 예측 모드와 동일한 MPM 후보가 존재하는 경우(S1203), 부호화 장치는 현재 블록의 인트라 예측 모드와 동일한 MPM 후보를 특정하는 색인 정보를 부호화할 수 있다(S1204).When the same MPM candidate as the intra prediction mode of the current block exists (S1203), the encoding apparatus may encode index information specifying the same MPM candidate as the intra prediction mode of the current block (S1204).

현재 블록의 인트라 예측 모드와 동일한 MPM 후보가 존재하지 않는 경우(S1203), 부호화 장치는 MPM 후보를 제외한 잔여 인트라 예측 모드들 중 현재 블록에 대한 최적의 인트라 예측 모드를 나타내는 잔여 모드를 부호화할 수 있다(S1205). 구체적으로, 부호화 장치는 전체 인트라 예측 모드(또는 현재 블록이 이용할 수 있는 인트라 예측 모드) 중 MPM 후보의 개수를 차감한 잔여 인트라 예측 모드 개수만큼 비트를 할당하여 잔여 모드를 부호화할 수 있다.When the same MPM candidate as the intra prediction mode of the current block does not exist ( S1203 ), the encoding apparatus may encode a residual mode indicating an optimal intra prediction mode for the current block among residual intra prediction modes except for the MPM candidate. (S1205). Specifically, the encoding apparatus may encode the residual mode by allocating bits as many as the number of residual intra prediction modes obtained by subtracting the number of MPM candidates from among all intra prediction modes (or intra prediction modes usable by the current block).

부 예측 모드는 주 예측 모드와 상이한 값으로 설정되는 바, 부 예측 모드에 대한 잔여 모드는, MPM 후보 및 주 예측 모드를 제외한 잔여 인트라 예측 모드를 기초로 부호화될 수 있다.Since the sub-prediction mode is set to a value different from that of the main prediction mode, the residual mode for the sub-prediction mode may be encoded based on the residual intra prediction mode except for the MPM candidate and the main prediction mode.

다음으로, 복호화 장치에서 최적 인트라 예측 모드를 복호화하는 방법에 대해 설명하기로 한다.Next, a method of decoding the optimal intra prediction mode in the decoding apparatus will be described.

도 14는 현재 블록의 인트라 예측 모드를 복호화하는 방법을 나타낸 흐름도이다.14 is a flowchart illustrating a method of decoding an intra prediction mode of a current block.

도 14를 참조하면, 먼저, 복호화 장치는 비트스트림으로부터 다중 모드 동작 정보를 복호화할 수 있다(S1401). 여기서, 다중 모드 동작 정보는 현재 블록이 다중 인트라 예측 모드를 이용하여 부호화되었는지 여부를 나타낸다. Referring to FIG. 14 , first, the decoding apparatus may decode multi-mode operation information from a bitstream (S1401). Here, the multi-mode operation information indicates whether the current block is encoded using the multi-intra prediction mode.

현재 블록이 다중 인트라 예측 모드를 이용하여 부호화된 것으로 판단되는 경우(S1402), 복호화 장치는 현재 블록을 복수의 부분 블록으로 분할할 수 있다. 여기서, 복호화 장치는 부호화 장치로부터 시그널링되는 블록 분할 패턴 정보에 기초하여 현재 블록을 분할할 수도 있고, 변곡점 및 기울기를 산출한 뒤, 산출된 변곡점 및 기울기에 부합하는 분할 패턴을 선택하여, 현재 블록을 분할할 수도 있다.When it is determined that the current block is encoded using the multi-intra prediction mode ( S1402 ), the decoding apparatus may divide the current block into a plurality of partial blocks. Here, the decoding apparatus may divide the current block based on block division pattern information signaled from the encoding apparatus, calculate an inflection point and a slope, and select a division pattern corresponding to the calculated inflection point and slope to divide the current block can also be split.

현재 블록이 복수의 부분 블록으로 분할되는 경우, 복호화 장치는 현재 블록에 대한 주 예측 모드를 복호화하고(S1403), 이어 부 예측 모드를 복호화할 수 있다(S1404). 앞서, 부호화 과정에서 설명한 바와 같이, 주 예측 모드 또는 부 예측 모드는 MPM 후보를 이용하여 복호화될 수도 있고, MPM 후보를 이용함이 없이 복호화될 수도 있다. 또는, 주 예측 모드를 복호화한 뒤, 주 예측 모드와 부 예측 모드 사이의 차분값에 기초하여, 부 예측 모드를 획득할 수도 있다.When the current block is divided into a plurality of partial blocks, the decoding apparatus may decode the main prediction mode for the current block (S1403), and then decode the sub-prediction mode (S1404). As described above in the encoding process, the main prediction mode or the sub-prediction mode may be decoded using the MPM candidate or may be decoded without using the MPM candidate. Alternatively, after decoding the main prediction mode, the sub-prediction mode may be obtained based on a difference value between the main prediction mode and the sub-prediction mode.

현재 블록이 다중 인트라 예측 모드를 이용하지 않고 부호화된 것으로 판단되는 경우, 복호화 장치는 현재 블록에 대한 단일의 인트라 예측 모드를 복호화할 수 있다(S1405). 여기서, 현재 블록에 대한 단일의 인트라 예측 모드는 MPM 후보를 이용하여 복호화될 수 있다.When it is determined that the current block is encoded without using the multiple intra prediction mode, the decoding apparatus may decode a single intra prediction mode for the current block ( S1405 ). Here, a single intra prediction mode for the current block may be decoded using an MPM candidate.

도 15는 MPM 후보를 이용하여 현재 블록의 인트라 예측 모드를 복호화하는 과정을 나타낸 흐름도이다. 본 실시예에서, 현재 블록의 인트라 예측 모드는, 주 예측 모드, 부 예측 모드 또는 단일 예측 모드 중 어느 하나를 의미할 수 있다.15 is a flowchart illustrating a process of decoding an intra prediction mode of a current block using an MPM candidate. In this embodiment, the intra prediction mode of the current block may mean any one of a main prediction mode, a sub prediction mode, or a single prediction mode.

먼저, 복호화 장치는 현재 블록에 대한 MPM 후보를 결정할 수 있다(S1501). 구체적으로, 복호화 장치는 현재 블록에 이웃한 이웃 블록들의 인트라 예측 모드에 기초하여 MPM 후보를 결정할 수 있다. 현재 블록의 MPM 후보를 생성하는 것에 대해서는, 도 13을 통해 상세히 설명하였으므로, 현 단계에서는 이에 대한 상세한 설명은 생략한다.First, the decoding apparatus may determine an MPM candidate for the current block (S1501). Specifically, the decoding apparatus may determine the MPM candidate based on intra prediction modes of neighboring blocks adjacent to the current block. Since the generation of the MPM candidate of the current block has been described in detail with reference to FIG. 13 , a detailed description thereof will be omitted at this stage.

이후, 복호화 장치는 현재 블록의 인트라 예측 모드와 동일한 MPM 후보가 존재하는지 여부를 나타내는 정보를 복호화할 수 있다(S1502). 상기 정보는 1비트의 플래그일 수 있으나, 이에 한정되는 것은 아니다.Thereafter, the decoding apparatus may decode information indicating whether an MPM candidate identical to the intra prediction mode of the current block exists ( S1502 ). The information may be a 1-bit flag, but is not limited thereto.

현재 블록의 인트라 예측 모드와 동일한 MPM 후보가 존재하는 것으로 판단되는 경우(S1503), 복호화 장치는 현재 블록의 인트라 예측 모드와 동일한 MPM 후보를 특정하는 정보(예컨대, MPM 색인 정보)를 복호화할 수 있다(S1504). 이 경우, 현재 블록의 인트라 예측 모드는 MPM 색인 정보가 특정하는 인트라 예측 모드으로 결정될 수 있다.When it is determined that the same MPM candidate as the intra prediction mode of the current block exists (S1503), the decoding apparatus may decode information (eg, MPM index information) specifying the same MPM candidate as the intra prediction mode of the current block. (S1504). In this case, the intra prediction mode of the current block may be determined as the intra prediction mode specified by the MPM index information.

반면, 현재 블록의 인트라 예측 모드와 동일한 MPM 후보가 존재하지 않는 것으로 판단되는 경우(S1503), 복호화 장치는 잔여 모드 정보를 복호화하고(S1505), 복호화된 잔여 모드 정보에 기초하여, 현재 블록에 대한 인트라 예측 모드를 결정할 수 있다. 여기서, 잔여 모드 정보는 현재 블록이 이용할 수 있는 인트라 예측 모드 중 MPM 후보를 제외하고 부호화된 것일 수 있다.On the other hand, when it is determined that the same MPM candidate as the intra prediction mode of the current block does not exist (S1503), the decoding apparatus decodes residual mode information (S1505), and based on the decoded residual mode information, An intra prediction mode may be determined. Here, the residual mode information may be coded except for the MPM candidate among intra prediction modes available for the current block.

본 개시의 예시적인 방법들은 설명의 명확성을 위해서 동작의 시리즈로 표현되어 있지만, 이는 단계가 수행되는 순서를 제한하기 위한 것은 아니며, 필요한 경우에는 각각의 단계가 동시에 또는 상이한 순서로 수행될 수도 있다. 본 개시에 따른 방법을 구현하기 위해서, 예시하는 단계에 추가적으로 다른 단계를 포함하거나, 일부의 단계를 제외하고 나머지 단계를 포함하거나, 또는 일부의 단계를 제외하고 추가적인 다른 단계를 포함할 수도 있다.Example methods of the present disclosure are expressed as a series of operations for clarity of description, but this is not intended to limit the order in which the steps are performed, and if necessary, each step may be performed simultaneously or in a different order. In order to implement the method according to the present disclosure, other steps may be included in addition to the illustrated steps, other steps may be excluded from some steps, or additional other steps may be included except some steps.

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

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

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

Claims (10)

현재 블록을 분할하기 위한 분할선을 결정하는 단계; 여기서, 상기 분할선은 영상 복호화 장치에 기-정의된 복수의 분할선 후보 중 어느 하나로 결정되고, 상기 분할선 후보 각각은 소정의 기울기 또는 위치 중 적어도 하나에 의해서 구별됨,
상기 결정된 분할선에 기초하여, 상기 현재 블록을 2개 또는 그 이상의 부분 블록들로 분할하는 단계; 및
상기 부분 블록들 각각에 대한 예측 정보를 이용하여, 상기 현재 블록의 예측 블록을 생성하는 단계를 포함하되,
상기 예측 정보는, 상기 현재 블록의 제1 부분 블록을 예측하기 위한 제1 예측 정보 및 상기 현재 블록의 제2 부분 블록을 예측하기 위한 제2 예측 정보를 포함하고,
상기 제1 예측 정보는 비트스트림을 통해 시그날링되는 인덱스 정보에 기초하여 결정되고, 상기 제2 예측 정보는 상기 제1 예측 정보에 기초하여 결정되는, 영상 신호 복호화 방법.
determining a dividing line for dividing the current block; Here, the dividing line is determined by any one of a plurality of dividing line candidates pre-defined in the image decoding apparatus, and each of the dividing line candidates is distinguished by at least one of a predetermined slope or position;
dividing the current block into two or more partial blocks based on the determined dividing line; and
Using the prediction information for each of the partial blocks, comprising the step of generating a prediction block of the current block,
The prediction information includes first prediction information for predicting a first partial block of the current block and second prediction information for predicting a second partial block of the current block,
The method of claim 1, wherein the first prediction information is determined based on index information signaled through a bitstream, and the second prediction information is determined based on the first prediction information.
제1항에 있어서,
상기 현재 블록의 부분 블록들 중 적어도 하나의 형태는 삼각형인, 영상 신호 복호화 방법.
The method of claim 1,
The shape of at least one of the partial blocks of the current block is a triangle.
제1항에 있어서,
비트스트림으로부터, 상기 현재 블록의 분할 형태를 결정하기 위한 정보를 획득하는 단계를 더 포함하고,
상기 분할선은, 상기 현재 블록의 분할 형태를 결정하기 위한 정보에 기초하여 결정되는, 영상 신호 복호화 방법.
The method of claim 1,
Further comprising the step of obtaining information for determining the division form of the current block from the bitstream,
The dividing line is determined based on information for determining a division type of the current block.
제3항에 있어서,
상기 현재 블록의 분할 형태를 결정하기 위한 정보는, 상기 분할선의 기울기 또는 위치 중 적어도 하나를 특정하는, 영상 신호 복호화 방법.
4. The method of claim 3,
The information for determining the division form of the current block specifies at least one of a slope or a position of the division line.
제4항에 있어서,
상기 영상 복호화 장치에 기-정의된 분할선 후보의 기울기 개수는 20개인, 영상 신호 복호화 방법.
5. The method of claim 4,
The number of inclinations of the dividing line candidates pre-defined in the image decoding apparatus is 20, the image signal decoding method.
제1항에 있어서,
상기 분할선 상에 위치한 화소의 예측값은, 상기 제1 부분 블록의 제1 예측값과 상기 제2 부분 블록의 제2 예측값의 평균값으로 결정되는, 영상 신호 복호화 방법.
The method of claim 1,
The predicted value of the pixel located on the dividing line is determined as an average value of the first predicted value of the first partial block and the second predicted value of the second partial block.
삭제delete 현재 블록을 분할하기 위한 분할선을 결정하는 단계; 여기서, 상기 분할선은 영상 부호화 장치에 기-정의된 복수의 분할선 후보 중 어느 하나로 결정되고, 상기 분할선 후보 각각은 소정의 기울기 또는 위치 중 적어도 하나에 의해서 구별됨,
상기 결정된 분할선에 기초하여, 현재 블록을 2개 또는 그 이상의 부분 블록들로 분할하는 단계; 및
상기 부분 블록들 각각에 대한 예측 정보를 이용하여, 상기 현재 블록의 예측 블록을 생성하는 단계를 포함하되,
상기 예측 정보는, 상기 현재 블록의 제1 부분 블록을 예측하기 위한 제1 예측 정보 및 상기 현재 블록의 제2 부분 블록을 예측하기 위한 제2 예측 정보를 포함하고,
상기 제1 예측 정보를 결정하기 위한 인덱스 정보가 부호화되고, 상기 제2 예측 정보는 상기 제1 예측 정보를 기초로 결정되는, 영상 신호 부호화 방법.
determining a dividing line for dividing the current block; wherein the dividing line is determined by any one of a plurality of dividing line candidates pre-defined in the image encoding apparatus, and each of the dividing line candidates is distinguished by at least one of a predetermined slope or position;
dividing the current block into two or more partial blocks based on the determined dividing line; and
Using the prediction information for each of the partial blocks, comprising the step of generating a prediction block of the current block,
The prediction information includes first prediction information for predicting a first partial block of the current block and second prediction information for predicting a second partial block of the current block,
Index information for determining the first prediction information is encoded, and the second prediction information is determined based on the first prediction information.
비트스트림을 저장하는 컴퓨터로 판독가능한 기록 매체에 있어서,
상기 비트스트림은, 현재 블록의 예측 블록을 기초로 획득된 잔차 블록의 부호화된 잔차 계수를 포함하고,
상기 현재 블록의 예측 블록은, 상기 현재 블록의 부분 블록들 각각에 대한 예측 정보를 이용하여 생성되고,
상기 부분 블록들은, 상기 현재 블록이 분할선을 기초로 2개 또는 그 이상의 부분으로 분할된 블록들이고,
상기 분할선은, 영상 부호화 장치에 기-정의된 복수의 분할선 후보 중 어느 하나이고,
상기 분할선 후보 각각은 소정의 기울기 또는 위치 중 적어도 하나에 의해서 구별되고,
상기 예측 정보는, 상기 현재 블록의 제1 부분 블록을 예측하기 위한 제1 예측 정보 및 상기 현재 블록의 제2 부분 블록을 예측하기 위한 제2 예측 정보를 포함하고,
상기 제1 예측 정보는 상기 비트스트림에 포함된 인덱스 정보에 기초하여 결정되고, 상기 제2 예측 정보는 상기 제1 예측 정보에 기초하여 결정되는, 컴퓨터로 판독가능한 기록 매체.
A computer-readable recording medium storing a bitstream, comprising:
The bitstream includes a coded residual coefficient of a residual block obtained based on a prediction block of the current block,
The prediction block of the current block is generated using prediction information on each of the partial blocks of the current block,
The partial blocks are blocks in which the current block is divided into two or more parts based on a dividing line,
The dividing line is any one of a plurality of dividing line candidates pre-defined in the video encoding apparatus;
Each of the dividing line candidates is distinguished by at least one of a predetermined slope or position,
The prediction information includes first prediction information for predicting a first partial block of the current block and second prediction information for predicting a second partial block of the current block,
The first prediction information is determined based on index information included in the bitstream, and the second prediction information is determined based on the first prediction information.
삭제delete
KR1020170050054A 2016-04-29 2017-04-18 Method and apparatus for encoding/decoding a video signal Active KR102365937B1 (en)

Priority Applications (28)

Application Number Priority Date Filing Date Title
CN202311050260.5A CN116915987A (en) 2016-04-29 2017-04-28 Video signal encoding/decoding method and apparatus
US16/097,394 US10805607B2 (en) 2016-04-29 2017-04-28 Video signal encoding/decoding method and apparatus
CN202311054843.5A CN116915996A (en) 2016-04-29 2017-04-28 Video signal encoding/decoding method and apparatus
CN202311054848.8A CN116915997A (en) 2016-04-29 2017-04-28 Video signal encoding/decoding method and apparatus
CN202311055806.6A CN116916000A (en) 2016-04-29 2017-04-28 Video signal encoding/decoding method and apparatus
CN202311057067.4A CN116916006A (en) 2016-04-29 2017-04-28 Video signal encoding/decoding method and apparatus
CN202311054699.5A CN116915994A (en) 2016-04-29 2017-04-28 Video signal encoding/decoding method and apparatus
CN202311054573.8A CN116915990A (en) 2016-04-29 2017-04-28 Video signal encoding/decoding method and device
CN202311055556.6A CN116915999A (en) 2016-04-29 2017-04-28 Video signal encoding/decoding method and apparatus
PCT/KR2017/004576 WO2017188784A2 (en) 2016-04-29 2017-04-28 Video signal encoding/decoding method and apparatus
CN202311057660.9A CN116916008A (en) 2016-04-29 2017-04-28 Video signal encoding/decoding method and device
CN202311054691.9A CN116915993A (en) 2016-04-29 2017-04-28 Video signal encoding/decoding method and device
CN202311056041.8A CN116916004A (en) 2016-04-29 2017-04-28 Video signal encoding/decoding method and device
CN202311055507.2A CN116915998A (en) 2016-04-29 2017-04-28 Video signal encoding/decoding method and apparatus
CN202311058445.0A CN116916013A (en) 2016-04-29 2017-04-28 Video signal encoding/decoding method and device
CN202311054618.1A CN116915992A (en) 2016-04-29 2017-04-28 Video signal encoding/decoding method and device
CN202311054774.8A CN116915995A (en) 2016-04-29 2017-04-28 Video signal encoding/decoding method and apparatus
CN202311055993.8A CN116916003A (en) 2016-04-29 2017-04-28 Video signal encoding/decoding method and apparatus
CN202311055914.3A CN116916002A (en) 2016-04-29 2017-04-28 Video signal encoding/decoding method and device
CN201780039690.3A CN109328461B (en) 2016-04-29 2017-04-28 Video signal encoding/decoding method and device
CN202311056416.0A CN116916005A (en) 2016-04-29 2017-04-28 Video signal encoding/decoding method and apparatus
CN202311051162.3A CN116915988A (en) 2016-04-29 2017-04-28 Video signal encoding/decoding method and device
US17/016,940 US11122265B2 (en) 2016-04-29 2020-09-10 Video signal encoding/decoding method and apparatus
US17/016,867 US11115659B2 (en) 2016-04-29 2020-09-10 Video signal encoding/decoding method and apparatus
US17/363,911 US20210329238A1 (en) 2016-04-29 2021-06-30 Video signal encoding/decoding method and apparatus
KR1020220020578A KR20220024390A (en) 2016-04-29 2022-02-17 Method and apparatus for encoding/decoding a video signal
US17/812,158 US11849111B2 (en) 2016-04-29 2022-07-12 Video signal encoding/decoding method and apparatus
US18/309,726 US11849074B2 (en) 2016-04-29 2023-04-28 Video signal encoding/decoding method and apparatus

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR20160052925 2016-04-29
KR1020160052925 2016-04-29

Related Child Applications (1)

Application Number Title Priority Date Filing Date
KR1020220020578A Division KR20220024390A (en) 2016-04-29 2022-02-17 Method and apparatus for encoding/decoding a video signal

Publications (2)

Publication Number Publication Date
KR20170124082A KR20170124082A (en) 2017-11-09
KR102365937B1 true KR102365937B1 (en) 2022-02-22

Family

ID=60385882

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020170050054A Active KR102365937B1 (en) 2016-04-29 2017-04-18 Method and apparatus for encoding/decoding a video signal

Country Status (1)

Country Link
KR (1) KR102365937B1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019107997A1 (en) * 2017-11-30 2019-06-06 엘지전자 주식회사 Method and device for processing video signal
WO2023191356A1 (en) * 2022-03-28 2023-10-05 현대자동차주식회사 Method and apparatus for video coding using intra mirror prediction

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101579394B1 (en) 2007-10-16 2015-12-21 톰슨 라이센싱 Methods and apparatus for video encoding and decoding geometrically partitioned super blocks

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
BRPI0715507A2 (en) * 2006-08-02 2013-06-18 Thomson Licensinc S A Methods and apparatus for adaptive geometric partitioning for video decoding
KR20110061468A (en) * 2009-12-01 2011-06-09 (주)휴맥스 Encoding / Decoding Method of High Resolution Image and Apparatus Performing the Same
CN104853201A (en) * 2010-07-02 2015-08-19 数码士控股有限公司 Apparatus and method for encoding/decoding image for intra-prediction
KR101681303B1 (en) * 2010-07-29 2016-12-01 에스케이 텔레콤주식회사 Method and Apparatus for Encoding/Decoding of Video Data Using Partitioned-Block Prediction
CA2844602A1 (en) * 2011-08-09 2013-02-14 Samsung Electronics Co., Ltd. Method and device for encoding a depth map of multi viewpoint video data, and method and device for decoding the encoded depth map

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101579394B1 (en) 2007-10-16 2015-12-21 톰슨 라이센싱 Methods and apparatus for video encoding and decoding geometrically partitioned super blocks

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Andreas Krutz et al, Tool Experiment 3: Inter Prediction in HEVC, JCT-VC of ITU-T SG16 WP3 and ISO/IEC, JCTVC-A303 (2010.04.15.)*
Marta Karczewicz et al, Video coding technology proposal by Qualcomm Inc, JCT-VC of ITU-T SG16 WP3 and ISO/IEC, JCTVC-A121 (2010.04.15.)*

Also Published As

Publication number Publication date
KR20170124082A (en) 2017-11-09

Similar Documents

Publication Publication Date Title
CN109328461B (en) Video signal encoding/decoding method and device
KR102597617B1 (en) Method for encoding/decoidng video signal and apparatus therefor
KR102617439B1 (en) Method for encoding/decoidng video signal and apparatus therefor
KR102391235B1 (en) Video signal encoding/decoding method and apparatus
CN109644281B (en) Method and apparatus for processing video signals
KR102357282B1 (en) Method and apparatus for encoding/decoding an image
KR20180123674A (en) Method and apparatus for video signal processing
KR20180037600A (en) Method and apparatus for processing a video signal
KR20180005119A (en) Method and apparatus for processing a video signal
KR102670040B1 (en) Method and apparatus for encoding/decoding a video signal
KR20220119583A (en) Method and apparatus for encoding/decoding a video signal
KR20190115426A (en) Method and apparatus for encoding/decoding an image
KR20220098114A (en) Image encoding method/apparatus, image decoding method/apparatus and and recording medium for storing bitstream
CN116916008A (en) Video signal encoding/decoding method and device
KR102431287B1 (en) Method and apparatus for encoding/decoding a video signal
KR102365937B1 (en) Method and apparatus for encoding/decoding a video signal
KR20220024390A (en) Method and apparatus for encoding/decoding a video signal
KR102389267B1 (en) A method and an apparatus for processing a video signal based on reference between components
KR20170124077A (en) Method and apparatus for encoding/decoding a video signal

Legal Events

Date Code Title Description
PA0109 Patent application

Patent event code: PA01091R01D

Comment text: Patent Application

Patent event date: 20170418

PG1501 Laying open of application
PA0201 Request for examination

Patent event code: PA02012R01D

Patent event date: 20200417

Comment text: Request for Examination of Application

Patent event code: PA02011R01I

Patent event date: 20170418

Comment text: Patent Application

A302 Request for accelerated examination
PA0302 Request for accelerated examination

Patent event date: 20201221

Patent event code: PA03022R01D

Comment text: Request for Accelerated Examination

Patent event date: 20170418

Patent event code: PA03021R01I

Comment text: Patent Application

E902 Notification of reason for refusal
PE0902 Notice of grounds for rejection

Comment text: Notification of reason for refusal

Patent event date: 20210317

Patent event code: PE09021S01D

E902 Notification of reason for refusal
PE0902 Notice of grounds for rejection

Comment text: Notification of reason for refusal

Patent event date: 20210713

Patent event code: PE09021S01D

E701 Decision to grant or registration of patent right
PE0701 Decision of registration

Patent event code: PE07011S01D

Comment text: Decision to Grant Registration

Patent event date: 20211116

GRNT Written decision to grant
PA0107 Divisional application

Comment text: Divisional Application of Patent

Patent event date: 20220217

Patent event code: PA01071R01D

PR0701 Registration of establishment

Comment text: Registration of Establishment

Patent event date: 20220217

Patent event code: PR07011E01D

PR1002 Payment of registration fee

Payment date: 20220217

End annual number: 3

Start annual number: 1

PG1601 Publication of registration
PR1001 Payment of annual fee

Payment date: 20241230

Start annual number: 4

End annual number: 4