KR20220116109A - 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
KR20220116109A
KR20220116109A KR1020220098493A KR20220098493A KR20220116109A KR 20220116109 A KR20220116109 A KR 20220116109A KR 1020220098493 A KR1020220098493 A KR 1020220098493A KR 20220098493 A KR20220098493 A KR 20220098493A KR 20220116109 A KR20220116109 A KR 20220116109A
Authority
KR
South Korea
Prior art keywords
block
current
transform
prediction
unit
Prior art date
Application number
KR1020220098493A
Other languages
Korean (ko)
Other versions
KR102516821B1 (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 KR20220116109A publication Critical patent/KR20220116109A/en
Priority to KR1020230040682A priority Critical patent/KR102627681B1/en
Application granted granted Critical
Publication of KR102516821B1 publication Critical patent/KR102516821B1/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/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/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

According to a decoding method of an image comprises: a step of parsing a representative flag, which represents first information commanding whether to skip transformation of a transformation block divided from a coding unit, with information on the coding unit when a size of the current coding unit can include the transformation block capable of skipping transformation; a step of determining whether the information is parsed based on the representative flag; a step of inferring the first information based on the representative flag when parsing of the first information is not necessary and parsing the first information when parsing of the first information is necessary; and a step of performing or skipping transformation of the transformation block according to the first information. The present invention can increase efficiency of video encoding.

Description

예측 모드에 기초한 변환 생략 정보의 엔트로피 복호화 방법 및 장치{ENTRPY DECODING METHOD AND APPARATUS FOR TRANSFORM SKIP INFORMATION}Method and apparatus for entropy decoding of transform skip 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 expanding not only domestically but also worldwide, many users are getting used to high-resolution and high-definition images, and accordingly, many institutions are spurring the development of next-generation imaging devices. 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 higher resolution and high-definition images is required.

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

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

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

탐색, 즉 움직임 추정을 통해 결정한 예측값은 움직임 벡터 (motion vector, MV)로 표현되고, 이러한 움직임 벡터는 움직임 벡터 예측치 (motion vector predictor, MVp)와 움직임 벡터 차분값 (motion vector difference MVd)으로 표현될 수 있다. The predicted 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 (MVd). can

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

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

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

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

상기 빈에 대한 컨텍스트 정보를 유도하는 단계는, 상기 변환 생략 플래그에 대한 컨텍스트 인덱스를 결정하는 것을 포함하고, 상기 컨텍스트 인덱스는 상기 코딩 유닛의 예측 모드가 인트라 블록 카피 모드인지 여부에 기초하여 결정될 수 있다.The deriving context information for the bin may include determining a context index for the transform skip flag, wherein 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.

상기 빈에 대한 컨텍스트 정보를 유도하는 단계는, 상기 컨텍스트 인덱스에 대응하는 확률값을 초기값으로 설정하는 초기화를 수행하고, 상기 초기값은 코딩 유닛의 예측 모드에 기초하여 설정될 수 있다.The deriving the context information for the bin may include performing initialization by setting 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 a coding unit.

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

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

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

도 1은 발명이 적용되는 영상 부호화 장치의 일 실시예에 따른 구성을 나타내는 블록도이다.
도 2는 본 발명이 적용되는 영상 복호화 장치의 일 실시예에 따른 구성을 나타내는 블록도이다.
도 3은 본 발명의 일 실시예에 따른 IBC 예측을 설명하기 위한 도면이다.
도 4는 본 발명의 일 실시예에 따른 변환 생략 플래그의 엔트로피 복호화 방법을 나타낸 순서도이다.
1 is a block diagram illustrating a configuration of an image encoding apparatus to which the present invention is applied according to an embodiment.
2 is a block diagram illustrating a configuration of an image decoding apparatus to which the present invention is applied according to an embodiment.
3 is a diagram for explaining IBC prediction according to an embodiment of the present invention.
4 is a flowchart illustrating a method for entropy decoding of a transform 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, the components shown in the embodiment of the present invention are shown independently to represent different characteristic functions, and it does not mean that each component is composed of separate hardware or a single software component. That is, each component is listed as each component for convenience of description, and at least two components of each component are combined to form one component, or one component can be divided into a plurality of components to perform a function, and each Integrated embodiments and separate embodiments of the components are also included in the scope of the present invention without departing from the essence of the present invention.

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

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

도 1을 참조하면, 상기 영상 부호화 장치(100)는 예측부(110), 감산기(125), 변환부(130), 양자화부(140), 엔트로피 부호화부(150), 역양자화부(160), 역변환부(170), 가산기(175), 필터부(180) 및 참조영상 버퍼(190)를 포함한다.Referring to FIG. 1 , the image encoding apparatus 100 includes a predictor 110 , a subtractor 125 , a transform unit 130 , a quantizer 140 , an entropy encoder 150 , and an inverse quantizer 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 perform encoding on an input image in an intra mode or an inter mode and output a bit stream. Intra prediction refers to intra prediction, and inter prediction refers to inter prediction. In the intra mode, a switch (not shown) is switched to intra, and in the inter mode, the switch is switched to inter. The image encoding apparatus 100 may generate a prediction block for an input block of an input image, and then 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. have. Also, the image 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 intra prediction unit may generate a prediction block by performing spatial prediction using pixel values of an already encoded block around the current block.

인터 모드인 경우, 움직임 예측부는, 움직임 예측 과정에서 참조 영상 버퍼(190)에 저장되어 있는 참조 영상에서 입력 블록과 가장 매치가 잘 되는 영역을 찾아 움직임 벡터를 구할 수 있다. 움직임 보상부는 움직임 벡터와 참조 영상 버퍼(190)에 저장되어 있는 참조 영상을 이용하여 움직임 보상을 수행함으로써 예측 블록을 생성할 수 있다. In the inter mode, the motion predictor 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 compensator 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 prediction unit may determine a region similar to the current block by performing motion prediction, that is, searching within the current picture, and obtain a prediction value and a block vector for the current block. The 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 the difference between the input block and the generated prediction block. The transform unit 130 may perform transform on the residual block to output a transform coefficient. For some residual blocks, the transform unit 130 may be configured to omit transform, and even in this case, the output of the transform unit 130 is referred to as a transform coefficient for convenience. In addition, 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-encodes a symbol according to a probability distribution based on the values calculated by the quantization unit 140 or an encoding parameter value calculated during 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, removing statistical redundancy, and expressing them as a decodable binary number sequence.

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

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

엔트로피 부호화가 적용되는 경우, 높은 발생 확률을 갖는 심볼에 적은 수의 비트가 할당되고 낮은 발생 확률을 갖는 심볼에 많은 수의 비트가 할당되어 심볼이 표현됨으로써, 부호화 대상 심볼들에 대한 비트열의 크기가 감소될 수 있다. 따라서 엔트로피 부호화를 통해서 영상 부호화의 압축 성능이 높아질 수 있다. When entropy encoding 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 to express the symbol, so that the size of the bit string for the symbols to be encoded is increased. can be reduced. Accordingly, compression performance of image encoding may 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, an encoding method such as exponential golomb, Context-Adaptive Variable Length Coding (CAVLC), or Context-Adaptive Binary Arithmetic Coding (CABAC) may be used. For example, the entropy encoding unit 150 may store a table for performing entropy encoding, such as a variable length coding (VLC) table, and the entropy encoding unit 150 may store the stored variable length encoding. Entropy encoding can be performed using a (VLC) table. In addition, the entropy encoder 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 coefficient may be inverse quantized by the inverse quantizer 160 and inversely transformed by the inverse transform unit 170 . For some blocks, the inverse transform unit 170 may be configured to omit the inverse transform, and even in this case, the output of the inverse transform unit 170 is called an inverse transformed coefficient for convenience. The inverse-quantized and inverse-transformed coefficients may be 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 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) to the reconstructed block or the reconstructed picture. can do. The reconstructed block passing 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 to which the present invention is applied according to an embodiment.

도 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 a bitstream output from the encoding apparatus, perform decoding in an intra mode, an inter mode, or an 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 received bitstream, generating a prediction block, and adding the reconstructed residual block and the prediction 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 symbols in the form of quantized coefficients. The entropy decoding method is a method of generating each symbol by receiving a binary string as an input. The entropy decoding method is similar to the entropy encoding method described above.

양자화된 계수는 역양자화부(220)에서 역양자화되고 역변환부(230)에서 역변환되며, 양자화된 계수가 역양자화/역변환 된 결과, 복원된 잔여 블록(residual block)이 생성될 수 있다. 일부 블록에 대하여 역변환부(230)는 역변환을 생략하도록 구성될 수도 있다. 또한, 역양자화부(220)도 일부 블록에 대하여 생략되도록 구성될 수 도 있다.The quantized coefficient is inverse quantized by the inverse quantization unit 220 and inverse transformed by the inverse transformation unit 230 , and as a result of inverse quantization/inverse transformation of the quantized coefficient, 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 configured to be omitted for some blocks.

예측부(240)는 인트라 예측을 수행하는 인트라 예측부, 인터 예측을 수행하는 움직임 예측부 및 움직임 보상부, 인트라 카피 예측(intra block copy(IBC) prediction)을 수행하는 IBC 예측부를 세부적인 구성 요소로 포함할 수 있다.The prediction unit 240 includes 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. can be included as

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

복원된 잔여 블록과 예측 블록은 가산기(255)를 통해 더해지고, 더해진 블록은 필터부(260)를 거친다. 필터부(260)는 디블록킹 필터, SAO, ALF 중 적어도 하나 이상을 복원 블록 또는 복원 픽쳐에 적용할 수 있다. 필터부(260)는 재구성된 영상, 즉 복원 영상을 출력한다. 복원 영상은 참조 영상 버퍼(270)에 저장되어 화면 간 예측에 사용될 수 있다.The reconstructed residual block and the prediction block are added through the adder 255 , and the added block passes through the 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 reconstructed image. The restored 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 , Components directly related to image decoding, for example, entropy decoding unit 210, inverse quantization unit 220, inverse transform unit 230, prediction unit 240, filter unit 260, etc. are distinguished from other components. Thus, it can be expressed as a decoder or a decoder.

또한, 영상 복호화 장치(200)는 비트스트림에 포함되어 있는 인코딩된 영상에 관련된 정보를 파싱하는 도시하지 않은 파싱부를 더 포함할 수 있다. 파싱부는 엔트로피 복호화부(210)를 포함할 수도 있고, 엔트로피 복호화부(210)에 포함될 수도 있다. 이러한 파싱부는 또한 디코딩부의 하나의 구성요소로 구현될 수도 있다.Also, the image decoding apparatus 200 may further include a parsing unit (not shown) that parses information related to the encoded image included in the 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 may be used as a reference block of the current block, and a block vector (hereinafter, BV) similar to a motion vector used for inter prediction to indicate the location of the specific region. ) can be used.

기존의 인터 예측의 경우, 참조 픽쳐는 현재 픽쳐와 다른 이전 픽쳐 또는 이후 픽쳐 이지만, IBC 예측의 경우의 경우 참조 픽쳐는 현재 픽쳐가 되고, 블록 벡터는 현재 픽쳐에서 참조 블록을 지시하는 벡터를 나타낸다.In the case of conventional inter prediction, the reference picture is a previous picture or a later 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 coding tree unit (CTU) on the left adjacent to the current prediction block in the current picture may be selected as a reference block of the current prediction block.

IBC 예측을 수행할 때 참조 블록의 탐색을 위한 영역이 제한되거나 특정 영역으로 설정될 수 있다. 일 예에 따라 참조 블록은 현재 예측 블록이 속하는 현재 CTU 또는 현재 CTU와 인접한 좌측 CTU 내에서 탐색되는 것으로 한정될 수 있다.When IBC prediction is performed, an area for searching 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 within the current CTU to which the current prediction block belongs or a left CTU adjacent to the current CTU.

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

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

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

현재 블록에 대한 BV 예측자는 부호화 장치에서 코딩되어 복호화 장치로 시그널링 될 수 있으며, 특정 영역, 예를 들어 현재 CTU 내에서 이전에 IBC 모드로 예측된 블록의 BV가 예측자로 사용될 수 있으며, 현재 블록과 인접한 블록 중 IBC 모드로 예측된 블록의 BV 또한 예측자로 사용될 수도 있다. The BV predictor for the current block may be coded by the encoding device and signaled to the decoding device, and the BV of a block previously predicted in the 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)일 수 있다. In this case, since there is a need to reset or refresh data 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 a current coding unit.

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

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

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

한편, 종래의 영상의 부호화 및 복호화에서 변환 생략 여부는 변환 블록 (TB, transform block) 단위로 transform_skip_flag[ x0 ][ y0 ][ cIdx ] 이라는 신택스 요소 정보로 시그널링되며, 이 신호는 엔트로피 부호화 되어 비트스트림으로 전송된다. 여기서, x0, y0은 변환 블록의 좌측 최상단 위치를 나타내고, ‘cIdx’는 현재 변환 블록의 색상 정보를 나타낸다. 루마 신호의 경우 cIdx는 0으로 설정되고 크로마 신호의 경우 cIdx는 각각 1과 2의 값을 가질 수 있다.On the other hand, whether or not transform is omitted in conventional image encoding and decoding is signaled by syntax element information called transform_skip_flag[x0][y0][cIdx] in units of transform blocks (TB), and this signal is entropy-encoded and a bitstream is sent to Here, x0 and y0 represent the upper leftmost position of the transform block, and 'cIdx' represents color information of the current transform block. For the luma signal, cIdx may be set to 0, and for the 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 a context for each syntax element. As an example of the transform skip flag (transform_skip_flag), as shown in Table 1, six context indexes may be defined.

Figure pat00001
Figure pat00001

표 1을 참조하면, 신택스 요소인 transform_skip_flag는 initType과 현재 블록의 현재 블록의 색상 성분에 따라 컨텍스트 인덱스가 결정된다.Referring to Table 1, for the syntax element transform_skip_flag, the context index 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으로 설정될 수 있다.The initType is a value determined according to the type of the slice on which encoding/decoding is currently performed. In the case of an I slice, initType is set to 0, and in the case of a P slice and a B slice, it may be set differently according to a cabac_init_flag value. For example, in the case of cabac_init_flag = 0, initType may be set to 1 for the P slice, and initType may be set to 0 for the B slice.

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

Figure pat00002
Figure pat00002

CABAC에서 컨텍스트의 업데이트(context update) 과정은 컨텍스트 인덱스 별로 독립적으로 수행된다. 예를 들면, 현재 부호화 하고자 하는 transform_skip_flag의 컨텍스트 인덱스가 0인 경우, ctxIdx = 0의 확률 인덱스(pState index)를 기반으로 CABAC 부호화가 수행되며, 또한 오직 ctxIdx = 0의 확률 인덱스만 업데이트 된다.In CABAC, the context update process is independently performed for each context index. For example, when the context index of transform_skip_flag to be currently encoded is 0, CABAC encoding is performed based on a 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 a 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 the probability information stored in the upper right CTU among the first CTUs of a row. ) is initialized.

이 때, 확률 값의 초기화는 신텍스 요소의 각 컨텍스트 인덱스 별 초기 값(initValue)을 기반으로 수행될 수 있다. In this case, 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, 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 indexes are 1) the current slice type and 2) whether the current transform block represents the luma component, or It may be determined according to whether a chroma component is represented.

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

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

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

*이하에서는 본 발명의 실시예를 기술함에 있어, 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 the I slice is 0, and the initType of the P slice and the B slice are 1 and 2, respectively.

또한, 본 발명의 일 측면에 따라 코딩 유닛의 예측 모드가 IBC 인지 여부를 참조하여 컨텍스트 인덱스를 결정하는 것을 하나의 바람직한 예로 제시하지만, 본 발명의 권리 범위는 이에 한정되지 않으며 IBC가 아닌 다른 모드 경우로도 확대될 수 있다.In addition, in accordance with an 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 in the case of a mode other than IBC can also be expanded.

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

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

Figure pat00004
Figure pat00004

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

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

Figure pat00005
Figure pat00005

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

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

Figure pat00006
Figure pat00006

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

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

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

Figure pat00007
Figure pat00007

또 다른 실시예에 따르면, 표 8와 같이 컨텍스트 인덱스가 결정될 수 있고, 표 8에 따를 경우 슬라이스 타입에 따라 코딩 유닛의 예측 모드가 IBC인지 여부에 따라 컨텍스트 인덱스 가 결정될 수 있다.According to another embodiment, the context index may be determined as shown in Table 8, and according to Table 8, the context index may be determined according to whether the prediction mode of the coding unit is IBC according to the 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, when 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 The new 6 can be set.

상기 표 4 내지 표 8과 같이 새롭게 정의된 컨텍스트 인덱스(6~11 또는 6~8)에 대응하는 초기값(initValue)은 기존의 컨텍스트 인덱스(0~5)의 초기값과 다르게 정의될 수 있다. 표 4를 기반으로 새로운 컨텍스트 인덱스에 대응하는 초기값을 표로 나타내면 표 9 내지 표 11과 같다. As shown in Tables 4 to 8, an 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. Based on Table 4, initial values corresponding to the new context index are shown in Tables 9 to 11.

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 transform block, Table 10 newly defines the initial value of the context index applied to the chroma transform block, and Table 11 is the luma transform block and the chroma transform block The initial value of the context index applied to .

표 9 내지 11의 a 내지 g는 부호화 장치 및 복호화 장치에서 약속된 최적의 값으로 설정될 수 있으며, 이는 율-왜곡비율을 최소로 하는 값으로 설정될 수 있다. a 내지 g는 기존의 초기값 139과 동일할 수도 있고, 동일하지 않을 수도 있다. A to g of Tables 9 to 11 may be set as optimal values promised by the encoding apparatus and the decoding apparatus, 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 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 may be signaled in a parameter set (Picture parameter set, etc.). Alternatively, it may be signaled at another higher level.

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

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 indicates that it 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 that

또는, 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 defined as existing 0-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-5.

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

우선, 엔트로피 복호화부는 코딩 유닛의 예측 모드에 기초하여 변환 생략 플래그에 대한 컨텍스트 인덱스를 결정할 수 있다(S410).First, the entropy decoder may determine a 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 the coding unit, eg, whether the prediction mode of the coding unit is an intra block copy mode.

또한, 컨텍스트 인덱스는 현재 슬라이스가 I 슬라이스인지, P 슬라이스인지, B 슬라이스인지에 따라서 결정될 수도 있다. In addition, 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 decoder may perform an initialization process of setting a probability value corresponding to the determined context index as an initial value ( S420 ).

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

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

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

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

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

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

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

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

컴퓨터가 읽을 수 있는 기록 매체는 네트워크로 연결된 컴퓨터 시스템에 분산되어, 분산방식으로 컴퓨터가 읽을 수 있는 코드가 저장되고 실행될 수 있다. 그리고, 상기 방법을 구현하기 위한 기능적인(function) 프로그램, 코드 및 코드 세그먼트들은 본 발명이 속하는 기술분야의 프로그래머들에 의해 용이하게 추론될 수 있다.The computer-readable recording medium is distributed in a network-connected computer system, so that the computer-readable code 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 art to which the present invention pertains.

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

Claims (3)

현재 픽처 내 현재 블록에 대한 변환 생략 여부를 나타내는 변환 생략 플래그에 기반하여 상기 현재 블록의 잔차 블록을 생성하는 역변환부;
상기 현재 블록에 대한 블록 벡터를 유도하고, 상기 블록 벡터가 지시하는 참조 블록에 기초하여 상기 현재 블록의 예측 블록을 생성하는 예측부; 및
상기 잔차 블록 및 상기 예측 블록에 기초하여 상기 현재 블록을 복원하는 가산기를 포함하고,
상기 현재 블록은 IBC 모드로 예측된 블록이고, 상기 참조 블록은 상기 현재 픽처 내 블록이고,
상기 현재 블록의 변환 생략 플래그의 산술 복호화에 사용되는 컨텍스트 정보의 초기화를 위한 컨텍스트 인덱스 별 초기값은 현재 슬라이스의 타입에 따라 상이하게 결정되는 영상 복호화 장치.
an inverse transform unit for generating a residual block of the current block based on a transform skip flag indicating whether to skip transform for the current block in the current picture;
a prediction unit for deriving a block vector for the current block and generating 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 a type of a current slice.
현재 픽처 내 현재 블록에 대한 블록 벡터를 결정하고,상기 블록 벡터가 지시하는 참조 블록에 기초하여 상기 현재 블록의 예측 블록을 생성하는 예측부;
상기 예측 블록에 기초하여 상기 현재 블록의 잔차 블록을 생성하는 감산기; 및
상기 현재 블록에 대한 변환 생략 여부를 나타내는 변환 생략 플래그에 기반하여 상기 잔차 블록을 부호화하는 변환부를 포함하고,
상기 현재 블록은 IBC 모드로 예측된 블록이고, 상기 참조 블록은 상기 현재 픽처 내 블록이고,
상기 현재 블록의 변환 생략 플래그의 산술 부호화에 사용되는 컨텍스트 정보의 초기화를 위한 컨텍스트 인덱스 별 초기값은 현재 슬라이스의 타입에 따라 상이하게 결정되는 영상 부호화 장치.
a prediction unit that determines a block vector for a current block in a current picture, and generates 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
and a transform unit for encoding the residual block based on a transform skip flag indicating whether transform for 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,
An image encoding apparatus in which an initial value for each context index for initialization of context information used for arithmetic encoding of the transform skip flag of the current block is determined differently according to a type of a current slice.
영상 부호화 장치에 의해 생성된 비트스트림을 저장한 컴퓨터 판독 가능한 기록매체로서, 상기 영상 부호화 장치는,
현재 픽처 내 현재 블록에 대한 블록 벡터를 결정하고, 상기 블록 벡터가 지시하는 참조 블록에 기초하여 상기 현재 블록의 예측 블록을 생성하는 예측부;
상기 예측 블록에 기초하여 상기 현재 블록의 잔차 블록을 생성하는 감산기; 및
상기 현재 블록에 대한 변환 생략 여부를 나타내는 변환 생략 플래그에 기반하여 상기 잔차 블록을 부호화하는 변환부를 포함하고,
상기 현재 블록은 IBC 모드로 예측된 블록이고, 상기 참조 블록은 상기 현재 픽처 내 블록이고,
상기 현재 블록의 변환 생략 플래그의 산술 부호화에 사용되는 컨텍스트 정보의 초기화를 위한 컨텍스트 인덱스 별 초기값은 현재 슬라이스의 타입에 따라 상이하게 결정되는 컴퓨터 판독 가능한 기록매체.
A computer-readable recording medium storing a bitstream generated by a video encoding apparatus, the video encoding apparatus comprising:
a prediction unit determining a block vector for 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
and a transform unit for encoding the residual block based on a transform skip flag indicating whether transform for 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,
An initial value for each context index for initialization of context information used for arithmetic encoding of the transformation skip flag of the current block is determined differently according to a type of a current slice.
KR1020220098493A 2014-10-13 2022-08-08 Entrpy decoding method and apparatus for transform skip information KR102516821B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020230040682A KR102627681B1 (en) 2014-10-13 2023-03-28 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
KR1020200126859A KR102431675B1 (en) 2014-10-13 2020-09-29 Entrpy decoding method and apparatus for transform skip information

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
KR1020200126859A Division KR102431675B1 (en) 2014-10-13 2020-09-29 Entrpy decoding method and apparatus for transform skip information

Related Child Applications (1)

Application Number Title Priority Date Filing Date
KR1020230040682A Division KR102627681B1 (en) 2014-10-13 2023-03-28 Entrpy decoding method and apparatus for transform skip information

Publications (2)

Publication Number Publication Date
KR20220116109A true KR20220116109A (en) 2022-08-22
KR102516821B1 KR102516821B1 (en) 2023-03-31

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 (4)

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

Family Applications After (2)

Application Number Title Priority Date Filing Date
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

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
KR20200031591A (en) 2020-03-24
KR20230048275A (en) 2023-04-11
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
KR20230143590A (en) Method for inter prediction and apparatus thereof
KR102431675B1 (en) Entrpy decoding method and apparatus for transform skip information
CN112514386B (en) Grid coding and decoding quantization coefficient coding and decoding
KR102548881B1 (en) Methods and apparatus for video transform encoding/decoding
US11889089B2 (en) Method for encoding/decoding image and device using same
KR20220136969A (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
E701 Decision to grant or registration of patent right
GRNT Written decision to grant