KR20160040977A - Transform skip signaling method and apparatus for video coding - Google Patents

Transform skip signaling method and apparatus for video coding Download PDF

Info

Publication number
KR20160040977A
KR20160040977A KR1020140175076A KR20140175076A KR20160040977A KR 20160040977 A KR20160040977 A KR 20160040977A KR 1020140175076 A KR1020140175076 A KR 1020140175076A KR 20140175076 A KR20140175076 A KR 20140175076A KR 20160040977 A KR20160040977 A KR 20160040977A
Authority
KR
South Korea
Prior art keywords
conversion
information
flag
block
representative
Prior art date
Application number
KR1020140175076A
Other languages
Korean (ko)
Other versions
KR102138197B1 (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 KR1020140175076A priority Critical patent/KR102138197B1/en
Publication of KR20160040977A publication Critical patent/KR20160040977A/en
Application granted granted Critical
Publication of KR102138197B1 publication Critical patent/KR102138197B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/70Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by syntax aspects related to video coding, e.g. related to compression standards
    • 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/13Adaptive entropy coding, e.g. adaptive variable length coding [AVLC] or context adaptive binary arithmetic coding [CABAC]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/186Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being a colour or a chrominance component
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/60Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding

Landscapes

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

Abstract

According to the present invention, when a size of a current coding unit can have a transform block capable of transform skip, a method for decoding an image comprises the following steps of: parsing a representative flag by information with regard to the coding unit wherein the representative flag represents first information which indicates whether to skip transform of a transform block divided from the coding unit; determining whether to parse the first information based on the representative flag; inferring the first information based on the representative flag when parsing the first information is not needed and parsing the first information when parsing the first information is needed; and performing or skipping transform with regard to the transform block in accordance with the first information.

Description

영상 압축을 위한 변환생략 여부를 지시하는 방법 및 장치{TRANSFORM SKIP SIGNALING METHOD AND APPARATUS FOR VIDEO CODING}TECHNICAL FIELD [0001] The present invention relates to a method and apparatus for indicating whether or not a conversion for image compression is omitted.

본 발명은 영상의 부호화 및 복호화 처리에 관한 것으로서, 보다 상세하게는 변환 생략 여부를 지시하는 영상 부/복호화 방법 및 장치에 관한 것이다. BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a video encoding and decoding process, and more particularly, to a video encoding / decoding method and apparatus for indicating whether or not a conversion is omitted.

최근 HD(High Definition) 해상도를 가지는 방송 서비스가 국내뿐만 아니라 세계적으로 확대되면서, 많은 사용자들이 고해상도, 고화질의 영상에 익숙해지고 있으며 이에 따라 많은 기관들이 차세대 영상기기에 대한 개발에 박차를 가하고 있다. 또한 HDTV와 더불어 HDTV의 4배 이상의 해상도를 갖는 UHD(Ultra High Definition)에 대한 관심이 증대되면서 보다 높은 해상도, 고화질의 영상에 대한 압축기술이 요구되고 있다.Recently, broadcasting service having high definition (HD) resolution has been expanded not only in domestic but also in the world, so that many users are accustomed to high definition and high definition video, and accordingly, many organizations are spurring development for next generation video equipment. In addition, with the increase of interest in UHD (Ultra High Definition) having resolution more than 4 times of HDTV in addition to HDTV, a compression technique for a higher resolution and a higher image quality is required.

영상 압축을 위해, 시간적으로 이전 및/또는 이후의 픽쳐로부터 현재 픽쳐에 포함된 화소값을 예측하는 인터(inter, 화면 내) 예측 기술, 현재 픽쳐 내의 화소 정보를 이용하여 현재 픽쳐에 포함된 화소값을 예측하는 인트라(intra, 화면 간) 예측 기술, 출현 빈도가 높은 심볼(symbol)에 짧은 부호를 할당하고 출현 빈도가 낮은 심볼에 긴 부호를 할당하는 엔트로피 부호화 기술 등이 사용될 수 있다.An inter prediction technique for predicting a pixel value included in a current picture from temporally preceding and / or following pictures for image compression, an intra-picture prediction technique for predicting pixel values included in a current picture using pixel information in the current picture, An intra-picture prediction technique for predicting a short code, an entropy coding technique for assigning a short code to a symbol having a high appearance frequency and allocating a long code to a symbol having a low appearance frequency, or the like.

한편, 영상의 부호화 또는 복호화 시, 구체적으로 영상 신호 또는 영상에 대한 잔차 신호의 부호화 또는 복호화 시 변환 과정을 생략하는 변환 생략 모드가 적용될 수 있다. 현재, 변환 생략 모드는 0이 아닌 계수가 존재하는 (즉, CBF(coded block flag) 가 1인) 4x4 크기의 변환 블록(transform block, TB) 에 적용될 수 있다. 또한, 변환 생략 모드가 적용되는지를 나타내는 플래그 (transform_skip_flag) 정보는 변환 블록마다 시그널링 되고 있다.On the other hand, in the encoding or decoding of the image, a conversion omission mode may be applied to omit the conversion process when encoding or decoding the residual signal for the image signal or image. Currently, the translation skip mode can be applied to a 4x4 size transform block (TB) in which a nonzero coefficient exists (i.e., a coded block flag (CBF) is 1). In addition, the flag (transform_skip_flag) information indicating whether the conversion skip mode is applied is signaled for each conversion block.

본 발명은 변환 생략을 시그널링하기 위한 비트량을 감소시키고, 영상 부호화 효율을 증가시키는 영상 부호화/복호화 방법 및 이를 이용하는 장치를 제공한다. The present invention provides a video encoding / decoding method and a device using the same that reduce a bit amount for signaling a conversion omission and increase a video encoding efficiency.

본 발명은 화면 내에서 반복적으로 유사한 패턴이 발생하며, 고주파를 다량 포함하는 잔차 신호가 빈번히 발생하는 경우, 소정의 단위 내의 변환 블록들은 공통적으로 변환 생략 모드가 적용되거나 적용되지 않을 가능성이 존재하므로, 이 경우 이들의 변환 생략 여부를 대표하는 플래그를 시그널링함으로써 부호화 효율을 증가 시킬 수 있는 영상 부호화/복호화 방법 및 이를 이용하는 장치를 제공한다. In the present invention, similar patterns occur repeatedly in the screen, and when there is a frequent occurrence of a residual signal containing a large amount of high frequency, there is a possibility that the conversion skip mode is applied or not commonly applied to the conversion blocks within a predetermined unit. In this case, there is provided an image encoding / decoding method and an apparatus using the image encoding / decoding method capable of increasing a coding efficiency by signaling a flag representing whether or not the conversion is omitted.

본 발명의 일 실시예에 따른 영상의 복호화 방법은 현재 코딩 유닛의 크기가 변환 생략이 가능한 변환 블록을 포함할 수 있는 경우, 상기 코딩 유닛으로부터 분할되는 변환 블록의 변환 생략 여부를 지시하는 제1 정보를 대표하는 대표 플래그를 상기 코딩 유닛에 대한 정보로 파싱하는 단계와, 상기 대표 플래그에 기초하여 상기 제1 정보의 파싱 여부를 판단하는 단계와, 상기 제1 정보의 파싱이 필요 없는 경우 상기 대표 플래그에 기초하여 상기 제1 정보를 유추하고, 상기 제1 정보의 파싱이 필요한 경우 상기 제1 정보를 파싱하는 단계와, 상기 제1 정보에 따라 상기 변환 블록에 대한 변환을 수행 또는 생략하는 단계를 포함한다. In the method of decoding an image according to an embodiment of the present invention, when the size of the current coding unit can include a conversion block capable of omitting conversion, the first information indicating whether to omit conversion of the conversion block divided from the coding unit Parsing the representative flag into information on the coding unit; determining whether to parse the first information based on the representative flag; and if the parsing of the first information is not necessary, Parsing the first information if parsing of the first information is required; and performing or omitting a transformation on the transform block according to the first information do.

상기 대표 플래그는 변환 블록에 변환 생략이 적용되지 않는 것을 대표할 수 있다. The representative flag may represent that conversion skip is not applied to the conversion block.

상기 대표 플래그가 1이면 상기 제1 정보는 변환 블록에 변환 생략이 적용되지 않는 것으로 유추되며, 상기 대표 플래그가 0이면 상기 제1 정보는 파싱을 통해 판별하고 상기 판별된 제1 정보에 따라 변환 블록에 변환 생략의 적용여부를 결정할 수 있다. 추가의 더욱 간단한 다른 실현예에서는 상기 대표 플래그가 0이면 상기 제 1정보의 파싱을 하지 않고 상기 제1 정보를 변환 블록에 변환 생략이 적용되는 것으로 결정할 수 있다If the representative flag is 1, it is inferred that the first information is not applied to the conversion block, and if the representative flag is 0, the first information is discriminated through parsing, and in accordance with the discriminated first information, It is possible to determine whether or not to omit conversion. In a further simpler alternative realization example, if the representative flag is 0, it may be determined that the first information is not parsed in the first information and that the translation skip is applied to the translation block

본 발명의 다른 실시예에 따른 영상의 부호화 방법은 코딩의 대상이 되는 코딩 유닛으로부터 분할되는 변환 블록에 변환 생략이 적용되는지 판단하는 단계와, 상기 변환 블록에 변환 생략 여부를 지시하는 제1 정보를 대표하는 대표 플래그를 코딩하고, 상기 대표 플래그를 상기 코딩 유닛에 대한 정보로 시그널링하는 단계와, 상기 대표 플래그에 기초하여 상기 제1 정보의 코딩이 필요한 경우, 상기 제1 정보를 코딩하는 단계를 포함한다. According to another aspect of the present invention, there is provided a method of coding an image, the method comprising the steps of: determining whether conversion skip is applied to a conversion block divided from a coding unit to be coded; Comprising the steps of: coding a representative flag representative of a representative flag, signaling the representative flag with information on the coding unit, and coding the first information when coding of the first information is required based on the representative flag do.

상기 대표 플래그는 변환 블록에 변환 생략이 적용되지 않는 것을 대표할 수 있다. The representative flag may represent that conversion skip is not applied to the conversion block.

상기 코딩 유닛으로부터 분할되는 변환 블록에 변환 생략이 적용되지 않는 경우 상기 대표 플래그는 1로 코딩되며, 상기 코딩 유닛으로부터 분할되는 변환 블록에 변환 생략이 적용되는 경우 상기 대표 플래그는 0으로 코딩될 수 있다. 이 경우, 변환 블록별로 변환 생략이 적용되는 경우와 적용되지 않는 경우를 지시하는 제 1 정보를 추가로 코딩할 수 있다. The representative flag is coded as 1 if the conversion skip is not applied to the conversion block divided from the coding unit and the representative flag can be coded as 0 if the conversion skip is applied to the conversion block divided from the coding unit . In this case, it is possible to further code the first information indicating the case where the conversion skip is applied and the case where the conversion skip is not applied.

본 발명의 일 실시예에 따르면, 변환 생략을 시그널링하기 위한 비트량을 감소시키고, 영상 부호화 효율을 증가시키는 영상 부호화/복호화 방법 및 이를 이용하는 장치가 제공된다. According to an embodiment of the present invention, there is provided an image encoding / decoding method for reducing a bit amount for signaling a conversion omission and increasing image encoding efficiency and an apparatus using the same.

본 발명에 따르면, 화면 내에서 반복적으로 유사한 패턴이 발생하며, 고주파를 다량 포함하는 잔차 신호가 빈번히 발생하는 경우, 소정의 단위 내의 변환 블록들은 공통적으로 변환 생략 모드가 적용되거나 적용되지 않을 가능성이 존재하므로, 이 경우 이들의 변환 생략 여부를 대표하는 플래그를 시그널링함으로써 부호화 효율을 증가 시킬 수 있는 영상 부호화/복호화 방법 및 이를 이용하는 장치가 제공된다. According to the present invention, when a similar pattern repeatedly occurs in the screen and a residual signal including a large amount of high frequency is frequently generated, there is a possibility that the conversion skip mode is commonly applied or not applied to the conversion blocks within a predetermined unit Therefore, in this case, there is provided an image encoding / decoding method and an apparatus using the image encoding / decoding method capable of increasing the encoding efficiency by signaling a flag representing whether or not to omit the conversion.

구체적으로, 이러한 본 발명의 효과는 컴퓨터에 의하여 만들어진 인공 영상의 부호화 및 복호화에서 두드러지게 나타날 수 있다.Specifically, the effect of the present invention can be remarkably exhibited in the encoding and decoding of an artificial image produced by a computer.

도 1은 발명이 적용되는 영상 부호화 장치의 일 실시예에 따른 구성을 나타내는 블록도이다.
도 2는 본 발명이 적용되는 영상 복호화 장치의 일 실시예에 따른 구성을 나타내는 블록도이다.
도 3은 본 발명의 일 실시예에 따른 대표 플래그가 대표하는 코딩 유닛 내의 변환 블록을 설명하기 위한 도면이다.
도 4는 본 발명의 다른 실시예에 따른 대표 플래그가 대표하는 코딩 유닛 내의 변환 블록을 설명하기 위한 도면이다.
도 5는 본 발명의 일 실시예에 따른 변환 생략 여부를 대표하는 대표 플래그를 이용한 영상 복호화 방법을 나타낸 순서도이다.
도 6은 본 발명의 다른 실시예에 따른 변환 생략 여부를 대표하는 대표 플래그를 이용한 영상 복호화 방법을 나타낸 순서도이다.
도 7은 본 발명의 일 실시예에 따른 대표 플래그를 참조하여 변환 유닛의 분할 여부를 나타내는 분할 정보를 유추하는 과정을 나타낸 순서도이다.
도 8은 본 발명의 일 실시예에 따른 IBC 예측을 설명하기 위한 도면이다.
도 9는 본 발명의 일 실시예에 따른 변환 생략 여부를 대표하는 대표 플래그를 이용한 영상 부호화 방법을 나타낸 순서도이다.
1 is a block diagram illustrating a configuration of an image encoding apparatus according to an embodiment of the present invention.
2 is a block diagram illustrating a configuration of an image decoding apparatus according to an embodiment of the present invention.
3 is a diagram for explaining a conversion block in a coding unit represented by a representative flag according to an embodiment of the present invention.
4 is a diagram for explaining a conversion block in a coding unit represented by a representative flag according to another embodiment of the present invention.
5 is a flowchart illustrating an image decoding method using a representative flag representative of whether or not to omit conversion according to an embodiment of the present invention.
FIG. 6 is a flowchart illustrating a video decoding method using a representative flag representing whether or not to omit conversion according to another embodiment of the present invention.
7 is a flowchart illustrating a process of inferring division information indicating whether or not a conversion unit is divided with reference to a representative flag according to an embodiment of the present invention.
8 is a diagram for explaining IBC prediction according to an embodiment of the present invention.
9 is a flowchart illustrating a method of encoding an image using a representative flag representative of whether or not to omit conversion according to an embodiment of the present invention.

이하, 도면을 참조하여 본 발명의 실시 형태에 대하여 구체적으로 설명한다. 본 명세서의 실시예를 설명함에 있어, 관련된 공지 구성 또는 기능에 대한 구체적인 설명이 본 명세서의 요지를 흐릴 수 있다고 판단되는 경우에는 그 상세한 설명은 생략한다.Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. In the following description of the embodiments of the present invention, a detailed description of known functions and configurations incorporated herein will be omitted when it may make the subject matter of the present disclosure rather unclear.

어떤 구성 요소가 다른 구성 요소에 “연결되어” 있다거나 “접속되어” 있다고 언급된 때에는, 그 다른 구성 요소에 직접적으로 연결되어 있거나 또는 접속되어 있을 수도 있으나, 중간에 다른 구성 요소가 존재할 수도 있다고 이해되어야 할 것이다. 아울러, 본 발명에서 특정 구성을 “포함”한다고 기술하는 내용은 해당 구성 이외의 구성을 배제하는 것이 아니며, 추가적인 구성이 본 발명의 실시 또는 본 발명의 기술적 사상의 범위에 포함될 수 있음을 의미한다. It is to be understood that when an element is referred to as being "connected" or "connected" to another element, it may be directly connected or connected to the other element, . In addition, the description of "including" a specific configuration in the present invention does not exclude a configuration other than the configuration, and means that additional configurations can be included in the practice of the present invention or the technical scope of the present invention.

제1, 제2 등의 용어는 다양한 구성요소들을 설명하는데 사용될 수 있지만, 상기 구성요소들은 상기 용어들에 의해 한정되어서는 안 된다. 상기 용어들은 하나의 구성요소를 다른 구성요소로부터 구별하는 목적으로만 사용된다. 예를 들어, 본 발명의 권리 범위를 벗어나지 않으면서 제1 구성요소는 제2 구성요소로 명명될 수 있고, 유사하게 제2 구성요소도 제1 구성요소로 명명될 수 있다.The terms first, second, etc. may be used to describe various components, but the components should not be limited by the terms. The terms are used only for the purpose of distinguishing one component from another. For example, without departing from the scope of the present invention, the first component may be referred to as a second component, and similarly, the second component may also be referred to as a first component.

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

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

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

도 1을 참조하면, 상기 영상 부호화 장치(100)는 예측부(110), 감산기(125), 변환부(130), 양자화부(140), 엔트로피 부호화부(150), 역양자화부(160), 역변환부(170), 가산기(175), 필터부(180) 및 참조영상 버퍼(190)를 포함한다.1, the image encoding apparatus 100 includes a prediction unit 110, a subtractor 125, a transform unit 130, a quantization unit 140, an entropy encoding unit 150, an inverse quantization unit 160, An inverse transform unit 170, an adder 175, a filter unit 180, and a reference image buffer 190.

영상 부호화 장치(100)는 입력 영상에 대해 인트라(intra) 모드 또는 인터(inter) 모드로 부호화를 수행하고 비트스트림(bit stream)을 출력할 수 있다. 인트라 예측은 화면 내 예측, 인터 예측은 화면 간 예측을 의미한다. 인트라 모드인 경우 스위치(미도시)가 인트라로 전환되고, 인터 모드인 경우 스위치가 인터로 전환된다. 영상 부호화 장치(100)는 입력 영상의 입력 블록에 대한 예측 블록을 생성한 후, 입력 블록과 예측 블록의 차분을 부호화할 수 있다.The image encoding apparatus 100 may encode an input image in an intra mode or an inter mode and output a bit stream. Intra prediction is intra prediction, and inter prediction is inter prediction. In the intra mode, the switch (not shown) is switched to intra, and in the inter mode, the switch is switched to the inter-switch. The image encoding apparatus 100 may generate a prediction block for an input block of the input image, and may then code the difference between the input block and the prediction block.

예측부는 인트라 예측을 수행하는 인트라 예측부, 인터 예측을 수행하는 움직임 예측부 및 움직임 보상부, 인트라 카피 예측(intra block copy(IBC) prediction)을 수행하는 IBC 예측부를 세부적인 구성 요소로 포함할 수 있다. 또한, 영상 부호화 장치는 도시하지 않은 스위치를 포함할 수 있고, 스위치는 인터 예측부, 인트라 예측부, IBC 예측부 사이에서 전환될 수 있다. The prediction unit may include an intra prediction unit for performing intra prediction, a motion prediction unit and a motion compensation unit for performing inter prediction, and an IBC prediction unit for performing intra-block copy (IBC) prediction. have. Also, the video encoding apparatus may include a switch (not shown), and the switch may be switched between the inter prediction unit, the intra prediction unit, and the IBC prediction unit.

인트라 모드인 경우, 인트라 예측부는 현재 블록 주변의 이미 부호화된 블록의 화소값을 이용하여 공간적 예측을 수행하여 예측 블록을 생성할 수 있다.In the intra mode, the intraprediction unit may generate a prediction block by performing spatial prediction using the pixel value of the already coded block around the current block.

인터 모드인 경우, 움직임 예측부는, 움직임 예측 과정에서 참조 영상 버퍼(190)에 저장되어 있는 참조 영상에서 입력 블록과 가장 매치가 잘 되는 영역을 찾아 움직임 벡터를 구할 수 있다. 움직임 보상부는 움직임 벡터와 참조 영상 버퍼(190)에 저장되어 있는 참조 영상을 이용하여 움직임 보상을 수행함으로써 예측 블록을 생성할 수 있다. In the inter mode, the motion predicting unit can find a motion vector by searching an area of the reference image stored in the reference image buffer 190 that is best matched with the input block. The motion compensation unit may generate a prediction block by performing motion compensation using a motion vector and a reference image stored in the reference image buffer 190.

IBC 예측부는 현재 픽쳐 내에서 움직임 예측, 즉 탐색을 수행하여 현재 블록과 유사한 영역을 판별하여, 현재 블록에 대한 예측값, 블록 벡터를 구할 수 있다. IBC 예측부에 의한 예측은 이하에서 상세히 기술된다. The IBC predicting unit may perform motion prediction, i.e., search, in the current picture to determine an area similar to the current block, and obtain a predicted value and a block vector for the current block. The prediction by the IBC predictor is described in detail below.

감산기(125)는 입력 블록과 생성된 예측 블록의 차분에 의해 잔여 블록(residual block)을 생성할 수 있다. 변환부(130)는 잔여 블록에 대해 변환(transform)을 수행하여 변환 계수(transform coefficient)를 출력할 수 있다. 일부 잔여 블록에 대하여 변환부(130)는 변환(transform)을 생략하도록 구성될 수도 있으며, 이 경우에도 변환부(130)의 출력을 편의상 변환 계수(transform coefficient)라고 부른다. 그리고 양자화부(140)는 입력된 변환 계수를 양자화 파라미터에 따라 양자화하여 양자화된 계수(quantized coefficient)를 출력할 수 있다. The subtractor 125 may generate a residual block by a difference between the input block and the generated prediction block. The transforming unit 130 may perform a transform on the residual block to output a transform coefficient. The transforming unit 130 may be configured to omit a transform for some residual blocks. In this case, the output of the transforming unit 130 is referred to as a transform coefficient for the sake of convenience. The quantization unit 140 may quantize the input transform coefficient according to the quantization parameter to output a quantized coefficient.

엔트로피 부호화부(150)는, 양자화부(140)에서 산출된 값들 또는 부호화 과정에서 산출된 부호화 파라미터 값 등을 기초로, 심볼(symbol)을 확률 분포에 따라 엔트로피 부호화하여 비트스트림(bit stream)을 출력할 수 있다. 엔트로피 부호화 방법은 다양한 값을 갖는 심볼을 입력 받아, 통계적 중복성을 제거하면서, 복호 가능한 2진수의 열로 표현하는 방법이다. The entropy encoding unit 150 entropy-codes a symbol according to a probability distribution based on the values calculated by the quantization unit 140 or the encoding parameter value calculated in the encoding process to obtain a bit stream Can be output. The entropy coding method is a method of receiving symbols having various values and expressing them as decodable binary numbers while eliminating statistical redundancy.

여기서, 심볼이란 부호화/복호화 대상 구문 요소(syntax element) 및 부호화 파라미터(coding parameter), 잔여 신호(residual signal)의 값 등을 의미한다. 부호화 파라미터는 부호화 및 복호화에 필요한 매개변수로서, 구문 요소와 같이 부호화 장치에서 부호화되어 복호화 장치로 전달되는 정보뿐만 아니라, 부호화 혹은 복호화 과정에서 유추될 수 있는 정보를 포함할 수 있으며 영상을 부호화하거나 복호화할 때 필요한 정보를 의미한다. 부호화 파라미터는 예를 들어 인트라/인터 예측모드, 이동/움직임 벡터(motion vector), 참조 영상 색인, 부호화 블록 패턴, 잔여 신호 유무, 변환 계수, 양자화된 변환 계수, 양자화 파라미터, 블록 크기, 블록 분할 정보 등의 값 또는 통계를 포함할 수 있다. 또한 잔여 신호는 원신호와 예측 신호의 차이를 의미할 수 있고, 또한 원신호와 예측 신호의 차이가 변환(transform)된 형태의 신호 또는 원신호와 예측 신호의 차이가 변환되고 양자화된 형태의 신호, 또는 원신호와 예측 신호의 차이 신호 또는 원신호와 예측 신호의 차이 신호가 양자화된 형태의 신호를 의미할 수도 있다. 잔여 신호는 블록 단위에서는 잔여 블록이라 할 수 있다.Here, the symbol means a syntax element to be encoded / decoded, a coding parameter, a value of a residual signal, and the like. The encoding parameter is a parameter necessary for encoding and decoding. The encoding parameter may include information that can be inferred in an encoding or decoding process, as well as information encoded and encoded in a encoding device such as a syntax element, and may be encoded or decoded It means the information that is needed when doing. The coding parameters include, for example, intra / inter prediction mode, motion / motion vector, reference picture index, coding block pattern, residual signal presence, transform coefficients, quantized transform coefficients, quantization parameters, And the like. In addition, the residual signal may mean a difference between the original signal and the prediction signal, or a signal in which the difference between the original signal and the prediction signal is transformed or a difference between the original signal and the prediction signal is transformed and the quantized signal Or a difference signal between the original signal and the prediction signal or a signal in which the difference signal between the original signal and the prediction signal is quantized. The residual signal can be regarded as a residual block in block units.

엔트로피 부호화가 적용되는 경우, 높은 발생 확률을 갖는 심볼에 적은 수의 비트가 할당되고 낮은 발생 확률을 갖는 심볼에 많은 수의 비트가 할당되어 심볼이 표현됨으로써, 부호화 대상 심볼들에 대한 비트열의 크기가 감소될 수 있다. 따라서 엔트로피 부호화를 통해서 영상 부호화의 압축 성능이 높아질 수 있다. When entropy coding is applied, a small number of bits are allocated to a symbol having a high probability of occurrence, and a large number of bits are allocated to a symbol having a low probability of occurrence, so that the size of a bit string for the symbols to be coded Can be reduced. Therefore, the compression performance of the image encoding can be enhanced through the entropy encoding.

엔트로피 부호화를 위해 지수 골룸(exponential golomb), CAVLC(Context-Adaptive Variable Length Coding), CABAC(Context-Adaptive Binary Arithmetic Coding)과 같은 부호화 방법이 사용될 수 있다. 예를 들어, 엔트로피 부호화부(150)에는 가변 길이 부호화(VLC: Variable Length Coding/Code) 테이블과 같은 엔트로피 부호화를 수행하기 위한 테이블이 저장될 수 있고, 엔트로피 부호화부(150)는 저장된 가변 길이 부호화(VLC) 테이블을 사용하여 엔트로피 부호화를 수행할 수 있다. 또한 엔트로피 부호화부(150)는 대상 심볼의 이진화(binarization) 방법 및 대상 심볼/빈(bin)의 확률 모델(probability model)을 도출한 후, 도출된 이진화 방법 또는 확률 모델을 사용하여 엔트로피 부호화를 수행할 수도 있다.For entropy encoding, an encoding method such as exponential golomb, context-adaptive variable length coding (CAVLC), and context-adaptive binary arithmetic coding (CABAC) may be used. For example, a table for performing entropy encoding such as a Variable Length Coding / Code (VLC) table may be stored in the entropy encoding unit 150, and the entropy encoding unit 150 may store the stored variable length encoding (VLC) table for performing entropy encoding. Further, the entropy encoding unit 150 derives a binarization method of a target symbol and a probability model of a target symbol / bin, and then performs entropy encoding using the derived binarization method or probability model You may.

양자화된 계수는 역양자화부(160)에서 역양자화되고 역변환부(170)에서 역변환될 수 있다. 일부 블록에 대하여 역변환부(170)는 역변환을 생략하도록 구성될 수도 있으며, 이 경우에도 역변환부(170)의 출력을 편의상 역변환된 계수라고 부른다. 역양자화, 역변환된 계수는 가산기(175)를 통해 예측 블록과 더해지고 복원 블록이 생성될 수 있다. The quantized coefficients can be inversely quantized in the inverse quantization unit 160 and inversely transformed in the inverse transformation unit 170. For some blocks, the inverse transform unit 170 may be configured to omit the inverse transform, and in this case also, the output of the inverse transform unit 170 is referred to as an inverse transformed coefficient for convenience. The inverse quantized and inverse transformed coefficients can be added to the prediction block through the adder 175 and a reconstruction block can be generated.

복원 블록은 필터부(180)를 거치고, 필터부(180)는 디블록킹 필터(deblocking filter), SAO(Sample Adaptive Offset), ALF(Adaptive Loop Filter) 중 적어도 하나 이상을 복원 블록 또는 복원 픽쳐에 적용할 수 있다. 필터부(180)를 거친 복원 블록은 참조 영상 버퍼(190)에 저장될 수 있다.
The restoration block passes through the filter unit 180 and the filter unit 180 applies at least one of a deblocking filter, a sample adaptive offset (SAO), and an adaptive loop filter (ALF) can do. The restoration block having passed through the filter unit 180 may be stored in the reference image buffer 190.

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

도 2를 참조하면, 상기 영상 복호화 장치(200)는 엔트로피 복호화부(210), 역양자화부(220), 역변환부(230), 예측부(240), 필터부(260) 및 참조 영상 버퍼(270)를 포함한다.2, the image decoding apparatus 200 includes an entropy decoding unit 210, an inverse quantization unit 220, an inverse transform unit 230, a prediction unit 240, a filter unit 260, 270).

영상 복호화 장치(200)는 부호화 장치에서 출력된 비트스트림을 입력 받아 인트라 모드, 인터 모드 또는 IBC 모드로 복호화를 수행하고 재구성된 영상, 즉 복원 영상을 출력할 수 있다. The video decoding apparatus 200 receives the bit stream output from the encoding apparatus and decodes the video stream into an intra mode, an inter mode, or an IBC mode, and outputs a reconstructed video, that is, a reconstructed video.

영상 복호화 장치(200)는 입력 받은 비트스트림으로부터 복원된 잔여 블록(residual block)을 얻고 예측 블록을 생성한 후 복원된 잔여 블록과 예측 블록을 더하여 재구성된 블록, 즉 복원 블록을 생성할 수 있다.The video decoding apparatus 200 may generate a reconstructed block, i.e., a reconstructed block, by obtaining a reconstructed residual block from the input bitstream, generating a predicted block, and adding the reconstructed residual block to the predicted block.

엔트로피 복호화부(210)는, 입력된 비트스트림을 확률 분포에 따라 엔트로피 복호화하여, 양자화된 계수(quantized coefficient) 형태의 심볼을 포함한 심볼들을 생성할 수 있다. 엔트로피 복호화 방법은 2진수의 열을 입력 받아 각 심볼들을 생성하는 방법이다. 엔트로피 복호화 방법은 상술한 엔트로피 부호화 방법과 유사하다.The entropy decoding unit 210 may entropy-decode the input bitstream according to a probability distribution to generate symbols including a symbol of a quantized coefficient type. The entropy decoding method is a method of generating each symbol by receiving a binary sequence. The entropy decoding method is similar to the entropy encoding method described above.

양자화된 계수는 역양자화부(220)에서 역양자화되고 역변환부(230)에서 역변환되며, 양자화된 계수가 역양자화/역변환 된 결과, 복원된 잔여 블록(residual block)이 생성될 수 있다. 일부 블록에 대하여 역변환부(230)는 역변환을 생략하도록 구성될 수도 있다. 또한, 역양자화부(220)도 일부 블록에 대하여 생략되도록 구성될 수 도 있다.The quantized coefficients are inversely quantized in the inverse quantization unit 220 and inversely transformed in the inverse transformation unit 230. As a result that the quantized coefficients are inversely quantized / inverse transformed, reconstructed residual blocks can be generated. For some blocks, the inverse transform unit 230 may be configured to omit the inverse transform. Also, the inverse quantization unit 220 may be configured to omit some blocks.

예측부(240)는 인트라 예측을 수행하는 인트라 예측부, 인터 예측을 수행하는 움직임 예측부 및 움직임 보상부, 인트라 카피 예측(intra block copy(IBC) prediction)을 수행하는 IBC 예측부를 세부적인 구성 요소로 포함할 수 있다.The prediction unit 240 includes an intra prediction unit for performing intra prediction, a motion prediction unit and a motion compensation unit for performing inter prediction, an IBC prediction unit for performing intra-block copy (IBC) prediction, As shown in FIG.

인트라 모드인 경우, 인트라 예측부는 현재 블록 주변의 이미 부호화된 블록의 화소값을 이용하여 공간적 예측을 수행하여 예측 블록을 생성할 수 있다. 인터 모드인 경우, 움직임 보상부는 움직임 벡터 및 참조 영상 버퍼(270)에 저장되어 있는 참조 영상을 이용하여 움직임 보상을 수행함으로써 예측 블록을 생성할 수 있다. In the intra mode, the intraprediction unit may generate a prediction block by performing spatial prediction using the pixel value of the already coded block around the current block. In the inter mode, the motion compensation unit may generate a prediction block by performing motion compensation using a motion vector and a reference image stored in the reference image buffer 270. [

IBC 예측의 경우, IBC 예측부는 현재 픽쳐 내에서 움직임 예측, 즉 탐색을 수행하여 현재 블록과 유사한 영역을 판별하여 현재 블록에 대한 예측값, 블록 벡터를 구할 수 있다. IBC 예측부에 의한 예측은 이하에서 상세히 기술된다.In case of IBC prediction, the IBC predictor can perform a motion prediction, i.e., a search, in the current picture to determine an area similar to the current block to obtain a predicted value and a block vector for the current block. The prediction by the IBC predictor is described in detail below.

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

상기 영상 복호화 장치(200)에 포함되어 있는 엔트로피 복호화부(210), 역양자화부(220), 역변환부(230), 예측부(240), 필터부(260) 및 참조 영상 버퍼(270) 중 영상의 복호화에 직접적으로 관련된 구성요소들, 예컨대, 엔트로피 복호화부(210), 역양자화부(220), 역변환부(230), 예측부(240) 필터부(260) 등을 다른 구성요소와 구분하여 복호화부 또는 디코딩부로 표현할 수 있다. The entropy decoding unit 210, the inverse quantization unit 220, the inverse transform unit 230, the predictor 240, the filter unit 260, and the reference image buffer 270 included in the image decoding apparatus 200 The entropy decoding unit 210, the inverse quantization unit 220, the inverse transform unit 230, the prediction unit 240, the filter unit 260, and the like directly related to the decoding of the image are distinguished from other components And can be expressed as a decoding unit or a decoding unit.

또한, 영상 복호화 장치(200)는 비트스트림에 포함되어 있는 인코딩된 영상에 관련된 정보를 파싱하는 도시하지 않은 파싱부를 더 포함할 수 있다. 파싱부는 엔트로피 복호화부(210)를 포함할 수도 있고, 엔트로피 복호화부(210)에 포함될 수도 있다. 이러한 파싱부는 또한 디코딩부의 하나의 구성요소로 구현될 수도 있다.
In addition, the video decoding apparatus 200 may further include a parsing unit (not shown) for parsing information related to the encoded video included in the bitstream. The parsing unit may include an entropy decoding unit 210 or may be included in the entropy decoding unit 210. Such a parsing unit may also be implemented as one component of the decoding unit.

한편, 기존의 영상 코딩 방법 중에는 고주파 성분을 많이 포함하고 있는 블록에 대하여 변환을 생략하는 변환 생략(Transform Skip)을 적용하고 있다.On the other hand, in the conventional image coding method, a transform skip is applied to a block including a large number of high-frequency components to omit the conversion.

예를 들어, 픽쳐 파라미터 세트(picture parameter set)와 같은 상위 단에서 시그널링되는 transform_skip_enabled_flag에 대한 값이 1이고, 잔차 신호의 부/복호화시, CBF(coded block flag)가 1인 모든 4x4 크기의 변환 블록(transform block, TB)에 대하여 변환 생략 여부를 지시하는 플래그(transform_skip_flag)를 개별적으로 시그널링 할 수 있다.For example, when a value for a transform_skip_enabled_flag signaled at an upper end such as a picture parameter set is 1 and a value of a 4x4 transform block having a CBF (coded block flag) a flag (transform_skip_flag) indicating whether or not the transform is skipped can be individually signaled to the transform block TB.

또는 transform_skip_enabled_flag에 대한 값이 1이고, 현재 변환 블록의 크기가 픽쳐 파라미터 세트에서 시그널링되는 변환 생략이 적용될 수 있는 변환 블록의 최대 크기를 나타내는 정보(예를 들어, log2_max_transform_skip_block_size_minus2)에 의하여 정의되는 최대 블록 크기보다 작거나 같고, CBF가 1인 모든 변환 블록에 대하여 변환 생략 여부를 지시하는 플래그(transform_skip_flag)를 개별적으로 시그널링 할 수 있다.Or the value of the transform_skip_enabled_flag is 1 and the size of the current transform block is larger than the maximum block size defined by the information (for example, log2_max_transform_skip_block_size_minus2) indicating the maximum size of the transform block to which the transformation skip signaled in the picture parameter set can be applied A flag (transform_skip_flag) indicating whether or not the conversion is omitted can be individually signaled for all conversion blocks having a CBF of 1 or less.

이러한 변환 생략 시그널링 방법의 경우, CBF가 1인 변환 생략 가능한 모든 변환 블록에 대하여 개별적으로 변환 생략 여부를 지시하는 플래그 (transform_skip_flag) 정보가 시그널링 되므로 비트량이 증가하는 문제점이 발생할 수 있다.In the case of this conversion omission signaling method, since the flag (transform_skip_flag) indicating the conversion omission is separately signaled to all conversion blocks which can be converted to CBF 1, the bit amount may increase.

이에, 본 발명은 소정 단위(일 실시예에 의하면, 코딩 유닛(coding unit, CU)일 수 있으며, 또 다른 실시예서는 에측 유닛(prediction unit, PU) 일 수 있다) 내에 포함된 하나 또는 복수개의 변환 유닛들의 변환 생략 여부를 대표하여 표시하는 정보를 설정하고, 이를 복호화 장치로 시그널링 하는 방법을 제안함으로써, 변환 생략을 시그널링하기 위한 비트량을 감소시키고, 궁극적으로 영상 부호화 효율을 증대시키는 것을 목적으로 한다.Accordingly, the present invention may be embodied as one or more than one (e.g., one or more) instructions contained within a predetermined unit (which may be a coding unit (CU) according to one embodiment and another embodiment may be a prediction unit The present invention proposes a method of signaling information to be displayed on a representative basis of whether or not conversion of conversion units is omitted and signaling to the decoding apparatus so as to reduce the bit amount for signaling the conversion omission and ultimately increase the image coding efficiency do.

특히, 화면 내에서 반복적으로 유사한 패턴이 발생하거나 고주파를 다량 포함하는 잔차 신호가 빈번히 발생하는 영상의 경우, 소정 단위 내에 속하는 변환 블록들은 모두 변환이 생략되거나 모두 변환이 수행될 가능성이 높으므로, 이 경우 개별 변환 블록별로 변환 생략 여부를 지시하는 플래그를 시그널링하는 대신, 소정 단위의 변환 생략 여부를 대표하는 플래그를 시그널링 함으로써 부호화 효율을 증가시킬 수 있다. Particularly, in the case of an image in which a similar pattern is repeatedly generated in the screen or a residual signal including a large amount of high frequency is frequently generated, all conversion blocks belonging to a predetermined unit are highly likely to be converted or omitted. The encoding efficiency can be increased by signaling a flag representative of whether or not the predetermined unit of conversion is omitted, instead of signaling a flag indicating whether or not to omit conversion for each individual conversion block.

예를 들어, 컴퓨터에 의하여 만들어진 인공 영상의 경우, 반복적인 유사 패턴이 발생하거나 고주파를 포함할 수 있는 경향이 강하므로, 본 발명을 적용할 경우 그 효과가 증대될 수 있다.For example, in the case of an artificial image created by a computer, a repetitive similar pattern may occur or a high frequency may be included, so that the effect of the present invention can be enhanced.

본 발명의 설명에서는 편의상 소정 단위를 구체적으로 코딩 유닛의 용어를 사용하여 기술하나, 본 발명의 소정 단위가 반드시 코딩 유닛으로는 한정되지는 않는다. 한편, 본 발명 명세서에서 사용하는 코딩 유닛, 코딩 블록 (coding block, CB)을 설명하면 다음과 같다.In the description of the present invention, a predetermined unit is specifically described using terms of a coding unit for convenience, but the predetermined unit of the present invention is not necessarily limited to a coding unit. Meanwhile, a coding unit, a coding block (CB) used in the present invention will be described as follows.

코딩 유닛은 하나의 코딩 블록 또는 복수개의 코딩 블록과 이들이 사용하는 신택스 요소 정보로 구성된다. 컬러 영상의 경우 일반적으로 세 개의 컴포넌트를 가지고 있으므로, 하나의 코딩 유닛은 각 컴포넌트별로 하나의 코딩블록을 가져 총 세 개의 코딩 블록(예를 들어 세 개의 컴포넌트를 갖는 영상이면서 각 컴포넌트별로 독립적으로 부호화 되지 않을 경우)을 가지거나, 하나의 코딩 블록(예를 들어, 모노크롬(Monochrome) 영상의 경우, 또는 컬러 영상이라도 각 컴포넌트별로 독립적으로 부호화될 경우)을 가질 수 있다.A coding unit is composed of one coding block or a plurality of coding blocks and syntax element information used by them. In the case of a color image, since there are generally three components, one coding unit has one coding block for each component, and a total of three coding blocks (for example, an image having three components and being independently encoded for each component (For example, in the case of a monochrome image, or even if a color image is independently encoded for each component).

또한, 변환이 적용되거나 변환 생략이 적용되는 변환 블록(transform block, TB)과, 분할의 단위가 되는 변환 유닛(transform unit, TU)에 대하여 설명하면 다음과 같다.In addition, a transform block (TB) to which a transform is applied or to which a transform is to be applied and a transform unit (TU) which is a unit of the dividing will be described as follows.

본 발명에 따른 변환 유닛(transform unit, TU)은 코딩 유닛으로부터 분할될 수 있는 단위이다. 하나의 코딩 유닛은 변환 부호화를 위하여 하나 또는 복수개의 변환 유닛으로 분할 될 수 있는데, 구체적으로 어떻게 분할 되는가는 코딩 유닛을 루트(root)로 하는 쿼드트리 정보에 의하여 지시된다. 이를 분할(split 정보 또는 split_transform_flag 정보)이라고 한다. 변환 유닛은 하나의 변환 블록 또는 복수개의 변환 블록과 이들이 사용하는 신택스 요소 정보로 구성된다. 변환 유닛은 각 색상 컴퍼넌트(예를 들어, Y,Cb,Cr)를 구성하는 변환 블록(transform block)들의 집합적인 개념을 가질 수 있으며, 하나의 변환 유닛이 갖는 변환 블록의 개수는 색상 포맷에 따라 다를 수 있다A transform unit (TU) according to the present invention is a unit that can be divided from a coding unit. One coding unit may be divided into one or a plurality of conversion units for transcoding. Specifically, how it is divided is indicated by quad tree information having a coding unit root. This is called splitting (split information or split_transform_flag information). The conversion unit is composed of one conversion block or a plurality of conversion blocks and syntax element information used by them. The conversion unit may have a collective concept of transform blocks constituting each color component (for example, Y, Cb, Cr), and the number of conversion blocks of one conversion unit may be determined according to the color format can be different

변환 블록은 변환 및 양자화를 수행하는 기본 단위에 해당한다. The conversion block corresponds to a basic unit for performing conversion and quantization.

세 개의 컴포넌트를 가지고 있는 컬러 영상의 경우, 만일 색상 포맷이 4:2:0 또는 4:4:4 일 경우, 하나의 변환 유닛은 세 개의 변환 블록 (하나는 루마 컴포넌트에 대한 변환 블록이고, 나머지 두 개는 크로마 컴포넌트에 대한 변환블록이다)을 갖는다. 한편, 4:2:2 색상 포맷의 경우, 다섯 개의 변환 블록 (하나는 루마 컴포넌트에 대한 변환 블록이고, 나머지 네 개는 크로마 컴포넌트에 대한 변환 블록이다)을 가지며, 모노크롬 영상이거나 컬러 영상이라도 각 컴포넌트별로 독립적으로 부호화될 경우, 한 개의 변환 블록을 가질 수 있다. In the case of a color image with three components, if the color format is 4: 2: 0 or 4: 4: 4, then one conversion unit will have three conversion blocks (one is the conversion block for the luma component, And two are transform blocks for the chroma component). On the other hand, in the 4: 2: 2 color format, five conversion blocks (one is a conversion block for a luma component and the remaining four are conversion blocks for a chroma component) If they are independently encoded, they can have one transform block.

한편, 색상 포맷이 4:4:4인 경우, 하나의 변환 유닛에 속하는 변환 블록들은 모두 동일한 크기를 가질 수 있다.On the other hand, when the color format is 4: 4: 4, the conversion blocks belonging to one conversion unit may all have the same size.

색상 포맷이 4:2:0인 경우, 루마 변환 블록의 크기는 변환 유닛의 크기와 동일하지만 크로마 변환 블록의 크기는 변환 유닛보다 작을 수 있다. 즉, 동일한 변환 유닛에 속하는 변환 블록이라고 할지라도 루마와 크로마에 따라 변환 블록의 크기는 달라 질 수 있다. 그러나, 예외적으로 8x8 코딩 유닛이 한 차례 쿼드트리로 분할 되어 변환 유닛이 4x4의 크기를 가질 경우, 루마와 크로마 변환 블록 모두 4x4의 동일한 크기를 갖도록 할 수 있다. 이것은 너무 작은 (예를 들어 4x4보다 작은) 변환 블록은 실제 응용에 있어서 복잡도 증가대비 효용이 별로 없기 때문이다.
If the color format is 4: 2: 0, the size of the luma conversion block is equal to the size of the conversion unit, but the size of the chroma conversion block may be smaller than the conversion unit. That is, the size of the transform block may vary depending on the luma and chroma, even if the transform block belongs to the same transform unit. Exceptionally, however, if an 8x8 coding unit is divided into quad trees once and the transform unit has a size of 4x4, both the luma and chroma transform blocks can have the same size of 4x4. This is because transform blocks that are too small (for example, smaller than 4x4) have little utility in terms of increasing complexity in real applications.

이하, 본 발명에서는 코딩 유닛 내에 포함된 변환 블록들의 변환 생략 여부를 대표하여 표시하는 정보인 대표 플래그(예를 들어, transform_skip_all_zeros_in_cu_flag)를 시그널링하고, 이를 복호화하는 방법을 제공한다. Hereinafter, the present invention provides a method of signaling and decoding a representative flag (e.g., transform_skip_all_zeros_in_cu_flag), which is information representative of whether or not the conversion blocks included in the coding unit are omitted.

이때, 코딩 유닛 내에 포함된 변환 블록들의 변환 깊이(TU depth)를 고려하는지 여부에 따라 대표 플래그가 대표하는 코딩 유닛 내의 변환 블록들은 다음과 같이 두 가지로 나뉠 수 있다. At this time, the conversion blocks in the coding unit, which the representative flag represents, depending on whether or not considering the conversion depth (TU depth) of the conversion blocks included in the coding unit, can be divided into two as follows.

첫 번째 경우, 대표 플래그는 현재 코딩 유닛이 도달 가능한 최대 변환 깊이(MaxTrafoDepth)의 변환 블록들만을 대표할 수 있다. 다시 말해, 대표 플래그가 현재 코딩 유닛에서 분할될 수 있는 최소 크기의 변환 블록을 대표하는 경우를 말한다. In the first case, the representative flag may represent only the transform blocks of the maximum transform depth (MaxTrafoDepth) that the current coding unit is reachable. In other words, the representative flag represents a minimum-size conversion block that can be divided in the current coding unit.

여기서, 최대 변환 깊이라는 표현에서 깊이란 다음을 의미할 수 있다. 깊이가 0 인 경우는 변환을 위하여 현재 코딩 유닛이 더 이상 분할 되지 않음을 의미할 수 있다. 또한 깊이가 1인 경우는, 변환을 위하여 코딩 유닛이 쿼드 트리로 한 단계 분할 된다는 의미할 수 있다. 이때, 분할 후 변환 유닛을 구성하는 특정 변환 블록이 부호화 장치가 미리 정한 최소 변환 블록 크기보다 작아지는 경우는 그 해당 변환 블록은 더 이상 분할 되지 않을 수 있다. 또한 깊이가 1씩 증가할 때 마다, 위와 같이 최소 변환 블록 크기 보다 작아지지 않는다는 조건하에서 쿼드 트리로 한 단계 더 분할될 수 있다. 또한, 본 발명의 설명에서 깊이는, 코딩 유닛이 변환을 위하여 분할 되는 것을 의미하므로, 특별한 설명이 없는 경우 변환 깊이(trafoDepth)라는 용어와 같은 의미로 사용된다.Here, in the expression of maximum conversion depth, depth can mean the following. If the depth is zero, it may mean that the current coding unit is not further divided for conversion. If the depth is 1, it means that the coding unit is divided into quad-trees by one step for conversion. At this time, if the specific transform block constituting the transform unit after the division becomes smaller than the minimum transform block size predetermined by the encoder, the transform block may not be further divided. Also, whenever the depth is increased by 1, it can be further divided into quad trees under the condition that it does not become smaller than the minimum conversion block size as described above. Further, in the description of the present invention, the depth means that the coding unit is divided for conversion, and therefore, unless otherwise specified, the term depth is used in the same meaning as the term "transform depth".

두 번째 경우, 대표 플래그는 현재 코딩 유닛 내의 (변환 생략이 가능한 크기의) 모든 변환 블록들을 대표할 수 있다.
In the second case, the representative flag may represent all transform blocks (of a size that can be omitted) in the current coding unit.

도 3은 본 발명의 일 실시예에 따른 대표 플래그가 대표하는 코딩 유닛 내의 변환 블록을 설명하기 위한 도면이다. 3 is a diagram for explaining a conversion block in a coding unit represented by a representative flag according to an embodiment of the present invention.

도 3의 실시예는 대표 플래그가 현재 코딩 유닛 내에서 최대 변환 깊이를 가지는 변환 블록들을 대표하는 경우를 나타낸 것이다. The embodiment of FIG. 3 shows a case where the representative flag represents conversion blocks having the maximum conversion depth in the current coding unit.

예를 들어, 변환 생략이 4x4에서부터 16x16 크기까지의 변환 블록에 적용되는 것으로 가정하면, 16x16 크기의 코딩 유닛의 경우 최대 깊이로 분할된 4x4 변환 유닛에 포함된 변환 블록을 대표하여 대표 플래그가 시그널링될 수 있다. 도 3에서는 회색으로 도시된 블록들은 대표 플래그가 대표하는 변환 블록을 포함하는 변환 유닛을 나타낸다.For example, if it is assumed that the conversion omission is applied to the conversion block from 4x4 to 16x16 size, in the case of the 16x16 size coding unit, the representative flag is signaled on behalf of the conversion block included in the 4x4 conversion unit divided into the maximum depth . In Fig. 3, the blocks shown in gray represent conversion units including conversion blocks represented by representative flags.

즉, 부호화 장치는 코딩 유닛 내에서 최대 깊이로 분할된 변환 블록들에 대해 대표 플래그 값을 결정하고, 그 값을 복호화 장치로 시그널링할 수 있다. 그리고, 복호화 장치는 대표 플래그 값을 수신하여 파싱하고, 파싱된 대표 플래그 값을 기반으로 현재 코딩 유닛 내에서 최대 깊이의 변환 블록들에 대해 변환 생략을 적용할지 여부를 결정할 수 있다.
That is, the encoding apparatus can determine the representative flag value for the transform blocks divided by the maximum depth in the coding unit, and can signal the value to the decoding apparatus. The decoding device may then receive and parse the representative flag value and determine whether to apply a translation omission to the translation blocks of maximum depth in the current coding unit based on the parsed representative flag value.

도 4는 본 발명의 다른 실시예에 따른 대표 플래그가 대표하는 코딩 유닛 내의 변환 블록을 설명하기 위한 도면이다. 4 is a diagram for explaining a conversion block in a coding unit represented by a representative flag according to another embodiment of the present invention.

도 4의 실시예는 대표 플래그가 현재 코딩 유닛 내에서 변환 생략이 가능한 크기의 모든 변환 블록들을 대표하는 경우를 나타낸 것이다.The embodiment of FIG. 4 shows a case in which the representative flag represents all the transform blocks of a size that can be converted within the current coding unit.

예를 들어, 16x16의 코딩 유닛의 경우에는 16x16, 8x8, 4x4의 변환 유닛으로 분할될 수 있다. 변환 생략이 4x4에서부터 16x16 크기까지의 변환 블록에 적용되는 것으로 가정하면, 16x16, 8x8, 4x4 크기를 갖는 모든 변환 유닛에 변환 생략이 적용될 수 있다. 도 4에서 회색으로 도시된 블록들은 대표 플래그가 적용되는 변환 블록을 포함하는 변환 유닛을 나타낸다.For example, in the case of a 16x16 coding unit, it can be divided into 16x16, 8x8, and 4x4 conversion units. Assuming that the conversion skip is applied to the conversion blocks from 4x4 to 16x16, the conversion skip can be applied to all conversion units having 16x16, 8x8, and 4x4 sizes. The blocks shown in gray in Fig. 4 represent conversion units including conversion blocks to which representative flags are applied.

즉, 부호화 장치는 코딩 유닛 내에서 변환 생략이 가능한 크기의 모든 변환 블록들에 대한 대표 플래그 값을 결정하고, 그 값을 복호화 장치로 시그널링할 수 있다. 그리고, 복호화 장치는 대표 플래그 값을 수신하여 파싱하고, 파싱된 대표 플래그 값을 기반으로 현재 코딩 유닛 내에서 변환 생략이 가능한 크기의 모든 변환 블록들에 대해 변환 생략을 적용할지 여부를 결정할 수 있다.
That is, the encoding apparatus can determine a representative flag value for all conversion blocks of a size that can be skipped in the coding unit, and signal the value to the decoding apparatus. The decoding apparatus can then receive and parse the representative flag value and determine whether to apply a translation omission for all transform blocks of a size that is capable of omitting the transformation within the current coding unit based on the parsed representative flag value.

도 5는 본 발명의 일 실시예에 따른 변환 생략 여부를 대표하는 대표 플래그를 이용한 영상 복호화 방법을 나타낸 순서도이다. 도 5의 방법은 상술한 도 2의 영상 복호화 장치에 의해 수행될 수 있다. 5 is a flowchart illustrating an image decoding method using a representative flag representative of whether or not to omit conversion according to an embodiment of the present invention. The method of FIG. 5 can be performed by the image decoding apparatus of FIG. 2 described above.

도 5를 참조하여 본 실시예에 따라 변환 생략이 적용되는 변환 블록에 대한 변환 생략 여부를 대표하는 대표 플래그(예를 들어, transform_skip_all_zeros_in_cu_flag) 및 이에 따라 수행되는 영상의 변환 과정을 설명하면 다음과 같다. Referring to FIG. 5, a representative flag (for example, transform_skip_all_zeros_in_cu_flag) representative of whether or not the conversion is omitted for the conversion block to which the conversion is omitted according to the present embodiment and a process of converting the image performed according to the representative flag will be described below.

복호화 장치는 현재 코딩 유닛(CU)에 대하여 대표 플래그를 파싱할 것인지를 결정하기 위하여, 대표 플래그 파싱 조건 만족 여부를 판단한다(S510).In order to determine whether the representative flag is to be parsed for the current coding unit (CU), the decoding apparatus determines whether the representative flag parsing condition is satisfied (S510).

영상의 부호화 및 복호화 과정에서는 변환 생략이 적용될 수 있는 변환 블록의 크기를 미리 정한 후, 이를 시그널링하고 있다. 예를 들어, 변환 생략이 적용될 수 있는 변환 블록의 크기는 4X4로 한정되거나, 변환 생략이 적용될 수 있는 최대 변환 블록의 크기가 정해질 수 있다. 만일 현재 코딩 유닛 내 변환 블록의 크기가 변환 생략이 적용될 수 있는 크기에 해당하지 않는 경우에는 변환 생략 자체가 원천적으로 발생하지 않으므로, 변환 생략 여부를 대표하여 표시하는 대표 플래그의 파싱 자체가 필요 없게 된다. In the process of encoding and decoding an image, a size of a conversion block to which the conversion skip can be applied is predetermined and signaled. For example, the size of the transform block to which the transform omission can be applied is limited to 4X4, or the size of the maximum transform block to which the transform omission can be applied can be determined. If the size of the conversion block in the current coding unit does not correspond to the size to which the conversion omission can be applied, the conversion omission itself does not occur originally, so that the parsing itself of the representative flag representing the omission of conversion is not necessary .

단계 S510에서는, 현재 코딩 유닛의 크기가 이러한 변환 생략이 적용될 수 있는 크기 조건을 만족하는, 즉, 변환 블록의 변환 생략 여부를 지시하는 플래그(transform_skip_flag)의 파싱이 필요한 변환 블록이 현재 코딩 유닛 내에 존재할 수 있는지의 판단을 포함한다. 변환 생략 여부를 지시하는 플래그는 설명의 편의 상 변환 생략 플래그(transform_skip_flag) 또는 제1 정보로 표현될 수 있다.In step S510, it is determined whether the size of the current coding unit satisfies a size condition to which such a conversion skip can be applied, i.e., a conversion block requiring parsing of a flag (transform_skip_flag) indicating whether or not the conversion block is skipped is present in the current coding unit And whether or not it is possible. A flag indicating whether or not to omit conversion may be represented by a translation omission flag (transform_skip_flag) or first information for convenience of explanation.

한편, 본 발명의 일 실시예에 따르면, 대표 플래그를 파싱하기 전에 대표 플래그를 이용하여 변환 생략 여부를 결정하는 기능을 사용하는지 여부를 나타내는 플래그 정보를 더 수신할 수 있다. 대표 플래그를 사용하여 변환 생략을 대표하는 기능을 사용하는지 여부를 지시하는 플래그 정보는 아래 표 1과 같이 시그널링될 수 있으며, 복호화 장치는 이를 수신할 수 있다. According to an embodiment of the present invention, it is possible to further receive flag information indicating whether or not the function of determining whether to omit conversion using the representative flag is used before parsing the representative flag. Flag information indicating whether or not to use the function representing the omission of conversion using the representative flag can be signaled as shown in Table 1 below, and the decoding apparatus can receive it.

<표 1><Table 1>

Figure pat00001

Figure pat00001

또한, 변환 생략기능 자체가 사용되지 않을 경우는 변환 생략 정보를 대표하여 시그널링하는 기능 자체도 필요 없게 되므로, 대표 플래그를 사용하여 변환 생략 기능을 사용하는지 여부를 지시하는 플래그 정보인 transform_skip_enabled_flag 정보와 연계하여, 대표 플래그를 사용하여 변환 생략을 대표하는 기능을 사용하는지 여부를 지시하는 플래그 정보는 아래 표 2와 같이 시그널링될 수 있으며, 복호화 장치는 이를 수신한다. In addition, when the conversion skip function itself is not used, the function of signaling on behalf of the conversion skip information becomes unnecessary. Therefore, in association with the transform_skip_enabled_flag information, which is flag information indicating whether or not to use the conversion skip function by using the representative flag , The flag information indicating whether to use the function representing the omission of the conversion using the representative flag can be signaled as shown in Table 2 below and the decoding device receives it.

<표 2><Table 2>

Figure pat00002

Figure pat00002

표 2에 따른 실시예에서 transform_skip_enabled_flag가 0일 경우에는 transform_skip_group_signalling_enabled_flag는 시그널링 되지 않으며, 이때, 복호화 장치는 이 값을 0으로 유추한다.In the embodiment according to Table 2, when the transform_skip_enabled_flag is 0, the transform_skip_group_signalling_enabled_flag is not signaled. In this case, the decoding apparatus deduces this value to be zero.

표 1 및 표 2에 도시된 바와 같은 본 발명의 실시예에 따른 대표 플래그의 기능 자체를 사용할지 여부를 나타내는 정보(transform_skip_group_signalling_enabled_flag)는 소정의 파라미터 세트를 통해 전송될 수 있다. Information (transform_skip_group_signalling_enabled_flag) indicating whether or not to use the function of the representative flag according to the embodiment of the present invention as shown in Table 1 and Table 2 can be transmitted through a predetermined parameter set.

구체적으로는, 상위 레벨인 시퀀스 파라미터 세트(Sequence parameter set) 또는 픽쳐 파라미터 세트(Picture parameter set)의 익스텐션(extension) 레벨을 통하여 시그널링 될 수 있다. 예를 들어, sps_range_extensions (sequence parameter set range extensions), sps_scc_extensions (sequence parameter set screen content coding extensions), pps_range_extensions (picture parameter set range extensions)또는 pps_range_extensions (picture parameter set screen content coding extensions)을 통하여 시그널링 될 수 있다.Specifically, it can be signaled through an extension level of a sequence parameter set or a picture parameter set, which is a higher level. For example, sps_range_extensions (sequence parameter set range extensions), sps_scc_extensions (sequence parameter set screen content coding extensions), pps_range_extensions (picture parameter set range extensions), or pps_range_extensions (picture parameter set screen content coding extensions).

만일, transform_skip_group_signalling_enabled_flag가 1이면 변환 생략을 대표하는 기능을 사용하는 것을 나타내므로 코딩 유닛 레벨에서 대표 플래그가 시그널링 될 수 있다. transform_skip_group_signalling_enabled_flag가 0이면 변환 생략을 대표하는 기능을 사용하지 않는 것을 나타낼 수 있으며, 또는 부호화 장치 및 복호화 장치에서 사전에 설정된 다른 의미로 사용될 수 있다. If the transform_skip_group_signalling_enabled_flag is 1, it indicates that the function representing the translation omission is used, so that the representative flag can be signaled at the coding unit level. If transform_skip_group_signalling_enabled_flag is 0, it indicates that the function representing the translation omission is not used, or may be used in a different meaning previously set by the encoding apparatus and the decoding apparatus.

변환 생략 정보를 대표하여 시그널링하는 기능이 사용되지 않는 경우, 상기 transform_skip_group_signalling_enabled_flag는 시그널링되지 않을 수도 있다.If the function of signaling on the basis of the conversion skip information is not used, the transform_skip_group_signalling_enabled_flag may not be signaled.

변환 생략을 대표하는 기능을 사용하는 경우(transform_skip_group_signalling_enabled_flag=1), 다음 표 3과 같이 본 발명의 일 실시예에 따른 대표 플래그가 시그널링될 수 있다. When the function representing transform skip (transform_skip_group_signalling_enabled_flag = 1) is used, a representative flag according to an embodiment of the present invention can be signaled as shown in Table 3 below.

<표 3><Table 3>

Figure pat00003

Figure pat00003

표 3을 참조하여 설명하면, 단계 S510 단계에서의 대표 플래그 파싱 조건이 만족되는 경우는 다음과 같을 수 있다. Referring to Table 3, when the representative flag parsing condition in step S510 is satisfied, the following can be obtained.

1) 표 1에서 시그널링되는 transform_skip_group_signalling_enabled_flag가 1이고, 1) The transform_skip_group_signalling_enabled_flag signaled in Table 1 is 1,

2) 변환 생략의 적용이 가능한지 여부를 지시하는 플래그(transform_skip_enabled_flag)가 1이고, 2) a flag (transform_skip_enabled_flag) indicating whether or not the application of the conversion omission is possible is 1,

3) 현재 코딩 유닛이 무손실 부호화 되지 않고(!cu_transquant_bypass_flag), 3) If the current coding unit is not lossless encoded (! Cu_transquant_bypass_flag)

4) 현재 코딩 유닛에서 분할될 수 있는 최소 크기의 변환 블록이 변환 생략이 적용될 수 있는 최대 변환 블록 크기보다 작거나 같은 경우(if ( ( log2CbSize - MaxTrafoDepth - (ChromaArrayType % 3 = = 0 ? 0 : 1 ) )<= Log2MaxTransformSkipSize)를 만족하는 경우일 수 있다. 4) If the minimum size conversion block that can be partitioned in the current coding unit is less than or equal to the maximum conversion block size to which the translation omission can be applied (if ((log2CbSize - MaxTrafoDepth - (ChromaArrayType% 3 = ) &Lt; = Log2MaxTransformSkipSize).

상기 1), 2), 3) 및 4)를 만족하는 경우, 복호화 장치는 변환 생략 여부를 지시하는 제1 정보를 대표하는 대표 플래그(transform_skip_all_zeros_in_cu_flag)를 파싱하는 것으로 판단할 수 있다.When the above 1), 2), 3) and 4) are satisfied, the decoding apparatus can determine that the representative flag (transform_skip_all_zeros_in_cu_flag) representing the first information indicating whether or not the conversion is omitted is parsed.

상기 1), 2), 3) 및 4) 중 적어도 하나를 만족하지 못하는 경우(예를 들어, 현재 코딩 유닛 내에 변환 생략이 가능한 크기의 변환 블록이 존재할 수 없는 경우, 또는 본 발명의 대표 플래그를 사용하지 않는다고 지시되는 경우 등), 복호화 장치는 대표 플래그 파싱 조건이 만족되지 않은 것으로 판단하여 대표 플래그를 파싱하지 않을 수 있다. 이러한 경우, 복호화 장치는 대표 플래그(transform_skip_all_zeros_in_cu_flag)의 값을 0으로 간주하고(S511), 후속 복호화 과정을 수행할 수 있다(S515). If at least one of the above 1), 2), 3) and 4) is not satisfied (for example, if there is no conversion block in the current coding unit so as to be able to omit conversion, Or the like), the decoding apparatus may determine that the representative flag parsing condition is not satisfied and may not parse the representative flag. In this case, the decoding apparatus regards the value of the representative flag (transform_skip_all_zeros_in_cu_flag) as 0 (S511), and can perform a subsequent decoding process (S515).

대표 플래그 파싱 조건(상기 표 3을 참조하여 설명한 조건)을 만족하여 대표 플래그를 파싱하는 것으로 판단한 경우, 복호화 장치는 변환 생략 여부를 지시하는 제1 정보를 대표하는 대표 플래그를 파싱한다(S520).If it is determined that the representative flag parsing condition (the condition described with reference to Table 3) is satisfied and the representative flag is to be parsed, the decoding apparatus parses the representative flag representing the first information indicating whether or not the conversion is omitted (S520).

상기 파싱된 대표 플래그의 값이 1이면(S530), 복호화 장치는 대표 플래그가 대표하는 제1 정보가 적용될 변환 블록인지 여부를 판단하기 위하여 (즉, 만일 제1 정보가 적용될 변환 블록이라면 제1 정보를 파싱하지 않기 위하여), 제1 정보의 파싱 생략 조건이 만족되는지 판단한다(S540).If the value of the parsed representative flag is 1 (S530), the decoding apparatus determines whether the representative flag is a transform block to which the first information to be applied is applied (that is, if the first information is to be applied, ), It is determined whether the parsing omission condition of the first information is satisfied (S540).

표 3의 실시예에서, 제1 정보 파싱 생략 조건은 현재 복호화할 변환 블록이 현재 코딩 유닛에서 분할될 수 있는 최대 깊이의 변환 유닛인지 여부일 수 있다. In the embodiment of Table 3, the first information parsing skip condition may be whether or not the current transform block to be decoded is the maximum depth transform unit that can be divided in the current coding unit.

만일, 현재 복호화할 변환 블록이 최대 깊이(MaxTrafoDepth)의 변환 유닛에 해당되는 경우, 복호화 장치는 복호화할 변환 블록에 대한 제1 정보를 파싱하지 않고 제1 정보를 0으로 유추할 수 있다(S550). 여기서, 제1 정보가 0의 값을 가지는 경우는 변환 블록에 대해 변환 생략을 적용하지 않는다는 것을 의미한다. 즉, 변환 블록에 대해 변환을 수행하는 것을 의미한다. If the current transform block to be decoded corresponds to the transform unit of the maximum depth (MaxTrafoDepth), the decoding apparatus can infer the first information to 0 without parsing the first information on the transform block to be decoded (S550) . Here, when the first information has a value of 0, it means that the conversion omission is not applied to the conversion block. That is, it means performing a conversion on the conversion block.

다시 말해, 단계 S540 조건을 만족하는 경우, 복호화 장치는 코딩 유닛으로부터 분할된 최대 깊이의 변환 유닛에 포함되는 변환 블록에 대해 변환 생략이 적용되지 않은 것으로 판단하고, 변환 생략 여부를 나타내는 제1 정보의 파싱이 필요 없는 것으로 판단할 수 있다. In other words, when the condition of step S540 is satisfied, the decoding apparatus determines that the conversion skip is not applied to the conversion block included in the conversion unit of the maximum depth divided from the coding unit, It can be judged that parsing is not necessary.

제1 정보가 0의 값을 가지는 경우(제1 정보가 변환 블록에 대해 변환 생략을 적용하지 않은 것으로 지시하는 경우), 복호화 장치는 변환 블록에 대하여 변환 생략을 적용하지 않고, 즉 변환 과정을 수행하고 후속적인 복호화 과정을 수행할 수 있다(S560). When the first information has a value of 0 (when the first information indicates that the conversion omission has not been applied to the conversion block), the decoding device does not apply the conversion omission to the conversion block, And perform a subsequent decoding process (S560).

단계 S530에서 대표 플래그가 0이거나, 단계 S540에서 제1 정보 파싱 생략 조건을 만족하지 못하였을 경우, 복호화 장치는 기존 방법대로 변환 블록에 대하여 개별적으로 변환 생략 여부를 나타내는 제1 정보를 파싱한다(S570).If the representative flag is 0 in step S530, or if the first information parsing skip condition is not satisfied in step S540, the decoding apparatus parses the first information indicating whether or not the conversion block is skipped individually for the conversion block according to the existing method (S570 ).

즉, 대표 플래그가 0이면, 제1 정보(transform_skip_flag) 시그널링을 위한 일련의 과정은 종래의 방법 대로 수행되는 것을 의미하고, 이는 transform_skip_flag 시그널링이 요구되는 변환 블록 마다 제1 정보가 시그널링되는 것을 뜻한다. 한편 일부 간단한 또 다른 실시예에서는, 상기 대표 플래그가 0일 경우, 복호화 장치가 변환 블록에 대한 제1 정보를 파싱하는 S570 단계를 생략하고 제1 정보의 값을 1로 유추하도록 (즉, 변환 생략을 하도록) 간략하게 구현할 수 도 있다.That is, if the representative flag is 0, a series of processes for the first information (transform_skip_flag) signaling is performed in a conventional manner, which means that the first information is signaled for each transform block for which the transform_skip_flag signaling is required. Meanwhile, in another simple embodiment, if the representative flag is 0, the decoding apparatus skips the step S570 of parsing the first information on the transform block, and deduces the value of the first information to 1 (i.e., To be implemented).

만약, 대표 플래그(transform_skip_all_zeros_in_cu_flag)가 존재하지 않는 경우, 대표 플래그는 0으로 간주될 수 있다.If the representative flag (transform_skip_all_zeros_in_cu_flag) does not exist, the representative flag can be regarded as 0.

제1 정보에 따라 변환 블록은 변환이 수행될 수도 있고, 변환이 생략될 수도 있다. 즉, 복호화 장치는 제1 정보에 기초하여 변환 생략 여부에 따른 변환 생략 혹은 변환 과정 및 후속적인 복호화 과정을 수행할 수 있다(S560, S580).According to the first information, the transform block may be transformed, and the transform may be omitted. That is, the decoding apparatus may perform a conversion process or a conversion process and a subsequent decoding process according to whether the conversion is omitted based on the first information (S560, S580).

다음 표 4는 본 발명의 일 실시예에 따른 대표 플래그(transform_skip_all_zeros_in_cu_flag)를 이용한 변환 생략 여부를 나타내는 제1 정보(transform_skip_flag)를 시그널링하는 신택스(syntax)의 일예를 나타낸 것이다. Table 4 below shows an example of a syntax for signaling first information (transform_skip_flag) indicating whether or not to omit conversion using the representative flag (transform_skip_all_zeros_in_cu_flag) according to an embodiment of the present invention.

<표 4><Table 4>

Figure pat00004

Figure pat00004

표 4를 참조하면, 대표 플래그(transform_skip_all_zeros_in_cu_flag)는 제1 정보 파싱 생략 조건(S540)을 만족하는 변환 블록들의 변환 생략 플래그를 대표할 수 있다. 상술한 바와 같이, 복호화 장치는 대표 플래그가 1인 경우 제1 정보 파싱 생략 조건을 판단함으로써 개별적인 변환 생략 플래그의 파싱 여부를 판단할 수 있다.Referring to Table 4, the representative flag (transform_skip_all_zeros_in_cu_flag) may represent the conversion skip flag of the conversion blocks that satisfy the first information parsing skip condition (S540). As described above, the decoding apparatus can determine whether or not the individual conversion skip flag is parsed by judging the first information parsing skip condition when the representative flag is 1.

제1 정보 파싱 생략은 대표 플래그인 transform_skip_all_zeros_in_cu_flag가 1이고, 변환 블록이 코딩 유닛으로부터 분할되는 최대 깊이의 변환 유닛에 포함되는 (log2TrafoSize == Max(2, log2CbSize - MaxTrafoDepth - (ChromaArrayType % 3 == 0 ? 0 : (cIdx?1:0)))) 블록인 조건을 만족하는 경우일 수 있다. 이 파싱 생략 조건을 만족하는 경우 현재 복호화하는 변환 블록의 제1 정보는 파싱되지 않고, 대신 변환 생략을 적용하지 않는다는 것을 의미하는 값인 0으로 설정될 수 있다(transform_skip_flag[x0][y0][cIdx] = 0).The first information parsing omission is a process in which the representative flag transform_skip_all_zeros_in_cu_flag is 1 and the conversion block is included in the conversion unit of the maximum depth divided from the coding unit (log2TrafoSize == Max (2, log2CbSize - MaxTrafoDepth- (ChromaArrayType% 3 == 0? 0: (cIdx? 1: 0)))) block. If the parsing skip condition is satisfied, the first information of the transform block to be currently decoded is not parsed and may be set to 0, which is a value which means that the transform skip is not applied (transform_skip_flag [x0] [y0] [cIdx] = 0).

S540의 조건 적용은, 기본적으로 기존 기술에서 사용하는 변환 생략 기능이 적용될 수 있는 블록 (예를 들어, 현재 복호화하는 변환 블록이 변환 생략이 적용되는 최대 변환 블록 크기 이하의 변환 블록으로써, 부호화된 변환계수 정보가 있는 (즉, CBF가 1이라는 의미) 변환 블록)을 대상으로 한다는 것은 기존 기술과 동일하므로, 이곳에서의 중복된 설명은 생략한다.The conditional application of S540 is basically a block to which the conversion skip function used in the existing technology can be applied (for example, a conversion block to be currently decoded is a conversion block equal to or smaller than the maximum conversion block size to which the conversion skip is applied, The conversion block having the coefficient information (i.e., CBF = 1)) is the same as that of the existing technology, so redundant description thereof is omitted here.

상술한 본 발명의 실시예에 따를 경우, 대표 플래그는 현재 코딩 유닛으로부터 분할될 수 있는 최대 깊이의 변환 유닛에 속하는 변환 블록의 변환 생략 여부를 대표할 수 있다. 이는 도 3을 참조하여 대표 플래그가 대표하는 코딩 유닛 내의 변환 블록들을 설명한 바 있다. According to the embodiment of the present invention described above, the representative flag can represent whether or not the conversion block belonging to the conversion unit of the maximum depth that can be divided from the current coding unit is omitted. This has been described with reference to FIG. 3 for the conversion blocks in the coding unit represented by the representative flag.

또한, 본 발명에서는 대표 플래그가 특정 깊이 혹은 변환 생략이 가능한 크기의 모든 변환 유닛들을 대표할 수 있다. 이는 도 4를 참조하여 대표 플래그가 변환 생략이 가능한 크기의 모든 변환 유닛들을 대표하는 경우에 대해 설명한 바 있다. 대표 플래그가 특정 깊이 혹은 변환 생략이 가능한 크기의 모든 변환 유닛들을 대표하는 실시예에 대해서는 도 6을 참조하여 설명하도록 한다.
Further, in the present invention, the representative flag may represent all the conversion units of a certain depth or a size which can omit conversion. This has been described with reference to FIG. 4, in which representative flags are representative of all conversion units of a size capable of omitting conversion. An embodiment in which representative flags represent all the conversion units of a certain depth or a size which can omit conversion will be described with reference to Fig.

도 6은 본 발명의 다른 실시예에 따른 변환 생략 여부를 대표하는 대표 플래그를 이용한 영상 복호화 방법을 나타낸 순서도이다. 도 6의 방법은 상술한 도 2의 영상 복호화 장치에 의해 수행될 수 있다. FIG. 6 is a flowchart illustrating a video decoding method using a representative flag representing whether or not to omit conversion according to another embodiment of the present invention. The method of FIG. 6 can be performed by the image decoding apparatus of FIG. 2 described above.

도 6을 참조하면, 복호화 장치는 현재 코딩 유닛(CU)에 대하여 대표 플래그를 파싱할 것인지를 결정하기 위하여, 대표 플래그 파싱 조건 만족 여부를 판단한다(S610).Referring to FIG. 6, the decoding apparatus determines whether a representative flag parsing condition is satisfied in order to determine whether to parse a representative flag with respect to the current coding unit (CU) (S610).

이때, 본 실시예에 따른 대표 플래그는 상기 표 3에서와 같이 시그널링될 수 있다. 따라서, 대표 플래그 파싱 조건이 표 3을 참조하여 설명한 바와 동일한 조건을 만족할 경우, 복호화 장치는 대표 플래그를 파싱한다(S620). 대표 플래그 파싱 조건에 대해서는 표 3을 참조하여 설명한 바 있으므로, 여기서는 설명을 생략한다. At this time, the representative flag according to this embodiment can be signaled as shown in Table 3 above. Therefore, when the representative flag parsing condition satisfies the same condition as described with reference to Table 3, the decoding apparatus parses the representative flag (S620). The representative flag parsing condition has been described with reference to Table 3, and a description thereof will be omitted here.

만일, 대표 플래그 파싱 조건을 만족하지 못하는 경우, 복호화 장치는 대표 플래그를 파싱하지 않고 대표 플래그 값을 0으로 간주하고(S611), 후속 복호화 과정을 수행할 수 있다(S615).If the representative flag parsing condition is not satisfied, the decoding apparatus does not parse the representative flag and regards the representative flag value as 0 (S611), and performs the subsequent decoding process (S615).

대표 플래그 파싱 조건을 만족하여 파싱된 대표 플래그가 1이면(S630), 복호화 장치는 코딩 유닛으로부터 분할될 변환 유닛에 포함되는 변환 블록의 변환 생략 여부를 지시하는 제1 정보를 파싱하지 않고 변환 블록에 대한 제1 정보를 0으로 유추할 수 있다(S650).If the representative flag parsed satisfying the representative flag parsing condition is 1 (S630), the decoding apparatus does not parse the first information indicating whether or not the conversion block included in the conversion unit to be divided from the coding unit is to be parsed, It is possible to deduce the first information for 0 (S650).

반면, 파싱된 대표 플래그가 0이면, 복호화 장치는 변환 블록에 대한 제1 정보를 파싱하고(S670), 이 파싱된 제1 정보의 값에 따라 변환 생략하거나(제1 정보가 1인 경우) 변환을 수행(제1 정보가 0인 경우)할 수 있다. 한편 일부 간단한 또 다른 실시예에서는, 상기 파싱된 대표 플래그가 0일 경우, 복호화 장치가 변환 블록에 대한 제1 정보를 파싱하는 S670 단계를 생략하고 제1 정보의 값을 1로 유추하도록 (즉, 변환 생략을 하도록) 간략하게 구현할 수 도 있다.On the other hand, if the parsed representative flag is 0, the decoding apparatus parses the first information on the transform block (S670), skips the conversion according to the value of the parsed first information (if the first information is 1) (When the first information is 0). On the other hand, in another simple embodiment, if the parsed representative flag is 0, the decoding apparatus skips step S670 of parsing the first information on the transform block, and deduces the value of the first information to 1 (i.e., So that the conversion can be omitted).

즉, 복호화 장치는 코딩 유닛이 포함하는 부호화되는 변환 블록 중 그 블록이 변환 생략이 적용될 수 있는 최대 변환 블록의 크기 보다 크지 않고, 대표 플래그가 1의 값을 갖는 경우 그 블록에 대한 제1 정보의 파싱이 필요 없는 것으로 판단하고, 제1 정보는 0으로 유추할 수 있다.That is, when the representative flag of the encoding block included in the coding unit is not larger than the size of the maximum conversion block to which the conversion skip can be applied and the representative flag has a value of 1, It is determined that parsing is not necessary, and the first information can be deduced to be zero.

본 실시예에 따르면, 변환 깊이를 고려하지 않고, 복호화 중인 코딩 유닛 내의 변환 생략이 가능한 조건 (변환 생략이 가능한 블록 크기를 갖는 부호화된 변환블록)을 만족하는 변환 블록들의 변환 생략 플래그를 대표할 수 있다.According to the present embodiment, it is possible to represent the conversion omission flag of the conversion blocks satisfying the condition (the encoded conversion block having the block size capable of omitting conversion) in which the conversion in the coding unit being decoded can be omitted have.

다음 표 5는 본 발명의 다른 실시예에 따른 대표 플래그(transform_skip_all_zeros_in_cu_flag)를 이용한 변환 생략 여부를 나타내는 제1 정보(transform_skip_flag)를 시그널링하는 신택스(syntax)의 일예를 나타낸 것이다. Table 5 shows an example of a syntax for signaling first information (transform_skip_flag) indicating whether or not to omit conversion using a representative flag (transform_skip_all_zeros_in_cu_flag) according to another embodiment of the present invention.

<표 5><Table 5>

Figure pat00005

Figure pat00005

표 5를 참조하면, 대표 플래그 (transform_skip_all_zeros_in_cu_flag)가 1이면, 제1 정보는 파싱되지 않고 0으로 설정될 수 있다(transform_skip_flag[x0][y0][cIdx]=0).Referring to Table 5, if the representative flag (transform_skip_all_zeros_in_cu_flag) is 1, the first information can be set to 0 without being parsed (transform_skip_flag [x0] [y0] [cIdx] = 0).

즉, 본 실시예에 따를 경우, 복호화 장치는 대표 플래그가 1인 경우 코딩 유닛 내의 변환 블록들에 대해 개별적으로 변환 생략 플래그를 파싱하지 않을 수 있다.That is, in accordance with the present embodiment, the decoding apparatus may not parse the conversion omission flag individually for the conversion blocks in the coding unit when the representative flag is 1.

제1 정보가 0으로 유추되면, 복호화 장치는 제1 정보에 의해 변환 생략 여부가 결정되는 변환 블록에 대하여 변환 생략을 적용하지 않고, 즉 변환을 수행하고 후속적인 복호화 과정을 수행할 수 있다(S660).If the first information is deduced to be 0, the decoding apparatus can perform the conversion and perform the subsequent decoding process without applying the conversion omission to the conversion block in which it is determined by the first information whether or not to omit conversion (S660 ).

단계 S630에서 대표 플래그가 0이면, 복호화 장치는 기존 방법대로 변환 블록에 대해 개별적으로 변환 생략 여부를 나타내는 제1 정보를 파싱한다(S670).If the representative flag is 0 in step S630, the decoding apparatus parses the first information indicating whether or not the conversion block is skipped individually for the conversion block according to the existing method (S670).

즉, 대표 플래그가 0이면, 각 변환 블록의 transform_skip_flag 파싱을 위한 일련의 과정은 종래의 방법 대로 수행되는 것을 의미한다. 즉, transform_skip_flag 시그널링이 요구되는 변환 블록 마다 제1 정보가 파싱된다. That is, if the representative flag is 0, a series of processes for parsing the transform_skip_flag of each transform block is performed in a conventional manner. That is, the first information is parsed for each transform block for which the transform_skip_flag signaling is required.

만약, 대표 플래그(transform_skip_all_zeros_in_cu_flag)가 존재하지 않는 경우, 대표 플래그는 0으로 간주될 수 있다.If the representative flag (transform_skip_all_zeros_in_cu_flag) does not exist, the representative flag can be regarded as 0.

제1 정보에 따라 변환 블록은 변환이 수행될 수도 있고, 변환이 생략될 수도 있다. 즉, 복호화 장치는 제1 정보에 기초하여 변환 생략 여부에 따른 변환 생략 혹은 변환 과정 및 후속적인 복호화 과정을 수행할 수 있다(S660, S680).
According to the first information, the transform block may be transformed, and the transform may be omitted. That is, the decoding apparatus can perform a conversion process or a conversion process and a subsequent decoding process according to whether or not the conversion is omitted based on the first information (S660, S680).

본 발명에서는 상술한 바와 같이 대표 플래그가 코딩 유닛으로부터 분할되는 변환 블록의 변환 생략 여부를 대표할 수 있다. 또한, 본 발명에서는 도 5를 통해 전술한 최대 변환 깊이의 제1 정보를 대표하는 대표 플래그를 이용하는 실시예에 있어, 변환 유닛의 분할 여부를 판단할 수 있다. 이에 대해서는 도 7을 참조하여 설명한다.
In the present invention, as described above, it is possible to represent whether or not the conversion flag of the conversion block in which the representative flag is divided from the coding unit is omitted. In the present invention, in the embodiment using the representative flag representing the first information of the maximum conversion depth described above with reference to FIG. 5, it is possible to determine whether or not the conversion unit is divided. This will be described with reference to FIG.

도 7은 본 발명의 일 실시예에 따른 대표 플래그를 참조하여 변환 유닛의 분할 여부를 나타내는 분할 정보를 유추하는 과정을 나타낸 순서도이다. 도 7의 방법은 상술한 도 2의 영상 복호화 장치에 의해 수행될 수 있다. 7 is a flowchart illustrating a process of inferring division information indicating whether or not a conversion unit is divided with reference to a representative flag according to an embodiment of the present invention. The method of FIG. 7 can be performed by the image decoding apparatus of FIG. 2 described above.

도 7의 단계 S710 및 단계 S730은 도 5의 단계 S510 및 단계 S530과 유사하므로 중복된 설명은 생략한다. 즉, 본 실시예에 따른 대표 플래그는 현재 코딩 유닛으로부터 분할될 수 있는 최대 깊이의 분할 유닛에 속하는 변환 블록의 변환 생략을 대표하고, 이러한 대표 플래그에 기초하여 변환 유닛의 분할 여부가 판단될 수 있다.Since steps S710 and S730 of FIG. 7 are similar to steps S510 and S530 of FIG. 5, duplicate descriptions are omitted. That is, the representative flag according to the present embodiment represents the omission of conversion of the conversion block belonging to the division unit of the maximum depth that can be divided from the current coding unit, and whether or not the conversion unit is divided based on such representative flag can be determined .

대표 플래그가 파싱되면, 복호화 장치는 대표 플래그에 기초하여 변환 유닛의 분할 여부를 나타내는 제2 정보(split_transform_flag)의 파싱 여부를 판단할 수 있다. 판단 결과, 제2 정보의 파싱이 필요 없는 경우 대표 플래그에 기초하여 제2 정보를 유추하고, 제2 정보의 파싱이 필요한 경우 제2 정보를 파싱할 수 있다. When the representative flag is parsed, the decoding apparatus can determine whether to parse the second information (split_transform_flag) indicating whether or not the conversion unit is divided based on the representative flag. As a result of the determination, if the parsing of the second information is not necessary, the second information may be inferred based on the representative flag, and the second information may be parsed when parsing of the second information is necessary.

만약, 대표 플래그가 1이면, 복호화 장치는 변환 유닛에 대한 변환 깊이가 0인지 여부를 판단할 수 있다(S740). If the representative flag is 1, the decoding apparatus can determine whether the conversion depth for the conversion unit is 0 (S740).

만약, 변환 유닛에 대한 변환 깊이가 0이면, 복호화 장치는 변환 깊이가 0인 변환 유닛에 대한 제2 정보를 파싱하지 않고 제2 정보를 1로 유추할 수 있다(S750).If the conversion depth for the conversion unit is 0, the decoding apparatus can infer the second information to 1 without parsing the second information for the conversion unit having the conversion depth of 0 (S750).

즉, 단계 S740을 만족하면, 복호화 장치는 코딩 유닛의 크기와 동일한 크기를 갖는 변환 유닛의 분할 여부를 지시하는 제2 정보(변환 깊이 0 -> 1의 분할 여부를 지시하는 split_transform_flag)의 파싱이 필요 없는 것으로 판단할 수 있다. That is, when the step S740 is satisfied, the decoding apparatus needs to parse the second information (split_transform_flag indicating whether or not to divide the conversion depth 0 -> 1) indicating whether or not the conversion unit having the same size as the size of the coding unit is divided It can be judged to be absent.

이때, 현재 코딩 유닛의 크기는 분할된 변환 유닛을 가질 수 있는 조건을 만족해야 한다. 예를 들어, 최소 변환 유닛의 크기가 8X8로 설정되어 있고, 현재 코딩 유닛의 크기가 8X8인 경우, 현재 코딩 유닛은 분할된 변환 유닛을 가질 수 없기 때문에 분할 여부가 판단될 필요가 없다.At this time, the size of the current coding unit must satisfy the condition that the divided conversion unit can be obtained. For example, if the size of the minimum conversion unit is set to 8X8, and the size of the current coding unit is 8X8, then the current coding unit can not have a divided conversion unit, so that it does not need to be determined whether or not to divide.

다음 표 6은 본 발명의 일 실시예에 따른 대표 플래그(transform_skip_all_zeros_in_cu_flag)를 이용한 변환 유닛의 분할 여부를 나타내는 제2 정보(split_transform_flag)를 시그널링하는 신택스(syntax)의 일예를 나타낸 것이다. The following Table 6 shows an example of a syntax for signaling the second information (split_transform_flag) indicating whether or not the conversion unit using the representative flag (transform_skip_all_zeros_in_cu_flag) according to the embodiment of the present invention is divided.

<표 6><Table 6>

Figure pat00006

Figure pat00006

표 6을 참조하면, 대표 플래그(transform_skip_all_zeros_in_cu_flag)가 1이고, 변환 깊이가 0이면(trafoDepth = 0), 제2 정보는 파싱되지 않고 1로 설정될 수 있다(split_transform_flag[ x0 ][ y0 ][ trafoDepth ] = 1).Referring to Table 6, if the representative flag (transform_skip_all_zeros_in_cu_flag) is 1 and the conversion depth is 0 (trafoDepth = 0), the second information can be set to 1 without being parsed (split_transform_flag [x0] [y0] [trafoDepth] = 1).

제2 정보가 1로 유추되면, 복호화 장치는 해당 변환 유닛에 대하여 분할을 수행하고(S760), 후속적인 복호화를 수행할 수 있다(S780).If the second information is deduced to be 1, the decoding apparatus performs division on the conversion unit (S760) and may perform subsequent decoding (S780).

한편, 변환 깊이가 0이 아닌 변환 유닛에 대하여는 기존의 방식과 같이 제2 정보(변환 깊이 0 -> 1 이외의 분할 여부를 지시하는 split_transform_flag)를 파싱하여 변환 유닛의 분할 여부를 판단한다. On the other hand, for the conversion unit whose conversion depth is not 0, the second information (split_transform_flag indicating the division other than the conversion depth 0 -> 1) is parsed to determine whether or not the conversion unit is divided as in the conventional method.

만약, 단계 S730에서 대표 플래그가 0이거나, 단계 S740에서 변환 유닛의 변환 깊이가 0이 아니면, 복호화 장치는 기존 방법 대로, 제2 정보를 파싱하여 변환 유닛의 분할 여부를 판단한다(S770). If the representative flag is 0 in step S730, or if the conversion depth of the conversion unit is not 0 in step S740, the decoding apparatus parses the second information according to the existing method to determine whether the conversion unit is divided (S770).

제2 정보가 파싱되면, 변환 블록은 분할이 수행(S760)될 수도 있고, 분할이 생략될 수도 있고, 이에 따라 복호화 장치는 후속적인 복호화 과정을 수행할 수 있다(S780).If the second information is parsed, the transform block may be segmented (S760), and the segmentation may be omitted, so that the decoding device may perform a subsequent decoding process (S780).

본 실시예를 정리하면, 대표 플래그가 1인 경우, 코딩 유닛이 최대 변환 깊이까지 분할될 수 있으므로, 변환 깊이가 0인 변환 유닛에 대하여는 분할 플래그를 시그널링 하지 않고 분할 유닛이 분할되는 것으로 유추한다.
To summarize this embodiment, when the representative flag is 1, since the coding unit can be divided up to the maximum conversion depth, it is inferred that the division unit is divided without signaling the division flag for the conversion unit having the conversion depth of 0.

한편, 본 발명에서는 상술한 대표 플래그가 코딩 유닛에 적용된 예측 모드에 대응하여 적용될 수 있다. 즉, 코딩 유닛에 적용된 특정 예측 모드에 대응하여 대표 플래그의 시그널링 여부가 결정될 수 있다. On the other hand, in the present invention, the above-described representative flag can be applied corresponding to the prediction mode applied to the coding unit. That is, it can be determined whether signaling of the representative flag corresponds to the specific prediction mode applied to the coding unit.

일예로, 코딩 유닛의 예측 모드가 미리 약속된 특정 예측 모드인 경우에만 제안된 대표 플래그가 시그널링될 수 있다.For example, the proposed representative flag may be signaled only if the prediction mode of the coding unit is a predetermined prediction mode that is predetermined.

다른 예로, 코딩 유닛의 예측 모드가 인트라 모드 또는 IBC(Intra Block Copy) 예측 모드인 경우에 제안된 대표 플래그가 시그널링될 수 있다. 이 경우, 복호화 장치는 예측 모드가 인트라 모드 또는 IBC 예측 모드인 경우에만 대표 플래그를 파싱할 수 있다. 또는 스크린 컨텐츠에 대한 예측 모드인 경우, 또는 특정 모드를 한정하는 시그널링에 의하여 코딩 유닛의 예측 모드가 한정되는 경우, 해당 예측 모드에만 대표 플래그가 시그널링 될 수 있다.As another example, the proposed representative flag may be signaled when the prediction mode of the coding unit is intra mode or IBC (Intra Block Copy) prediction mode. In this case, the decoding apparatus can parse the representative flag only when the prediction mode is the intra mode or the IBC prediction mode. Or a prediction mode for the screen content, or if the prediction mode of the coding unit is limited by signaling which defines a particular mode, then a representative flag may only be signaled for that prediction mode.

IBC 예측은 현재 픽쳐 내에서 동일한(또는 유사한) 영역 또는 객체가 존재하는 경우 사용될 수 있는 예측 방법으로, 복호화 장치는 IBC 모드를 사용하여 현재 블록에 대한 예측 값을 생성할 수 있다.
The IBC prediction is a prediction method that can be used when the same (or similar) region or object exists in the current picture, and the decoding apparatus can generate a prediction value for the current block using the IBC mode.

도 8은 본 발명의 일 실시예에 따른 IBC 예측을 설명하기 위한 도면이다.8 is a diagram for explaining IBC prediction according to an embodiment of the present invention.

IBC 예측의 경우, 현재 픽쳐에 있는 특정 영역이 현재 블록의 참조 블록으로 사용될 수 있으며, 이 특정 영역의 위치를 표시하기 위하여 인터 예측에 사용된 움직임 벡터와 유사하게 블록 벡터(block vector, 이하, BV)가 사용될 수 있다. In IBC prediction, a specific area in the current picture can be used as a reference block of the current block, and a block vector (hereinafter referred to as &quot; BV &quot; ) Can be used.

기존의 인터 예측의 경우, 참조 픽쳐는 현재 픽쳐와 다른 이전 픽쳐 또는 이후 픽쳐 이지만, IBC 예측의 경우의 경우 참조 픽쳐는 현재 픽쳐가 되고, 블록 벡터는 현재 픽쳐에서 참조 블록을 지시하는 벡터를 나타낸다.In the case of the conventional inter prediction, the reference picture is a previous picture or a subsequent picture different from the current picture. In the case of IBC prediction, the reference picture is a current picture, and the block vector indicates a vector indicating a reference block in the current picture.

도시된 바와 같이, 본 발명의 일 예에 따르면 현재 픽쳐 내 현재 예측 블록과 이웃한 좌측의 CTU(coding tree unit)에 존재하는 영역이 현재 예측 블록의 참조 블록으로 선택될 수 있다. As shown in the figure, according to an embodiment of the present invention, a region existing in a coding tree unit (CTU) adjacent to a current prediction block in a current picture may be selected as a reference block of a current prediction block.

IBC 예측을 수행할 때 참조 블록의 탐색을 위한 영역이 제한되거나 특정 영역으로 설정될 수 있다. 일 예에 따라 참조 블록은 현재 예측 블록이 속하는 현재 CTU 또는 현재 CTU와 인접한 좌측 CTU 내에서 탐색되는 것으로 한정될 수 있다.When carrying out the IBC prediction, the area for the search of the reference block may be limited or set to a specific area. According to one example, the reference block may be limited to being searched in the current CTU to which the current prediction block belongs or in the left CTU adjacent to the current CTU.

반대로, IBC 예측을 수행할 때 참조 블록의 탐색을 위한 영역을 현재 픽쳐 내에서 현재 코딩 유닛 이전에 복호화가 완료된 모든 영역으로 확장하는 것도 가능할 수 있다. Conversely, when performing IBC prediction, it may also be possible to extend an area for the search of a reference block to all areas in the current picture that have been decoded before the current coding unit.

IBC 예측이 수행되는 예측 블록의 타입은 2Nx2N, 2NxN, Nx2N, NxN 일 수 있다. The type of prediction block in which IBC prediction is performed may be 2Nx2N, 2NxN, Nx2N, NxN.

BV는 움직임 벡터와 유사하게 BV 예측자(BV predictor)와 BV 차이값(BV difference)으로부터 도출될 수 있다. BV can be derived from the BV predictor and the BV difference (BV difference), similar to the motion vector.

현재 블록에 대한 BV 예측자는 부호화 장치에서 코딩되어 복호화 장치로 시그널링 될 수 있으며, 특정 영역, 예를 들어 현재 CTU 내에서 이전에 IBC 모드로 예측된 블록의 BV가 예측자로 사용될 수 있으며, 현재 블록과 인접한 블록 중 IBC 모드로 예측된 블록의 BV 또한 예측자로 사용될 수도 있다. The BV predictor for the current block may be coded in the encoder and signaled to the decoder, and BV of a block previously predicted in IBC mode in a particular area, e.g., the current CTU, may be used as a predictor, The BV of the predicted block in the IBC mode among adjacent blocks may also be used as a predictor.

이 때, 영상 처리 중간에 데이트를 리셋하거나 리프레쉬할 필요가 존재하므로 각 CTU 별로 BV 예측자는 (-2*w,0) 또는 (-w,0)와 같은 초기값으로 초기화될 수 있다. 여기서, w는 현재 코딩 유닛(Coding Unit)의 폭(width)일 수 있다. At this time, since there is a need to reset or refresh the data in the middle of image processing, the BV predictor for each CTU can be initialized to an initial value such as (-2 * w, 0) or (-w, 0). Here, w may be the width of the current coding unit.

BV 차이값은 BV와 BV 예측자의 차이를 나타내며, BVdx, BVdy 값으로 부호화 장치에서 코딩되어 복호화 장치로 시그널링 될 수 있다.The BV difference value represents the difference between the BV and BV predictors and can be coded in the encoder as a BVdx, BVdy value and signaled to the decoder.

현재 코딩 유닛의 예측 모드를 기반으로 대표 플래그가 시그널링 되도록 하는 실현예의 경우, 본 발명과 관련하여 코딩 유닛 레벨에서 부호화 장치가 복호화 장치로 시그널링 하는 신택스를 도시하면 표 7과 같이 표현할 수 있다.In the case of the realization example in which the representative flag is signaled based on the prediction mode of the current coding unit, the syntax that the coding apparatus signals to the decoding apparatus at the coding unit level according to the present invention can be expressed as shown in Table 7. [

<표 7><Table 7>

Figure pat00007

Figure pat00007

표 7을 참조하면, 코딩 유닛 레벨에서, transform_skip_group_signalling_enabled_flag, transform_skip_enabled_flag가 1이고, 무손실 영상 부호화가 아니고(!cu_transquant_bypass_flag), IBC 예측이 적용되지 않는 경우(!intra_bc_flag[ x0 ][ y0 ]), 대표 플래그(transform_skip_all_zeros_in_cu_flag)가 수신될 수 있다. 또한 복호화 장치는 이러한 일련의 조건이 만족되는 경우, 대표 플래그를 파싱할 수 있다. Referring to Table 7, when the transform_skip_group_signalling_enabled_flag and the transform_skip_enabled_flag are 1, not the lossless image coding (! Cu_transquant_bypass_flag), and the IBC prediction is not applied (! Intra_bc_flag [x0] [y0]), the representative flag (transform_skip_all_zeros_in_cu_flag May be received. Further, the decoding apparatus can parse the representative flag when such a series of conditions is satisfied.

물론, 현재 코딩 유닛이 변환 생략이 적용되는 최대 변환 블록의 크기보다 작은 변환 블록을 포함할 수 있다는 조건((log2CbSize - MaxTrafoDepth - (ChromaArrayType % 3 = = 0? 0: 1)) <= Log2MaxTransformSkipSize )이 만족되어야 대표 플래그(transform_skip_all_zeros_in_cu_flag)가 수신되거나 파싱될 수 있다.Of course, the condition ((log2CbSize - MaxTrafoDepth - (ChromaArrayType% 3 = = 0? 0: 1)) == Log2MaxTransformSkipSize) may be satisfied if the current coding unit may include a conversion block smaller than the size of the maximum conversion block to which the conversion skip is applied The representative flag (transform_skip_all_zeros_in_cu_flag) may be received or parsed.

표 7은 상기 도 5 내지 도 7을 참조하여 설명되는 실시예에 적용될 수 있다. 이해를 돕기 위하여 일례를 들면, 도 5의 S510의 대표 플래그 파싱 조건은 transform_skip_group_signalling_enabled_flag, transform_skip_enabled_flag가 1이고, 무손실 영상 부호화가 아니고(!cu_transquant_bypass_flag), IBC 예측이 적용되지 않는 경우(!intra_bc_flag[ x0 ][ y0 ]) 일 것을 포함할 수 있다. 한편, 표 2의 실시예처럼 transform_skip_enabled_flag가 0일 경우에는 transform_skip_group_signalling_enabled_flag는 시그널링 되지 않고, 이때 복호화 장치는 이 값을 0으로 유추하는 실시예에서는, 도 5의 S510의 대표 플래그 파싱 조건은 transform_skip_group_signalling_enabled_flag가 1이고, 무손실 영상 부호화가 아니고(!cu_transquant_bypass_flag), IBC 예측이 적용되지 않는 경우(!intra_bc_flag[ x0 ][ y0 ]) 일 것을 포함할 수 있다.
Table 7 can be applied to the embodiment described with reference to FIG. 5 to FIG. 5, for example, transform_skip_group_signalling_enabled_flag and transform_skip_enabled_flag are 1, not a lossless image coding (! Cu_transquant_bypass_flag), and IBC prediction is not applied (! Intra_bc_flag [x0] [y0 ]). 5, the transform_skip_group_signalling_enabled_flag is not signaled. At this time, in the embodiment in which the decoding apparatus derives this value to 0, the representative flag parsing condition of S510 of FIG. 5 is 1, and the transform_skip_group_signalling_enabled_flag is 1, (! Cu_transquant_bypass_flag), and if IBC prediction is not applied (! Intra_bc_flag [x0] [y0]).

한편, 본 발명에서는 상술한 대표 플래그가 변환 생략 여부를 지시하는 제1 정보(transform_skip_flag)가 변환 생략을 대표하는지 또는 변환 생략이 적용되지 않는 것을 대표하는지 여부를 시그널링할 수 있다. 다시 말해, 대표 플래그가 transform_skip_flag 값이 0인 경우를 대표하는지 또는 transform_skip_flag 값이 1인 경우를 대표하는지를 시그널링할 수 있다. On the other hand, in the present invention, it is possible to signal whether the first information (transform_skip_flag) indicating whether or not the representative flag described above indicates whether or not the conversion is omitted represents the conversion omission or represents that the conversion omission is not applied. In other words, the representative flag may signal whether the transform_skip_flag value is 0, or the transform_skip_flag value is 1.

표 8은 본 발명의 일 실시예에 따른 대표 플래그가 변환 생략을 대표하는지 변환 생략이 적용되지 않는 것을 대표하는지 여부를 시그널링하는 일예를 나타낸 신택스이다. Table 8 is a syntax showing an example of signaling whether the representative flag according to an embodiment of the present invention represents a shift omission or a shift omission does not apply.

<표 8><Table 8>

Figure pat00008

Figure pat00008

표 8을 참조하면, 대표 플래그를 이용한 변환 생략 시그널링 방법을 사용하는 것으로 정의된 경우(transform_skip_group_signalling_enabled_flag = 1), 대표 플래그가 변환 생략을 대표하는지 변환 생략이 적용되지 않는 것을 대표하는지 여부를 지시하는 정보(transform_skip_group_represented_value)가 시그널링될 수 있다. Referring to Table 8, when it is defined to use the conversion omission signaling method using the representative flag (transform_skip_group_signalling_enabled_flag = 1), information indicating whether the representative flag represents conversion omission or not is not applied transform_skip_group_represented_value) may be signaled.

예컨대, transform_skip_group_represented_value 값이 1이면, 대표 플래그는 transform_skip_flag 값이 1인지 여부를 대표하는 것을 의미할 수 있다. transform_skip_group_represented_value 값이 0이면, 대표 플래그는 transform_skip_flag 값이 0인지 여부를 대표하는 것을 의미할 수 있다. For example, if the value of the transform_skip_group_represented_value is 1, the representative flag may indicate whether the value of the transform_skip_flag is 1 or not. If the value of the transform_skip_group_represented_value is 0, the representative flag may indicate whether the value of the transform_skip_flag is 0 or not.

여기서, transform_skip_group_represented_value 값이 0인 경우, 대표 플래그는 상술한 바와 같은 transform_skip_all_zeros_in_cu_flag일 수 있다. 즉, transform_skip_all_zeros_in_cu_flag를 사용하여 transform_skip_flag를 시그널링할 수 있으며, 상기 도 3 내지 도 8을 참조하여 설명한 실시예들이 적용될 수 있다. Here, when the value of transform_skip_group_represented_value is 0, the representative flag may be transform_skip_all_zeros_in_cu_flag as described above. That is, the transform_skip_all_zeros_in_cu_flag can be used for signaling the transform_skip_flag, and the embodiments described with reference to FIGS. 3 to 8 can be applied.

이하에서는 transform_skip_group_represented_value가 시그널링되는 경우, 대표 플래그(transform_skip_all_in_cu_flag)를 시그널링하고 대표 플래그를 기반으로 변환 생략 여부 정보(transform_skip_flag)를 유도하는 방법을 설명한다. In the following, a method of signaling the representative flag (transform_skip_all_in_cu_flag) when transform_skip_group_represented_value is signaled and deriving the conversion skip information (transform_skip_flag) based on the representative flag will be described.

대표 플래그가 변환 생략을 대표하는지 변환 생략이 적용되지 않는 것을 대표하는지 여부를 지시하는 정보(transform_skip_group_represented_value)가 시그널링되는 경우, 다음 표 9와 같이 본 발명의 일 실시예에 따른 대표 플래그(transform_skip_all_in_cu_flag)가 시그널링될 수 있다. When the representative flag (transform_skip_group_represented_value) indicating whether the representative flag represents conversion omission or not represents conversion omission is not signaled, a representative flag (transform_skip_all_in_cu_flag) according to an embodiment of the present invention, as shown in the following Table 9, .

<표 9><Table 9>

Figure pat00009
Figure pat00009

표 9의 대표 플래그(transform_skip_all_in_cu_flag)가 시그널링되어 파싱되는 조건에 대해서는 상기 표 3을 참조하여 설명된 바 있으므로, 여기서는 상세한 설명을 생략한다. The condition that the representative flag (transform_skip_all_in_cu_flag) of Table 9 is signaled and parsed has been described with reference to Table 3, and therefore, a detailed description thereof will be omitted here.

만일, 현재 코딩 유닛의 예측 모드를 기반으로 대표 플래그가 시그널링 되도록 하는 경우, 다음 표 10과 같이 본 발명의 일 실시예에 따른 대표 플래그(transform_skip_all_in_cu_flag)가 시그널링될 수 있다.If the representative flag is signaled based on the prediction mode of the current coding unit, a representative flag (transform_skip_all_in_cu_flag) according to an embodiment of the present invention may be signaled as shown in the following Table 10. [

<표 10><Table 10>

Figure pat00010

Figure pat00010

표 10의 대표 플래그(transform_skip_all_in_cu_flag)가 시그널링되어 파싱되는 조건에 대해서는 상기 표73을 참조하여 설명된 바 있으므로, 여기서는 상세한 설명을 생략한다. The condition that the representative flag (transform_skip_all_in_cu_flag) of Table 10 is signaled and parsed has been described with reference to Table 73, so that detailed description is omitted here.

대표 플래그가 변환 생략을 대표하는지 변환 생략이 적용되지 않는 것을 대표하는지 여부를 지시하는 정보(transform_skip_group_represented_value)가 시그널링되는 경우, 대표 플래그(transform_skip_all_in_cu_flag)를 이용한 변환 생략 여부를 나타내는 제1 정보(transform_skip_flag)는 표 11 및 표 12와 같이 시그널링될 수 있다. (Transform_skip_group_represented_value) indicating whether the representative flag represents conversion skip or represents that conversion skip is not applied is signaled, the first information (transform_skip_flag) indicating whether to omit conversion using the representative flag (transform_skip_all_in_cu_flag) 11 and Table 12, respectively.

<표 11><Table 11>

Figure pat00011

Figure pat00011

표 11을 참조하면, 대표 플래그인 transform_skip_all_in_cu_flag가 1이고, 변환 블록이 코딩 유닛으로부터 분할되는 최대 깊이의 변환 유닛에 포함되는 (log2TrafoSize == Max(2, log2CbSize - MaxTrafoDepth - (ChromaArrayType % 3 = =0 ? 0 : (cIdx?1:0)))) 블록인 경우, 제1 정보(transform_skip_flag)는 파싱되지 않고 transform_skip_group_represented_value 값으로 설정된다.Referring to Table 11, when the representative flag transform_skip_all_in_cu_flag is 1 and the conversion block is included in the conversion unit of the maximum depth divided from the coding unit (log2TrafoSize == Max (2, log2CbSize - MaxTrafoDepth- (ChromaArrayType% 3 = 0: (cIdx? 1: 0)))) block, the first information (transform_skip_flag) is not parsed and is set to a value of transform_skip_group_represented_value.

<표 12><Table 12>

Figure pat00012

Figure pat00012

표 12를 참조하면, 대표 플래그인 transform_skip_all_in_cu_flag가 1이면, 제1 정보(transform_skip_flag)는 파싱되지 않고 transform_skip_group_represented_value 값으로 설정된다. 이때, 대표 플래그는 변환 생략이 가능한 크기의 모든 변환 유닛들을 대표하는 경우에 적용될 수 있다. Referring to Table 12, if the representative flag transform_skip_all_in_cu_flag is 1, the first information (transform_skip_flag) is not parsed and is set to the value of transform_skip_group_represented_value. At this time, the representative flag can be applied in the case of representing all the conversion units of the size which can omit conversion.

대표 플래그가 변환 생략을 대표하는지 변환 생략이 적용되지 않는 것을 대표하는지 여부를 지시하는 정보(transform_skip_group_represented_value)가 시그널링되는 경우, 대표 플래그(transform_skip_all_in_cu_flag)를 이용한 변환 유닛의 분할 여부를 나타내는 제2 정보(split_transform_flag)는 표 13과 같이 시그널링될 수 있다. Second information (split_transform_flag) indicating whether the conversion unit is divided using the representative flag (transform_skip_all_in_cu_flag) when the representative flag indicates conversion omission or information indicating whether conversion omission is not applied (transform_skip_group_represented_value) Can be signaled as shown in Table 13.

<표 13><Table 13>

Figure pat00013

Figure pat00013

표 13을 참조하면, 대표 플래그(transform_skip_all_in_cu_flag)가 1이고, 변환 깊이가 0이면(trafoDepth = 0), 제2 정보(split_transform_flag)는 파싱되지 않고 1로 설정될 수 있다.
Referring to Table 13, if the representative flag (transform_skip_all_in_cu_flag) is 1 and the conversion depth is 0 (trafoDepth = 0), the second information (split_transform_flag) can be set to 1 without being parsed.

본 발명에서는 상술한 대표 플래그가 코딩 유닛의 부호화 모드를 참조하여 시그널링되는지 여부를 시그널링할 수 있다. 다시 말해, 본 발명에서는 대표 플래그가 코딩 유닛의 부호화 모드를 참조하여 시그널링되는지 여부를 지시하는 정보(transform_skip_group_referring_mode_flag)를 제공할 수 있다. In the present invention, it is possible to signal whether or not the representative flag described above is signaled with reference to the coding mode of the coding unit. In other words, the present invention can provide information (transform_skip_group_referring_mode_flag) indicating whether the representative flag is signaled with reference to the coding mode of the coding unit.

표 14는 본 발명의 일 실시예에 따른 대표 플래그가 코딩 유닛의 부호화 모드를 참조하여 시그널링되는지 여부를 시그널링하는 일예를 나타낸 신택스이다. Table 14 is a syntax showing an example of signaling whether a representative flag according to an embodiment of the present invention is signaled with reference to a coding mode of a coding unit.

<표 14><Table 14>

Figure pat00014

Figure pat00014

표 14를 참조하면, 대표 플래그를 이용한 변환 생략 시그널링 방법을 사용하는 것으로 정의된 경우(transform_skip_group_signalling_enabled_flag = 1), 대표 플래그가 코딩 유닛의 부호화 모드를 참조하여 시그널링되는지 여부를 지시하는 정보(transform_skip_group_referring_mode_flag)가 부호화 장치로부터 시그널링될 수 있다. Referring to Table 14, information (transform_skip_group_referring_mode_flag) indicating whether the representative flag is signaled with reference to the coding mode of the coding unit (transform_skip_group_reframe_mode_flag) is defined as the coding And can be signaled from the device.

예컨대, transform_skip_group_referring_mode_flag 값이 1이면, 대표 플래그는 코딩 유닛의 부호화 모드가 기 정의된 예측 모드인 경우에만 시그널링 되며, 코딩 유닛의 부호화 모드가 기 정의된 예측 모드가 아닌 경우에는 제안하는 대표 플래그를 이용한 변환 생략 시그널링이 사용되지 않는다. 즉, 기 정의된 예측 모드가 사용되지 않은 코딩 유닛에 대해서는 대표 플래그를 파싱하지 않는다. For example, when the value of the transform_skip_group_referring_mode_flag is 1, the representative flag is signaled only when the coding mode of the coding unit is the predefined prediction mode, and when the coding mode of the coding unit is not the predefined prediction mode, Omit signaling is not used. That is, the representative flag is not parsed for the coding unit in which the predefined prediction mode is not used.

transform_skip_group_referring_mode_flag 값이 0이면, 대표 플래그의 파싱 여부 결정시 코딩 유닛의 예측 모드를 참조하지 않고 대표 플래그를 파싱할 수 있다. If the value of the transform_skip_group_referring_mode_flag is 0, it is possible to parse the representative flag without referring to the prediction mode of the coding unit when determining whether the representative flag is parsed.

transform_skip_group_represented_value가 시그널링되고 transform_skip_group_referring_mode_flag가 시그널링되는 경우, 대표 플래그(transform_skip_all_in_cu_flag)는 표 15와 같이 시그널링될 수 있다. When the transform_skip_group_represented_value is signaled and the transform_skip_group_referring_mode_flag is signaled, the representative flag (transform_skip_all_in_cu_flag) can be signaled as shown in Table 15.

<표 15><Table 15>

Figure pat00015

Figure pat00015

표 15에 도시된 (transform_skip_group_referring_mode_flag ? (transform_skip_group_represented_value == intra_bc_flag[ x0 ][ y0 ] ) : 1)은 다음과 같은 의미를 가진다. The transform_skip_group_referring_mode_flag? (Transform_skip_group_represented_value == intra_bc_flag [x0] [y0]): 1 shown in Table 15 has the following meaning.

transform_skip_group_referring_mode_flag가 0인 경우에는 상기 문장이 포함된 if문에 1(true)를 리턴한다. 다시 말해서, 대표 플래그가 코딩 유닛의 부호화 모드를 참조하여 시그널링되지 않는 경우, 코딩 유닛의 예측 모드에 관계 없이 대표 플래그를 파싱할 수 있다. If transform_skip_group_referring_mode_flag is 0, 1 (true) is returned to the if statement including the above sentence. In other words, when the representative flag is not signaled with reference to the coding mode of the coding unit, the representative flag can be parsed regardless of the prediction mode of the coding unit.

transform_skip_group_referring_mode_flag가 1인 경우에는 (transform_skip_group_represented_value == intra_bc_flag[ x0 ][ y0 ] )인지를 판별한다. 다시 말해서, 대표 플래그가 코딩 유닛의 부호화 모드를 참조하여 시그널링되는 경우, 코딩 유닛의 부호화 모드가 기 정의된 예측 모드(예컨대, IBC 예측 모드)인지를 판별하여 대표 플래그를 파싱할 수 있다. If transform_skip_group_referring_mode_flag is 1, it is determined whether or not (transform_skip_group_represented_value == intra_bc_flag [x0] [y0]). In other words, when the representative flag is signaled with reference to the coding mode of the coding unit, it is possible to determine whether the coding mode of the coding unit is a predefined prediction mode (for example, IBC prediction mode) and to parse the representative flag.

이때, transform_skip_group_represented_value 값이 1이면(즉, 대표 플래그가 변환 생략(transform_skip_flag=1)을 대표하는 경우), 현재 코딩 유닛의 부호화 모드가 IBC 예측 모드인 경우에만 1을 리턴한다. At this time, when the value of the transform_skip_group_represented_value is 1 (that is, when the representative flag represents conversion skip_flag = 1), 1 is returned only when the coding mode of the current coding unit is the IBC prediction mode.

반면, transform_skip_group_represented_value 값이 0이면(즉, 대표 플래그가 변환 생략을 적용하지 않는 경우(transform_skip_flag=0)를 대표하는 경우), 현재 코딩 유닛의 부호화 모드가 IBC 예측 모드가 아닌 경우에만 1을 리턴한다. On the other hand, if the value of the transform_skip_group_represented_value is 0 (that is, when the representative flag does not apply the transformation skip (transform_skip_flag = 0)), the process returns 1 only if the coding mode of the current coding unit is not the IBC prediction mode.

상기에서는 transform_skip_group_represented_value가 시그널링되는 경우, transform_skip_group_referring_mode_flag를 시그널링하고 대표 플래그를 파싱하는 과정에 대해 설명하였다. 이하에서는 transform_skip_group_represented_value가 시그널링 되지 않는 경우 transform_skip_group_referring_mode_flag를 시그널링하고 대표 플래그를 파싱하는 과정에 대해 설명한다. In the above description, when the transform_skip_group_represented_value is signaled, the process of signaling the transform_skip_group_referring_mode_flag and parsing the representative flag has been described. Hereinafter, the process of signaling the transform_skip_group_referring_mode_flag and parsing the representative flag when the transform_skip_group_represented_value is not signaled will be described.

표 16은 본 발명의 일 실시예에 따른 대표 플래그가 코딩 유닛의 부호화 모드를 참조하여 시그널링되는지 여부를 시그널링하는 일예를 나타낸 신택스이다.Table 16 is a syntax showing an example of signaling whether a representative flag according to an embodiment of the present invention is signaled with reference to a coding mode of a coding unit.

<표 16><Table 16>

Figure pat00016

Figure pat00016

표 16을 참조하면, 대표 플래그를 이용한 변환 생략 시그널링 방법을 사용하는 것으로 정의된 경우(transform_skip_group_signalling_enabled_flag = 1), 대표 플래그가 코딩 유닛의 부호화 모드를 참조하여 시그널링되는지 여부를 지시하는 정보(transform_skip_group_referring_mode_flag)가 부호화 장치로부터 시그널링될 수 있다. Referring to Table 16, information (transform_skip_group_reference_mode_flag) indicating whether the representative flag is signaled with reference to the coding mode of the coding unit (transform_skip_group_signalling_enabled_flag = 1) is defined by using the conversion skip signaling method using the representative flag And can be signaled from the device.

transform_skip_group_referring_mode_flag가 시그널링되는 경우, 대표 플래그는 표 17 및 표 18과 같이 시그널링될 수 있다. 이때, 표 17의 대표 플래그(transform_skip_all_zeros_in_cu_flag)는 대표 플래그가 변환 생략을 적용하지 않는 경우(transform_skip_flag=0)를 대표한다. 표 18의 대표 플래그(transform_skip_all_ones_in_cu_flag)는 대표 플래그가 변환 생략을 적용하는 경우(transform_skip_flag=1)를 대표한다. If the transform_skip_group_referring_mode_flag is signaled, the representative flag can be signaled as shown in Table 17 and Table 18. At this time, the representative flag (transform_skip_all_zeros_in_cu_flag) in Table 17 represents (transform_skip_flag = 0) when the representative flag does not apply the translation omission. The representative flag (transform_skip_all_ones_in_cu_flag) in Table 18 represents the case where the representative flag applies the translation omission (transform_skip_flag = 1).

<표 17><Table 17>

Figure pat00017

Figure pat00017

표 17을 참조하면, 대표 플래그 transform_skip_all_zeros_in_cu_flag는 transform_skip_group_referring_mode_flag 값에 따라 코딩 유닛의 부호화 모드가 기 정의된 예측 모드(예컨대, IBC 예측 모드)인지를 판별하여 파싱될 수 있다. Referring to Table 17, the representative flag transform_skip_all_zeros_in_cu_flag can be parsed according to the value of the transform_skip_group_referring_mode_flag by determining whether the coding mode of the coding unit is a predefined prediction mode (for example, IBC prediction mode).

<표 18><Table 18>

Figure pat00018

Figure pat00018

표 18을 참조하면, 대표 플래그 transform_skip_all_ones_in_cu_flag는 transform_skip_group_referring_mode_flag 값에 따라 코딩 유닛의 부호화 모드가 기 정의된 예측 모드(예컨대, IBC 예측 모드)인지를 판별하여 파싱될 수 있다.
Referring to Table 18, the representative flag transform_skip_all_ones_in_cu_flag can be parsed according to the value of the transform_skip_group_referring_mode_flag by determining whether the coding mode of the coding unit is a predefined mode (for example, IBC prediction mode).

도 9는 본 발명의 일 실시예에 따른 변환 생략 여부를 대표하는 대표 플래그를 이용한 영상 부호화 방법을 나타낸 순서도이다. 도 9의 방법은 상술한 도 1의 영상 부호화 장치에 의해 수행될 수 있다. 9 is a flowchart illustrating a method of encoding an image using a representative flag representative of whether or not to omit conversion according to an embodiment of the present invention. The method of FIG. 9 can be performed by the image encoding apparatus of FIG. 1 described above.

부호화 장치는 코딩의 대상이 되는 코딩 유닛으로부터 분할되는 변환 블록에 변환 생략이 적용되는지 여부를 판단한다(S910).The encoding apparatus determines whether or not the conversion skipping is applied to the conversion block that is divided from the coding unit to be coded (S910).

판단 결과, 도 5 및 도 6을 참조하여 설명된 소정의 조건을 만족하면서 변환 생략이 적용된 변환 블록에 대하여, 변환 생략 여부를 지시하는 제1 정보를 대표하는 대표 플래그를 코딩하고, 대표 플래그를 상기 코딩 유닛에 대한 정보로 시그널링할 수 있다(S920). As a result of the determination, the representative flag representing the first information indicating whether or not the conversion is omitted is encoded in the conversion block to which the conversion skip is applied while satisfying the predetermined condition described with reference to Figs. 5 and 6, Signaling with information on the coding unit (S920).

부호화 장치는 코딩 유닛으로부터 분할되는 최대 깊이의 변환 유닛에 해당하는 변환 블록 중 변환 생략이 적용될 수 있는 기본 조건 (즉, 변환 블록의 크기가 변환 생략이 적용되는 최대 변환 블록 크기 이하임과 동시에 부호화되는 변환계수가 존재하여야 함 (즉, CBF가 1임))을 만족하는 모든 변환 블록에 변환 생략이 사용되지 않은 경우, 대표 플래그를 1로 코딩할 수 있다. The encoding apparatus is configured so that a basic condition under which conversion skipping can be applied among the conversion blocks corresponding to the conversion unit of the maximum depth divided from the coding unit (i.e., the size of the conversion block is equal to or smaller than the maximum conversion block size to which the conversion skip is applied The representative flag may be coded as 1 if no conversion skip is used in all the conversion blocks that satisfy the conversion condition (i.e., CBF is 1).

또는, 코딩 유닛으로부터 분할되는 변환 유닛이 포함하는 변환 유닛 중, 변환 생략이 적용될 수 있는 기본 조건을 만족하는 모든 변환 블록에 변환 생략이 사용되지 않은 경우, 부호화 장치는 대표 플래그를 1로 코딩할 수 있다.Alternatively, when the conversion skip is not used in all the conversion blocks that satisfy the basic condition to which the skip conversion can be applied among the conversion units included in the conversion unit divided from the coding unit, the encoding device can code the representative flag with 1 have.

부호화 장치는 대표 플래그가 1이면(S930), 상기와 같은 조건을 만족하는 변환 블록에 대하여는 제1 정보의 코딩을 생략하고, 제1 정보의 코딩이 필요한 변환 블록에 대하여는 제1 정보를 코딩할 수 있다(S940).If the representative flag is 1 (S930), coding of the first information is skipped for the conversion block that satisfies the above conditions, and coding of the first information is performed for the conversion block requiring coding of the first information (S940).

또한, 부호화 장치는 대표 플래그에 기초하여 변환 유닛의 분할 여부를 나타내는 제2 정보의 코딩 여부를 판단할 수도 있다. The encoding apparatus may also determine whether to code second information indicating whether or not the conversion unit is divided based on the representative flag.

부호화 장치는 대표 플래그가 1이고 변환 유닛에 대한 변환 깊이가 0이면, 제2 정보의 코딩이 필요 없는 것으로 판단할 수도 있고, 대표 플래그가 1이고 변환 유닛에 대한 변환 깊이가 0이고 변환 유닛의 크기가 상기 변환 생략이 적용되는 최대 변환 블록 크기보다 큰 경우에 제2 정보의 코딩이 필요 없는 것으로 판단할 수도 있다. 이 경우, 변환 깊이가 0인 변환 유닛에 대하여는 제2 정보에 대하여 코딩하지 않을 수 있다. If the representative flag is 1 and the conversion depth for the conversion unit is 0, it may be determined that coding of the second information is not necessary. If the representative flag is 1, the conversion depth for the conversion unit is 0, Is larger than the maximum transform block size to which the transform omission is applied, it may be determined that coding of the second information is not necessary. In this case, for the conversion unit having the conversion depth of 0, the second information may not be coded.

부호화 장치는 제2 정보의 코딩이 필요한 변환 유닛, 즉 변환 깊이가 0->1 로 분할되는 분할 유닛 이외의 분할 유닛에 대하여 분할 여부를 지시하는 제2 정보를 코딩한다(S950).In step S950, the encoding apparatus codes second information indicating whether or not to divide a division unit other than the division unit in which the conversion depth is 0 -> 1, which requires coding of the second information.

단계 S940 및 S950는 순차적으로 수행될 수도 있지만, 각각 독립적인 단계로 수행될 수도 있고, 제2 정보에 대한 코딩이 먼저 수행될 수도 있다. 즉, 대표 플래그가 코딩된 이후의 단계의 순서는 도면에 도시한 것에 한정되지 않는다.Steps S940 and S950 may be performed sequentially, but each may be performed in an independent step, and coding for the second information may be performed first. That is, the order of the steps after the representative flag is coded is not limited to that shown in the drawings.

대표 플래그가 0이면 제1 정보 및 제2 정보를 기존의 코딩 방식대로 코딩되어 시그널링 된다(S960).
If the representative flag is 0, the first information and the second information are coded according to the existing coding scheme and signaled (S960).

상기에서 복호화 과정에서 수행되는 변환은 실질적으로 부호화 장치에서 실행한 변환의 역과정인 역변환 (inverse transform)을 의미하지만, 역변환 역시 변환의 일종이므로 그 실질적인 의미하는 바에 있어 혼동의 소지가 없을 것이다.
The conversion performed in the decoding process refers to an inverse transform, which is an inverse process of the conversion performed in the encoding device. However, since the inverse conversion is also a kind of conversion, there is no real confusion in the meaning.

상술한 본 발명에 따른 방법은 컴퓨터에서 실행되기 위한 프로그램으로 제작되어 컴퓨터가 읽을 수 있는 기록 매체에 저장될 수 있으며, 컴퓨터가 읽을 수 있는 기록 매체의 예로는 ROM, RAM, CD-ROM, 자기 테이프, 플로피디스크, 광 데이터 저장장치 등이 있으며, 또한 캐리어 웨이브(예를 들어 인터넷을 통한 전송)의 형태로 구현되는 것도 포함한다.The method according to the present invention may be implemented as a program for execution on a computer and stored in a computer-readable recording medium. Examples of the computer-readable recording medium include a ROM, a RAM, a CD- , A floppy disk, an optical data storage device, and the like, and may also be implemented in the form of a carrier wave (for example, transmission over the Internet).

컴퓨터가 읽을 수 있는 기록 매체는 네트워크로 연결된 컴퓨터 시스템에 분산되어, 분산방식으로 컴퓨터가 읽을 수 있는 코드가 저장되고 실행될 수 있다. 그리고, 상기 방법을 구현하기 위한 기능적인(function) 프로그램, 코드 및 코드 세그먼트들은 본 발명이 속하는 기술분야의 프로그래머들에 의해 용이하게 추론될 수 있다.The computer readable recording medium may be distributed over a networked computer system so that computer readable code can be stored and executed in a distributed manner. And, functional programs, codes and code segments for implementing the above method can be easily inferred by programmers of the technical field to which the present invention belongs.

상술한 실시예들에서, 방법들은 일련의 단계 또는 블록으로서 순서도를 기초로 설명되고 있으나, 본 발명은 단계들의 순서에 한정되는 것은 아니며, 어떤 단계는 상술한 바와 다른 단계와 다른 순서로 또는 동시에 발생할 수 있다. 또한, 당해 기술 분야에서 통상의 지식을 가진 자라면 순서도에 나타난 단계들이 배타적이지 않고, 다른 단계가 포함되거나, 순서도의 하나 또는 그 이상의 단계가 본 발명의 범위에 영향을 미치지 않고 삭제될 수 있음을 이해할 수 있을 것이다.In the above-described embodiments, the methods are described on the basis of a flowchart as a series of steps or blocks, but the present invention is not limited to the order of the steps, and some steps may occur in different orders or simultaneously . It will also be understood by those skilled in the art that the steps depicted in the flowchart illustrations are not exclusive and that other steps may be included or that one or more steps in the flowchart may be deleted without affecting the scope of the invention You will understand.

이상의 설명은 본 발명의 기술 사상을 예시적으로 설명한 것에 불과한 것으로서, 본 발명이 속하는 기술 분야에서 통상의 지식을 가진 자라면 본 발명의 본질적인 특성에서 벗어나지 않는 범위에서 다양한 수정 및 변형이 가능할 것이다. 따라서, 본 발명에 개시된 실시 예들은 본 발명의 기술 사상을 한정하기 위한 것이 아니라 설명하기 위한 것이고, 이러한 실시 예에 의하여 본 발명의 기술 사상의 범위가 한정되는 것은 아니다. 본 발명의 보호범위는 특허청구범위에 의하여 해석되어야 하며, 그와 동등한 범위 내에 있는 모든 기술 사상은 본 발명의 권리범위에 포함되는 것으로 해석되어야 할 것이다.The foregoing description is merely illustrative of the technical idea of the present invention, and various changes and modifications may be made by those skilled in the art without departing from the essential characteristics of the present invention. Therefore, the embodiments disclosed in the present invention are intended to illustrate rather than limit the scope of the present invention, and the scope of the technical idea of the present invention is not limited by these embodiments. The scope of protection of the present invention should be construed according to the claims, and all technical ideas within the scope of the claims should be construed as being included in the scope of the present invention.

Claims (19)

영상의 복호화 방법에 있어서,
현재 코딩 유닛의 크기가 변환 생략이 가능한 변환 블록을 포함할 수 있는 경우, 상기 코딩 유닛으로부터 분할되는 변환 생략이 가능한 변환 블록의 변환 생략 여부를 지시하는 제1 정보를 대표하는 대표 플래그를 상기 코딩 유닛에 대한 정보로 파싱하는 단계와;
상기 대표 플래그에 기초하여 상기 제1 정보의 파싱 여부를 판단하는 단계와;
상기 제1 정보의 파싱이 필요 없는 경우 상기 대표 플래그에 기초하여 상기 제1 정보를 유추하고, 상기 제1 정보의 파싱이 필요한 경우 상기 제1 정보를 파싱하는 단계와;
상기 제1 정보에 따라 상기 변환 블록에 대한 변환을 수행 또는 생략하는 단계를 포함하며,
상기 대표 플래그는 상기 변환 블록에 변환 생략이 적용되지 않는 것을 대표하며,
상기 대표 플래그가 1인 경우, 상기 제1 정보는 상기 변환 블록에 변환 생략이 적용되지 않는 것으로 유추되며,
상기 대표 플래그가 0인 경우, 상기 제1 정보는 상기 변환 블록에 변환 생략이 적용되는 것으로 유추되거나, 또는 상기 제1 정보는 파싱을 통해 판별하여, 상기 파싱된 제1 정보에 따라 상기 변환 블록에 변환 생략 또는 변환이 적용되는 것으로 유추되는 것을 특징으로 하는 영상의 복호화 방법.
A method of decoding an image,
Wherein when the size of the current coding unit can include a conversion block capable of omitting conversion, a representative flag representative of first information indicating whether to omit conversion of a conversion block capable of omitting conversion, which is divided from the coding unit, Parsing the received information into information about the content;
Determining whether the first information is parsed based on the representative flag;
If the parsing of the first information is not necessary, inferring the first information based on the representative flag and parsing the first information when parsing of the first information is necessary;
And performing or omitting a transformation on the transform block according to the first information,
The representative flag represents that the conversion skip is not applied to the conversion block,
And if the representative flag is 1, the first information is inferred that the conversion skip is not applied to the conversion block,
If the representative flag is 0, the first information is inferred to be a translation block omission, or the first information is determined through parsing, and the first information is added to the conversion block in accordance with the parsed first information. Wherein the transform is omitted or the transform is applied.
제1항에 있어서,
상기 대표 플래그가 상기 변환 블록에 변환 생략이 적용되지 않는 것을 대표하는지 상기 변환 블록에 변환 생략이 적용되는 것을 대표하는지를 지시하는 대표값 정보를 더 수신하는 단계를 포함하며,
상기 대표값 정보가 1이면, 상기 대표 플래그는 상기 변환 블록에 변환 생략이 적용되는 것을 대표하며,
상기 대표값 정보가 0이면, 상기 대표 플래그는 상기 변환 블록에 변환 생략이 적용되지 않는 것을 대표하는 것을 특징으로 하는 영상의 복호화 방법.
The method according to claim 1,
Further comprising receiving representative value information indicating whether the representative flag represents that the conversion omission is not applied to the conversion block or represents that conversion omission is applied to the conversion block,
If the representative value information is 1, the representative flag represents that the conversion skip is applied to the conversion block,
And if the representative value information is 0, the representative flag represents that conversion omission is not applied to the conversion block.
제1항에 있어서,
상기 제1 정보의 파싱 여부를 판단하는 단계는,
상기 대표 플래그가 1이고, 상기 변환 블록이 상기 코딩 유닛으로부터 분할되는 최대 깊이의 변환 유닛에 포함되고, 상기 변환 블록의 크기가 상기 변환 생략이 적용되는 최대 변환 블록 크기 이하인 경우, 상기 제1 정보의 파싱이 필요 없는 것으로 판단하고,
상기 제1 정보를 상기 변환 블록에 변환 생략이 적용되지 않는 것으로 유추하는 것을 특징으로 하는 영상의 복호화 방법.
The method according to claim 1,
Wherein the step of determining whether to parse the first information comprises:
When the representative flag is 1 and the conversion block is included in the conversion unit of the maximum depth divided from the coding unit and the size of the conversion block is equal to or less than a maximum conversion block size to which the conversion omission is applied, If parsing is not necessary,
And the first information is inferred to be not applied to the transform block.
제1항에 있어서,
상기 제1 정보의 파싱 여부를 판단하는 단계는,
상기 대표 플래그가 1이고, 상기 변환 블록의 크기가 상기 변환 생략이 적용되는 최대 변환 블록 크기 이하인 경우, 상기 제1 정보의 파싱이 필요 없는 것으로 판단하고,
상기 제1 정보를 상기 변환 블록에 변환 생략이 적용되지 않는 것으로 유추하는 것을 특징으로 하는 영상의 복호화 방법.
The method according to claim 1,
Wherein the step of determining whether to parse the first information comprises:
When the representative flag is 1 and the size of the transform block is equal to or smaller than a maximum transform block size to which the transformation skip is applied,
And the first information is inferred to be not applied to the transform block.
제1항에 있어서,
상기 대표 플래그에 기초하여 변환 유닛의 분할 여부를 나타내는 제2 정보의 파싱 여부를 판단하는 단계와;
상기 제2 정보의 파싱이 필요 없는 경우 상기 대표 플래그에 기초하여 상기 제2 정보를 유추하고, 상기 제2 정보의 파싱이 필요한 경우 상기 제2 정보를 파싱하는 단계와;
상기 제2 정보에 따라 상기 변환 유닛에 대한 분할을 수행하는 것을 특징으로 하는 영상의 복호화 방법.
The method according to claim 1,
Determining whether to parse second information indicating whether or not the conversion unit is divided based on the representative flag;
If the parsing of the second information is not necessary, inferring the second information based on the representative flag and parsing the second information when parsing of the second information is necessary;
And performing division on the conversion unit according to the second information.
제5항에 있어서,
상기 제2 정보의 파싱 여부를 판단하는 단계는,
상기 대표 플래그가 1이고, 상기 변환 유닛에 대한 변환 깊이가 0이면, 상기 제2 정보의 파싱이 필요 없는 것으로 판단하고,
상기 제2 정보를 상기 변환 유닛이 분할되는 것으로 유추하는 것을 특징으로 하는 영상의 복호화 방법.
6. The method of claim 5,
Wherein the step of determining whether to parse the second information comprises:
If the representative flag is 1 and the conversion depth for the conversion unit is 0, it is determined that parsing of the second information is not necessary,
And the second information is inferred to be obtained by dividing the conversion unit.
제5항에 있어서,
상기 제2 정보의 파싱 여부를 판단하는 단계는,
상기 대표 플래그가 1이고, 상기 변환 유닛에 대한 변환 깊이가 0이고, 상기 변환 깊이가 0인 변환 유닛이 포함하는 모든 변환 블록의 크기가 상기 변환 생략이 적용되는 최대 변환 블록 크기보다 큰 경우, 상기 제2 정보의 파싱이 필요 없는 것으로 판단하고,
상기 제2 정보를 상기 변환 유닛이 분할되는 것으로 유추하는 것을 특징으로 하는 영상의 복호화 방법.
6. The method of claim 5,
Wherein the step of determining whether to parse the second information comprises:
When the representative flag is 1, the conversion depth for the conversion unit is 0, and the size of all the conversion blocks included in the conversion unit having the conversion depth of 0 is larger than the maximum conversion block size to which the conversion skip is applied, It is determined that parsing of the second information is not necessary,
And the second information is inferred to be obtained by dividing the conversion unit.
제1항에 있어서,
상기 대표 플래그는 상기 코딩 유닛에 적용된 예측 모드에 대응하여 시그널링되는 것을 특징으로 하는 영상의 복호화 방법.
The method according to claim 1,
Wherein the representative flag is signaled corresponding to a prediction mode applied to the coding unit.
제8항에 있어서,
상기 대표 플래그는 상기 코딩 유닛의 예측 모드가 현재 픽쳐 내에서 움직임 예측을 수행하여 현재 블록과 유사한 영역을 상기 현재 블록에 대한 예측값으로 설정하는 인트라 블록 카피(IBC) 예측 모드이면 시그널링되는 것을 특징으로 하는 영상의 복호화 방법.
9. The method of claim 8,
Wherein the representative flag is signaled when the prediction mode of the coding unit performs an intra prediction in the current picture and an intra block copy (IBC) prediction mode in which an area similar to the current block is set as a prediction value for the current block A method of decoding an image.
제8항에 있어서,
상기 대표 플래그가 상기 코딩 유닛에 적용된 예측 모드에 대응하여 시그널링되는지 여부를 지시하는 예측 모드 참조 정보를 더 수신하는 단계를 포함하며,
상기 예측 모드 참조 정보가 상기 코딩 유닛에 적용된 예측 모드에 대응하여 시그널링되는 경우를 지시하면, 상기 대표 플래그는 상기 코딩 유닛의 예측 모드가 기 정의된 예측 모드인 경우에 시그널링되며,
상기 예측 모드 참조 정보가 상기 코딩 유닛에 적용된 예측 모드에 대응하여 시그널링되지 않는 경우를 지시하면, 상기 대표 플래그는 상기 코딩 유닛의 예측 모드를 참조하지 않고 파싱 여부가 결정되는 것을 특징으로 하는 영상의 복호화 방법.
9. The method of claim 8,
Further comprising receiving prediction mode reference information indicating whether the representative flag is signaled in response to a prediction mode applied to the coding unit,
When the prediction mode reference information indicates signaling corresponding to a prediction mode applied to the coding unit, the representative flag is signaled when the prediction mode of the coding unit is a predefined prediction mode,
Wherein if the prediction mode reference information indicates that the signal is not signaled corresponding to the prediction mode applied to the coding unit, whether to parse the reference flag is determined without referring to the prediction mode of the coding unit. Way.
제1항에 있어서,
상기 대표 플래그를 이용하여 상기 변환 생략 여부를 유추하는 기능을 사용하는지 여부를 나타내는 플래그 정보를 더 수신하고,
상기 플래그 정보는 시퀀스 파라미터 세트 또는 픽쳐 파라미터 세트에서 시그널링 되는 것을 특징으로 하는 영상의 복호화 방법.
The method according to claim 1,
Further receiving flag information indicating whether or not a function of inferring whether or not to omit conversion is used by using the representative flag,
Wherein the flag information is signaled in a sequence parameter set or a picture parameter set.
제2항에 있어서,
상기 대표값 정보가 수신된 경우, 상기 제1 정보의 파싱 여부를 판단하는 단계는,
상기 대표 플래그가 1이고, 상기 변환 블록이 상기 코딩 유닛으로부터 분할되는 최대 깊이의 변환 유닛에 포함되고, 상기 변환 블록의 크기가 상기 변환 생략이 적용되는 최대 변환 블록 크기 이하인 경우, 상기 제1 정보의 파싱이 필요 없는 것으로 판단하고,
상기 제1 정보를 상기 대표값 정보로 유추하는 것을 특징으로 하는 영상의 복호화 방법.
3. The method of claim 2,
Wherein when the representative value information is received, determining whether to parse the first information comprises:
When the representative flag is 1 and the conversion block is included in the conversion unit of the maximum depth divided from the coding unit and the size of the conversion block is equal to or less than a maximum conversion block size to which the conversion omission is applied, If parsing is not necessary,
And the first information is inferred as the representative value information.
제2항에 있어서,
상기 대표값 정보가 수신된 경우, 상기 제1 정보의 파싱 여부를 판단하는 단계는,
상기 대표 플래그가 1이고, 상기 변환 블록의 크기가 상기 변환 생략이 적용되는 최대 변환 블록 크기 이하인 경우, 상기 제1 정보의 파싱이 필요 없는 것으로 판단하고,
상기 제1 정보를 상기 대표값 정보로 유추하는 것을 특징으로 하는 영상의 복호화 방법.
3. The method of claim 2,
Wherein when the representative value information is received, determining whether to parse the first information comprises:
When the representative flag is 1 and the size of the transform block is equal to or smaller than a maximum transform block size to which the transformation skip is applied,
And the first information is inferred as the representative value information.
영상의 부호화 방법에 있어서,
코딩의 대상이 되는 코딩 유닛으로부터 분할되는 변환 블록에 변환 생략이 적용되는지 판단하는 단계와;
상기 변환 블록에 변환 생략 여부를 지시하는 제1 정보를 대표하는 대표 플래그를 코딩하고, 상기 대표 플래그를 상기 코딩 유닛에 대한 정보로 시그널링하는 단계와;
상기 대표 플래그에 기초하여 상기 제1 정보의 코딩이 필요한 경우, 상기 제1 정보를 코딩하는 단계를 포함하며,
상기 대표 플래그는 변환 블록에 변환 생략이 적용되지 않는 것을 대표하며,
상기 코딩 유닛으로부터 분할되는 변환 블록에 변환 생략이 적용되지 않는 경우, 상기 대표 플래그는 1로 코딩되고,
상기 코딩 유닛으로부터 분할되는 변환 블록에 변환 생략이 적용되는 경우, 상기 대표 플래그는 0으로 코딩되는 것을 특징으로 하는 영상의 부호화 방법.
A method of encoding an image,
Determining whether a conversion skip is applied to a conversion block that is divided from a coding unit to be coded;
Coding a representative flag representative of first information indicating whether or not to omit conversion in the conversion block, and signaling the representative flag with information on the coding unit;
And coding the first information when coding of the first information is required based on the representative flag,
The representative flag represents that no conversion omission is applied to the conversion block,
When the conversion skip is not applied to the conversion block divided from the coding unit, the representative flag is coded as 1,
Wherein when the conversion skip is applied to a conversion block that is divided from the coding unit, the representative flag is coded with 0.
제14항에 있어서,
상기 대표 플래그를 코딩하는 단계는,
상기 코딩 유닛으로부터 분할되는 최대 깊이의 변환 유닛에 포함되는 변환 블록 중 상기 변환 생략이 적용되는 최대 변환 블록 크기 이하의 크기를 가지고, 잔차 신호가 존재하는 모든 변환 블록에 변환 생략이 적용되지 않은 경우, 상기 대표 플래그를 1로 코딩하는 것을 특징으로 하는 영상의 부호화 방법.
15. The method of claim 14,
Wherein the step of coding the representative flag comprises:
When the conversion skip is not applied to all of the conversion blocks included in the conversion unit of the maximum depth divided from the coding unit and having a size equal to or smaller than the maximum conversion block size to which the conversion skip is applied, And the representative flag is coded by 1.
제14항에 있어서,
상기 대표 플래그를 코딩하는 단계는,
상기 코딩 유닛으로부터 분할되는 변환 블록 중 상기 변환 생략이 적용되는 최대 변환 블록 크기 이하의 크기를 가지고, 잔차 신호가 존재하는 모든 변환 블록에 변환 생략이 적용되지 않은 경우, 상기 대표 플래그를 1로 코딩하는 것을 특징으로 하는 영상의 부호화 방법.
15. The method of claim 14,
Wherein the step of coding the representative flag comprises:
If the conversion skip is not applied to all of the conversion blocks divided from the coding unit and having a size equal to or smaller than the maximum conversion block size to which the conversion skip is applied and in which the residual signal exists, Wherein the image coding method comprises the steps of:
제14항에 있어서,
상기 대표 플래그에 기초하여 변환 유닛의 분할 여부를 나타내는 제2 정보의 코딩 여부를 판단하는 단계와;
상기 제2 정보의 코딩이 필요한 경우, 상기 제2 정보를 코딩하여 시그널링하는 단계를 포함하는 것을 특징으로 하는 영상의 부호화 방법.
15. The method of claim 14,
Determining whether to code second information indicating whether or not the conversion unit is divided based on the representative flag;
And coding and signaling the second information if coding of the second information is required.
제17항에 있어서,
상기 제2 정보의 코딩 여부를 판단하는 단계는,
상기 대표 플래그가 1이고 상기 변환 유닛에 대한 변환 깊이가 0이면, 상기 상기 제2 정보의 코딩이 필요 없는 것으로 판단하는 것을 특징으로 하는 영상의 부호화 방법.
18. The method of claim 17,
Wherein the step of determining whether to code the second information comprises:
Wherein if the representative flag is 1 and the conversion depth for the conversion unit is 0, it is determined that coding of the second information is not necessary.
제17항에 있어서,
상기 제2 정보의 코딩 여부를 판단하는 단계는,
상기 대표 플래그가 1이고, 상기 변환 유닛에 대한 변환 깊이가 0이고, 상기 변환 깊이가 0인 변환 유닛이 포함하는 모든 변환 블록의 크기가 상기 변환 생략이 적용되는 최대 변환 블록 크기보다 큰 경우, 제2 정보의 코딩이 필요 없는 것으로 판단하는 것을 특징으로 하는 영상의 부호화 방법.
18. The method of claim 17,
Wherein the step of determining whether to code the second information comprises:
When the representative flag is 1 and the conversion depth for the conversion unit is 0 and the size of all the conversion blocks included in the conversion unit having the conversion depth of 0 is larger than the maximum conversion block size to which the conversion skip is applied, 2 &lt; / RTI &gt; information is not necessary.
KR1020140175076A 2014-12-08 2014-12-08 Transform skip signaling method and apparatus for video coding KR102138197B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020140175076A KR102138197B1 (en) 2014-12-08 2014-12-08 Transform skip signaling method and apparatus for video coding

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020140175076A KR102138197B1 (en) 2014-12-08 2014-12-08 Transform skip signaling method and apparatus for video coding

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
KR1020140134255A Division KR101642092B1 (en) 2014-10-06 2014-10-06 Video encoding and decoding method and apparatus using the same

Publications (2)

Publication Number Publication Date
KR20160040977A true KR20160040977A (en) 2016-04-15
KR102138197B1 KR102138197B1 (en) 2020-07-27

Family

ID=55801790

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020140175076A KR102138197B1 (en) 2014-12-08 2014-12-08 Transform skip signaling method and apparatus for video coding

Country Status (1)

Country Link
KR (1) KR102138197B1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018182184A1 (en) * 2017-03-31 2018-10-04 주식회사 칩스앤미디어 Image processing method for performing processing of encoding tree unit and encoding unit, image decoding and encoding method using same, and device thereof
WO2020262960A1 (en) * 2019-06-24 2020-12-30 엘지전자 주식회사 Image encoding/decoding method and device using maximum transform size restriction of chroma component encoding block, and method for transmitting bitstream
CN113810701A (en) * 2016-04-29 2021-12-17 世宗大学校产学协力团 Method and apparatus for encoding and decoding image signal

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20220150518A1 (en) * 2020-11-11 2022-05-12 Tencent America LLC Method and apparatus for video coding

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20090099234A (en) * 2008-03-17 2009-09-22 삼성전자주식회사 Method and apparatus for video encoding and decoding
KR20140005098A (en) * 2012-07-02 2014-01-14 한국전자통신연구원 Method and apparatus for image encoding/decoding
KR20140109770A (en) * 2013-02-28 2014-09-16 성균관대학교산학협력단 Method and apparatus for image encoding/decoding

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20090099234A (en) * 2008-03-17 2009-09-22 삼성전자주식회사 Method and apparatus for video encoding and decoding
KR20140005098A (en) * 2012-07-02 2014-01-14 한국전자통신연구원 Method and apparatus for image encoding/decoding
KR20140109770A (en) * 2013-02-28 2014-09-16 성균관대학교산학협력단 Method and apparatus for image encoding/decoding

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
"High-Efficiency Video Coding", SERIES H: AUDIOVISUAL AND MULTIMEDIA SYSTEMSInfrastructure of audiovisual services - Coding of moving video, ITU-T H.265, (04/2013) *
Byeungwoo Jeon et al., ‘Non-CE2: Transform skip signalling for intra block copy’, JCT-VC of ITU-T SG 16 WP 3 and ISO/IEC JTC 1/SC 29/WG 11, 19th Meeting: Strasbourg, FR, 17-24 Oct. 2014, (JCTVC-S0036) *
David Flynn, et al., "High Efficiency Video Coding (HEVC) Range Extensions text specification: Draft 7", JCT-VC of of ITU-T SG 16 WP 3 and ISO/IEC JTC 1/SC 29/WG 11, 17th Meeting: Valencia, ES, 27 Mar* *
Lihua Zhu, et al., "Initialization of block vector predictor for intra block copy", (JCTVC-P0217-V2), JCT-VC of of ITU-T SG 16 WP 3 and ISO/IEC JTC 1/SC 29/WG 11, 16th Meeting: San Jose, US, 2014.01.0* *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113810701A (en) * 2016-04-29 2021-12-17 世宗大学校产学协力团 Method and apparatus for encoding and decoding image signal
CN113810701B (en) * 2016-04-29 2024-04-19 世宗大学校产学协力团 Method and apparatus for encoding and decoding image signal
WO2018182184A1 (en) * 2017-03-31 2018-10-04 주식회사 칩스앤미디어 Image processing method for performing processing of encoding tree unit and encoding unit, image decoding and encoding method using same, and device thereof
WO2020262960A1 (en) * 2019-06-24 2020-12-30 엘지전자 주식회사 Image encoding/decoding method and device using maximum transform size restriction of chroma component encoding block, and method for transmitting bitstream
US11695959B2 (en) 2019-06-24 2023-07-04 Lg Electronics Inc. Image encoding/decoding method and device using maximum transform size restriction of chroma component encoding block, and method for transmitting bitstream

Also Published As

Publication number Publication date
KR102138197B1 (en) 2020-07-27

Similar Documents

Publication Publication Date Title
KR101937213B1 (en) Method for coding/decoding of intra prediction mode and computer readable redording meduim thereof
KR20160037874A (en) Method for encoding/decoding an intra prediction mode and apparatus for the same
KR20180074773A (en) Method and apparatus for entropy encoding and decoding video signals
TW201309031A (en) Method and apparatus for video encoding and method and apparatus for video decoding
KR101973571B1 (en) Methods and apparatus for video transform encoding/decoding
KR102627681B1 (en) Entrpy decoding method and apparatus for transform skip information
KR102486026B1 (en) Method and apparatus for parallel entropy encoding/decoding
KR101707164B1 (en) Video encoding and decoding method and apparatus using the same
KR102138197B1 (en) Transform skip signaling method and apparatus for video coding
KR101642092B1 (en) Video encoding and decoding method and apparatus using the same

Legal Events

Date Code Title Description
A107 Divisional application of patent
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant