KR20230048275A - Entrpy decoding method and apparatus for transform skip information - Google Patents

Entrpy decoding method and apparatus for transform skip information Download PDF

Info

Publication number
KR20230048275A
KR20230048275A KR1020230040682A KR20230040682A KR20230048275A KR 20230048275 A KR20230048275 A KR 20230048275A KR 1020230040682 A KR1020230040682 A KR 1020230040682A KR 20230040682 A KR20230040682 A KR 20230040682A KR 20230048275 A KR20230048275 A KR 20230048275A
Authority
KR
South Korea
Prior art keywords
block
transform
current
prediction
current block
Prior art date
Application number
KR1020230040682A
Other languages
Korean (ko)
Other versions
KR102627681B1 (en
Inventor
전병우
심혁재
양승하
Original Assignee
성균관대학교산학협력단
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 성균관대학교산학협력단 filed Critical 성균관대학교산학협력단
Publication of KR20230048275A publication Critical patent/KR20230048275A/en
Priority to KR1020240007198A priority Critical patent/KR20240013885A/en
Application granted granted Critical
Publication of KR102627681B1 publication Critical patent/KR102627681B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/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/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/103Selection of coding mode or of prediction mode
    • H04N19/11Selection of coding mode or of prediction mode among a plurality of spatial predictive coding modes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/157Assigned coding mode, i.e. the coding mode being predefined or preselected to be further used for selection of another element or parameter
    • 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/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/593Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving spatial prediction techniques
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/60Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
    • 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

Landscapes

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

Abstract

The present invention provides a video decoding method which increases encoding efficiency. According to the present invention, the video decoding method comprises: a step of, if the size of a current coding unit can include a transform block allowing a transform skip, parsing a representative flag representing first information indicating the transform skip status of a transform block divided from the coding unit into information on the coding unit; a step of determining the parsing status of the first information based on the representative flag; a step of inferring the first information based on the representative flag if the first information does not need to be parsed, and parsing the first information if the first information needs to be parsed; and a step of performing or skipping a transform on the transform block in accordance with the first information.

Description

예측 모드에 기초한 변환 생략 정보의 엔트로피 복호화 방법 및 장치{ENTRPY DECODING METHOD AND APPARATUS FOR TRANSFORM SKIP INFORMATION}Method and apparatus for entropy decoding of transformation skipping information based on prediction mode

본 발명은 영상의 부호화 및 복호화 처리에 관한 것으로서, 보다 상세하게는 예측 모드에 기초한 변환 생략 정보의 엔트로피 복호화 방법 및 장치에 관한 것이다. The present invention relates to video encoding and decoding processing, and more particularly, to a method and apparatus for entropy decoding of transform skip information based on a prediction mode.

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

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

영상의 예측에 사용되는 예측 기술 중 인트라 예측의 경우, 현재 프레임 또는 현재 픽쳐 내에서 공간적 유사성을 제거하여 영상으르 압축하는 기술이다. 이러한 인트라 예측 시, 현재 블록과 인접한 주변의 화소값들을 참조하여 현재 예상 블록에 대한 예측값을 생성하고, 이에 대한 정보를 시그널링한다.In the case of intra prediction among prediction techniques used for prediction of an image, it is a technique of compressing an image by removing spatial similarity within a current frame or current picture. During such intra prediction, a prediction value for the current prediction block is generated by referring to neighboring pixel values adjacent to the current block, and information about the predicted value is signaled.

영상의 예측에 사용되는 예측 기술 중 인터 예측의 경우, 서로 다른 프레임간의 시간적 유사성을 제거하여 영상을 압축하는 기술이다. 인터 예측 시, 현재 블록과 유사한 화소값을 가지는 영역을 다른 프레임에서 탐색하여 찾아내고, 이를 현재 예측 블록에 대한 예측값으로 사용한다.In the case of inter prediction among prediction techniques used for prediction of an image, it is a technique of compressing an image by removing temporal similarities between different frames. In inter-prediction, an area having a pixel value similar to that of the current block is searched for in another frame and used as a predicted value for the current prediction block.

탐색, 즉 움직임 추정을 통해 결정한 예측값은 움직임 벡터 (motion vector, MV)로 표현되고, 이러한 움직임 벡터는 움직임 벡터 예측치 (motion vector predictor, MVp)와 움직임 벡터 차분값 (motion vector difference MVd)으로 표현될 수 있다. A prediction value determined through search, that is, motion estimation, is expressed as a motion vector (MV), and this motion vector is expressed as a motion vector predictor (MVp) and a motion vector difference value (MVd). can

현재 적용되고 있는 인트라 예측의 경우, 현재 블록와 인접한 블록을 이용하여 예측 블록을 생성하기 때문에 현재 블록과 공간적으로 떨어진 영역의 화소는 참조할 수 없는 제약이 존재한다. 또한, 인터 예측의 경우 현재 픽쳐 내의 영역에서 현재 블록과 유사한 화소값을 가지는 영역이 존재하더라도, 이를 예측값으로 사용할 수 없는 한계점을 가지고 있다.In the case of currently applied intra prediction, since a prediction block is generated using a block adjacent to the current block, there is a restriction that pixels in a region spatially separated from the current block cannot be referred to. Also, in the case of inter prediction, even if a region in the current picture has a pixel value similar to that of the current block, it cannot be used as a prediction value.

본 발명은 영상 압축 시, 압축 신호들의 변환생략 정보의 엔트로피 부호화/ 복호화 시 코딩 유닛(coding unit, CU)의 예측 모드를 참조하여 카박(CABAC)과 같은 컨텍스트 기반 엔트로피 코딩에서 사용하는 컨텍스트를 결정하며, 이를 통해 부호화 효율을 증대시키는 방법 및 장치를 제공한다. The present invention determines a context used in context-based entropy coding such as CABAC by referring to a prediction mode of a coding unit (CU) during entropy encoding/decoding of transform skip information of compressed signals during video compression, , to provide a method and apparatus for increasing coding efficiency through this.

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

본 발명의 일 실시예에 따른 변환 생략 여부를 나타내는 변환 생략 플래그의 엔트로피 복호화 방법은 상기 변환 생략 플래그의 코드워드를 구성하는 빈에 대한 컨텍스트 정보를 유도하는 단계와; 상기 컨텍스트 정보를 기반으로 상기 빈에 대한 산술 복호화(arithmetic decoding)를 수행하여 상기 변환 생략 플래그의 값을 유도하는 단계를 포함하되, 상기 컨텍스트 정보 유도 단계에서는, 코딩 유닛의 예측 모드에 기초하여 상기 컨텍스트 정보를 유도할 수 있다.According to an embodiment of the present invention, an entropy decoding method of a conversion skip flag indicating whether conversion is skipped includes deriving context information about a bin constituting a codeword of the conversion skip flag; and deriving a value of the transform skip flag by performing arithmetic decoding on the bin based on the context information, wherein in the context information derivation step, the context information is derived based on a prediction mode of a coding unit. information can be derived.

상기 빈에 대한 컨텍스트 정보를 유도하는 단계는, 상기 변환 생략 플래그에 대한 컨텍스트 인덱스를 결정하는 것을 포함하고, 상기 컨텍스트 인덱스는 상기 코딩 유닛의 예측 모드가 인트라 블록 카피 모드인지 여부에 기초하여 결정될 수 있다.Deriving the context information for the bin may include determining a context index for the transform skip flag, and the context index may be determined based on whether a prediction mode of the coding unit is an intra block copy mode. .

상기 컨텍스트 인덱스는 현재 슬라이스가 I 슬라이스인지, P 슬라이스인지, B 슬라이스인지에 따라서 결정될 수 있다. The context index may be determined according to whether the current slice is an I slice, a P slice, or a B slice.

상기 컨텍스트 인덱스는 현재 블록이 루마 블록인지 크로마 블록인지에 따라서 결정될 수 있다. The context index may be determined according to whether the current block is a luma block or a chroma block.

상기 빈에 대한 컨텍스트 정보를 유도하는 단계는, 상기 컨텍스트 인덱스에 대응하는 확률값을 초기값으로 설정하는 초기화를 수행하고, 상기 초기값은 코딩 유닛의 예측 모드에 기초하여 설정될 수 있다.In the deriving of the context information for the bin, initialization is performed to set a probability value corresponding to the context index as an initial value, and the initial value may be set based on a prediction mode of the coding unit.

본 발명의 일 실시예에 따르면, 코딩 유닛의 예측 모드에 따른 변환생략플래그(transform_skip_flag)의 컨텍스트를 정의하고, 엔트로피 코딩 과정에서 코딩 유닛의 예측 모드를 참조할 수 있게 함으로써 변환 생략을 시그널링하기 위한 비트량을 감소시키고, 비디오 부호화 효율이 증가된다. According to an embodiment of the present invention, a bit for signaling transform skipping by defining the context of a transform skip flag (transform_skip_flag) according to the prediction mode of a coding unit and enabling reference to the prediction mode of the coding unit in an entropy coding process. amount is reduced, and the video encoding efficiency is increased.

본 발명의 일 측면에 따르면, 변환 생략의 발생이 빈번한 영상에서 특정 예측 모드가 사용된 경우, 변환 생략의 발생 확률이 높다는 점을 고려하여 컨텍스트 기반의 엔트로피 코딩을 수행하여 영상의 부호화/복호화 효율이 증가될 수 있다. According to an aspect of the present invention, when a specific prediction mode is used in an image in which transform skipping occurs frequently, encoding/decoding efficiency of an image is improved by performing context-based entropy coding in consideration of the fact that the probability of skipping transform is high. can be increased

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

도 1은 발명이 적용되는 영상 부호화 장치의 일 실시예에 따른 구성을 나타내는 블록도이다.
도 2는 본 발명이 적용되는 영상 복호화 장치의 일 실시예에 따른 구성을 나타내는 블록도이다.
도 3은 본 발명의 일 실시예에 따른 IBC 예측을 설명하기 위한 도면이다.
도 4는 본 발명의 일 실시예에 따른 변환 생략 플래그의 엔트로피 복호화 방법을 나타낸 순서도이다.
1 is a block diagram showing a configuration according to an embodiment of an image encoding apparatus to which the present invention is applied.
2 is a block diagram showing a configuration according to an embodiment of a video decoding apparatus to which the present invention is applied.
3 is a diagram for explaining IBC prediction according to an embodiment of the present invention.
4 is a flowchart illustrating an entropy decoding method of a conversion skip flag according to an embodiment of the present invention.

이하, 도면을 참조하여 본 발명의 실시 형태에 대하여 구체적으로 설명한다. 본 명세서의 실시예를 설명함에 있어, 관련된 공지 구성 또는 기능에 대한 구체적인 설명이 본 명세서의 요지를 흐릴 수 있다고 판단되는 경우에는 그 상세한 설명은 생략한다.EMBODIMENT OF THE INVENTION Hereinafter, embodiment of this invention is described concretely with reference to drawings. In describing the embodiments of the present specification, if it is determined that a detailed description of a related known configuration or function may obscure the gist of the present specification, the detailed description thereof will be omitted.

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

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

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

도 1을 참조하면, 상기 영상 부호화 장치(100)는 예측부(110), 감산기(125), 변환부(130), 양자화부(140), 엔트로피 부호화부(150), 역양자화부(160), 역변환부(170), 가산기(175), 필터부(180) 및 참조영상 버퍼(190)를 포함한다.Referring to FIG. 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, and 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 means prediction within a picture, and inter prediction means prediction between pictures. In the intra mode, the switch (not shown) is converted to intra, and in the case of the inter mode, the switch is converted to inter. After generating a prediction block for an input block of an input image, the image encoding apparatus 100 may encode a 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 performing intra prediction, a motion prediction unit and motion compensation unit performing inter prediction, and an IBC prediction unit performing intra block copy (IBC) prediction as detailed components. there is. Also, the video encoding apparatus may include a switch (not shown), and the switch may switch between an inter prediction unit, an intra prediction unit, and an IBC prediction unit.

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

인터 모드인 경우, 움직임 예측부는, 움직임 예측 과정에서 참조 영상 버퍼(190)에 저장되어 있는 참조 영상에서 입력 블록과 가장 매치가 잘 되는 영역을 찾아 움직임 벡터를 구할 수 있다. 움직임 보상부는 움직임 벡터와 참조 영상 버퍼(190)에 저장되어 있는 참조 영상을 이용하여 움직임 보상을 수행함으로써 예측 블록을 생성할 수 있다. In the case of the inter mode, the motion estimation unit may obtain a motion vector by finding a region that best matches the input block in the reference image stored in the reference image buffer 190 during the motion prediction process. 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 predictor may determine a region similar to the current block by performing motion prediction, that is, search within the current picture, and obtain a prediction value and a block vector for the current block. Prediction by the IBC prediction unit 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 transform unit 130 may output a transform coefficient by performing transform on the residual block. For some residual blocks, the transform unit 130 may be configured to omit the transform. Even in this case, the output of the transform unit 130 is referred to as a transform coefficient for convenience. The quantization unit 140 may quantize the input transform coefficient according to a quantization parameter and output a quantized coefficient.

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

여기서, 심볼이란 부호화/복호화 대상 구문 요소(syntax element) 및 부호화 파라미터(coding parameter), 잔여 신호(residual signal)의 값 등을 의미한다. 부호화 파라미터는 부호화 및 복호화에 필요한 매개변수로서, 구문 요소와 같이 부호화 장치에서 부호화되어 복호화 장치로 전달되는 정보뿐만 아니라, 부호화 혹은 복호화 과정에서 유추될 수 있는 정보를 포함할 수 있으며 영상을 부호화하거나 복호화할 때 필요한 정보를 의미한다. Here, a symbol means a syntax element to be coded/decoded, a coding parameter, a value of a residual signal, and the like. An encoding parameter is a parameter necessary for encoding and decoding, and may include information that can be inferred in the process of encoding or decoding, as well as information encoded in the encoding device and transmitted to the decoding device, such as syntax elements. It means the information you need when

부호화 파라미터는 예를 들어 인트라/인터 예측모드, 이동/움직임 벡터(motion vector), 참조 영상 색인, 부호화 블록 패턴, 잔여 신호 유무, 변환 계수, 양자화된 변환 계수, 양자화 파라미터, 블록 크기, 블록 분할 정보 등의 값 또는 통계를 포함할 수 있다. 또한 잔여 신호는 원신호와 예측 신호의 차이를 의미할 수 있고, 또한 원신호와 예측 신호의 차이가 변환(transform)된 형태의 신호 또는 원신호와 예측 신호의 차이가 변환되고 양자화된 형태의 신호, 또는 원신호와 예측 신호의 차이 신호 또는 원신호와 예측 신호의 차이 신호가 양자화된 형태의 신호를 의미할 수도 있다. 잔여 신호는 블록 단위에서는 잔여 블록이라 할 수 있다.Coding parameters include, for example, intra/inter prediction mode, motion/motion vector, reference image index, coded block pattern, residual signal presence, transform coefficient, quantized transform coefficient, quantization parameter, block size, and block division information. values or statistics, etc. In addition, the residual signal may mean the difference between the original signal and the prediction signal, and also a signal in which the difference between the original signal and the prediction signal is transformed or a signal in which the difference between the original signal and the prediction signal is transformed and quantized. , or a difference signal between the original signal and the prediction signal or a difference signal between the original signal and the prediction signal may mean a quantized signal. The residual signal may be referred to as a residual block in a block unit.

엔트로피 부호화가 적용되는 경우, 높은 발생 확률을 갖는 심볼에 적은 수의 비트가 할당되고 낮은 발생 확률을 갖는 심볼에 많은 수의 비트가 할당되어 심볼이 표현됨으로써, 부호화 대상 심볼들에 대한 비트열의 크기가 감소될 수 있다. 따라서 엔트로피 부호화를 통해서 영상 부호화의 압축 성능이 높아질 수 있다. When entropy encoding is applied, a small number of bits are allocated to symbols with a high probability of occurrence and a large number of bits are allocated to symbols with a low probability of occurrence to represent symbols, thereby increasing the size of bit streams for symbols to be encoded. can be reduced Therefore, compression performance of image encoding can be improved through 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, encoding methods such as exponential gollomb, 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 coding. Entropy encoding can be performed using a (VLC) table. In addition, the entropy encoding unit 150 derives a binarization method of the target symbol and a probability model of the 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 coefficient may 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. Even in this case, 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 are added to the prediction block through the adder 175, and a reconstructed block may be generated.

복원 블록은 필터부(180)를 거치고, 필터부(180)는 디블록킹 필터(deblocking filter), SAO(Sample Adaptive Offset), ALF(Adaptive Loop Filter) 중 적어도 하나 이상을 복원 블록 또는 복원 픽쳐에 적용할 수 있다. 필터부(180)를 거친 복원 블록은 참조 영상 버퍼(190)에 저장될 수 있다.The reconstructed block passes through a 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) to the reconstructed block or the reconstructed picture. can do. A reconstructed block that has passed through the filter unit 180 may be stored in the reference image buffer 190 .

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

도 2를 참조하면, 상기 영상 복호화 장치(200)는 엔트로피 복호화부(210), 역양자화부(220), 역변환부(230), 예측부(240), 필터부(260) 및 참조 영상 버퍼(270)를 포함한다.Referring to FIG. 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, and a reference image buffer ( 270).

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

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

엔트로피 복호화부(210)는, 입력된 비트스트림을 확률 분포에 따라 엔트로피 복호화하여, 양자화된 계수(quantized coefficient) 형태의 심볼을 포함한 심볼들을 생성할 수 있다. 엔트로피 복호화 방법은 2진수의 열을 입력 받아 각 심볼들을 생성하는 방법이다. 엔트로피 복호화 방법은 상술한 엔트로피 부호화 방법과 유사하다.The entropy decoding unit 210 may generate symbols including symbols in the form of quantized coefficients by entropy decoding the input bitstream according to a probability distribution. The entropy decoding method is a method of generating each symbol by receiving a sequence of binary numbers. 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, and as a result of inverse quantization/inverse transformation of the quantized coefficients, a reconstructed residual block may 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 omitted for some blocks.

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

인트라 모드인 경우, 인트라 예측부는 현재 블록 주변의 이미 부호화된 블록의 화소값을 이용하여 공간적 예측을 수행하여 예측 블록을 생성할 수 있다. 인터 모드인 경우, 움직임 보상부는 움직임 벡터 및 참조 영상 버퍼(270)에 저장되어 있는 참조 영상을 이용하여 움직임 보상을 수행함으로써 예측 블록을 생성할 수 있다. In the case of the intra mode, the intra prediction unit may generate a prediction block by performing spatial prediction using pixel values of previously encoded blocks adjacent to the current block. In the case of 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 the case of IBC prediction, the IBC prediction unit may determine a region similar to the current block by performing motion prediction, that is, search within the current picture, and obtain a prediction value and a block vector for the current block. Prediction by the IBC prediction unit is described in detail below.

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

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

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

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

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

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

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

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

반대로, IBC 예측을 수행할 때 참조 블록의 탐색을 위한 영역을 현재 픽쳐 내에서 현재 코딩 유닛 이전에 복호화가 완료된 모든 영역으로 확장하는 것도 가능할 수 있다. Conversely, when IBC prediction is performed, it may be possible to extend the region for searching the reference block to all regions in the current picture where decoding has been completed prior to the current coding unit.

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

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

현재 블록에 대한 BV 예측자는 부호화 장치에서 코딩되어 복호화 장치로 시그널링 될 수 있으며, 특정 영역, 예를 들어 현재 CTU 내에서 이전에 IBC 모드로 예측된 블록의 BV가 예측자로 사용될 수 있으며, 현재 블록과 인접한 블록 중 IBC 모드로 예측된 블록의 BV 또한 예측자로 사용될 수도 있다. A BV predictor for the current block may be coded in an encoding device and signaled to a decoding device, and a BV of a block previously predicted in IBC mode within a specific region, for example, the current CTU, may be used as a predictor, and the current block and The BV of a block predicted 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 data needs to be reset or refreshed in the middle of image processing, the BV predictor for each CTU may 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 indicates the difference between the BV and the BV predictor, and may be coded in the encoding device using BVdx and BVdy values and signaled to the decoding device.

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

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

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

한편, 종래의 영상의 부호화 및 복호화에서 변환 생략 여부는 변환 블록 (TB, transform block) 단위로 transform_skip_flag[ x0 ][ y0 ][ cIdx ] 이라는 신택스 요소 정보로 시그널링되며, 이 신호는 엔트로피 부호화 되어 비트스트림으로 전송된다. 여기서, x0, y0은 변환 블록의 좌측 최상단 위치를 나타내고, ‘cIdx’는 현재 변환 블록의 색상 정보를 나타낸다. 루마 신호의 경우 cIdx는 0으로 설정되고 크로마 신호의 경우 cIdx는 각각 1과 2의 값을 가질 수 있다.On the other hand, in conventional video encoding and decoding, whether to skip transform is signaled with syntax element information called transform_skip_flag[x0][y0][cIdx] in units of transform blocks (TB, transform blocks), and this signal is entropy-encoded to form a bitstream is sent to Here, x0 and y0 represent the top left position of the transform block, and 'cIdx' represents the color information of the current transform block. In the case of a luma signal, cIdx is set to 0, and in the case of a chroma signal, cIdx may have values of 1 and 2, respectively.

영상의 복호화 시, 엔트로피 복호화부는 각 신택스 요소 별로 컨텍스트에 따라 정의된 컨텍스트 인덱스(context index, ctxIdx)에 기초하여 엔트로피 디코딩을 수행할 수 있다. 변환 생략 플래그(transform_skip_flag)를 예를 들면, 표 1과 같이 6개의 컨텍스트 인덱스가 정의될 수 있다.When decoding an image, the entropy decoding unit may perform entropy decoding based on a context index (ctxIdx) defined according to the context for each syntax element. For the transform skip flag (transform_skip_flag), six context indices may be defined as shown in Table 1, for example.

Figure pat00001
Figure pat00001

표 1을 참조하면, 신택스 요소인 transform_skip_flag는 initType과 현재 블록의 현재 블록의 색상 성분에 따라 컨텍스트 인덱스가 결정된다.Referring to Table 1, the context index of transform_skip_flag, which is a syntax element, is determined according to the initType and the color component of the current block of the current block.

initType이란 현재 부/복호화가 수행되는 슬라이스의 타입에 따라 결정되는 값으로, I 슬라이스의 경우 initType은 0으로 설정되고, P 슬라이스와 B 슬라이스의 경우 cabac_init_flag 값에 따라 다르게 설정될 수 있다. 예를 들어, cabac_init_flag =0의 경우 P 슬라이스에 대하여 initType이 1로 설정될 수 있고, B 슬라이스의 경우 initType는 0으로 설정될 수 있다.initType is a value determined according to the type of slice currently being encoded/decoded. In case of I slice, initType is set to 0, and in case of P slice and B slice, it can be set differently according to cabac_init_flag value. For example, in the case of cabac_init_flag =0, initType may be set to 1 for P slices, and initType may be set to 0 for B slices.

ctxTable이란, 일 예로 표 1에서 정의된 신택스 요소인 transform_skip_flag와 initType에 따라 초기 값(initValue)을 정의한 table로서, 표 1의 transform_skip_flag가 가지는 확률 값은 표 3을 참조하여 초기화를 수행할 수 있다. ctxTable is, for example, a table in which an initial value (initValue) is defined according to the syntax elements transform_skip_flag and initType defined in Table 1. The probability value of transform_skip_flag in Table 1 can be initialized by referring to Table 3.

표 1에서 cabac_init_flag를 0으로 가정한 경우, 컨텍스트 인덱스는 표 2와 같다. When cabac_init_flag is assumed to be 0 in Table 1, the context index is shown in Table 2.

Figure pat00002
Figure pat00002

CABAC에서 컨텍스트의 업데이트(context update) 과정은 컨텍스트 인덱스 별로 독립적으로 수행된다. 예를 들면, 현재 부호화 하고자 하는 transform_skip_flag의 컨텍스트 인덱스가 0인 경우, ctxIdx = 0의 확률 인덱스(pState index)를 기반으로 CABAC 부호화가 수행되며, 또한 오직 ctxIdx = 0의 확률 인덱스만 업데이트 된다.In CABAC, a context update process is performed independently for each context index. For example, if the context index of transform_skip_flag to be currently encoded is 0, CABAC encoding is performed based on the probability index (pState index) of ctxIdx = 0, and only the probability index of ctxIdx = 0 is updated.

엔트로피 복호화부는 독립적인 슬라이스 세그먼트(Independent slice segment)의 첫 번째 신택스 요소이거나 행의 첫 번째 CTU 중 상위 우측 CTU에 저장된 확률 정보를 참조할 수 없는 CTU의 신택스 요소에 대하여 컨텍스트 인덱스 별로 확률 값(pState index)의 초기화를 수행한다. The entropy decoding unit is the first syntax element of an independent slice segment or a probability value (pState index) for each context index for a syntax element of a CTU that cannot refer to probability information stored in an upper right CTU among the first CTUs of a row. ) is initialized.

이 때, 확률 값의 초기화는 신텍스 요소의 각 컨텍스트 인덱스 별 초기 값(initValue)을 기반으로 수행될 수 있다. At this time, the initialization of the probability value may be performed based on the initial value (initValue) for each context index of the syntax element.

표 3은 변환 생략 플래그(transform_skip_flag)의 컨텍스트 인덱스에 따른 초기값의 일 예를 나타낸다.Table 3 shows an example of an initial value according to the context index of the transform skip flag (transform_skip_flag).

Figure pat00003
Figure pat00003

정리하면, 변환 생략 플래그의 엔트로피 코딩을 위하여 CABAC에 사용되는 6개의 컨텍스트 인덱스는 표 2와 같이 설정될 수 있고, 컨텍스트 인덱스는 1) 현재 슬라이스 타입과 2)현재 변환 블록이 루마 성분을 나타내는지 또는 크로마 성분을 나타내는지에 따라 정해질 수 있다. In summary, the six context indices used in CABAC for entropy coding of the transform skip flag can be set as shown in Table 2, and the context index is 1) the current slice type and 2) whether the current transform block represents a luma component or It can be determined according to whether it represents a chroma component.

한편, 도 3을 참조하여 설명된 IBC로 예측된 코딩 유닛에서는 변환 생략의 발생이 빈번하다는 특징이 존재한다. 하지만, 기존의 변환 생략 플래그의 엔트로피 코딩을 위한 컨텍스트 설계 과정에서는 IBC와 변환 생략 모드의 연관성이 고려되지 않았다. On the other hand, in the coding unit predicted by IBC described with reference to FIG. 3, there is a feature that transform omission occurs frequently. However, in the context design process for entropy coding of the existing transform skip flag, the correlation between IBC and transform skip mode was not considered.

즉, 종래의 경우, 변환 생략 플래그(transform_skip_flag)의 엔트로피 부호화/ 복호화 시, 슬라이스 타입과 색상 성분만을 참조하여 컨텍스트가 결정되었지만, 변환 생략의 발생 분포는 코딩 유닛의 예측 모드에 따라 상이한 특징을 지닐 수 있다. 이러한 특징을 고려하여 컨텍스트를 결정한 후, 결정된 컨텍스트를 사용하여 변환 생략 플래그를 엔트로피 부호화/복호화하여 압축률을 증가시킬 수 있다.That is, in the conventional case, during entropy encoding/decoding of the transform skip flag (transform_skip_flag), the context was determined by referring only to the slice type and color components, but the distribution of occurrence of transform skip may have different characteristics depending on the prediction mode of the coding unit. there is. After determining the context in consideration of these characteristics, the compression rate may be increased by entropy encoding/decoding the transform skip flag using the determined context.

본 발명은 코딩 유닛의 예측 모드에 따른 변환 생략 플래그의 컨텍스트를 정의하고, 엔트로피 코딩 과정에서 코딩 유닛의 예측 모드를 참조함으로써 변환 생략을 시그널링하기 위한 비트량을 감소시키고, 결과적으로 비디오 부호화 효율을 증대시키는 방법 및 장치를 제공한다.The present invention defines the context of the transform skipping flag according to the prediction mode of the coding unit, and reduces the amount of bits for signaling transform skipping by referring to the prediction mode of the coding unit in the entropy coding process, and consequently increases the video encoding efficiency. It provides a method and apparatus for doing so.

이하에서는 본 발명의 실시예를 기술함에 있어, cabac_init_flag 값은 0인 것으로, 즉, I 슬라이스의 initType은 0, P 슬라이스와 B 슬라이스의 initType은 각각 1과 2인 것을 가정한다.Hereinafter, in describing an embodiment of the present invention, it is assumed that the cabac_init_flag value is 0, that is, the initType of I slice is 0, and the initTypes of P slice and B slice are 1 and 2, respectively.

또한, 본 발명의 일 측면에 따라 코딩 유닛의 예측 모드가 IBC 인지 여부를 참조하여 컨텍스트 인덱스를 결정하는 것을 하나의 바람직한 예로 제시하지만, 본 발명의 권리 범위는 이에 한정되지 않으며 IBC가 아닌 다른 모드 경우로도 확대될 수 있다.In addition, according to one aspect of the present invention, determining the context index by referring to whether the prediction mode of the coding unit is IBC is presented as a preferred example, but the scope of the present invention is not limited thereto, and the case of modes other than IBC can also be expanded.

기존의 엔트로피 코딩과 비교하여 본 발명은 코딩 유닛의 예측 모드를 참조하여 결정되는 컨텍스트 인덱스를 추가로 정의하고, 컨텍스트 인덱스가 추가로 정의되었을 때 개별적인 컨텍스트 인덱스의 initValue를 새롭게 정의한다. Compared to conventional entropy coding, the present invention additionally defines a context index determined by referring to a prediction mode of a coding unit, and newly defines initValue of each context index when the context index is additionally defined.

본 발명의 일 실시예에 따르면, 코딩 유닛의 예측 모드를 참조하여 컨텍스트 인덱스를 결정할 때 루마 성분과 크로마 성분 모두에 이를 적용할 수 있다. 이를 표로 나타내면 표 4로 나타낼 수 있다. According to an embodiment of the present invention, when determining a context index with reference to a prediction mode of a coding unit, it may be applied to both a luma component and a chroma component. Table 4 shows this as a table.

Figure pat00004
Figure pat00004

표 4를 참조하면, 표 2와 비교하였을 때 추가로 6개의 컨텍스트 인덱스가 더 정의되며, 결과적으로 변환 생략 플래그를 위한 컨텍스트 인덱스는 12개가 될 수 있다. Referring to Table 4, when compared with Table 2, additional 6 context indexes are defined, and as a result, 12 context indexes for conversion skipping flags may be provided.

본 발명의 다른 실시예에 따르면, 코딩 유닛의 예측 모드를 참조하여 컨텍스트 인덱스를 결정할 때 루마 성분에만 이를 적용할 수 있다. 이를 표로 나타내면 표 5로 나타낼 수 있다.According to another embodiment of the present invention, when determining a context index with reference to a prediction mode of a coding unit, it may be applied only to a luma component. Table 5 shows this as a table.

Figure pat00005
Figure pat00005

표 5를 참조하면, 표 2와 비교하였을 때 추가로 3개의 컨텍스트 인덱스가 더 정의되며, 결과적으로 변환 생략 플래그를 위한 컨텍스트 인덱스는 9개가 될 수 있다Referring to Table 5, when compared with Table 2, 3 additional context indexes are defined, and as a result, 9 context indexes for conversion skipping flags can be obtained.

본 발명의 또 다른 실시예에 따르면, 코딩 유닛의 예측 모드를 참조하여 컨텍스트 인덱스를 결정할 때 크로마 성분에만 이를 적용할 수 있다. 이를 표로 나타내면 표 6으로 나타낼 수 있다.According to another embodiment of the present invention, when determining a context index with reference to a prediction mode of a coding unit, it may be applied only to a chroma component. If this is represented as a table, it can be shown in Table 6.

Figure pat00006
Figure pat00006

표 6을 참조하면, 표 2와 비교하였을 때 추가로 3개의 컨텍스트 인덱스가 더 정의되며, 결과적으로 표 5와 같이 변환 생략 플래그를 위한 컨텍스트 인덱스는 9개가 될 수 있다.Referring to Table 6, when compared with Table 2, three additional context indexes are defined. As a result, as shown in Table 5, the number of context indexes for conversion skipping flags may be nine.

본 발명의 또 다른 실시예에 따르면, 표 4 내지 6에 추가된 새로운 컨텍스트 인덱스는 모두 서로 다를 필요는 없다. 일부 컨텍스트 인덱스는 기존의 것으로 설정되고, 일부 컨텍스트 인덱스는 새로운 것으로 설정될 수 있다. 컨텍스트 인덱스의 수가 많아져 엔트로피 부/복호화가 복잡하게 되는 경우, 복잡도를 줄일 수 있다. According to another embodiment of the present invention, the new context indexes added to Tables 4 to 6 need not all be different from each other. Some context indexes may be set to existing ones, and some context indexes may be set to new ones. When entropy encoding/decryption becomes complicated due to the large number of context indices, the complexity can be reduced.

아래 표 7에 따르면, 코딩 유닛의 예측 모드가 IBC인 경우, 슬라이스 타입과 관계없이 하나의 컨텍스트 인덱스가 결정될 수 있다.According to Table 7 below, when the prediction mode of a coding unit is IBC, one context index can be determined regardless of the slice type.

Figure pat00007
Figure pat00007

또 다른 실시예에 따르면, 표 8와 같이 컨텍스트 인덱스가 결정될 수 있고, 표 8에 따를 경우 슬라이스 타입에 따라 코딩 유닛의 예측 모드가 IBC인지 여부에 따라 컨텍스트 인덱스 가 결정될 수 있다.According to another embodiment, a context index may be determined as shown in Table 8. According to Table 8, a context index may be determined according to whether a prediction mode of a coding unit is IBC according to a slice type.

Figure pat00008
Figure pat00008

표 8를 참조하면, 슬라이스 타입이 I 슬라이스인 경우에만 코딩 유닛의 예측 모드가 IBC인지 여부에 따라 컨텍스트 인덱스가 결정된다. 즉, 코딩 유닛의 예측 모드가 IBC가 아닌 경우(CU mode != IBC) I 슬라이스의 컨텍스트 인덱스는 0으로 설정되고, 코딩 유닛의 예측 모드가 IBC이면(CU mode = IBC) I 슬라이스의 컨텍스트 인덱스는 새로운 6으로 설정될 수 있다. Referring to Table 8, only when the slice type is I slice, the context index is determined according to whether the prediction mode of the coding unit is IBC. That is, if the prediction mode of the coding unit is not IBC (CU mode != IBC), the context index of the I slice is set to 0, and if the prediction mode of the coding unit is IBC (CU mode = IBC), the context index of the I slice is Can be set to the new 6.

상기 표 4 내지 표 8과 같이 새롭게 정의된 컨텍스트 인덱스(6~11 또는 6~8)에 대응하는 초기값(initValue)은 기존의 컨텍스트 인덱스(0~5)의 초기값과 다르게 정의될 수 있다. 표 4를 기반으로 새로운 컨텍스트 인덱스에 대응하는 초기값을 표로 나타내면 표 9 내지 표 11과 같다. As shown in Tables 4 to 8, the initial value (initValue) corresponding to the newly defined context indexes (6 to 11 or 6 to 8) may be defined differently from the initial values of the existing context indexes (0 to 5). Tables 9 to 11 show initial values corresponding to new context indexes based on Table 4.

Figure pat00009
Figure pat00009

Figure pat00010
Figure pat00010

Figure pat00011
Figure pat00011

표 9는 루마 변환 블록에 적용되는 컨텍스트 인덱스의 초기값을 새롭게 정의하고 있고, 표 10은 크로마 변환 블록에 적용되는 컨텍스트 인덱스의 초기값을 새롭게 정의하고 있으며, 표 11은 루마 변환 블록 및 크로마 변환 블록에 적용되는 컨텍스트 인덱스의 초기값을 새롭게 정의하고 있다.Table 9 newly defines the initial value of the context index applied to the luma conversion block, Table 10 newly defines the initial value of the context index applied to the chroma conversion block, and Table 11 shows the luma conversion block and chroma conversion block. The initial value of the context index applied to is newly defined.

표 9 내지 11의 a 내지 g는 부호화 장치 및 복호화 장치에서 약속된 최적의 값으로 설정될 수 있으며, 이는 율-왜곡비율을 최소로 하는 값으로 설정될 수 있다. a 내지 g는 기존의 초기값 139과 동일할 수도 있고, 동일하지 않을 수도 있다. A to g in Tables 9 to 11 may be set to optimal values promised by the encoding device and the decoding device, which may be set to a value that minimizes the rate-distortion ratio. a to g may or may not be the same as the existing initial value 139.

상기 기술의 수행 여부, 즉, 코딩 유닛의 예측 모드를 참조하여 변환 생략 플래그를 엔트로피 코딩하는지 여부는 상위 레이어에서 전달되는 파라미터 세트, 예를 들어 시퀀스 파라미터 세트(Sequence parameter set, SPS), SPS_extension, 픽처 파라미터 세트(Picture parameter set 등)에서 시그널링 될 수 있다. 또는 다른 상위 레벨에서 시그널링 될 수도 있다. Whether or not the above technique is performed, that is, whether the transform skip flag is entropy-coded with reference to the prediction mode of the coding unit, is determined by a parameter set transmitted from a higher layer, for example, a sequence parameter set (SPS), SPS_extension, picture It can be signaled in a parameter set (Picture parameter set, etc.). Or it may be signaled at another higher level.

본 발명의 일 예에 따라 제안된 기술 자체를 사용할 지 여부를 지시하는 정보를 시그널링하는 SPS 는 표 12와 같다. SPS signaling information indicating whether to use the proposed technology itself according to an example of the present invention is shown in Table 12.

Figure pat00012
Figure pat00012

표 12에서, transform_skip_context_modification_enabled_flag가 0인 경우, transform_skip_flag의 컨텍스트 인덱스는 기존의 0~5로 정의되는 것을 나타내고, transform_skip_context_modification_enabled_flag가 1인 경우 transform_skip_flag의 컨텍스트 인덱스는 본 발명에 따른 실시예인 표 4 내지 표 8에 따라 설정되는 것을 나타낼 수 있다.In Table 12, when transform_skip_context_modification_enabled_flag is 0, the context index of transform_skip_flag is defined as existing 0 to 5, and when transform_skip_context_modification_enabled_flag is 1, the context index of transform_skip_flag is set according to Tables 4 to 8, which are embodiments according to the present invention. can indicate being

또는, transform_skip_context_modification_enabled_flag가 0인 경우, transform_skip_flag의 컨텍스트 인덱스는 기존의 0~5로 정의되는 것을 나타내고, transform_skip_context_modification_enabled_flag가 1인 경우, transform_skip_flag 의 컨텍스트 인덱스는 기존의 0 내지 5가 아닌 새롭게 정의되는 것을 나타낼 수 있다.Alternatively, when transform_skip_context_modification_enabled_flag is 0, the context index of transform_skip_flag indicates that it is previously defined as 0 to 5, and when transform_skip_context_modification_enabled_flag is 1, the context index of transform_skip_flag may indicate that it is newly defined instead of the existing 0 to 5.

도 4는 본 발명의 일 실시예에 따른 변환 생략 플래그의 엔트로피 복호화 방법을 나타낸 순서도이다. 도 4를 참조하여 본 발명에 따른 엔트로피 복호화 방법을 설명하면 다음과 같다. 4 is a flowchart illustrating an entropy decoding method of a conversion skip flag according to an embodiment of the present invention. Referring to FIG. 4, the entropy decoding method according to the present invention will be described as follows.

우선, 엔트로피 복호화부는 코딩 유닛의 예측 모드에 기초하여 변환 생략 플래그에 대한 컨텍스트 인덱스를 결정할 수 있다(S410).First, the entropy decoding unit may determine the context index for the transform skip flag based on the prediction mode of the coding unit (S410).

컨텍스트 인덱스는 코딩 유닛의 예측 모드, 예를 들어 코딩 유닛의 예측 모드가 인트라 블록 카피 모드인지 여부에 기초하여 결정될 수 있다. The context index may be determined based on a prediction mode of a coding unit, eg, whether the coding unit's prediction mode is an intra block copy mode.

또한, 컨텍스트 인덱스는 현재 슬라이스가 I 슬라이스인지, P 슬라이스인지, B 슬라이스인지에 따라서 결정될 수도 있다. Also, the context index may be determined according to whether the current slice is an I slice, a P slice, or a B slice.

또한, 컨텍스트 인덱스는 현재 블록이 루마 블록인지 크로마 블록인지에 따라서 결정될 수도 있다.Also, the context index may be determined according to whether the current block is a luma block or a chroma block.

컨텍스트 인덱스가 결정되면, 엔트로피 복호화부는 결정된 컨텍스트 인덱스에 대응하는 확률값을 초기값으로 설정하는 초기화 과정을 수행할 수 있다(S420).When the context index is determined, the entropy decoding unit may perform an initialization process of setting a probability value corresponding to the determined context index as an initial value (S420).

초기값 역시 코딩 유닛의 예측 모드에 기초하여 설정될 수 있다. An initial value may also be set based on a prediction mode of a coding unit.

컨텍스트 인덱스가 기존이 아닌 새로운 값으로 설정되었다면, 초기값은 기존과 동일한 값으로 설정될 수도 있고, 새로운 값으로 설정될 수도 있다.If the context index is set to a new, non-existent value, the initial value may be set to the same value as the previous one or to a new value.

엔트로피 복호화부는 설정된 컨텍스트 인덱스와 초기값에 기초하여 확률을 업데이트 할 수 있고, 이러한 과정을 통하여 변환 생략 플래그의 코드워드를 구성하는 빈에 대한 컨텍스트 정보를 유도할 수 있다(S430).The entropy decoding unit may update the probability based on the set context index and the initial value, and through this process may derive context information about bins constituting the codeword of the conversion skip flag (S430).

단계 S430은 단계 S410와 단계 S420을 포함하는 단계일 수 있다. 다시 말하면 엔트로피 복호화부는 컨텍스트 정보를 유도하기 위하여 컨텍스트 인덱스를 결정하고, 컨텍스트 인덱스에 대응하는 확률값을 초기값으로 설정하는 초기화 설정하는 과정을 수행할 수 있다. Step S430 may be a step including steps S410 and step S420. In other words, the entropy decoder may perform an initialization setting process of determining a context index to derive context information and setting a probability value corresponding to the context index as an initial value.

그 후, 엔트로피 복호화부는 컨텍스트 정보를 기반으로 상기 빈에 대한 산술 복호화(arithmetic decoding)를 수행하여 상기 변환 생략 플래그의 값 유도할 수 있다(S440).Thereafter, the entropy decoding unit may derive the value of the transform skip flag by performing arithmetic decoding on the bin based on the context information (S440).

상술한 바와 같이, 본 발명의 일 측면은 기존의 엔트로피 코딩과 비교하여 코딩 유닛의 예측 모드를 참조하여 결정되는 컨텍스트 인덱스를 추가로 정의하고, 컨텍스트 인덱스가 추가로 정의되었을 때 개별적인 컨텍스트 인덱스의 initValue를 새롭게 정의하는 것을 제공한다. As described above, an aspect of the present invention further defines a context index determined by referring to a prediction mode of a coding unit compared to conventional entropy coding, and sets the initValue of an individual context index when the context index is additionally defined. provides a new definition.

상기에서 복호화 과정에서 수행되는 변환은 실질적으로 부호화 장치에서 실행한 변환의 역과정인 역변환 (inverse transform)을 의미하지만, 역변환 역시 변환의 일종이므로 그 실질적인 의미하는 바에 있어 혼동의 소지가 없을 것이다.Transformation performed in the decoding process above actually means inverse transform, which is the inverse process of the transform performed by the encoding device, but inverse transform is also a type of transform, so there will be no confusion in its actual meaning.

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

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

상술한 실시예들에서, 방법들은 일련의 단계 또는 블록으로서 순서도를 기초로 설명되고 있으나, 본 발명은 단계들의 순서에 한정되는 것은 아니며, 어떤 단계는 상술한 바와 다른 단계와 다른 순서로 또는 동시에 발생할 수 있다. 또한, 당해 기술 분야에서 통상의 지식을 가진 자라면 순서도에 나타난 단계들이 배타적이지 않고, 다른 단계가 포함되거나, 순서도의 하나 또는 그 이상의 단계가 본 발명의 범위에 영향을 미치지 않고 삭제될 수 있음을 이해할 수 있을 것이다.In the foregoing 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 steps, and some steps may occur in a different order or concurrently with other steps as described above. can In addition, those skilled in the art will understand that the steps shown in the flow chart are not exclusive, that other steps may be included, or that one or more steps of the flow chart may be deleted without affecting the scope of the present invention. You will understand.

111 : 움직임 예측부 112 : 움직임 보상부
120 : 인트라 예측부 130 : 변환부
111: motion prediction unit 112: motion compensation unit
120: intra prediction unit 130: conversion unit

Claims (3)

현재 픽처 내 현재 블록에 대한 변환 생략 여부를 나타내는 변환 생략 플래그에 기반하여 상기 현재 블록의 잔차 블록을 생성하는 역변환부;
상기 현재 블록에 대한 블록 벡터를 유도하고, 상기 블록 벡터가 지시하는 참조 블록에 기초하여 상기 현재 블록의 예측 블록을 생성하는 예측부; 및
상기 잔차 블록 및 상기 예측 블록에 기초하여 상기 현재 블록을 복원하는 가산기를 포함하고,
상기 현재 블록은 IBC 모드로 예측된 블록이고, 상기 참조 블록은 상기 현재 픽처 내 블록이고,
상기 현재 블록의 변환 생략 플래그의 산술 복호화에 사용되는 컨텍스트 정보의 초기화를 위한 컨텍스트 인덱스 별 초기값은 현재 슬라이스의 타입에 따라 상이하게 결정되고,
상기 변환 생략 플래그는 변환 생략이 허용되는지 여부를 나타내는 정보에 기반하여 비트스트림으로부터 획득되는 영상 복호화 장치.
an inverse transform unit generating a residual block of the current block based on a transform skip flag indicating whether to skip transform of the current block in the current picture;
a prediction unit that derives a block vector for the current block and generates a prediction block of the current block based on a reference block indicated by the block vector; and
An adder for reconstructing the current block based on the residual block and the prediction block;
The current block is a block predicted in IBC mode, the reference block is a block in the current picture,
An initial value for each context index for initialization of context information used for arithmetic decoding of the transform skip flag of the current block is determined differently according to the type of the current slice,
The conversion skipping flag is obtained from a bitstream based on information indicating whether conversion skipping is allowed.
현재 픽처 내 현재 블록에 대한 블록 벡터를 결정하고, 상기 블록 벡터가 지시하는 참조 블록에 기초하여 상기 현재 블록의 예측 블록을 생성하는 예측부;
상기 예측 블록에 기초하여 상기 현재 블록의 잔차 블록을 생성하는 감산기; 및
상기 현재 블록에 대한 변환 생략 여부에 기반하여 상기 잔차 블록을 부호화하는 변환부를 포함하고,
상기 현재 블록은 IBC 모드로 예측된 블록이고, 상기 참조 블록은 상기 현재 픽처 내 블록이고,
상기 현재 블록에 대한 변환 생략 여부는 상기 현재 블록의 변환 생략 플래그를 이용하여 부호화되고, 상기 현재 블록의 변환 생략 플래그의 산술 부호화에 사용되는 컨텍스트 정보의 초기화를 위한 컨텍스트 인덱스 별 초기값은 현재 슬라이스의 타입에 따라 상이하게 결정되고,
상기 변환 생략 플래그는 변환 생략이 허용되는지 여부를 나타내는 정보에 기반하여 비트스트림으로 부호화되는 영상 부호화 장치.
a prediction unit determining a block vector of a current block in a current picture and generating a prediction block of the current block based on a reference block indicated by the block vector;
a subtractor for generating a residual block of the current block based on the prediction block; and
A transform unit encoding the residual block based on whether the transform of the current block is omitted;
The current block is a block predicted in IBC mode, the reference block is a block in the current picture,
Whether or not to skip transforms for the current block is encoded using the transform skip flag of the current block, and the initial value for each context index for initializing context information used for arithmetic encoding of the transform skip flag of the current block is It is determined differently depending on the type,
The conversion skipping flag is encoded into a bitstream based on information indicating whether conversion skipping is allowed or not.
영상 부호화 장치에 의해 생성된 비트스트림을 저장한 컴퓨터 판독 가능한 기록매체로서, 상기 영상 부호화 장치는,
현재 픽처 내 현재 블록에 대한 블록 벡터를 결정하고, 상기 블록 벡터가 지시하는 참조 블록에 기초하여 상기 현재 블록의 예측 블록을 생성하는 예측부;
상기 예측 블록에 기초하여 상기 현재 블록의 잔차 블록을 생성하는 감산기; 및
상기 현재 블록에 대한 변환 생략 여부에 기반하여 상기 잔차 블록을 부호화하는 변환부를 포함하고,
상기 현재 블록은 IBC 모드로 예측된 블록이고, 상기 참조 블록은 상기 현재 픽처 내 블록이고,
상기 현재 블록에 대한 변환 생략 여부는 상기 현재 블록의 변환 생략 플래그를 이용하여 부호화되고, 상기 현재 블록의 변환 생략 플래그의 산술 부호화에 사용되는 컨텍스트 정보의 초기화를 위한 컨텍스트 인덱스 별 초기값은 현재 슬라이스의 타입에 따라 상이하게 결정되고,
상기 변환 생략 플래그는 변환 생략이 허용되는지 여부를 나타내는 정보에 기반하여 상기 비트스트림으로 부호화되는 컴퓨터 판독 가능한 기록매체.
A computer-readable recording medium storing a bitstream generated by an image encoding device, the image encoding device comprising:
a prediction unit determining a block vector of a current block in a current picture and generating a prediction block of the current block based on a reference block indicated by the block vector;
a subtractor for generating a residual block of the current block based on the prediction block; and
A transform unit encoding the residual block based on whether the transform of the current block is omitted;
The current block is a block predicted in IBC mode, the reference block is a block in the current picture,
Whether or not to skip transforms for the current block is encoded using the transform skip flag of the current block, and the initial value for each context index for initializing context information used for arithmetic encoding of the transform skip flag of the current block is It is determined differently depending on the type,
The conversion skipping flag is encoded into the bitstream based on information indicating whether conversion skipping is allowed.
KR1020230040682A 2014-10-13 2023-03-28 Entrpy decoding method and apparatus for transform skip information KR102627681B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020240007198A KR20240013885A (en) 2014-10-13 2024-01-17 Entrpy decoding method and apparatus for transform skip information

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
KR1020140137900 2014-10-13
KR20140137900 2014-10-13
KR1020220098493A KR102516821B1 (en) 2014-10-13 2022-08-08 Entrpy decoding method and apparatus for transform skip information

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
KR1020220098493A Division KR102516821B1 (en) 2014-10-13 2022-08-08 Entrpy decoding method and apparatus for transform skip information

Related Child Applications (1)

Application Number Title Priority Date Filing Date
KR1020240007198A Division KR20240013885A (en) 2014-10-13 2024-01-17 Entrpy decoding method and apparatus for transform skip information

Publications (2)

Publication Number Publication Date
KR20230048275A true KR20230048275A (en) 2023-04-11
KR102627681B1 KR102627681B1 (en) 2024-01-23

Family

ID=55917988

Family Applications (7)

Application Number Title Priority Date Filing Date
KR1020150031041A KR20160043496A (en) 2014-10-13 2015-03-05 Entrpy decoding method and apparatus for transform skip information
KR1020170042163A KR20170046112A (en) 2014-10-13 2017-03-31 Entrpy decoding method and apparatus for transform skip information
KR1020200031407A KR20200031591A (en) 2014-10-13 2020-03-13 Entrpy decoding method and apparatus for transform skip information
KR1020200126859A KR102431675B1 (en) 2014-10-13 2020-09-29 Entrpy decoding method and apparatus for transform skip information
KR1020220098493A KR102516821B1 (en) 2014-10-13 2022-08-08 Entrpy decoding method and apparatus for transform skip information
KR1020230040682A KR102627681B1 (en) 2014-10-13 2023-03-28 Entrpy decoding method and apparatus for transform skip information
KR1020240007198A KR20240013885A (en) 2014-10-13 2024-01-17 Entrpy decoding method and apparatus for transform skip information

Family Applications Before (5)

Application Number Title Priority Date Filing Date
KR1020150031041A KR20160043496A (en) 2014-10-13 2015-03-05 Entrpy decoding method and apparatus for transform skip information
KR1020170042163A KR20170046112A (en) 2014-10-13 2017-03-31 Entrpy decoding method and apparatus for transform skip information
KR1020200031407A KR20200031591A (en) 2014-10-13 2020-03-13 Entrpy decoding method and apparatus for transform skip information
KR1020200126859A KR102431675B1 (en) 2014-10-13 2020-09-29 Entrpy decoding method and apparatus for transform skip information
KR1020220098493A KR102516821B1 (en) 2014-10-13 2022-08-08 Entrpy decoding method and apparatus for transform skip information

Family Applications After (1)

Application Number Title Priority Date Filing Date
KR1020240007198A KR20240013885A (en) 2014-10-13 2024-01-17 Entrpy decoding method and apparatus for transform skip information

Country Status (1)

Country Link
KR (7) KR20160043496A (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20190062813A (en) 2017-11-29 2019-06-07 전자부품연구원 Apparatus for performing transform skip mode in video encoder and method for thereof
US11509903B2 (en) 2018-11-27 2022-11-22 Lg Electronics Inc. Method and device for coding transform skip flag
WO2020141908A1 (en) * 2019-01-01 2020-07-09 엘지전자 주식회사 Image coding method and apparatus using transform skip flag
WO2020189971A1 (en) * 2019-03-15 2020-09-24 엘지전자 주식회사 Image decoding method and device using transform skip flag in image coding system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014084903A1 (en) * 2012-11-28 2014-06-05 General Instrument Corporation Devices and methods for modifications of syntax related to transform skip for high efficiency video coding (hevc)
KR20160040838A (en) * 2014-10-06 2016-04-15 성균관대학교산학협력단 Video encoding and decoding method and apparatus using the same

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014084903A1 (en) * 2012-11-28 2014-06-05 General Instrument Corporation Devices and methods for modifications of syntax related to transform skip for high efficiency video coding (hevc)
KR20160040838A (en) * 2014-10-06 2016-04-15 성균관대학교산학협력단 Video encoding and decoding method and apparatus using the same

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
R. Joshi, et al. High Efficiency Video Coding (HEVC) Screen Content Coding: Draft 1. JCT-VC of ITU-T and ISO/IEC. JCTVC-R1005 Ver.3, Sep. 27, 2014, pp.1-344* *
S. Yang, et al. Non-CE2: Transform skip signalling for intra block copy. JCT-VC of ITU-T and ISO/IEC. JCTVC-S0036 Ver.1, Oct.7, 2014, pp.1-4 *

Also Published As

Publication number Publication date
KR20240013885A (en) 2024-01-30
KR102627681B1 (en) 2024-01-23
KR20170046112A (en) 2017-04-28
KR20220116109A (en) 2022-08-22
KR20200031591A (en) 2020-03-24
KR102516821B1 (en) 2023-03-31
KR102431675B1 (en) 2022-08-11
KR20200116884A (en) 2020-10-13
KR20160043496A (en) 2016-04-21

Similar Documents

Publication Publication Date Title
KR102429253B1 (en) Video encoding and decoding method and apparatus using the same
KR102614661B1 (en) Method for coding/decoding of intra prediction mode and computer readable redording meduim thereof
KR102516821B1 (en) Entrpy decoding method and apparatus for transform skip information
AU2016276687A1 (en) Grouping palette bypass bins for video coding
KR102548881B1 (en) Methods and apparatus for video transform encoding/decoding
US11889089B2 (en) Method for encoding/decoding image and device using same
CN112335251B (en) Coefficient coding with grouped bypass bits
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
E701 Decision to grant or registration of patent right
A107 Divisional application of patent
GRNT Written decision to grant