KR20210035025A - Lossless recontruction method and apparatus for using the same - Google Patents

Lossless recontruction method and apparatus for using the same Download PDF

Info

Publication number
KR20210035025A
KR20210035025A KR1020200024600A KR20200024600A KR20210035025A KR 20210035025 A KR20210035025 A KR 20210035025A KR 1020200024600 A KR1020200024600 A KR 1020200024600A KR 20200024600 A KR20200024600 A KR 20200024600A KR 20210035025 A KR20210035025 A KR 20210035025A
Authority
KR
South Korea
Prior art keywords
syntax
flag
coding mode
block
lossless
Prior art date
Application number
KR1020200024600A
Other languages
Korean (ko)
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 KR20210035025A publication Critical patent/KR20210035025A/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/70Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by syntax aspects related to video coding, e.g. related to compression standards
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/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

Landscapes

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

Abstract

Disclosed are a lossless restoration method and an image decoding device. According to an embodiment of the present invention, as a method for lossless restoration of residual samples of a current block, the lossless restoration method comprises the steps of: determining any one of a lossless coding mode and a lossy coding mode in accordance with a first syntax indicating whether a transformation process for residual samples is skipped; and restoring the residual samples depending on lossless coding mode syntaxes decoded from a bitstream when the lossless coding mode is determined.

Description

무손실 복원 방법 및 영상 복호화 장치{LOSSLESS RECONTRUCTION METHOD AND APPARATUS FOR USING THE SAME}Lossless restoration method and video decoding device {LOSSLESS RECONTRUCTION METHOD AND APPARATUS FOR USING THE SAME}

본 발명은 영상의 부호화 및 복호화에 관한 것으로서, 더욱 구체적으로는 영상을 무손실로 복원하여 부호화 및 복호화의 효율을 향상시킨 무손실 복원 방법 및 영상 복호화 장치에 관한 것이다.The present invention relates to encoding and decoding of an image, and more particularly, to a lossless reconstruction method and an image decoding apparatus in which an image is losslessly restored to improve encoding and decoding efficiency.

동영상 데이터는 음성 데이터나 정지 영상 데이터 등에 비하여 많은 데이터량을 가지기 때문에, 압축을 위한 처리 없이 그 자체를 저장하거나 전송하기 위해서는 메모리를 포함하여 많은 하드웨어 자원을 필요로 한다. Since moving picture data has a larger amount of data than audio data or still image data, it requires a lot of hardware resources including memory in order to store or transmit itself without processing for compression.

따라서, 통상적으로 동영상 데이터를 저장하거나 전송할 때에는 부호화기를 사용하여 동영상 데이터를 압축하여 저장하거나 전송하며, 복호화기에서는 압축된 동영상 데이터를 수신하여 압축을 해제하고 재생한다. 이러한 동영상 압축 기술로는 H.264/AVC를 비롯하여, H.264/AVC에 비해 약 40% 정도의 부호화 효율을 향상시킨 HEVC(High Efficiency Video Coding)가 존재한다. Accordingly, when moving or transmitting moving picture data, the moving picture data is compressed and stored or transmitted using an encoder, and the decoder receives the compressed moving picture data, decompresses and plays the compressed moving picture data. As such video compression techniques, there are H.264/AVC and HEVC (High Efficiency Video Coding), which improves coding efficiency by about 40% compared to H.264/AVC.

그러나, 영상의 크기 및 해상도, 프레임율이 점차 증가하고 있고, 이에 따라 부호화해야 하는 데이터량도 증가하고 있으므로 기존의 압축 기술보다 더 부호화 효율이 좋고 화질 개선 효과도 높은 새로운 압축 기술이 요구된다.However, the size, resolution, and frame rate of an image are gradually increasing, and accordingly, the amount of data to be encoded is also increasing. Accordingly, a new compression technique having higher encoding efficiency and higher quality improvement effect than the existing compression technique is required.

이러한 요구에 부응하기 위해 본 발명은 개선된 영상 부호화 및 복호화 기술을 제공하는 것을 목적으로 하며, 특히, 본 발명의 일 측면은 영상을 손실 없이 복원함으로써 부호화 및 복호화의 효율을 향상시키는 기술과 관련된다.In order to meet these needs, the present invention aims to provide an improved video encoding and decoding technology, and in particular, an aspect of the present invention relates to a technology for improving the efficiency of encoding and decoding by restoring an image without loss. .

본 발명의 일 측면은, 현재블록의 잔차샘플들을 무손실(lossless)로 복원 방법으로서, 상기 잔차샘플들에 대한 변환 과정이 스킵(skip)되었는지 여부를 지시하는 제1신택스에 따라, 무손실 코딩 모드와 손실(lossy) 코딩 모드 중에서 어느 하나를 결정하는 단계; 상기 무손실 코딩 모드가 결정되는 경우, 비트스트림으로부터 복호화되는 무손실 코딩 모드 신택스들에 의존하여, 상기 잔차샘플들을 복원하는 단계를 포함하는, 무손실 복원 방법을 제공한다.An aspect of the present invention is a lossless restoration method of residual samples of a current block, in accordance with a first syntax indicating whether a conversion process for the residual samples is skipped, and a lossless coding mode and Determining any one of lossy coding modes; When the lossless coding mode is determined, there is provided a lossless reconstruction method comprising the step of restoring the residual samples depending on lossless coding mode syntaxes decoded from a bitstream.

본 발명의 다른 일 측면은, 현재블록의 잔차샘플들을 무손실(lossless)로 복원하는 영상 복호화 장치로서, 상기 잔차샘플들에 대한 변환 과정이 스킵(skip)되었는지 여부를 지시하는 제1신택스에 따라, 무손실 코딩 모드와 손실 코딩 모드 중에서 어느 하나를 결정하는 결정부; 상기 무손실 코딩 모드가 결정되는 경우, 비트스트림으로부터 복호화되는 무손실 코딩 모드 신택스들에 의존하여, 상기 잔차샘플들을 복원하는 복원부를 포함하는, 영상 복호화 장치를 제공한다.Another aspect of the present invention is an image decoding apparatus for losslessly reconstructing residual samples of a current block, according to a first syntax indicating whether a conversion process for the residual samples is skipped, A determination unit for determining any one of a lossless coding mode and a lossy coding mode; When the lossless coding mode is determined, there is provided an image decoding apparatus including a reconstruction unit for reconstructing the residual samples depending on lossless coding mode syntaxes decoded from a bitstream.

이상에서 설명한 바와 같이 본 발명의 일 실시예에 의하면, 현재블록을 무손실로 부호화 및 복호화할 수 있으므로, 원본 영상과 동일한 화질의 영상을 복원할 수 있게 된다.As described above, according to an embodiment of the present invention, since the current block can be losslessly encoded and decoded, an image having the same quality as the original image can be restored.

도 1은 본 개시의 기술들을 구현할 수 있는 영상 부호화 장치에 대한 예시적인 블록도이다.
도 2는 QTBTTT 구조를 이용하여 블록을 분할하는 방법을 설명하기 위한 도면이다.
도 3은 복수의 인트라 예측 모드들을 설명하기 위한 도면이다.
도 4는 본 개시의 기술들을 구현할 수 있는 영상 복호화 장치의 예시적인 블록도이다.
도 5는 무손실 복원 방법을 구현할 수 있는 영상 복호화 장치의 예시적인 블록도이다.
도 6은 무손실 복원 방법에 대한 일 예를 설명하기 위한 순서도이다.
도 7은 현재블록이 무손실로 부호화되었는지 여부를 판단하는 일 예를 설명하기 위한 순서도이다.
도 8 및 도 9은 무손실 코딩 모드를 결정하는 예들을 설명하기 위한 순서도이다.
도 10은 잔차샘플들을 무손실로 복원하는 방법에 대한 일 예를 설명하기 위한 순서도이다.
도 11은 무손실 복원의 스캐닝 순서를 설명하기 위한 도면이다.
1 is an exemplary block diagram of an image encoding apparatus capable of implementing the techniques of the present disclosure.
2 is a diagram for explaining a method of dividing a block using a QTBTTT structure.
3 is a diagram for describing a plurality of intra prediction modes.
4 is an exemplary block diagram of an image decoding apparatus capable of implementing the techniques of the present disclosure.
5 is an exemplary block diagram of an image decoding apparatus capable of implementing a lossless reconstruction method.
6 is a flowchart illustrating an example of a lossless restoration method.
7 is a flowchart illustrating an example of determining whether a current block is losslessly encoded.
8 and 9 are flowcharts illustrating examples of determining a lossless coding mode.
10 is a flowchart illustrating an example of a method of losslessly restoring residual samples.
11 is a diagram for explaining a scanning procedure of lossless restoration.

이하, 본 발명의 일부 실시예들을 예시적인 도면을 통해 상세하게 설명한다. 각 도면의 구성 요소들에 식별 부호를 부가함에 있어서, 동일한 구성요소들에 대해서는 비록 다른 도면상에 표시되더라도 가능한 한 동일한 부호를 가지도록 하고 있음에 유의해야 한다. 또한, 본 발명을 설명함에 있어, 관련된 공지 구성 또는 기능에 대한 구체적인 설명이 본 발명의 요지를 흐릴 수 있다고 판단되는 경우에는 그 상세한 설명은 생략한다.Hereinafter, some embodiments of the present invention will be described in detail through exemplary drawings. In adding identification symbols to elements of each drawing, it should be noted that the same elements are to have the same symbols as possible even if they are indicated on different drawings. In addition, in describing the present invention, when it is determined that a detailed description of a related known configuration or function may obscure the subject matter of the present invention, a detailed description thereof will be omitted.

도 1은 본 개시의 기술들을 구현할 수 있는 영상 부호화 장치에 대한 예시적인 블록도이다. 이하에서는 도 1을 참조하여 영상 부호화 장치와 이 장치의 하위 구성들에 대하여 설명하도록 한다.1 is an exemplary block diagram of an image encoding apparatus capable of implementing the techniques of the present disclosure. Hereinafter, an image encoding apparatus and sub-elements of the apparatus will be described with reference to FIG. 1.

영상 부호화 장치는 블록 분할부(110), 예측부(120), 감산기(130), 변환부(140), 양자화부(145), 부호화부(150), 역양자화부(160), 역변환부(165), 가산기(170), 필터부(180) 및 메모리(190)를 포함하여 구성될 수 있다.The image encoding apparatus includes a block division unit 110, a prediction unit 120, a subtractor 130, a transform unit 140, a quantization unit 145, an encoding unit 150, an inverse quantization unit 160, and an inverse transform unit ( 165, an adder 170, a filter unit 180, and a memory 190 may be included.

영상 부호화 장치의 각 구성요소는 하드웨어 또는 소프트웨어로 구현되거나, 하드웨어 및 소프트웨어의 결합으로 구현될 수 있다. 또한, 각 구성요소의 기능이 소프트웨어로 구현되고 마이크로프로세서가 각 구성요소에 대응하는 소프트웨어의 기능을 실행하도록 구현될 수도 있다.Each component of the image encoding apparatus may be implemented as hardware or software, or may be implemented as a combination of hardware and software. In addition, functions of each component may be implemented as software, and a microprocessor may be implemented to execute a function of software corresponding to each component.

하나의 영상(비디오)는 복수의 픽처들로 구성된다. 각 픽처들은 복수의 영역으로 분할되고 각 영역마다 부호화가 수행된다. 예를 들어, 하나의 픽처는 하나 이상의 타일(Tile) 또는/및 슬라이스(Slice)로 분할된다. 여기서, 하나 이상의 타일을 타일 그룹(Tile Group)으로 정의할 수 있다. 각 타일 또는/슬라이스는 하나 이상의 CTU(Coding Tree Unit)로 분할된다. 그리고 각 CTU는 트리 구조에 의해 하나 이상의 CU(Coding Unit)들로 분할된다. 각 CU에 적용되는 정보들은 CU의 신택스로서 부호화되고, 하나의 CTU에 포함된 CU들에 공통적으로 적용되는 정보는 CTU의 신택스로서 부호화된다. 또한, 하나의 타일 내의 모든 블록들에 공통적으로 적용되는 정보는 타일의 신택스로서 부호화되거나 다수 개의 타일을 모아 놓은 타일 그룹의 신택스로서 부호화되며, 하나의 픽처들을 구성하는 모든 블록들에 적용되는 정보는 픽처 파라미터 셋(PPS, Picture Parameter Set) 혹은 픽처 헤더에 부호화된다. 나아가, 복수의 픽처가 공통으로 참조하는 정보들은 시퀀스 파라미터 셋(SPS, Sequence Parameter Set)에 부호화된다. 그리고, 하나 이상의 SPS가 공통으로 참조하는 정보들은 비디오 파라미터 셋(VPS, Video Parameter Set)에 부호화된다.One image (video) is composed of a plurality of pictures. Each picture is divided into a plurality of regions, and encoding is performed for each region. For example, one picture is divided into one or more tiles or/and slices. Here, one or more tiles may be defined as a tile group. Each tile or/slice is divided into one or more Coding Tree Units (CTUs). And each CTU is divided into one or more CUs (Coding Units) by a tree structure. Information applied to each CU is encoded as the syntax of the CU, and information commonly applied to CUs included in one CTU is encoded as the syntax of the CTU. In addition, information commonly applied to all blocks in one tile is encoded as the syntax of a tile or is encoded as a syntax of a tile group in which a plurality of tiles are collected, and information applied to all blocks constituting one picture is It is encoded in a picture parameter set (PPS) or a picture header. Furthermore, information commonly referred to by a plurality of pictures is encoded in a sequence parameter set (SPS). In addition, information commonly referred to by one or more SPSs is encoded in a video parameter set (VPS).

블록 분할부(110)는 CTU(Coding Tree Unit)의 크기를 결정한다. CTU의 크기에 대한 정보(CTU size)는 SPS 또는 PPS의 신택스로서 부호화되어 영상 복호화 장치로 전달된다. The block dividing unit 110 determines the size of a coding tree unit (CTU). Information on the size of the CTU (CTU size) is encoded as the syntax of the SPS or PPS and transmitted to the video decoding apparatus.

블록 분할부(110)는 영상을 구성하는 각 픽처(picture)를 미리 결정된 크기를 가지는 복수의 CTU(Coding Tree Unit)들로 분할한 이후에, 트리 구조(tree structure)를 이용하여 CTU를 반복적으로(recursively) 분할한다. 트리 구조에서의 리프 노드(leaf node)가 부호화의 기본 단위인 CU(coding unit)가 된다. The block dividing unit 110 divides each picture constituting an image into a plurality of coding tree units (CTUs) having a predetermined size, and then repeatedly divides the CTU using a tree structure. Split (recursively). A leaf node in a tree structure becomes a coding unit (CU), which is a basic unit of coding.

트리 구조로는 상위 노드(혹은 부모 노드)가 동일한 크기의 네 개의 하위 노드(혹은 자식 노드)로 분할되는 쿼드트리(QuadTree, QT), 또는 상위 노드가 두 개의 하위 노드로 분할되는 바이너리트리(BinaryTree, BT), 또는 상위 노드가 1:2:1 비율로 세 개의 하위 노드로 분할되는 터너리트리(TernaryTree, TT), 또는 이러한 QT 구조, BT 구조 및 TT 구조 중 둘 이상을 혼용한 구조일 수 있다. 예컨대, QTBT(QuadTree plus BinaryTree) 구조가 사용될 수 있고, 또는 QTBTTT(QuadTree plus BinaryTree TernaryTree) 구조가 사용될 수 있다. 여기서, BTTT를 합쳐서 MTT(Multiple-Type Tree)라 칭할 수 있다. In a tree structure, a quadtree (QuadTree, QT) in which an upper node (or parent node) is divided into four lower nodes (or child nodes) of the same size, or a binary tree (BinaryTree) in which an upper node is divided into two lower nodes. , BT), or a ternary tree (TT) in which an upper node is divided into three lower nodes in a 1:2:1 ratio, or a structure in which two or more of these QT structures, BT structures, and TT structures are mixed. have. For example, a QTBT (QuadTree plus BinaryTree) structure may be used, or a QTBTTT (QuadTree plus BinaryTree TernaryTree) structure may be used. Here, BTTT may be collectively referred to as MTT (Multiple-Type Tree).

도 2는 QTBTTT 분할 트리 구조를 보인다. 도 2에서 보는 바와 같이, CTU는 먼저 QT 구조로 분할될 수 있다. 쿼드트리 분할은 분할 블록(splitting block)의 크기가 QT에서 허용되는 리프 노드의 최소 블록 크기(MinQTSize)에 도달할 때까지 반복될 수 있다. QT 구조의 각 노드가 하위 레이어의 4개의 노드들로 분할되는지 여부를 지시하는 제1 플래그(QT_split_flag)는 부호화부(150)에 의해 부호화되어 영상 복호화 장치로 시그널링된다. QT의 리프 노드가 BT에서 허용되는 루트 노드의 최대 블록 크기(MaxBTSize)보다 크지 않은 경우, BT 구조 또는 TT 구조 중 어느 하나 이상으로 더 분할될 수 있다. BT 구조 및/또는 TT 구조에서는 복수의 분할 방향이 존재할 수 있다. 예컨대, 해당 노드의 블록이 가로로 분할되는 방향과 세로로 분할되는 방향 두 가지가 존재할 수 있다. 도 2와 같이, MTT 분할이 시작되면, 노드들이 분할되었는지 여부를 지시하는 제2 플래그(mtt_split_flag)와, 분할이 되었다면 추가적으로 분할 방향(vertical 혹은 horizontal)을 나타내는 플래그 및/또는 분할 타입(Binary 혹은 Ternary)을 나타내는 플래그가 부호화부(150)에 의해 부호화되어 영상 복호화 장치로 시그널링된다.2 shows a QTBTTT split tree structure. As shown in FIG. 2, the CTU may be first divided into a QT structure. The quadtree division may be repeated until the size of a splitting block reaches the minimum block size (MinQTSize) of a leaf node allowed in QT. A first flag (QT_split_flag) indicating whether each node of the QT structure is divided into four nodes of a lower layer is encoded by the encoder 150 and signaled to the image decoding apparatus. If the leaf node of the QT is not larger than the maximum block size (MaxBTSize) of the root node allowed in BT, it may be further divided into one or more of a BT structure or a TT structure. In the BT structure and/or the TT structure, a plurality of division directions may exist. For example, there may be two directions in which a block of a corresponding node is divided horizontally and a direction vertically divided. As shown in FIG. 2, when MTT splitting starts, a second flag (mtt_split_flag) indicating whether nodes are split, and if split, a flag indicating a split direction (vertical or horizontal) and/or a split type (Binary or Ternary). A flag indicating) is encoded by the encoder 150 and signaled to the image decoding apparatus.

트리 구조의 다른 예로서, QTBTTT 구조를 사용하여 블록을 분할하는 경우, 먼저 분할 되었음을 나타내는 CU 분할 플래그(split_cu_flag) 및 분할 타입이 QT 분할인지를 지시하는 QT 분할 플래그(split_qt_flag) 정보가 부호화부(150)에 의해 부호화되어 영상 복호화 장치로 시그널링된다. CU 분할 플래그(split_cu_flag) 값이 분할되지 않았음을 지시하는 경우, 해당 노드의 블록이 분할 트리 구조에서의 리프 노드(leaf node)가 되어 부호화의 기본 단위인 CU(coding unit)가 된다. CU 분할 플래그(split_cu_flag) 값이 분할되었음을 지시하는 경우, QT 분할 플래그(split_qt_flag) 값을 통해 분할 타입이 QT 혹은 MTT인지를 구분한다. 분할 타입이 QT인 경우에는 더 이상의 추가 정보가 없으며, 분할 타입이 MTT인 경우에는 추가적으로 MTT 분할 방향(vertical 혹은 horizontal)을 나타내는 플래그(mtt_split_cu_vertical_flag) 및/또는 MTT 분할 타입(Binary 혹은 Ternary)을 나타내는 플래그(mtt_split_cu_binary_flag)가 부호화부(150)에 의해 부호화되어 영상 복호화 장치로 시그널링된다.As another example of the tree structure, when a block is divided using a QTBTTT structure, information about a CU split flag (split_cu_flag) indicating that the block has been split first and a QT split flag (split_qt_flag) indicating whether the split type is QT splitting is information from the encoding unit 150 ) And signaled to the video decoding apparatus. When it is indicated that the value of the CU split flag (split_cu_flag) is not split, the block of the corresponding node becomes a leaf node in the split tree structure and becomes a coding unit (CU), which is a basic unit of encoding. When indicating that the value of the CU split flag (split_cu_flag) is split, whether the split type is QT or MTT is distinguished through the value of the QT split flag (split_qt_flag). If the split type is QT, there is no additional information, and if the split type is MTT, a flag indicating the MTT split direction (vertical or horizontal) (mtt_split_cu_vertical_flag) and/or a flag indicating the MTT split type (Binary or Ternary) (mtt_split_cu_binary_flag) is encoded by the encoder 150 and signaled to the video decoding apparatus.

트리 구조의 다른 예시로서 QTBT가 사용되는 경우, 해당 노드의 블록을 동일 크기의 두 개 블록으로 가로로 분할하는 타입(즉, symmetric horizontal splitting)과 세로로 분할하는 타입(즉, symmetric vertical splitting) 두 가지가 존재할 수 있다. BT 구조의 각 노드가 하위 레이어의 블록으로 분할되는지 여부를 지시하는 분할 플래그(split_flag) 및 분할되는 타입을 지시하는 분할 타입 정보가 부호화부(150)에 의해 부호화되어 영상 복호화 장치로 전달된다. 한편, 해당 노드의 블록을 서로 비대칭 형태의 두 개의 블록으로 분할하는 타입이 추가로 더 존재할 수도 있다. 비대칭 형태에는 해당 노드의 블록을 1:3의 크기 비율을 가지는 두 개의 직사각형 블록으로 분할하는 형태가 포함될 수 있고, 혹은 해당 노드의 블록을 대각선 방향으로 분할하는 형태가 포함될 수도 있다.When QTBT is used as another example of the tree structure, there are two types of horizontally splitting a block of the node into two blocks of the same size (i.e., symmetric horizontal splitting) and a type splitting vertically (i.e., symmetric vertical splitting). Branches can exist. A split flag indicating whether each node of the BT structure is divided into blocks of a lower layer and split type information indicating a type to be divided are encoded by the encoder 150 and transmitted to the image decoding apparatus. Meanwhile, there may be additional types of dividing the block of the corresponding node into two blocks of an asymmetric form. The asymmetric form may include a form of dividing a block of a corresponding node into two rectangular blocks having a size ratio of 1:3, or a form of dividing a block of a corresponding node in a diagonal direction.

CU는 CTU로부터의 QTBT 또는 QTBTTT 분할에 따라 다양한 크기를 가질 수 있다. 이하에서는, 부호화 또는 복호화하고자 하는 CU(즉, QTBTTT의 리프 노드)에 해당하는 블록을 '현재블록'이라 칭한다.The CU may have various sizes according to the QTBT or QTBTTT split from the CTU. Hereinafter, a block corresponding to a CU to be encoded or decoded (ie, a leaf node of QTBTTT) is referred to as a'current block'.

예측부(120)는 현재블록을 예측하여 예측블록을 생성한다. 예측부(120)는 인트라 예측부(122)와 인터 예측부(124)를 포함한다. The prediction unit 120 predicts the current block and generates a prediction block. The prediction unit 120 includes an intra prediction unit 122 and an inter prediction unit 124.

일반적으로, 픽처 내 현재블록들은 각각 예측적으로 코딩될 수 있다. 일반적으로 현재블록의 예측은 (현재블록을 포함하는 픽처로부터의 데이터를 사용하는) 인트라 예측 기술 또는 (현재블록을 포함하는 픽처 이전에 코딩된 픽처로부터의 데이터를 사용하는) 인터 예측 기술을 사용하여 수행될 수 있다. 인터 예측은 단방향 예측과 양방향 예측 모두를 포함한다.In general, each of the current blocks in a picture can be predictively coded. In general, prediction of the current block is performed using an intra prediction technique (using data from a picture containing the current block) or an inter prediction technique (using data from a picture coded before a picture containing the current block). Can be done. Inter prediction includes both one-way prediction and two-way prediction.

인트라 예측부(122)는 현재블록이 포함된 현재 픽처 내에서 현재블록의 주변에 위치한 픽셀(참조 픽셀)들을 이용하여 현재블록 내의 픽셀들을 예측한다. 예측 방향에 따라 복수의 인트라 예측모드가 존재한다. 예컨대, 도 3에서 보는 바와 같이, 복수의 인트라 예측모드는 planar 모드와 DC 모드를 포함하는 비방향성 모드와 65개의 방향성 모드를 포함할 수 있다. 각 예측모드에 따라 사용할 주변 픽셀과 연산식이 다르게 정의된다.The intra prediction unit 122 predicts pixels in the current block by using pixels (reference pixels) located around the current block in the current picture including the current block. There are a plurality of intra prediction modes according to the prediction direction. For example, as shown in FIG. 3, the plurality of intra prediction modes may include a non-directional mode including a planar mode and a DC mode, and 65 directional modes. Depending on each prediction mode, the surrounding pixels to be used and the equation are defined differently.

인트라 예측부(122)는 현재블록을 부호화하는데 사용할 인트라 예측 모드를 결정할 수 있다. 일부 예들에서, 인트라 예측부(122)는 여러 인트라 예측 모드들을 사용하여 현재블록을 인코딩하고, 테스트된 모드들로부터 사용할 적절한 인트라 예측 모드를 선택할 수도 있다. 예를 들어, 인트라 예측부(122)는 여러 테스트된 인트라 예측 모드들에 대한 레이트 왜곡(rate-distortion) 분석을 사용하여 레이트 왜곡 값들을 계산하고, 테스트된 모드들 중 최선의 레이트 왜곡 특징들을 갖는 인트라 예측 모드를 선택할 수도 있다.The intra prediction unit 122 may determine an intra prediction mode to be used to encode the current block. In some examples, the intra prediction unit 122 may encode the current block using several intra prediction modes, and select an appropriate intra prediction mode to use from the tested modes. For example, the intra prediction unit 122 calculates rate distortion values using rate-distortion analysis for several tested intra prediction modes, and has the best rate distortion characteristics among the tested modes. It is also possible to select an intra prediction mode.

인트라 예측부(122)는 복수의 인트라 예측 모드 중에서 하나의 인트라 예측 모드를 선택하고, 선택된 인트라 예측 모드에 따라 결정되는 주변 픽셀(참조 픽셀)과 연산식을 사용하여 현재블록을 예측한다. 선택된 인트라 예측 모드에 대한 정보가 부호화부(150)에 의해 부호화되어 영상 복호화 장치로 전달된다.The intra prediction unit 122 selects one intra prediction mode from among a plurality of intra prediction modes, and predicts the current block by using a neighboring pixel (reference pixel) and an equation determined according to the selected intra prediction mode. Information on the selected intra prediction mode is encoded by the encoder 150 and transmitted to the image decoding apparatus.

인터 예측부(124)는 움직임 보상 과정을 통해 현재블록에 대한 예측블록을 생성한다. 현재 픽처보다 먼저 부호화 및 복호화된 참조픽처 내에서 현재블록과 가장 유사한 블록을 탐색하고, 그 탐색된 블록을 이용하여 현재블록에 대한 예측블록을 생성한다. 그리고, 현재 픽처 내의 현재블록과 참조픽처 내의 예측블록 간의 변위(displacement)에 해당하는 움직임벡터(motion vector)를 생성한다. 일반적으로, 움직임 추정은 루마(luma) 성분에 대해 수행되고, 루마 성분에 기초하여 계산된 모션 벡터는 루마 성분 및 크로마 성분 모두에 대해 사용된다. 현재블록을 예측하기 위해 사용된 참조픽처에 대한 정보 및 움직임벡터에 대한 정보를 포함하는 움직임 정보는 부호화부(150)에 의해 부호화되어 영상 복호화 장치로 전달된다.The inter prediction unit 124 generates a prediction block for the current block through a motion compensation process. A block that is most similar to a current block is searched for in a reference picture that is coded and decoded before the current picture, and a prediction block for the current block is generated using the searched block. Then, a motion vector corresponding to a displacement between the current block in the current picture and the prediction block in the reference picture is generated. In general, motion estimation is performed on a luma component, and a motion vector calculated based on the luma component is used for both the luma component and the chroma component. Motion information including information on a reference picture used to predict a current block and information on a motion vector is encoded by the encoder 150 and transmitted to an image decoding apparatus.

감산기(130)는 현재블록으로부터 인트라 예측부(122) 또는 인터 예측부(124)에 의해 생성된 예측블록을 감산하여 잔차블록을 생성한다.The subtractor 130 generates a residual block by subtracting the prediction block generated by the intra prediction unit 122 or the inter prediction unit 124 from the current block.

변환부(140)는 공간 영역의 픽셀 값들을 가지는 잔차블록 내의 잔차 신호를 주파수 도메인의 변환 계수로 변환한다. 변환부(140)는 잔차블록의 전체 크기를 변환 단위로 사용하여 잔차블록 내의 잔차 신호들을 변환할 수 있으며, 또는 잔차블록을 변환 영역 및 비변환 영역인 두 개의 서브블록으로 구분하여, 변환 영역 서브블록만 변환 단위로 사용하여 잔차 신호들을 변환할 수 있다. 여기서, 변환 영역 서브블록은 가로축 (혹은 세로축) 기준 1:1의 크기 비율을 가지는 두 개의 직사각형 블록 중 하나일 수 있다. 이런 경우, 서브블록 만을 변환하였음을 지시하는 플래그(cu_sbt_flag), 방향성(vertical/horizontal) 정보(cu_sbt_horizontal_flag) 및/또는 위치 정보(cu_sbt_pos_flag)가 부호화부(150)에 의해 부호화되어 영상 복호화 장치로 시그널링된다. 또한, 변환 영역 서브블록의 크기는 가로축 (혹은 세로축) 기준 1:3의 크기 비율을 가질 수 있으며, 이런 경우 해당 분할을 구분하는 플래그(cu_sbt_quad_flag)가 추가적으로 부호화부(150)에 의해 부호화되어 영상 복호화 장치로 시그널링된다. The transform unit 140 converts the residual signal in the residual block having pixel values in the spatial domain into transform coefficients in the frequency domain. The transform unit 140 may transform residual signals in the residual block using the total size of the residual block as a transform unit, or divide the residual block into two sub-blocks, which are transform regions and non-transform regions, Residual signals can be transformed using only a block as a transform unit. Here, the transform region subblock may be one of two rectangular blocks having a size ratio of 1:1 based on the horizontal axis (or vertical axis). In this case, a flag indicating that only the subblock has been transformed (cu_sbt_flag), directional (vertical/horizontal) information (cu_sbt_horizontal_flag), and/or location information (cu_sbt_pos_flag) are encoded by the encoder 150 and signaled to the video decoding apparatus. . In addition, the size of the transform region subblock may have a size ratio of 1:3 based on the horizontal axis (or vertical axis), and in this case, a flag (cu_sbt_quad_flag) that separates the division is additionally encoded by the encoder 150 to decode the image. Signaled to the device.

양자화부(145)는 변환부(140)로부터 출력되는 변환 계수들을 양자화하고, 양자화된 변환 계수들을 부호화부(150)로 출력한다.The quantization unit 145 quantizes the transform coefficients output from the transform unit 140 and outputs the quantized transform coefficients to the encoding unit 150.

부호화부(150)는 양자화된 변환 계수들을 CABAC(Context-based Adaptive Binary Arithmetic Code) 등의 부호화 방식을 사용하여 부호화함으로써 비트스트림을 생성한다. 부호화부(150)는 블록 분할과 관련된 CTU size, CU 분할 플래그, QT 분할 플래그, MTT 분할 방향, MTT 분할 타입 등의 정보를 부호화하여, 영상 복호화 장치가 영상 부호화 장치와 동일하게 블록을 분할할 수 있도록 한다.The encoding unit 150 generates a bitstream by encoding the quantized transform coefficients using an encoding method such as Context-based Adaptive Binary Arithmetic Code (CABAC). The encoder 150 encodes information such as a CTU size related to block division, a CU division flag, a QT division flag, an MTT division direction, and an MTT division type, so that the video decoding apparatus can divide the block in the same manner as the video encoding apparatus. To be there.

또한, 부호화부(150)는 현재블록이 인트라 예측에 의해 부호화되었는지 아니면 인터 예측에 의해 부호화되었는지 여부를 지시하는 예측 타입에 대한 정보를 부호화하고, 예측 타입에 따라 인트라 예측정보(즉, 인트라 예측 모드에 대한 정보) 또는 인터 예측정보(참조픽처 및 움직임벡터에 대한 정보)를 부호화한다.In addition, the encoder 150 encodes information on a prediction type indicating whether the current block is encoded by intra prediction or inter prediction, and intra prediction information (ie, intra prediction mode) according to the prediction type. Information) or inter prediction information (information on a reference picture and a motion vector) is encoded.

역양자화부(160)는 양자화부(145)로부터 출력되는 양자화된 변환 계수들을 역양자화하여 변환 계수들을 생성한다. 역변환부(165)는 역양자화부(160)로부터 출력되는 변환 계수들을 주파수 도메인으로부터 공간 도메인으로 변환하여 잔차블록을 복원한다.The inverse quantization unit 160 inverse quantizes the quantized transform coefficients output from the quantization unit 145 to generate transform coefficients. The inverse transform unit 165 converts transform coefficients output from the inverse quantization unit 160 from the frequency domain to the spatial domain to restore the residual block.

가산부(170)는 복원된 잔차블록과 예측부(120)에 의해 생성된 예측블록을 가산하여 현재블록을 복원한다. 복원된 현재블록 내의 픽셀들은 다음 순서의 블록을 인트라 예측할 때 참조 픽셀로서 사용된다.The addition unit 170 restores the current block by adding the reconstructed residual block and the prediction block generated by the prediction unit 120. The pixels in the reconstructed current block are used as reference pixels when intra-predicting the next block.

필터부(180)는 블록 기반의 예측 및 변환/양자화로 인해 발생하는 블록킹 아티팩트(blocking artifacts), 링잉 아티팩트(ringing artifacts), 블러링 아티팩트(blurring artifacts) 등을 줄이기 위해 복원된 픽셀들에 대한 필터링을 수행한다. 필터부(180)는 디블록킹 필터(182)와 SAO(Sample Adaptive Offset) 필터(184)를 포함할 수 있다.The filter unit 180 filters reconstructed pixels to reduce blocking artifacts, ringing artifacts, blurring artifacts, etc. that occur due to block-based prediction and transformation/quantization. Perform. The filter unit 180 may include a deblocking filter 182 and a sample adaptive offset (SAO) filter 184.

디블록킹 필터(180)는 블록 단위의 부호화/복호화로 인해 발생하는 블록킹 현상(blocking artifact)을 제거하기 위해 복원된 블록 간의 경계를 필터링하고, SAO 필터(184)는 디블록킹 필터링된 영상에 대해 추가적인 필터링을 수행한다. SAO 필터(184)는 손실 부호화(lossy coding)로 인해 발생하는 복원된 픽셀과 원본 픽셀 간의 차이를 보상하기 위해 사용되는 필터이다.The deblocking filter 180 filters the boundary between reconstructed blocks to remove blocking artifacts caused by block-based encoding/decoding, and the SAO filter 184 is additionally applied to the deblocking filtered image. Perform filtering. The SAO filter 184 is a filter used to compensate for a difference between a reconstructed pixel and an original pixel caused by lossy coding.

디블록킹 필터(182) 및 SAO 필터(184)를 통해 필터링된 복원블록은 메모리(190)에 저장된다. 한 픽처 내의 모든 블록들이 복원되면, 복원된 픽처는 이후에 부호화하고자 하는 픽처 내의 블록을 인터 예측하기 위한 참조 픽처로 사용된다.The reconstructed block filtered through the deblocking filter 182 and the SAO filter 184 is stored in the memory 190. When all blocks in one picture are reconstructed, the reconstructed picture is used as a reference picture for inter prediction of a block in a picture to be encoded later.

도 4는 본 개시의 기술들을 구현할 수 있는 영상 복호화 장치의 예시적인 블록도이다. 이하에서는 도 4를 참조하여 영상 복호화 장치와 이 장치의 하위 구성들에 대하여 설명하도록 한다.4 is an exemplary block diagram of an image decoding apparatus capable of implementing the techniques of the present disclosure. Hereinafter, an image decoding apparatus and sub-elements of the apparatus will be described with reference to FIG. 4.

영상 복호화 장치는 복호화부(410), 역양자화부(420), 역변환부(430), 예측부(440), 가산기(450), 필터부(460) 및 메모리(470)를 포함하여 구성될 수 있다. The image decoding apparatus may include a decoding unit 410, an inverse quantization unit 420, an inverse transform unit 430, a prediction unit 440, an adder 450, a filter unit 460, and a memory 470. have.

도 1의 영상 부호화 장치와 마찬가지로, 영상 복호화 장치의 각 구성요소는 하드웨어 또는 소프트웨어로 구현되거나, 하드웨어 및 소프트웨어의 결합으로 구현될 수 있다. 또한, 각 구성요소의 기능이 소프트웨어로 구현되고 마이크로프로세서가 각 구성요소에 대응하는 소프트웨어의 기능을 실행하도록 구현될 수도 있다.Like the image encoding apparatus of FIG. 1, each component of the image decoding apparatus may be implemented as hardware or software, or may be implemented as a combination of hardware and software. In addition, functions of each component may be implemented as software, and a microprocessor may be implemented to execute a function of software corresponding to each component.

복호화부(410)는 영상 부호화 장치로부터 수신한 비트스트림을 복호화하여 블록 분할과 관련된 정보를 추출함으로써 복호화하고자 하는 현재블록을 결정하고, 현재블록을 복원하기 위해 필요한 예측정보와 잔차신호에 대한 정보 등을 추출한다.The decoding unit 410 determines the current block to be decoded by decoding the bitstream received from the video encoding apparatus and extracting information related to block division, and information on prediction information and residual signals necessary to restore the current block, etc. Extract.

복호화부(410)는 SPS(Sequence Parameter Set) 또는 PPS(Picture Parameter Set)로부터 CTU size에 대한 정보를 추출하여 CTU의 크기를 결정하고, 픽처를 결정된 크기의 CTU로 분할한다. 그리고, CTU를 트리 구조의 최상위 레이어, 즉, 루트 노드로 결정하고, CTU에 대한 분할정보를 추출함으로써 트리 구조를 이용하여 CTU를 분할한다. The decoder 410 determines the size of the CTU by extracting information on the CTU size from a sequence parameter set (SPS) or a picture parameter set (PPS), and divides the picture into CTUs of the determined size. Then, the CTU is determined as the highest layer of the tree structure, that is, the root node, and the CTU is divided using the tree structure by extracting the partition information for the CTU.

예컨대, QTBTTT 구조를 사용하여 CTU를 분할하는 경우, 먼저 QT의 분할과 관련된 제1 플래그(QT_split_flag)를 추출하여 각 노드를 하위 레이어의 네 개의 노드로 분할한다. 그리고, QT의 리프 노드에 해당하는 노드에 대해서는 MTT의 분할과 관련된 제2 플래그(MTT_split_flag) 및 분할 방향(vertical / horizontal) 및/또는 분할 타입(binary / ternary) 정보를 추출하여 해당 리프 노드를 MTT 구조로 분할한다. 이를 통해 QT의 리프 노드 이하의 각 노드들을 BT 또는 TT 구조로 반복적으로(recursively) 분할한다.For example, in the case of splitting the CTU using the QTBTTT structure, a first flag (QT_split_flag) related to the splitting of the QT is first extracted, and each node is split into four nodes of a lower layer. And, for the node corresponding to the leaf node of QT, the second flag (MTT_split_flag) related to the splitting of the MTT and the splitting direction (vertical / horizontal) and/or split type (binary / ternary) information are extracted and the corresponding leaf node is MTT. Divide into structure Through this, each node below the leaf node of the QT is recursively divided into a BT or TT structure.

또 다른 예로서, QTBTTT 구조를 사용하여 CTU를 분할하는 경우, 먼저 CU의 분할 여부를 지시하는 CU 분할 플래그(split_cu_flag)를 추출하고, 해당 블록이 분할된 경우, QT 분할 플래그(split_qt_flag)를 추출한다. 분할 타입이 QT가 아니고 MTT인 경우, MTT 분할 방향(vertical 혹은 horizontal)을 나타내는 플래그(mtt_split_cu_vertical_flag) 및/또는 MTT 분할 타입(Binary 혹은 Ternary)을 나타내는 플래그(mtt_split_cu_binary_flag)를 추가적으로 추출한다. 분할 과정에서 각 노드는 0번 이상의 반복적인 QT 분할 후에 0번 이상의 반복적인 MTT 분할이 발생할 수 있다. 예컨대, CTU는 바로 MTT 분할이 발생하거나, 반대로 다수 번의 QT 분할만 발생할 수도 있다. As another example, when a CTU is split using a QTBTTT structure, first, a CU split flag indicating whether to split a CU (split_cu_flag) is extracted, and when the corresponding block is split, a QT split flag (split_qt_flag) is extracted. . If the split type is not QT but MTT, a flag indicating the MTT split direction (vertical or horizontal) (mtt_split_cu_vertical_flag) and/or a flag indicating the MTT split type (Binary or Ternary) (mtt_split_cu_binary_flag) is additionally extracted. In the partitioning process, each node may have zero or more repetitive MTT partitions after zero or more repetitive QT partitions. For example, in the CTU, MTT division may occur immediately, or, conversely, only multiple QT divisions may occur.

다른 예로서, QTBT 구조를 사용하여 CTU를 분할하는 경우, QT의 분할과 관련된 제1 플래그(QT_split_flag)를 추출하여 각 노드를 하위 레이어의 네 개의 노드로 분할한다. 그리고, QT의 리프 노드에 해당하는 노드에 대해서는 BT로 더 분할되는지 여부를 지시하는 분할 플래그(split_flag) 및 분할 방향 정보를 추출한다.As another example, when the CTU is divided using the QTBT structure, each node is divided into four nodes of a lower layer by extracting the first flag (QT_split_flag) related to the division of the QT. In addition, a split flag indicating whether or not the node corresponding to the leaf node of the QT is further split into BT and split direction information are extracted.

한편, 복호화부(410)는 트리 구조의 분할을 통해 복호화하고자 하는 현재블록을 결정하게 되면, 현재블록이 인트라 예측되었는지 아니면 인터 예측되었는지를 지시하는 예측 타입에 대한 정보를 추출한다. 예측 타입 정보가 인트라 예측을 지시하는 경우, 복호화부(410)는 현재블록의 인트라 예측정보(인트라 예측 모드)에 대한 신택스 요소를 추출한다. 예측 타입 정보가 인터 예측을 지시하는 경우, 복호화부(410)는 인터 예측정보에 대한 신택스 요소, 즉, 움직임벡터 및 그 움직임벡터가 참조하는 참조픽처를 나타내는 정보를 추출한다.On the other hand, when determining the current block to be decoded through division of the tree structure, the decoder 410 extracts information on a prediction type indicating whether the current block is intra predicted or inter predicted. When the prediction type information indicates intra prediction, the decoder 410 extracts a syntax element for intra prediction information (intra prediction mode) of the current block. When the prediction type information indicates inter prediction, the decoder 410 extracts a syntax element for the inter prediction information, that is, information indicating a motion vector and a reference picture referenced by the motion vector.

한편, 복호화부(410)는 잔차신호에 대한 정보로서 현재블록의 양자화된 변환계수들에 대한 정보를 추출한다.Meanwhile, the decoding unit 410 extracts information on quantized transform coefficients of the current block as information on the residual signal.

역양자화부(420)는 양자화된 변환계수들을 역양자화하고, 역변환부(430)는 역양자화된 변환계수들을 주파수 도메인으로부터 공간 도메인으로 역변환하여 잔차신호들을 복원함으로써 현재블록에 대한 잔차블록을 생성한다.The inverse quantization unit 420 inverse quantizes the quantized transform coefficients, and the inverse transform unit 430 inversely transforms the inverse quantized transform coefficients from the frequency domain to the spatial domain to restore residual signals to generate a residual block for the current block. .

또한, 역변환부(430)는 변환블록의 일부 영역(서브블록)만 역변환하는 경우, 변환블록의 서브블록만을 변환하였음을 지시하는 플래그(cu_sbt_flag), 서브블록의 방향성(vertical/horizontal) 정보(cu_sbt_horizontal_flag) 및/또는 서브블록의 위치 정보(cu_sbt_pos_flag)를 추출하여, 해당 서브블록의 변환계수들을 주파수 도메인으로부터 공간 도메인으로 역변환함으로써 잔차신호들을 복원하고, 역변환되지 않은 영역에 대해서는 잔차신호로 "0" 값을 채움으로써 현재블록에 대한 최종 잔차블록을 생성한다.In addition, when the inverse transform unit 430 inverse transforms only a partial region (subblock) of the transform block, a flag indicating that only the subblock of the transform block has been transformed (cu_sbt_flag), and the direction (vertical/horizontal) information of the subblock (cu_sbt_horizontal_flag) ) And/or sub-block location information (cu_sbt_pos_flag), and inverse transform coefficients of the sub-block from the frequency domain to the spatial domain to restore residual signals. By filling in, the final residual block for the current block is created.

예측부(440)는 인트라 예측부(442) 및 인터 예측부(444)를 포함할 수 있다. 인트라 예측부(442)는 현재블록의 예측 타입이 인트라 예측일 때 활성화되고, 인터 예측부(444)는 현재블록의 예측 타입이 인터 예측일 때 활성화된다.The prediction unit 440 may include an intra prediction unit 442 and an inter prediction unit 444. The intra prediction unit 442 is activated when the prediction type of the current block is intra prediction, and the inter prediction unit 444 is activated when the prediction type of the current block is inter prediction.

인트라 예측부(442)는 복호화부(410)로부터 추출된 인트라 예측 모드에 대한 신택스 요소로부터 복수의 인트라 예측 모드 중 현재블록의 인트라 예측 모드를 결정하고, 인트라 예측 모드에 따라 현재블록 주변의 참조 픽셀들을 이용하여 현재블록을 예측한다.The intra prediction unit 442 determines an intra prediction mode of the current block among a plurality of intra prediction modes from a syntax element for the intra prediction mode extracted from the decoder 410, and a reference pixel around the current block according to the intra prediction mode. The current block is predicted by using them.

인터 예측부(444)는 복호화부(410)로부터 추출된 인트라 예측 모드에 대한 신택스 요소를 이용하여 현재블록의 움직임벡터와 그 움직임벡터가 참조하는 참조픽처를 결정하고, 움직임벡터와 참조픽처를 이용하여 현재블록을 예측한다.The inter prediction unit 444 determines a motion vector of the current block and a reference picture referenced by the motion vector using the syntax element for the intra prediction mode extracted from the decoding unit 410, and uses the motion vector and the reference picture. To predict the current block.

가산기(450)는 역변환부로부터 출력되는 잔차블록과 인터 예측부 또는 인트라 예측부로부터 출력되는 예측블록을 가산하여 현재블록을 복원한다. 복원된 현재블록 내의 픽셀들은 이후에 복호화할 블록을 인트라 예측할 때의 참조픽셀로서 활용된다.The adder 450 restores the current block by adding the residual block output from the inverse transform unit and the prediction block output from the inter prediction unit or the intra prediction unit. The pixels in the reconstructed current block are used as reference pixels for intra prediction of a block to be decoded later.

필터부(460)는 디블록킹 필터(462) 및 SAO 필터(464)를 포함할 수 있다. 디블록킹 필터(462)는 블록 단위의 복호화로 인해 발생하는 블록킹 현상(blocking artifact)를 제거하기 위해, 복원된 블록 간의 경계를 디블록킹 필터링한다. SAO 필터(464)는 손실 부호화(lossy coding)으로 인해 발생하는 복원된 픽셀과 원본 픽셀 간의 차이를 보상하기 위해, 디블록킹 필터링 이후의 복원된 블록에 대해 추가적인 필터링을 수행한다. 디블록킹 필터(462) 및 SAO 필터(464)를 통해 필터링된 복원블록은 메모리(470)에 저장된다. 한 픽처 내의 모든 블록들이 복원되면, 복원된 픽처는 이후에 부호화하고자 하는 픽처 내의 블록을 인터 예측하기 위한 참조 픽처로 사용된다.The filter unit 460 may include a deblocking filter 462 and an SAO filter 464. The deblocking filter 462 performs deblocking filtering on the boundary between reconstructed blocks in order to remove blocking artifacts occurring due to block-by-block decoding. The SAO filter 464 performs additional filtering on the reconstructed block after deblocking filtering in order to compensate for the difference between the reconstructed pixel and the original pixel caused by lossy coding. The reconstructed block filtered through the deblocking filter 462 and the SAO filter 464 is stored in the memory 470. When all blocks in one picture are reconstructed, the reconstructed picture is used as a reference picture for inter prediction of a block in a picture to be encoded later.

HEVC(High Efficiency Video Coding)는 CU의 무손실(lossless) 부호화/복호화를 위해 표 1과 같이 CU-level의 신택스를 지원한다.High Efficiency Video Coding (HEVC) supports CU-level syntax as shown in Table 1 for lossless encoding/decoding of CU.

Figure pat00001
Figure pat00001

cu_transquant_bypass_flag는 해당 CU에 무손실 부호화/복호화가 bypass되는지 여부를 지시하는 신택스로서, cu_transquant_bypass_flag=1이면 해당 CU에 변환(transform) 과정, 양자화(quantization) 과정 및 인-루프 필터링(DBF, SAO) 과정이 적용되지 않는다. 즉, cu_transquant_bypass_flag=1이면 부호화되는 데이터는 계수(coefficients)가 아닌 차이(difference) 값이 된다.cu_transquant_bypass_flag is a syntax indicating whether lossless encoding/decoding is bypassed in the corresponding CU.If cu_transquant_bypass_flag=1, a transform process, quantization process, and in-loop filtering (DBF, SAO) process are applied to the corresponding CU. It doesn't work. That is, if cu_transquant_bypass_flag=1, the encoded data becomes a difference value, not coefficients.

HEVC에서는 CU가 다수 개의 TU로 나누어지고, 하나의 TU는 세 개의 component(Y, Cb, Cr)로 구성되므로, cu_transquant_bypass_flag=1이면 모든 TU의 세가지 component 블록들에 대한 변환 과정, 양자화 과정 및 인-루프 필터링 과정이 생략되며, 인트라 또는 인터 예측 후의 차이 값이 부호화된다.In HEVC, since a CU is divided into a plurality of TUs, and one TU is composed of three components (Y, Cb, Cr), if cu_transquant_bypass_flag = 1, the transformation process, quantization process and in- The loop filtering process is omitted, and the difference value after intra or inter prediction is encoded.

cu_transquant_bypass_flag=1인 경우에, 잔차 부호화 방법은 HEVC의 일반적인 계수 부호화 방법과 동일하다. 다만, 특정 조건하에서는 계수(잔차)를 부호화하기에 앞서 잔차 값들을 rotation하는 과정이 수행된 후에 일반적인 계수 부호화 방법이 적용된다. 여기서, 특정 조건은 'HLS에서 정의되는 transform_skip_rotation_enabled_flag가 “on”이면서, 블록이 인트라로 예측되었으며, TU의 사이즈가 4x4인 경우'이다.When cu_transquant_bypass_flag=1, the residual encoding method is the same as the general coefficient encoding method of HEVC. However, under certain conditions, a general coefficient encoding method is applied after a process of rotating residual values is performed prior to encoding a coefficient (residual). Here, the specific condition is'if transform_skip_rotation_enabled_flag defined in HLS is “on”, the block is predicted to be intra, and the size of the TU is 4x4.'

잔차 값들을 rotation하는 방법은 수학식 1과 같다.A method of rotating the residual values is shown in Equation 1.

Figure pat00002
Figure pat00002

수학식 1에서, r은 rotation 전의 잔차 값을 의미하고, r'는 rotation 후의 잔차 값을 의미하며, nTbS는 정사각형 모양을 가지는 TB의 크기(size)를 의미한다. In Equation 1, r denotes a residual value before rotation, r'denotes a residual value after rotation, and nTbS denotes the size of a TB having a square shape.

일반적인 계수 코딩을 위한 신택스들은 아래와 같다.Syntaxes for general coefficient coding are as follows.

1. last_sig_coeff_x_prefix,1.last_sig_coeff_x_prefix,

2. last_sig_coeff_y_prefix,2. last_sig_coeff_y_prefix,

3. last_sig_coeff_x_suffix,3. last_sig_coeff_x_suffix,

4. last_sig_coeff_y_suffix,4. last_sig_coeff_y_suffix,

5. coded_sub_block_flag,5. coded_sub_block_flag,

6. sig_coeff_flag,6. sig_coeff_flag,

7. coeff_abs_level_greater1_flag,7. coeff_abs_level_greater1_flag,

8. coeff_abs_level_greater2_flag,8. coeff_abs_level_greater2_flag,

9. coeff_sign_flag,9. coeff_sign_flag,

10. coeff_abs_level_remaining.10. coeff_abs_level_remaining.

앞의 네 개의 신택스 요소들(last_sig_coeff_x_prefix, last_sig_coeff_y_prefix, last_sig_coeff_x_suffix 및, last_sig_coeff_y_suffix)은 계수블록 내에 스캔 순서 상 마지막에 위치하는 비-제로 계수(마지막 유효 계수, last significant coefficient)의 위치를 지시하는 신택스들이다. 마지막 유효 계수는 위치에 대한 x 성분(last_sig_coeff_x_prefix, last_sig_coeff_x_suffix)과 y 성분(last_sig_coeff_y_prefix, last_sig_coeff_y_suffix)이 별도로 표시되며, 각 성분은 접두어(prefix) 및 접미어(suffix)로 나뉘어 표현된다.The preceding four syntax elements (last_sig_coeff_x_prefix, last_sig_coeff_y_prefix, last_sig_coeff_x_suffix, and last_sig_coeff_y_suffix) are non-zero coefficients (last significant coefficients) positioned last in the scan order in the coefficient block. For the last effective coefficient, the x component (last_sig_coeff_x_prefix, last_sig_coeff_x_suffix) and the y component (last_sig_coeff_y_prefix, last_sig_coeff_y_suffix) for the position are separately displayed, and each component is divided into a prefix and a suffix.

다섯 번째 신택스 요소(coded_sub_block_flag)는 계수블록 내에 위치하는 4x4 크기의 서브블록들이 비-제로 계수를 하나 이상 포함하는지 여부를 지시하는 플래그이다. coded_sub_block_flag는 스캔 순서 상, 마지막 유효 계수가 존재하는 마지막 유효 서브블록(last significant sub-block)에 선행하는 서브블록에 한하여 시그널링된다. 여기서, coded_sub_block_flag=0은 해당 서브블록 내 모든 계수들이 “0”임을 나타내며, coded_sub_block_flag=1은 해당 서브블록 내에 하나 이상의 비-제로 계수가 존재함을 나타낸다.The fifth syntax element (coded_sub_block_flag) is a flag indicating whether subblocks of 4x4 size located in the coefficient block include one or more non-zero coefficients. The coded_sub_block_flag is signaled only for subblocks preceding the last significant sub-block in which the last significant coefficient exists in the scan order. Here, coded_sub_block_flag=0 indicates that all coefficients in the subblock are “0”, and coded_sub_block_flag=1 indicates that at least one non-zero coefficient exists in the subblock.

여섯 번째 신택스 요소(sig_coeff_flag)는 서브블록 내 계수들 각각에 대해 해당 계수가 비-제로인지 또는 제로인지 여부를 지시하는 플래그이다. sig_coeff_flag=0은 해당 계수가 제로임을 나타내며, sig_coeff_flag=1은 해당 계수가 비-제로임을 나타낸다. sig_coeff_flag는 coded_sub_block_flag=1인 경우에 해당 서브블록 내 모든 계수들 각각에 대하여 시그널링된다.The sixth syntax element sig_coeff_flag is a flag indicating whether the corresponding coefficient is non-zero or zero for each of the coefficients in the subblock. sig_coeff_flag=0 indicates that the coefficient is zero, and sig_coeff_flag=1 indicates that the coefficient is non-zero. sig_coeff_flag is signaled for each of all coefficients in a corresponding subblock when coded_sub_block_flag=1.

일곱 번째 신택스 요소(coeff_abs_level_greater1_flag)는 계수 레벨의 절대 값이 1보다 큰지 여부를 지시하는 플래그이며, 여덟 번째 신택스 요소(coeff_abs_level_greater2_flag)는 계수 레벨의 절대 값이 2보다 큰지 여부를 지시하는 플래그이다. 아홉 번째 신택스 요소(coeff_sign_flag)는 계수 레벨의 부호(positive 또는 negative)를 지시하는 플래그이며, 열 번째 신택스 요소(coeff_abs_level_remaining)는 2보다 큰 계수 레벨의 절대 값에 대한 나머지 값(remainder, 즉 계수 레벨의 절대 값 - 3)을 나타내는 신택스이다.The seventh syntax element (coeff_abs_level_greater1_flag) is a flag indicating whether the absolute value of the coefficient level is greater than 1, and the eighth syntax element (coeff_abs_level_greater2_flag) is a flag indicating whether the absolute value of the coefficient level is greater than 2. The ninth syntax element (coeff_sign_flag) is a flag indicating the sign (positive or negative) of the coefficient level, and the tenth syntax element (coeff_abs_level_remaining) is the residual value for the absolute value of the coefficient level greater than 2 (remainder, that is, the coefficient level). Absolute value-3).

이와 같은 열 개의 신택스 요소들을 이용하여 잔차 값들이 무손실로 부호화/복호화될 수 있다.Using these ten syntax elements, residual values may be losslessly encoded/decoded.

본 명세서에서는 현재블록(CU)의 무손실 부호화/복호화를 위한 방법들이 제안된다. 동영상을 부호화/복호화하는 과정 중에 발생하는 일반적인 손실(lossy) 과정들은 생략된다. 또한, 본 명세서에서는 무손실 부호화/복호화에 적합한 신택스 구조 및 이를 시그널링하는 방법들이 제안된다.In this specification, methods for lossless encoding/decoding of a current block (CU) are proposed. General lossy processes occurring during the process of encoding/decoding a video are omitted. In addition, in this specification, a syntax structure suitable for lossless encoding/decoding and methods of signaling the same are proposed.

도 5에 도시된 바와 같이, 무손실 복원 방법을 구현할 수 있는 영상 복호화 장치는 복호화부(410), 결정부(510) 및 복원부(520)를 포함하여 구성될 수 있다.As shown in FIG. 5, an image decoding apparatus capable of implementing the lossless restoration method may include a decoding unit 410, a determination unit 510, and a restoration unit 520.

영상 부호화 장치는 현재블록이 무손실로 부호화되었는지 여부를 판단하고, 그 판단 결과를 제1신택스로 부호화하여 시그널링할 수 있다. 복호화부(410)는 비트스트림으로부터 제1신택스를 복호화할 수 있다(S610).The image encoding apparatus may determine whether the current block is losslessly encoded, and may signal the determination result by encoding the determination result with the first syntax. The decoder 410 may decode the first syntax from the bitstream (S610).

제1신택스는 현재블록의 잔차샘플들에 대해 변환 과정이 스킵(skip) 또는 바이패스(bypass)(이하, '스킵'으로 지칭한다)되었는지 여부만을 지시하거나, 변환 과정과 양자화 과정이 모두 스킵 또는 바이패스되었는지 여부를 지시할 수도 있다. 제1신택스가 변환 과정의 스킵 여부만을 지시하는 경우에, 제1신택스는 transform_skip_flag로 구현될 수 있다. 제1신택스가 변환 과정과 양자화 과정 모두 스킵되었는지 여부를 지시하는 경우에, 제1신택스는 cu_transquant_bypass_flag로 구현될 수 있다. The first syntax indicates only whether the transform process is skipped or bypassed (hereinafter referred to as'skip') for residual samples of the current block, or both the transform process and the quantization process are skipped or It can also indicate whether or not it has been bypassed. When the first syntax only indicates whether to skip the transformation process, the first syntax may be implemented as transform_skip_flag. When the first syntax indicates whether both the transformation process and the quantization process are skipped, the first syntax may be implemented as cu_transquant_bypass_flag.

transform_skip_flag=1은 잔차샘플들에 대한 변환 과정이 스킵되었음을 나타내며, transform_skip_flag=0은 잔차샘플들에 대한 변환 과정이 스킵되지 않았음을 나타낼 수 있다. cu_transquant_bypass_flag=1은 잔차샘플들에 대한 변환 과정과 양자화 과정이 모두 스킵되었음을 나타내며, cu_transquant_bypass_flag=0은 잔차샘플들에 대한 변환 과정과 양자화 과정이 스킵되지 않았음을 나타낼 수 있다.transform_skip_flag=1 indicates that a transform process for residual samples is skipped, and transform_skip_flag=0 may indicate that a transform process for residual samples is not skipped. cu_transquant_bypass_flag=1 indicates that both the transform process and the quantization process for the residual samples are skipped, and cu_transquant_bypass_flag=0 may indicate that the conversion process and the quantization process for the residual samples are not skipped.

결정부(510)는 복호화된 제1신택스에 따라, 무손실 코딩 모드와 손실 코딩 모드 중에서 어느 하나를 결정할 수 있다(S620, S630, S660).The determiner 510 may determine one of a lossless coding mode and a lossy coding mode according to the decoded first syntax (S620, S630, and S660).

제1신택스가 변환 과정이 스킵되었음을 지시하는 경우에는(S620) 무손실 코딩 모드가 결정될 수 있다(S630). 이와 달리, 제1신택스가 변환 과정이 스킵되지 않았음을 지시하는 경우에는(S620) 손실 코딩 모드(일반적인 계수 코딩)가 결정될 수 있다(S640). 여기서, 무손실 코딩 모드란 잔차샘플들을 무손실로 복호화하는 모드를 의미하며, 손실 코딩 모드란 잔차샘플들을 일반적인 방법으로 복호화하는 모드를 의미할 수 있다.When the first syntax indicates that the conversion process is skipped (S620), a lossless coding mode may be determined (S630). In contrast, when the first syntax indicates that the transformation process is not skipped (S620), a lossy coding mode (general coefficient coding) may be determined (S640). Here, the lossless coding mode refers to a mode in which residual samples are losslessly decoded, and the lossy coding mode may refer to a mode in which residual samples are decoded in a general manner.

실시형태에 따라, 무손실 코딩 모드를 결정하는 과정에는 제2신택스(tu_cbf)가 더 이용될 수도 있다. 제2신택스는 현재블록의 변환블록에 비-제로 계수가 하나 이상 포함되는지 여부를 지시하는 정보로서, 영상 부호화 장치로부터 영상 복호화 장치로 시그널링될 수 있다. 이와 같은 경우, 영상 복호화 장치는 제2신택스가 포함됨을 지시하면서 제1신택스가 스킵됨을 지시하는 경우에 무손실 코딩 모드를 결정할 수 있다.Depending on the embodiment, the second syntax (tu_cbf) may be further used in the process of determining the lossless coding mode. The second syntax is information indicating whether one or more non-zero coefficients are included in the transform block of the current block, and may be signaled from the image encoding apparatus to the image decoding apparatus. In this case, when indicating that the second syntax is included and that the first syntax is skipped, the video decoding apparatus may determine the lossless coding mode.

영상 부호화 장치는 제1신택스가 변환 과정이 스킵되었음을 지시하는 경우에, 무손실 코딩 모드 신택스들을 부호화하여 시그널링할 수 있다. 이와 달리, 영상 부호화 장치는 제1신택스가 변환 과정이 스킵되지 않았음을 지시하는 경우에 손실 코딩 모드 신택스들을 부호화하여 시그널링할 수 있다.When the first syntax indicates that the transformation process has been skipped, the image encoding apparatus may encode and signal the lossless coding mode syntaxes. In contrast, when the first syntax indicates that the transformation process has not been skipped, the video encoding apparatus may encode and signal the lossy coding mode syntaxes.

무손실 코딩 모드 신택스들은 잔차샘플들을 무손실로 복호화하기 위한 신택스들을 의미하며, 손실 코딩 모드 신택스들은 잔차샘플들을 일반적인 방법으로 복호화하기 위한 신택스들을 의미할 수 있다.Lossless coding mode syntaxes mean syntaxes for lossless decoding of residual samples, and lossy coding mode syntaxes may mean syntaxes for decoding residual samples in a general manner.

복호화부(410)는 무손실 코딩 모드가 결정되는 경우에(S630) 무손실 코딩 모드 신택스들을 복호화하며(S640), 복원부(520)는 무손실 코딩 모드 신택스들에 의존하여 잔차샘플들을 무손실로 복원할 수 있다(S650). 이와 달리, 복호화부(410)는 손실 코딩 모드가 결정되는 경우에(S660) 손실 코딩 모드 신택스들을 복호화할 수 있으며(S670), 복원부(520)는 손실 코딩 모드 신택스들에 의존하여 잔차샘플들을 복원할 수 있다(S650).When the lossless coding mode is determined (S630), the decoding unit 410 decodes the lossless coding mode syntaxes (S640), and the reconstruction unit 520 can losslessly restore the residual samples depending on the lossless coding mode syntaxes. Yes (S650). In contrast, when the lossy coding mode is determined (S660), the decoding unit 410 may decode the lossy coding mode syntaxes (S670), and the recovery unit 520 may calculate residual samples depending on the lossy coding mode syntaxes. It can be restored (S650).

실시예 1Example 1

실시예 1은 현재블록이 무손실로 부호화되었는지 여부를 직접적으로 시그널링하는 방법이다.Embodiment 1 is a method of directly signaling whether a current block is losslessly encoded.

먼저, 현재블록의 무손실 부호화/복호화를 지원하기 위한 인에이블 플래그(예: transquant_bypass_enabled_flag)가 영상 부호화 장치로부터 영상 복호화 장치로 시그널링될 수 있다.First, an enable flag (eg, transquant_bypass_enabled_flag) for supporting lossless encoding/decoding of the current block may be signaled from the image encoding device to the image decoding device.

transquant_bypass_enabled_flag는 HLS(high level syntax)로서, SPS(sequence parameter set), PPS(picture parameter set), VPS(video parameter set), DPS(decoder parameter set) 중 하나 이상의 위치에서 정의될 수 있다.transquant_bypass_enabled_flag is a high level syntax (HLS), and may be defined at one or more of a sequence parameter set (SPS), a picture parameter set (PPS), a video parameter set (VPS), and a decoder parameter set (DPS).

PPS에서 정의되는 transquant_bypass_enabled_flag에 대한 일 예가 표 2에 나타나 있다.An example of transquant_bypass_enabled_flag defined in PPS is shown in Table 2.

Figure pat00003
Figure pat00003

transquant_bypass_enabled_flag가 “on”인 경우에, 현재블록 별로 해당 현재블록이 무손실로 부호화되었는지 여부를 지시하는 제1신택스(예: cu_transquant_bypass_flag)가 영상 부호화 장치로부터 영상 복호화 장치로 시그널링될 수 있다.When transquant_bypass_enabled_flag is “on”, a first syntax (eg, cu_transquant_bypass_flag) indicating whether the corresponding current block is losslessly encoded for each current block may be signaled from the image encoding device to the image decoding device.

cu_transquant_bypass_flag는 transquant_bypass_enabled_flag가 “on”인 경우에 시그널링되거나(표 3), cu_cbf=1이면서 transquant_bypass_enabled_flag가 “on”인 경우에 시그널링될 수도 있다(표 4).cu_transquant_bypass_flag may be signaled when transquant_bypass_enabled_flag is “on” (Table 3), or when cu_cbf=1 and transquant_bypass_enabled_flag is “on” (Table 4).

Figure pat00004
Figure pat00004

Figure pat00005
Figure pat00005

cu_cbf는 해당 현재블록의 component(Y, Cb, Cr)를 위한 블록 내에 비-제로 레벨을 가지는 계수 또는 잔차가 하나 이상 포함되는지 여부를 지시하는 신택스이다. cu_cbf=0은 현재블록의 모든 component를 위한 블록 내 계수 또는 잔차 값들이 all-zero임을 나타내며, cu_cbf=1은 현재블록의 component를 위한 블록들 중에서 하나 이상의 블록 내에 비-제로 계수 또는 잔차가 포함됨을 나타낸다. cu_cbf=0인 경우에는 모든 잔차 값들이 all-zero이므로, 변환 및 양자화 과정이 생략되어 cu_transquant_bypass_flag의 시그널링이 필요하지 않을 수 있다. cu_cbf is a syntax indicating whether one or more coefficients or residuals having a non-zero level are included in the block for the component (Y, Cb, Cr) of the corresponding current block. cu_cbf=0 indicates that coefficients or residual values in the block for all components of the current block are all-zero, and cu_cbf=1 indicates that non-zero coefficients or residuals are included in one or more blocks among blocks for components of the current block. Show. When cu_cbf=0, since all residual values are all-zero, the conversion and quantization process may be omitted, and signaling of cu_transquant_bypass_flag may not be required.

인-루프 필터링(DBF, SAO, ALF)의 수행 여부를 나타내는 정보도 영상 부호화 장치로부터 영상 복호화 장치로 시그널링될 수 있다. 인-루프 필터의 수행 여부를 나타내는 정보는 표 3과 같이 transquant_bypass_enabled_flag가 “on”인 경우에 시그널링되거나, 표 4와 같이 cu_cbf=1이면서 transquant_bypass_enabled_flag가 “on”인 경우에 시그널링될 수도 있다. 후자의 경우, cu_cbf=0인 경우에 인-루프 필터의 수행 여부를 나타내는 정보의 시그널링이 생략될 수도 있다.Information indicating whether in-loop filtering (DBF, SAO, ALF) is performed may also be signaled from the image encoding device to the image decoding device. Information indicating whether the in-loop filter is performed may be signaled when transquant_bypass_enabled_flag is “on” as shown in Table 3, or when cu_cbf=1 and transquant_bypass_enabled_flag is “on” as shown in Table 4. In the latter case, when cu_cbf=0, signaling of information indicating whether the in-loop filter is performed may be omitted.

영상 복호화 장치는 비트스트림으로부터 transquant_bypass_enabled_flag를 추출하여 무손실 복호화가 가능한지 여부를 판단할 수 있다(S710). 또한, 영상 복호화 장치는 transquant_bypass_enabled_flag=1인 경우에(S720) cu_transquant_bypass_flag를 비트스트림으로부터 추출하여(S730) 현재블록이 무손실 부호화되었는지 여부를 판단할 수 있다.The video decoding apparatus may determine whether lossless decoding is possible by extracting transquant_bypass_enabled_flag from the bitstream (S710). In addition, when transquant_bypass_enabled_flag=1 (S720), the image decoding apparatus may extract cu_transquant_bypass_flag from the bitstream (S730) to determine whether the current block is losslessly encoded.

cu_transquant_bypass_flag이 “on”인 경우에는 변환 과정, 양자화 과정 및 인-루프 필터링 과정이 모두 생략되어 현재블록에 대한 무손실 복호화가 수행될 수 있다.When cu_transquant_bypass_flag is “on”, the transform process, quantization process, and in-loop filtering process are all omitted, so that lossless decoding of the current block may be performed.

현재블록이 무손실로 부호화/복호화되는 경우에는(cu_transquant_bypass_flag=1) 변환 과정과 양자화 과정을 위한 CU-level의 모든 신택스들은 시그널링되지 않을 수 있다. 아래는 CU-level의 변환 과정과 양자화 과정을 수행하기 위한 신택스들의 목록이며, cu_transquant_bypass_flag=1인 경우에 해당 신택스들은 시그널링없이 “off” 값으로 유도 또는 추론될 수 있다.When the current block is losslessly encoded/decoded (cu_transquant_bypass_flag=1), all CU-level syntaxes for the transformation process and quantization process may not be signaled. The following is a list of syntaxes for performing the CU-level transformation process and the quantization process, and when cu_transquant_bypass_flag=1, the corresponding syntaxes can be derived or inferred as “off” values without signaling.

1. 변환 과정 관련 신택스들1. Syntaxes related to the conversion process

1) sub-block transform: cu_sbt_flag, cu_sbt_quad_flag, cu_sbt_horizontal_flag, cu_sbt_pos_flag1) sub-block transform: cu_sbt_flag, cu_sbt_quad_flag, cu_sbt_horizontal_flag, cu_sbt_pos_flag

2) primary transform: tu_mts_idx2) primary transform: tu_mts_idx

3) secondary transform: lfnst_idx3) secondary transform: lfnst_idx

4) transform skip: transform_skip_flag4) transform skip: transform_skip_flag

2. 양자화 과정 관련 신택스들2. Syntaxes related to the quantization process

1) delta qp: cu_qp_delta_abs, cu_qp_delta_sign_flag1) delta qp: cu_qp_delta_abs, cu_qp_delta_sign_flag

transform_skip_flag는 현재블록에 대해 변환 과정이 생략(스킵)되는지 여부를 지시하는 신택스이므로, 현재블록이 무손실로 부호화/복호화되는 경우에는 transform_skip_flag가 시그널링되지 않고 “1” 값으로 유도될 수 있다.Since transform_skip_flag is a syntax indicating whether the transformation process is skipped (skipped) for the current block, when the current block is losslessly encoded/decoded, transform_skip_flag may not be signaled and may be derived with a value of “1”.

현재블록이 무손실로 부호화/복호화되는 경우에는 손실 효과를 가지는 코딩 툴들에 대한 신택스들도 시그널링되지 않을 수 있다. 아래는 손실 효과를 가지는 코딩 툴들을 수행하기 위한 신택스들의 목록이며, cu_transquant_bypass_flag=1인 경우에 해당 신택스들은 시그널링없이 “off” 값으로 유도 또는 추론될 수 있다.When the current block is losslessly encoded/decoded, syntax for coding tools having a lossy effect may not be signaled. The following is a list of syntaxes for performing coding tools having a lossy effect, and when cu_transquant_bypass_flag=1, the corresponding syntaxes can be derived or inferred as “off” values without signaling.

3. 손실 효과를 가지는 코딩 툴들 관련 신택스3. Syntax related to coding tools with loss effect

1) joint cb and cr coding: tu_joint_cbcr_residual1) joint cb and cr coding: tu_joint_cbcr_residual

현재블록이 무손실로 부호화/복호화되는 경우에는 손실 효과를 가지는 코딩 툴들 중에서 별도의 신택스가 없는 코딩 툴들이 수행되지 않을 수 있다. 즉, 손실 효과를 가지되 별도의 신택스가 없는 코딩 툴들이 부호화/복호화 과정 중에 생략될 수 있다. 아래는 손실 효과를 가지되 별도의 신택스가 없는 코딩 툴들의 목록이다. When the current block is losslessly coded/decoded, coding tools without a separate syntax may not be performed among coding tools having a lossy effect. That is, coding tools that have a loss effect but do not have a separate syntax may be omitted during the encoding/decoding process. Below is a list of coding tools with lossy effects but no separate syntax.

4. 손실 효과를 가지되 신택스가 없는 코딩 툴들4. Coding tools with lossy effect but no syntax

1) sign hiding1) sign hiding

2) RDOQ (rate-distortion optimization quantization)2) RDOQ (rate-distortion optimization quantization)

실시예 2Example 2

실시예 2는 무손실 부호화/복호화를 위한 잔차 코딩 모드를 결정하는 방법이다.Embodiment 2 is a method of determining a residual coding mode for lossless coding/decoding.

일반적인 손실 부호화(손실 모드)의 경우, 변환 과정을 거치면서 공간 도메인 값들이 주파수 도메인 값으로 변경된다. 공간 도메인은 저주파수 성분과 고주파수 성분으로 구분되며, 저주파수 성분은 블록의 좌상단에 위치하고, 고주파수 성분은 블록의 우하단에 위치한다. 변환 과정에 의해, 대부분의 고주파수 성분은 zero 값을 취하며, 저주파수 성분 중에서 일부가 비-제로 값을 취하게 된다. 따라서, 손실 모드를 위한 계수 코딩은 블록의 좌상단에 위치한 비-제로 성분을 효율적으로 부호화하기 위한 방식을 이용하게 된다.In the case of general lossy coding (loss mode), spatial domain values are changed to frequency domain values while undergoing a transformation process. The spatial domain is divided into a low-frequency component and a high-frequency component, and the low-frequency component is located at the upper left of the block, and the high-frequency component is located at the lower right of the block. By the conversion process, most of the high frequency components take zero values, and some of the low frequency components take non-zero values. Accordingly, coefficient coding for the lossy mode uses a method for efficiently coding a non-zero component located at the upper left of a block.

이와 달리, 무손실 부호화(무손실 모드)의 경우, 변환 과정과 양자화 과정이 생략되므로, 예측(인트라 예측 또는 인터 예측) 후의 차이 값들이 블록 내에 산재되어 있을 수 있다. 따라서, 손실 모드를 위한 계수 코딩 방식이 부적합할 수 있다. In contrast, in the case of lossless encoding (lossless mode), since a transformation process and a quantization process are omitted, difference values after prediction (intra prediction or inter prediction) may be scattered in the block. Therefore, the coefficient coding scheme for the lossy mode may be inappropriate.

실시예 2에서는, 현재블록이 무손실 모드로 부호화된 경우에 무손실 코딩 모드를 선택 또는 결정하는 방법을 제안한다. 실시예 2는 루마블록에 대한 실시예와 크로마블록에 대한 실시예로 구분될 수 있다.In Embodiment 2, a method of selecting or determining a lossless coding mode when a current block is coded in a lossless mode is proposed. Embodiment 2 can be divided into an embodiment for a luma block and an embodiment for a chroma block.

실시예 2-1: 루마블록Example 2-1: Luma block

영상 부호화 장치는 제1신택스(transform_skip_flag 또는 cu_transquant_bypass_flag)를 부호화하여 영상 복호화 장치로 시그널링할 수 있다. 영상 복호화 장치는 제1신택스를 복호화하고, 복호화된 제1신택스를 이용하여 현재블록의 루마블록이 무손실 모드로 부호화되었는지 여부를 판단할 수 있다(S830).The image encoding apparatus may encode the first syntax (transform_skip_flag or cu_transquant_bypass_flag) and signal the first syntax to the image decoding apparatus. The image decoding apparatus may decode the first syntax and determine whether the luma block of the current block is encoded in the lossless mode by using the decoded first syntax (S830).

제1신택스가 “on”인 경우에는 루마블록이 무손실 모드로 부호화되었으므로, 무손실 코딩 모드(residual_ts_coding)가 결정될 수 있다(S840). 이와 달리, 제1신택스가 “off”인 경우에는 루마블록이 손실 모드로 부호화되었으므로, 손실 코딩 모드(residual_coding)가 결정될 수 있다(S850). 여기서, residual_ts_coding는 (변환 과정이 스킵된) 공간 도메인을 위한 잔차 코딩 방식을 의미하며, residual_coding은 일반적인(변환 과정이 적용된) 주파수 도메인을 위한 계수 코딩 방식을 의미한다.When the first syntax is “on”, since the luma block is encoded in a lossless mode, a lossless coding mode (residual_ts_coding) may be determined (S840). In contrast, when the first syntax is “off”, since the luma block is encoded in the lossy mode, a lossy coding mode (residual_coding) may be determined (S850). Here, residual_ts_coding refers to a residual coding method for a spatial domain (where a transformation process is skipped), and residual_coding refers to a coefficient coding method for a general frequency domain (to which a transformation process has been applied).

실시형태에 따라, 루마블록의 무손실 코딩 모드를 결정하는 과정에는 제2신택스(tu_cbf_luma)가 더 이용될 수도 있다. Depending on the embodiment, the second syntax (tu_cbf_luma) may be further used in the process of determining the lossless coding mode of the luma block.

영상 부호화 장치는 제2신택스를 부호화하여 영상 복호화 장치로 시그널링하며, 영상 복호화 장치는 비트스트림으로부터 제2신택스를 복호화할 수 있다(S810). The image encoding apparatus encodes the second syntax and signals it to the image decoding apparatus, and the image decoding apparatus may decode the second syntax from the bitstream (S810).

tu_cbf_luma=0인 경우에(S820) 루마블록에는 all-zero 계수들만이 포함되어 있으므로, 계수 코딩이 수행되지 않으며, 해당 루마블록이 “0” 값의 계수들로 채워질 수 있다. 이와 달리, tu_cbf_luma=1이면서(S820) 제1신택스가 “on”인 경우에는(S830) 무손실 코딩 모드(residual_ts_coding)가 결정되고(S840), tu_cbf_luma=1이면서(S820) 제1신택스가 “off”인 경우에는(S830) 손실 코딩 모드(residual_coding)가 결정될 수 있다(S850).When tu_cbf_luma=0 (S820), since only all-zero coefficients are included in the luma block, coefficient coding is not performed, and the corresponding luma block may be filled with coefficients having a value of “0”. In contrast, when tu_cbf_luma=1 (S820) and the first syntax is “on” (S830), a lossless coding mode (residual_ts_coding) is determined (S840), and tu_cbf_luma=1 (S820) and the first syntax is “off” In the case of (S830), a lossy coding mode (residual_coding) may be determined (S850).

실시예 2-1에 대한 신택스 구조가 표 5에 나타나 있다.The syntax structure for Example 2-1 is shown in Table 5.

Figure pat00006
Figure pat00006

한편, 앞서 설명된 바와 같이, 무손실 모드가 적용되는 경우에 transform_skip_flag가 “1” 값으로 유도될 수 있다. 이와 같은 예에 대한 신택스 구조가 표 6에 나타나 있다.Meanwhile, as described above, when the lossless mode is applied, transform_skip_flag may be derived to a value of “1”. The syntax structure for this example is shown in Table 6.

Figure pat00007
Figure pat00007

실시예 2-2: 크로마블록Example 2-2: Chroma block

영상 부호화 장치는 제1신택스(transform_skip_flag 또는 cu_transquant_bypass_flag)를 부호화하여 영상 복호화 장치로 시그널링할 수 있다. 영상 복호화 장치는 제1신택스를 이용하여 현재블록의 크로마블록이 무손실 모드로 부호화되었는지 여부를 판단할 수 있다(S930).The image encoding apparatus may encode the first syntax (transform_skip_flag or cu_transquant_bypass_flag) and signal the first syntax to the image decoding apparatus. The image decoding apparatus may determine whether the chroma block of the current block is encoded in the lossless mode by using the first syntax (S930).

제1신택스가 “on”인 경우에는 크로마블록이 무손실 모드로 부호화되었으므로, 무손실 코딩 모드(residual_ts_coding)가 결정될 수 있다(S940). 이와 달리, 제1신택스가 “off”인 경우에는 크로마블록이 손실 모드로 부호화되었으므로, 손실 코딩 모드(residual_coding)가 결정될 수 있다(S950). When the first syntax is “on”, since the chroma block is encoded in a lossless mode, a lossless coding mode (residual_ts_coding) may be determined (S940). In contrast, when the first syntax is “off”, since the chroma block is encoded in a lossy mode, a lossy coding mode (residual_coding) may be determined (S950).

실시형태에 따라, 크로마블록의 무손실 코딩 모드를 결정하는 과정에는 제2신택스(tu_cbf_cb 또는 tu_cbf_cr)가 더 이용될 수도 있다. Depending on the embodiment, the second syntax (tu_cbf_cb or tu_cbf_cr) may be further used in the process of determining the lossless coding mode of the chroma block.

영상 부호화 장치는 제2신택스를 부호화하여 영상 복호화 장치로 시그널링하며, 영상 복호화 장치는 비트스트림으로부터 제2신택스를 복호화할 수 있다(S910). The image encoding apparatus encodes the second syntax and signals the signal to the image decoding apparatus, and the image decoding apparatus may decode the second syntax from the bitstream (S910).

tu_cbf_cb=0인 경우에(S920) 크로마블록에는 all-zero 계수들만이 포함되어 있으므로, 계수 코딩이 수행되지 않고 해당 크로마블록이 “0” 값의 계수들로 채워질 수 있다. 이와 달리, tu_cbf_cb=1이면서(S920) 제1신택스가 “on”인 경우에는(S930) 무손실 코딩 모드(residual_ts_coding)가 결정되고(S940), tu_cbf_cb=1이면서(S920) 제1신택스가 “off”인 경우에는(S930) 손실 코딩 모드(residual_coding)가 결정될 수 있다(S950).When tu_cbf_cb=0 (S920), since only all-zero coefficients are included in the chroma block, coefficient coding is not performed and the corresponding chroma block may be filled with coefficients having a value of “0”. In contrast, when tu_cbf_cb=1 (S920) and the first syntax is “on” (S930), a lossless coding mode (residual_ts_coding) is determined (S940), and tu_cbf_cb=1 (S920) and the first syntax is “off” In the case of (S930), a lossy coding mode (residual_coding) may be determined (S950).

실시예 2-2에 대한 신택스 구조가 표 7에 나타나 있다.The syntax structure for Example 2-2 is shown in Table 7.

Figure pat00008
Figure pat00008

실시예 3Example 3

실시예 3은 잔차샘플들을 무손실 코딩 모드(residual_ts_coding)로 복원하는 방법이다.Embodiment 3 is a method of restoring residual samples in a lossless coding mode (residual_ts_coding).

무손실 코딩 모드와 손실 코딩 모드의 가장 큰 차이점은 (1) 마지막 non-zero 계수의 위치정보를 시그널링하는지 여부와, (2) 스캐닝 순서로 요약될 수 있다.The biggest difference between the lossless coding mode and the lossy coding mode can be summarized as (1) whether the position information of the last non-zero coefficient is signaled, and (2) the scanning order.

(1) 마지막 non-zero 계수의 위치정보를 시그널링하는지 여부(1) Whether to signal the location information of the last non-zero coefficient

손실 코딩 모드에서는 스캔 순서 상 변환블록에 마지막으로 위치하는 non-zero(last non-zero) 계수의 위치정보가 최우선으로 시그널링되며, last non-zero 계수 이후에 위치하는 계수들의 값이 all-zero라는 가정 하에, 나머지 다른 신택스들이 시그널링된다. 이는, 블록 내 좌상측에는 non-zero 계수들이 위치하고 블록 내 우하측에는 zero 계수들이 위치하는 특성 때문이다.In the lossy coding mode, the position information of the last non-zero (last non-zero) coefficient located in the transform block in the scan order is signaled with the highest priority, and the values of the coefficients located after the last non-zero coefficient are all-zero. Under the assumption, the rest of the other syntaxes are signaled. This is because non-zero coefficients are located in the upper left of the block and zero coefficients are located in the lower right of the block.

그러나, 현재블록이 무손실 모드로 부호화된 경우에는 non-zero 계수들이 블록 내에 고루 분포되어 있을 확률이 높으므로 다른 방식을 취할 필요성이 있다. 즉, 무손실 코딩 모드에서는 last non-zero 계수의 위치정보가 시그널링되지 않는다.However, when the current block is coded in the lossless mode, there is a high probability that non-zero coefficients are evenly distributed within the block, so it is necessary to take another method. That is, in the lossless coding mode, the position information of the last non-zero coefficient is not signaled.

(2) 스캐닝 순서(2) Scanning procedure

손실 코딩 모드에서는 diagonal-up scanning 순서의 역순으로 아래에서 설명될 coded_sub_block_flag 및 sig_coeff_flag가 시그널링된다. 이와 달리, 무손실 코딩 모드에서는 diagonal-up scanning 순서로(diagonal-up scanning 순서의 정순으로) coded_sub_block_flag 및 sig_coeff_flag가 시그널링된다.In the lossy coding mode, coded_sub_block_flag and sig_coeff_flag to be described below are signaled in the reverse order of the diagonal-up scanning order. In contrast, in the lossless coding mode, coded_sub_block_flag and sig_coeff_flag are signaled in the diagonal-up scanning order (in the correct order of the diagonal-up scanning order).

diagonal-up scanning 순서에 대한 일 예가 도 11에 나타나 있다. 일점 쇄선으로 구분된 블록들은 현재블록에 포함된 서브블록들을 나타내며, 실선으로 구분된 단위 블록들은 서브블록들 각각에 포함된 샘플(변환계수 또는 잔차샘플)를 나타낸다.An example of the diagonal-up scanning sequence is shown in FIG. 11. Blocks separated by dashed-dotted lines indicate subblocks included in the current block, and unit blocks separated by solid lines indicate samples (transformation coefficients or residual samples) included in each of the subblocks.

무손실 코딩 모드에서는 도 11의 번호 순서대로 무손실 코딩 모드에 이용되는 신택스들이 시그널링될 수 있다. 즉, coded_sub_block_flag는 화살표로 연결되는 번호(1 내지 16) 순서대로 시그널링되며, sig_coeff_flag는 잔차샘플들에 표시된 번호(0 내지 255) 순서대로 시그널링된다.In the lossless coding mode, syntaxes used in the lossless coding mode may be signaled in the order of numbers of FIG. 11. That is, coded_sub_block_flag is signaled in the order of numbers (1 to 16) connected by arrows, and sig_coeff_flag is signaled in the order of numbers (0 to 255) indicated in residual samples.

무손실 코딩 모드에 이용되는 신택스들(무손실 코딩 모드 신택스들)은 아래와 같다.Syntaxes (lossless coding mode syntaxes) used in the lossless coding mode are as follows.

1. coded_sub_block_flag(제3신택스): 변환블록에 포함된 다수 개의 서브블록들에 비-제로 계수가 하나 이상 포함되는지 여부(서브블록들에 포함된 계수들이 all-zero인지 여부)를 지시하는 신택스이다. coded_sub_block_flag=0은 all-zero를 나타내며, coded_sub_block_flag=1은 비-제로 계수가 하나 이상 포함됨을 나타낸다. coded_sub_block_flag가 존재하지 않는 경우에는 “1” 값으로 추론될 수 있다.1.coded_sub_block_flag (third syntax): This is a syntax indicating whether one or more non-zero coefficients are included in a plurality of subblocks included in the transform block (whether coefficients included in the subblocks are all-zero). . coded_sub_block_flag=0 indicates all-zero, and coded_sub_block_flag=1 indicates that one or more non-zero coefficients are included. If coded_sub_block_flag does not exist, it can be inferred as a value of “1”.

2. sig_coeff_flag(제4신택스): 서브블록(coded_sub_block_flag=1로 지시된 대상 서브블록) 내에 포함된 계수들의 레벨(계수 레벨)이 zero인지 여부를 지시하는 신택스이다. sig_coeff_flag=0은 해당 계수 레벨이 zero임을 나타내며, sig_coeff_flag=1은 해당 계수 레벨이 non-zero임을 나타낸다.2. sig_coeff_flag (fourth syntax): This is a syntax indicating whether the level (coefficient level) of coefficients included in the subblock (target subblock indicated by coded_sub_block_flag=1) is zero. sig_coeff_flag=0 indicates that the coefficient level is zero, and sig_coeff_flag=1 indicates that the coefficient level is non-zero.

3. coeff_sign_flag: 계수 레벨의 부호를 지시하는 신택스이다. coeff_sign_flag=0은 양수(positive)를 나타내며, coeff_sign_flag=1은 음수(negative)를 나타낸다. 3. coeff_sign_flag: This is a syntax indicating the sign of the coefficient level. coeff_sign_flag=0 represents a positive number, and coeff_sign_flag=1 represents a negative number.

4. abs_level_gtx_flag(x=1): 계수 레벨의 절대 값이 x(=1)보다 큰지 여부를 지시하는 신택스이다.4. abs_level_gtx_flag(x=1): This is a syntax indicating whether the absolute value of the coefficient level is greater than x(=1).

5. par_level_flag: 계수 레벨의 절대 값이 짝수 또는 홀수인지 여부를 지시하는 신택스이다.5. par_level_flag: This is a syntax indicating whether the absolute value of the coefficient level is even or odd.

6. abs_level_gtx_flag(x=3, 5, 7, 9): 계수 레벨의 절대 값이 x(=3, 5, 7, 9)보다 큰지 여부를 지시하는 신택스이다.6. abs_level_gtx_flag(x=3, 5, 7, 9): This is a syntax indicating whether the absolute value of the coefficient level is greater than x (= 3, 5, 7, 9).

7. abs_remainder: 9보다 큰 계수 레벨의 절대 값의 나머지 값을 표현하는 신택스이다.7. abs_remainder: This syntax expresses the remaining value of the absolute value of the coefficient level greater than 9.

이와 같이, 무손실 코딩 모드 신택스들에는 last non-zero 계수의 위치를 지시하는 신택스들(last_sig_coeff_x_prefix, last_sig_coeff_y_prefix, last_sig_coeff_x_suffix 및, last_sig_coeff_y_suffix)이 포함되지 않는다. 즉, 무손실 코딩 모드가 적용되는 경우에는 마지막 non-zero 계수의 위치정보가 시그널링되지 않는다.In this way, the syntaxes indicating the position of the last non-zero coefficient (last_sig_coeff_x_prefix, last_sig_coeff_y_prefix, last_sig_coeff_x_suffix, and last_sig_coeff_y_suffix) are not included in the lossless coding mode syntax. That is, when the lossless coding mode is applied, the position information of the last non-zero coefficient is not signaled.

영상 부호화 장치는 i-번째 서브블록에 non-zero 계수가 포함되는지 여부를 판단하고, 그 결과를 coded_sub_block_flag[i]로 하여 시그널링할 수 있다. 영상 복호화 장치는 비트스트림으로부터 coded_sub_block_flag[i]를 복호화할 수 있다(S1010). The video encoding apparatus may determine whether a non-zero coefficient is included in the i-th subblock, and signal the result as coded_sub_block_flag[i]. The video decoding apparatus may decode coded_sub_block_flag[i] from the bitstream (S1010).

coded_sub_block_flag[i]는 모든 서브블록들에 대해 시그널링될 수 있다. 만약, 스캔 순서 상, 가장 마지막 서브블록으로부터 두 번째 서브블록까지의 모든 서브블록들에 대한 coded_sub_block_flag[i]가 모두 “0”이라면, 첫 번째 서브블록에 대한 coded_sub_block_flag[i]가 시그널링되지 않고 “1” 값으로 유도될 수도 있다. coded_sub_block_flag[i] may be signaled for all subblocks. If, in the scan order, coded_sub_block_flag[i] for all subblocks from the last subblock to the second subblock are all “0”, coded_sub_block_flag[i] for the first subblock is not signaled and “1” It can also be derived by value.

영상 복호화 장치는 coded_sub_block_flag[i]=0인 경우에 모든 서브블록들에 대한 판단이 완료되었는지 여부를 판단한다(S1094). 서브블록들에 대한 판단이 완료되지 않은 경우에는 다음 번째(i++)의 서브블록에 대해 S1010 과정이 다시 수행되며, 모든 서브블록들에 대한 판단이 완료된 경우에는 무손실 코딩 모드가 종료될 수 있다.When coded_sub_block_flag[i]=0, the video decoding apparatus determines whether determination of all subblocks has been completed (S1094). If the determination on the subblocks is not completed, the process S1010 is again performed for the next (i++) subblock, and when the determination on all subblocks is completed, the lossless coding mode may be terminated.

영상 부호화 장치는 coded_sub_block_flag[i]=1인 대상 서브블록 내 j-번째 계수 또는 잔차샘플이 non-zero인지 여부를 판단하고, 그 결과를 sig_coeff_flag[j]로 하여 시그널링할 수 있다. 영상 복호화 장치는 coded_sub_block_flag[i]=1인 경우에(S1020) sig_coeff_flag[j]를 비트스트림으로부터 복호화할 수 있다(S1030). The video encoding apparatus may determine whether the j-th coefficient or residual sample in the target subblock with coded_sub_block_flag[i]=1 is non-zero, and signal the result as sig_coeff_flag[j]. When coded_sub_block_flag[i]=1 (S1020), the video decoding apparatus may decode sig_coeff_flag[j] from the bitstream (S1030).

sig_coeff_flag[j]는 대상 서브블록 내 모든 계수들에 대해 시그널링될 수 있다. 만약, 스캔 순서 상, 가장 마지막 계수로부터 두 번째 계수까지의 모든 계수들에 대한 sig_coeff_flag[j]가 모두 “0”이라면, 첫 번째 계수에 대한 sig_coeff_flag[j]가 시그널링되지 않고 “1” 값으로 유도될 수도 있다. sig_coeff_flag[j] may be signaled for all coefficients in the target subblock. If sig_coeff_flag[j] for all coefficients from the last coefficient to the second coefficient in the scan order are all “0”, sig_coeff_flag[j] for the first coefficient is not signaled and is derived as a value of “1”. It could be.

영상 부호화 장치는 sig_coeff_flag[j]=1인 경우에 해당 계수 레벨의 절대 값이 x(=1)보다 큰지 여부와 해당 계수의 부호를 판단하고, 그 결과를 coeff_sign_flag[j] 및 abs_level_gtx_flag[j](x=1)로 하여 시그널링할 수 있다. 영상 복호화 장치는 sig_coeff_flag[j]=1인 경우에 coeff_sign_flag[j] 및 abs_level_gtx_flag[j](x=1)를 비트스트림으로부터 복호화할 수 있다(S1050).When sig_coeff_flag[j]=1, the video encoding apparatus determines whether the absolute value of the coefficient level is greater than x(=1) and the sign of the coefficient, and determines the result of coeff_sign_flag[j] and abs_level_gtx_flag[j]( It can be signaled with x=1). The video decoding apparatus may decode coeff_sign_flag[j] and abs_level_gtx_flag[j] (x=1) from the bitstream when sig_coeff_flag[j]=1 (S1050).

coeff_sign_flag는 CABAC(context-adaptive binary arithmetic coding) 방식으로 부호화될 수 있다. BAC는 binary(0 또는 1) 값에 기초한 산술 코딩 방법으로서, “0”에 대한 확률 값과 “1”에 대한 확률 값을 가지고 있으면서 해당 신택스를 “0”에 대한 확률 값 또는 “1”에 대한 확률 값으로 산술 코딩하는 방법이다. 이 경우에, 해당 신택스의 주변정보(context)를 이용하여 1개 이상의 BAC 중에서 하나의 확률 모델을 결정하는 방식이 CABAC이다.coeff_sign_flag may be encoded using context-adaptive binary arithmetic coding (CABAC). BAC is an arithmetic coding method based on binary (0 or 1) values. It has a probability value for "0" and a probability value for "1", and the syntax is changed to a probability value for "0" or a probability value for "1". It is a method of arithmetic coding with probability values. In this case, a method of determining one probability model from among one or more BACs using the context of the corresponding syntax is CABAC.

예를 들어, CABAC에서는, “0”에 대한 확률 값 및 “1”에 대한 확률 값을 가진 확률 모델이 n개 존재하고, 해당 신택스의 주변정보를 이용하여 n개의 확률 모델들 중에서 어느 하나를 선택하게 된다.For example, in CABAC, there are n probability models with a probability value of “0” and a probability value of “1”, and any one of n probability models is selected using the surrounding information of the syntax. It is done.

coeff_sign_flag는 I-슬라이스(0 내지 5), B-슬라이스(6 내지 11) 및 P-슬라이스(12 내지 17) 각각에 대해 6개의 확률 모델을 가지고 있다. 여기서, 0 내지 17의 번호는 확률 모델들 각각의 인덱스 값을 의미한다. 총 18개의 확률 모델들 중에서, I-슬라이스, B-슬라이스 및 P-슬라이스 각각에 대해 3개의 확률 모델이 인트라 bdpcm 모드 용으로 사용되며, I-슬라이스, B-슬라이스 및 P-슬라이스 각각에 대해 3개의 확률 모델이 인트라 bdpcm 모드 이외의 모드 용으로 사용된다. coeff_sign_flag has 6 probability models for each of I-slices (0 to 5), B-slices (6 to 11) and P-slices (12 to 17). Here, numbers 0 to 17 denote index values of each of the probability models. Of a total of 18 probability models, three probability models for each of I-slice, B-slice and P-slice are used for intra bdpcm mode, and 3 for each of I-slice, B-slice and P-slice. The two probabilistic models are used for modes other than the intra bdpcm mode.

예를 들어, 인트라 bdpcm 모드 용도의 I-슬라이스에 대해 3번째 내지 5번째 확률 모델이 사용되며, 인트라 bdpcm 모드 이외의 용도의 I-슬라이스에 대해서는 0번째 내지 2번째 확률 모델이 사용될 수 있다. 인트라 bdpcm 모드 이외의 용도의 I-슬라이스에 대한 3개의 확률 모델들(0번째 내지 2번째) 중에서 하나의 확률 모델을 선택하는 기준은 해당 신택스의 주변정보이다.For example, 3rd to 5th probability models may be used for I-slices for intra bdpcm mode, and 0th to 2nd probability models may be used for I-slices for purposes other than intra bdpcm mode. The criterion for selecting one probability model from among three probability models (0th to 2nd) for the I-slice for purposes other than the intra bdpcm mode is the surrounding information of the corresponding syntax.

coeff_sign_flag의 경우에는 우측에 인접한 잔차의 coeff_sign_flag 값과 하측에 인접한 잔차의 coeff_sign_flag 값을 합한 값이 context 값으로 사용된다. 예컨대, 해당 잔차의 우측에 인접한 잔차의 coeff_sign_flag 값이 “0”이고 하측에 인접한 잔차의 coeff_sign_flag 값이 “1”이면, 그 합계가 “1”이 되며, “1” 값을 기준으로 1번째 확률 모델이 해당 잔차의 coeff_sign_flag를 위한 확률 모델로 선택된다. 다른 예로, 해당 잔차의 우측에 인접한 잔차의 coeff_sign_flag 값이 “1”이고 하측에 인접한 잔차의 coeff_sign_flag 값이 “1”이면, 그 합계가 “2”가 되며, “2” 값을 기준으로 2번째 확률 모델이 해당 잔차의 coeff_sign_flag를 위한 확률 모델로 선택된다. 이를 종합하면, 해당 잔차의 우측에 인접한 잔차의 coeff_sign_flag 값과 하측에 인접한 잔차의 coeff_sign_flag 값을 합산한 값이 0 내지 2의 범위 내에 존재하므로 0번째, 1번째 및 2번째 확률 모델 중에서 어느 하나가 해당 잔차의 확률 모델로 선택된다. 결과적으로, 선택된 확률 모델의 확률 값으로 해당 신택스가 부호화되게 된다.In the case of coeff_sign_flag, the sum of the coeff_sign_flag value of the residual adjacent to the right and the coeff_sign_flag value of the residual adjacent to the lower side is used as the context value. For example, if the coeff_sign_flag value of the residual adjacent to the right of the corresponding residual is “0” and the coeff_sign_flag value of the residual adjacent to the lower side is “1”, the sum becomes “1”, and the first probability model based on the value of “1” This residual is selected as a probabilistic model for coeff_sign_flag. As another example, if the coeff_sign_flag value of the residual adjacent to the right of the corresponding residual is "1" and the coeff_sign_flag value of the residual adjacent to the lower side is "1", the sum is "2", and the second probability based on the value of "2" The model is selected as a probabilistic model for the coeff_sign_flag of the corresponding residual. In sum, since the sum of the coeff_sign_flag value of the residual adjacent to the right side of the residual and the coeff_sign_flag value of the residual adjacent to the lower side is within the range of 0 to 2, any one of the 0th, 1st and 2nd probability models corresponds to It is chosen as a probabilistic model of the residuals. As a result, the syntax is encoded as a probability value of the selected probability model.

영상 부호화 장치는 j-번째 계수 레벨의 절대 값이 홀수인지 또는 짝수인지 여부를 판단하고, 그 결과를 par_level_flag[j]로 하여 시그널링할 수 있다. 영상 복호화 장치는 j-번째 계수 레벨의 절대 값이 1 보다 큰지 여부를 판단하고(S1060), 레벨의 절대 값이 1 보다 큰 경우에 par_level_flag[j]를 비트스트림으로부터 복호화하여(S1070) 해당 계수 레벨의 절대 값이 홀수인지 또는 짝수인지 여부를 판단할 수 있다.The video encoding apparatus may determine whether the absolute value of the j-th coefficient level is odd or even, and signal the result as par_level_flag[j]. The image decoding apparatus determines whether the absolute value of the j-th coefficient level is greater than 1 (S1060), and when the absolute value of the level is greater than 1, par_level_flag[j] is decoded from the bitstream (S1070), and the corresponding coefficient level It can be determined whether the absolute value of is odd or even.

영상 복호화 장치는 i-번째 서브블록 내 모든 계수들에 대한 판단이 완료되었는지 여부를 판단하고(S1080), 계수들에 대한 판단이 완료되지 않은 경우에는 다음 번째(j++)의 계수에 대해 S1030 과정 내지 S1070 과정을 수행한다. 이러한 과정은 i-번째 서브블록 내 모든 계수들에 대한 판단이 완료될 때까지 반복적으로 수행될 수 있다. The video decoding apparatus determines whether the determination of all coefficients in the i-th subblock has been completed (S1080), and when the determination of the coefficients is not completed, the process S1030 to the next (j++) coefficient. Perform the process S1070. This process may be repeatedly performed until determination of all coefficients in the i-th subblock is completed.

영상 부호화 장치는 해당 계수 레벨의 절대 값이 x(=1, 3, 5, 7)보다 큰지 여부를 판단하고, 그 결과를 abs_level_gtx_flag[j](x=3, 5, 7, 9)로 하여 시그널링할 수 있다. 영상 복호화 장치는 해당 계수 레벨의 절대 값이 x(=1, 3, 5, 7)보다 큰 경우에(S1082) abs_level_gtx_flag[j](x=3, 5, 7, 9)를 비트스트림으로부터 복호화할 수 있다(S1084). The video encoding apparatus determines whether the absolute value of the coefficient level is greater than x (=1, 3, 5, 7), and signals the result as abs_level_gtx_flag[j] (x=3, 5, 7, 9). can do. When the absolute value of the coefficient level is greater than x (=1, 3, 5, 7) (S1082), the video decoding apparatus decodes abs_level_gtx_flag[j] (x=3, 5, 7, 9) from the bitstream. Can be (S1084).

구체적으로, 영상 복호화 장치는 해당 계수 레벨의 절대 값이 1 보다 큰 경우에 abs_level_gtx_flag[j](x=3)을 복호화하고, 해당 계수 레벨의 절대 값이 3 보다 큰 경우에 abs_level_gtx_flag[j](x=5)을 복호화하며, 해당 계수 레벨의 절대 값이 5 보다 큰 경우에 abs_level_gtx_flag[j](x=7)을 복호화하고, 해당 계수 레벨의 절대 값이 7 보다 큰 경우에 abs_level_gtx_flag[j](x=9)을 복호화할 수 있다.Specifically, the image decoding apparatus decodes abs_level_gtx_flag[j] (x=3) when the absolute value of the coefficient level is greater than 1, and abs_level_gtx_flag[j](x =5), and when the absolute value of the coefficient level is greater than 5, abs_level_gtx_flag[j](x=7) is decoded, and when the absolute value of the coefficient level is greater than 7, abs_level_gtx_flag[j](x =9) can be decrypted.

영상 복호화 장치는 i-번째 서브블록 내 모든 계수들에 대한 절대 값 판단이 완료되었는지 여부를 판단하고(S1086), 계수들에 대한 판단이 완료되지 않은 경우에는 다음 번째(j++)의 계수에 대해 S1082 과정과 S1084 과정을 수행한다. 이러한 과정은 i-번째 서브블록 내 모든 계수들에 대한 판단이 완료될 때까지 반복적으로 수행될 수 있다.The image decoding apparatus determines whether absolute value determination for all coefficients in the i-th subblock has been completed (S1086), and when the determination of the coefficients is not completed, the next coefficient (j++) is S1082. The process and S1084 process are performed. This process may be repeatedly performed until determination of all coefficients in the i-th subblock is completed.

영상 부호화 장치는 j-번째 계수 레벨의 절대 값이 x(= 9)보다 큰지 여부를 판단하고, j-번째 계수 레벨의 절대 값이 9 보다 큰 경우에 j-번째 계수 레벨의 절대 값에서 9를 뺀 나머지 값을 abs_remainder[j]로 하여 시그널링할 수 있다.The video encoding apparatus determines whether the absolute value of the j-th coefficient level is greater than x (= 9), and when the absolute value of the j-th coefficient level is greater than 9, 9 is determined from the absolute value of the j-th coefficient level. Signaling can be performed by subtracting the remaining value as abs_remainder[j].

영상 복호화 장치는 j-번째 계수 레벨의 절대 값이 9 보다 큰 경우에(S1088) abs_remainder[j]를 비트스트림으로부터 복호화하여(S1088) j-번째 계수 레벨의 절대 값을 파악할 수 있다. When the absolute value of the j-th coefficient level is greater than 9 (S1088), the image decoding apparatus may determine the absolute value of the j-th coefficient level by decoding abs_remainder[j] from the bitstream (S1088).

영상 복호화 장치는 i-번째 서브블록 내 모든 계수들에 대한 절대 값 판단이 완료되었는지 여부를 판단하고(S1092), 계수들에 대한 판단이 완료되지 않은 경우에는 다음 번째(j++)의 계수에 대해 S1088 과정과 S1090 과정을 수행한다. 이러한 과정은 i-번째 서브블록 내 모든 계수들에 대한 판단이 완료될 때까지 반복적으로 수행될 수 있다.The image decoding apparatus determines whether absolute value determination for all coefficients in the i-th subblock has been completed (S1092), and when the determination of the coefficients is not completed, the next coefficient (j++) is S1088. The process and S1090 process are performed. This process may be repeatedly performed until determination of all coefficients in the i-th subblock is completed.

모든 계수들에 대한 판단이 완료되면, 영상 복호화 장치는 모든 서브블록들에 대한 판단이 완료되었는지 여부를 판단한다(S1094). 서브블록들에 대한 판단이 완료되지 않은 경우에는 다음 번째(i++)의 서브블록에 대해 이상에서 설명된 과정들이 다시 수행되며, 모든 서브블록들에 대한 판단이 완료된 경우에는 무손실 코딩 모드가 종료될 수 있다.When the determination of all the coefficients is completed, the image decoding apparatus determines whether the determination of all the subblocks has been completed (S1094). If the determination on the subblocks is not completed, the processes described above are performed again for the next subblock (i++), and if the determination on all subblocks is completed, the lossless coding mode may be terminated. have.

이상의 설명은 본 실시예의 기술 사상을 예시적으로 설명한 것에 불과한 것으로서, 본 실시예가 속하는 기술 분야에서 통상의 지식을 가진 자라면 본 실시예의 본질적인 특성에서 벗어나지 않는 범위에서 다양한 수정 및 변형이 가능할 것이다. 따라서, 본 실시예들은 본 실시예의 기술 사상을 한정하기 위한 것이 아니라 설명하기 위한 것이고, 이러한 실시예에 의하여 본 실시예의 기술 사상의 범위가 한정되는 것은 아니다. 본 실시예의 보호 범위는 아래의 청구범위에 의하여 해석되어야 하며, 그와 동등한 범위 내에 있는 모든 기술 사상은 본 실시예의 권리범위에 포함되는 것으로 해석되어야 할 것이다.The above description is merely illustrative of the technical idea of the present embodiment, and those of ordinary skill in the technical field to which the present embodiment belongs will be able to make various modifications and variations without departing from the essential characteristics of the present embodiment. Accordingly, the present embodiments are not intended to limit the technical idea of the present embodiment, but to explain the technical idea, and the scope of the technical idea of the present embodiment is not limited by these embodiments. The scope of protection of this embodiment should be interpreted by the following claims, and all technical ideas within the scope equivalent thereto should be construed as being included in the scope of the present embodiment.

120, 440: 예측부 130: 감산기
170, 450: 가산기 180, 460: 필터부
120, 440: prediction unit 130: subtractor
170, 450: adder 180, 460: filter unit

Claims (14)

현재블록의 잔차샘플들을 무손실(lossless)로 복원 방법으로서,
상기 잔차샘플들에 대한 변환 과정이 스킵(skip)되었는지 여부를 지시하는 제1신택스에 따라, 무손실 코딩 모드와 손실(lossy) 코딩 모드 중에서 어느 하나를 결정하는 단계;
상기 무손실 코딩 모드가 결정되는 경우, 비트스트림으로부터 복호화되는 무손실 코딩 모드 신택스들에 의존하여, 상기 잔차샘플들을 복원하는 단계를 포함하는, 무손실 복원 방법.
As a lossless restoration method for the residual samples of the current block,
Determining any one of a lossless coding mode and a lossy coding mode according to a first syntax indicating whether a conversion process for the residual samples has been skipped;
And restoring the residual samples depending on lossless coding mode syntaxes decoded from a bitstream when the lossless coding mode is determined.
제1항에 있어서,
상기 결정하는 단계는,
상기 비트스트림으로부터 복호화된 제2신택스가 상기 현재블록의 변환블록에 비-제로(non-zero) 계수가 하나 이상 포함됨을 지시하고, 상기 제1신택스가 스킵됨을 지시하는 경우에, 상기 무손실 코딩 모드를 결정하는, 무손실 복원 방법.
The method of claim 1,
The determining step,
When the second syntax decoded from the bitstream indicates that at least one non-zero coefficient is included in the transform block of the current block and indicates that the first syntax is skipped, the lossless coding mode To determine the lossless restoration method.
제1항에 있어서,
상기 무손실 코딩 모드 신택스들은,
스캔 순서 상, 상기 현재블록의 변환블록에 마지막으로 위치하는 비-제로 계수의 위치 신택스들을 포함하지 않는, 무손실 복원 방법.
The method of claim 1,
The lossless coding mode syntaxes are:
In the scan order, the non-zero coefficient position syntax that is last located in the transform block of the current block is not included.
제1항에 있어서,
상기 무손실 코딩 모드 신택스들은,
상기 현재블록의 변환블록에 포함된 서브블록들 중에서, 스캔 순서 상 첫 번째 서브블록을 제외한 나머지 서브블록들에 비-제로 계수가 하나 이상 포함되는지 여부를 지시하는 제3신택스; 및
상기 제3신택스가 포함됨을 지시하는 대상 서브블록 내 계수들 중에서, 상기 스캔 순서 상 첫 번째 계수를 제외한 나머지 계수들이 비-제로인지 여부를 지시하는 제4신택스를 포함하는, 무손실 복원 방법.
The method of claim 1,
The lossless coding mode syntaxes are:
A third syntax indicating whether one or more non-zero coefficients are included in subblocks other than the first subblock in scan order among subblocks included in the transform block of the current block; And
And a fourth syntax indicating whether coefficients other than the first coefficient in the scan order are non-zero among coefficients in the target subblock indicating that the third syntax is included.
제4항에 있어서,
상기 첫 번째 서브블록에 대한 제3신택스는,
복호화되지 않고, 포함됨을 지시하는 값으로 유도되는, 무손실 복원 방법.
The method of claim 4,
The third syntax for the first subblock is,
A lossless recovery method that is not decoded and is derived with a value indicating that it is included.
제4항에 있어서,
상기 첫 번째 계수에 대한 제4신택스는,
복호화되지 않고, 비-제로임을 지시하는 값으로 유도되는, 무손실 복원 방법.
The method of claim 4,
The fourth syntax for the first coefficient is,
A lossless recovery method that is not decoded and is derived with a value indicating non-zero.
제4항에 있어서,
상기 제3신택스 및 상기 제4신택스는,
diagonal-up 스캐닝 순서에 따라 복호화되는, 무손실 복원 방법.
The method of claim 4,
The third syntax and the fourth syntax,
A lossless recovery method that is decoded according to the diagonal-up scanning order.
현재블록의 잔차샘플들을 무손실(lossless)로 복원하는 영상 복호화 장치로서,
상기 잔차샘플들에 대한 변환 과정이 스킵(skip)되었는지 여부를 지시하는 제1신택스에 따라, 무손실 코딩 모드와 손실 코딩 모드 중에서 어느 하나를 결정하는 결정부;
상기 무손실 코딩 모드가 결정되는 경우, 비트스트림으로부터 복호화되는 무손실 코딩 모드 신택스들에 의존하여, 상기 잔차샘플들을 복원하는 복원부를 포함하는, 영상 복호화 장치.
As an image decoding apparatus that restores the residual samples of the current block losslessly,
A determination unit determining one of a lossless coding mode and a lossy coding mode according to a first syntax indicating whether a conversion process for the residual samples is skipped;
When the lossless coding mode is determined, the video decoding apparatus comprising a reconstruction unit for reconstructing the residual samples depending on the lossless coding mode syntax decoded from the bitstream.
제8항에 있어서,
상기 결정부는,
상기 비트스트림으로부터 복호화된 제2신택스가 상기 현재블록의 변환블록에 비-제로(non-zero) 계수가 하나 이상 포함됨을 지시하고, 상기 제1신택스가 스킵됨을 지시하는 경우에, 상기 무손실 코딩 모드를 결정하는, 영상 복호화 장치.
The method of claim 8,
The determination unit,
When the second syntax decoded from the bitstream indicates that at least one non-zero coefficient is included in the transform block of the current block and indicates that the first syntax is skipped, the lossless coding mode The video decoding device to determine.
제8항에 있어서,
상기 무손실 코딩 모드 신택스들은,
스캔 순서 상, 상기 현재블록의 변환블록에 마지막으로 위치하는 비-제로 계수의 위치 신택스들을 포함하지 않는, 영상 복호화 장치.
The method of claim 8,
The lossless coding mode syntaxes are:
An image decoding apparatus that does not include position syntaxes of non-zero coefficients last located in a transform block of the current block in a scan order.
제8항에 있어서,
상기 무손실 코딩 모드 신택스들은,
상기 현재블록의 변환블록에 포함된 서브블록들 중에서, 스캔 순서 상 첫 번째 서브블록을 제외한 나머지 서브블록들에 비-제로 계수가 하나 이상 포함되는지 여부를 지시하는 제3신택스; 및
상기 제3신택스가 포함됨을 지시하는 대상 서브블록 내 계수들 중에서, 상기 스캔 순서 상 첫 번째 계수를 제외한 나머지 계수들이 비-제로인지 여부를 지시하는 제4신택스를 포함하는, 영상 복호화 장치.
The method of claim 8,
The lossless coding mode syntaxes are:
A third syntax indicating whether one or more non-zero coefficients are included in subblocks other than the first subblock in scan order among subblocks included in the transform block of the current block; And
And a fourth syntax indicating whether coefficients other than the first coefficient in the scan order are non-zero among coefficients in the target subblock indicating that the third syntax is included.
제11항에 있어서,
상기 첫 번째 서브블록에 대한 제3신택스는,
복호화되지 않고, 포함됨을 지시하는 값으로 유도되는, 영상 복호화 장치.
The method of claim 11,
The third syntax for the first subblock is,
A video decoding apparatus that is not decoded and is derived to a value indicating that it is included.
제11항에 있어서,
상기 첫 번째 계수에 대한 제4신택스는,
복호화되지 않고, 비-제로임을 지시하는 값으로 유도되는, 영상 복호화 장치.
The method of claim 11,
The fourth syntax for the first coefficient is,
The video decoding apparatus, which is not decoded and is derived to a value indicating non-zero.
제11항에 있어서,
상기 제3신택스 및 상기 제4신택스는,
diagonal-up 스캐닝 순서에 따라 복호화되는, 영상 복호화 장치.
The method of claim 11,
The third syntax and the fourth syntax,
An image decoding apparatus that is decoded according to a diagonal-up scanning order.
KR1020200024600A 2019-09-23 2020-02-27 Lossless recontruction method and apparatus for using the same KR20210035025A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR1020190116778 2019-09-23
KR20190116778 2019-09-23

Publications (1)

Publication Number Publication Date
KR20210035025A true KR20210035025A (en) 2021-03-31

Family

ID=75237853

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020200024600A KR20210035025A (en) 2019-09-23 2020-02-27 Lossless recontruction method and apparatus for using the same

Country Status (1)

Country Link
KR (1) KR20210035025A (en)

Similar Documents

Publication Publication Date Title
KR102287305B1 (en) Method and apparatus for encoding/decoding video signals using quadratic transformation
AU2018202366A1 (en) Method and apparatus for encoding image and method and apparatus for decoding image
US11973966B2 (en) Method and apparatus for efficiently coding residual blocks
KR20190083948A (en) Method and Apparatus for Video Encoding or Decoding
KR20230107723A (en) Intra prediction method and encoding apparatus and decoding apparatus using same
KR20200110214A (en) Method and apparatus for intra prediction in which prediction unit is divided into sub-units
US12022082B2 (en) Method for reconstructing residual blocks of chroma blocks, and video decoding apparatus
US20230048262A1 (en) Decoding device and method for predicting block partitioned into random shape
US20220295068A1 (en) Method and device for efficiently applying transform skip mode to data block
EP4068776A1 (en) Decoding device and method for predicting block partitioned into random shapes
KR102649287B1 (en) Sign Data Hiding for Transform Coefficient
KR20210035025A (en) Lossless recontruction method and apparatus for using the same
KR20200132761A (en) Method and apparatus for parallel encoding and decoding of video data
KR20200133185A (en) Method and Apparatus for Quantization Used in Image Decoding Device
US11863754B2 (en) Method and for reconstructing chroma block and video decoding apparatus
US20240007645A1 (en) Video encoding and decoding method using adaptive reference pixel selection
US11770533B2 (en) Method and apparatus for controlling coding tools
US20240007620A1 (en) Image encoding and decoding method using adaptive alternative mode
US20240195965A1 (en) Method of restoration in subblock units, and video decoding apparatus
KR20210037506A (en) Method and apparatus for reconstructing residual block of chroma block
KR20200110237A (en) Method and Apparatus for Video Decoder Using Differential Coding
KR20200040192A (en) Method and Apparatus for Encoding and Decoding Quantized Transform Coefficients
KR20220071129A (en) Method for Encoding and Decoding Video Using Adaptive Reference Sample Selection
KR20210043436A (en) Method and apparatus for constructing reference picture list
KR20210069005A (en) Video Encoding and Decoding Using Differential modulation