WO2020184913A1 - Method and apparatus for processing video signal - Google Patents

Method and apparatus for processing video signal Download PDF

Info

Publication number
WO2020184913A1
WO2020184913A1 PCT/KR2020/003187 KR2020003187W WO2020184913A1 WO 2020184913 A1 WO2020184913 A1 WO 2020184913A1 KR 2020003187 W KR2020003187 W KR 2020003187W WO 2020184913 A1 WO2020184913 A1 WO 2020184913A1
Authority
WO
WIPO (PCT)
Prior art keywords
size
current block
block
transform
skip
Prior art date
Application number
PCT/KR2020/003187
Other languages
French (fr)
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 WO2020184913A1 publication Critical patent/WO2020184913A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/132Sampling, masking or truncation of coding units, e.g. adaptive resampling, frame skipping, frame interpolation or high-frequency transform coefficient masking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/136Incoming video signal characteristics or properties
    • H04N19/137Motion inside a coding unit, e.g. average field, frame or block difference
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/186Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being a colour or a chrominance component
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/503Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/593Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving spatial prediction techniques
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/60Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding

Definitions

  • Embodiments of the present specification relate to a video/video compression coding system, and more particularly, to a method and apparatus for processing residual data in an encoding/decoding process of a video signal.
  • Compression coding refers to a series of signal processing techniques for transmitting digitized information through a communication line or storing it in a format suitable for a storage medium.
  • Media such as video, image, and audio may be subject to compression encoding.
  • a technique for performing compression encoding on an image is referred to as video image compression.
  • Next-generation video content will be characterized by high spatial resolution, high frame rate, and high dimensionality of scene representation. In order to process such content, it will bring a tremendous increase in terms of memory storage, memory access rate, and processing power.
  • a prediction signal is generated through prediction of a video signal, and a transform is applied to a residual signal generated by subtracting the prediction signal from an original video signal.
  • transformation skip may be applied, and various techniques for efficiently performing transformation or transformation skip are being discussed.
  • An embodiment of the present specification provides a method and apparatus for efficiently performing transformation/transformation skipping and residual data coding for a color difference block including color difference component data.
  • Embodiments of the present specification provide a method and apparatus for processing a video signal.
  • the encoding method of a video signal according to an embodiment of the present specification includes, for a current block including data corresponding to a chroma component, based on a dual tree type of the current block and a size of the current block. Checking a condition for transform skipping, and if the condition for transform skipping is satisfied, determining whether to apply the transform skip to the current block, and encoding a transform skip flag for the current block Includes steps.
  • the checking of the condition for the transform skip includes the transform skip when the size of the current block is smaller than the transform skip maximum size and the tree type of the current block corresponds to a color difference dual tree or a single tree. It may include determining that the condition for is satisfied.
  • the transform skip maximum size is determined based on transform skip maximum size information, and the transform skip maximum size information may be transmitted to a decoder as a syntax element for an upper layer component including the current block.
  • the maximum transform skip size may be determined based on a type of a tile group to which the current block belongs.
  • the transform skip maximum size is determined as a first reference size, and if the tile group corresponds to a B-tile group or a P-tile group, the transform skip maximum The size is determined as a second reference size, and the first reference size may correspond to a value larger than the second reference size.
  • the transform skip maximum size is determined based on a type of a tile group to which the current block belongs and a prediction type of the current block, and the prediction type is one of an intra prediction type or an inter prediction type. It may include.
  • the decoding method of a video signal is for skipping a transform based on a tree type of the current block and a size of the current block for a current block including data corresponding to a chroma component. Checking a condition; if the condition for the transform skip is satisfied, obtaining a transform skip flag of the current block; and performing residual coding for the current block based on the transform skip flag; and And generating a residual sample of the current block through the residual coding.
  • the checking of the condition for the transform skip includes the transform skip when the size of the current block is smaller than the transform skip maximum size and the tree type of the current block corresponds to a color difference dual tree or a single tree. It can be determined that the condition for is satisfied.
  • the transform skip maximum size is determined based on transform skip maximum size information transmitted from an encoder, and the transform skip maximum size information may be transmitted as a syntax element for an upper layer component including the current block. have.
  • the maximum transform skip size may be determined based on a type of a tile group to which the current block belongs.
  • the transform skip maximum size is determined as a first reference size, and if the tile group corresponds to a B-tile group or a P-tile group, the transform skip maximum The size is determined as a second reference size, and the first reference size may correspond to a value larger than the second reference size.
  • the transform skip maximum size is determined based on a type of a tile group to which the current block belongs and a prediction type of the current block, and the prediction type is one of an intra prediction type or an inter prediction type. It may include.
  • An embodiment of the present specification provides an apparatus for processing a video signal.
  • a video signal encoding apparatus includes a memory for storing the video signal, and a processor coupled to the memory and for processing the video signal.
  • the processor for a current block including data corresponding to a chroma component, checks a condition for skipping transformation based on a tree type of the current block and a size of the current block, and the transformation When a condition for skipping is satisfied, it is determined whether to apply the transform skip to the current block, and set to encode a transform skip flag for the current block.
  • a video signal decoding apparatus includes a memory for storing the video signal, and a processor coupled to the memory and for processing the video signal.
  • the processor for a current block including data corresponding to a chroma component, checks a condition for skipping transformation based on a tree type of the current block and a size of the current block, and the transformation When the condition for skipping is satisfied, a transform skip flag of the current block is obtained, residual coding of the current block is performed based on the transform skip flag, and residual coding of the current block is performed through the residual coding. It is set up to generate samples.
  • An embodiment of the present specification provides a non-transitory computer-readable medium storing one or more instructions.
  • the one or more instructions executed by one or more processors are, for a current block including data corresponding to a chroma component, a tree type of the current block and a size of the current block.
  • the one or more instructions executed by one or more processors are, for a current block including data corresponding to a chroma component, a tree type and a current block of the current block.
  • a condition for transform skip is checked based on the size of, and if the condition for transform skip is satisfied, a transform skip flag of the current block is obtained, and residual coding for the current block is performed based on the transform skip flag.
  • controlling a video signal processing apparatus to generate a residual sample of the current block through the residual coding.
  • the encoder or decoder can efficiently perform transform or transform skip on the color difference block. I can.
  • FIG. 1 shows an example of an image coding system according to an embodiment of the present specification.
  • FIG. 2 shows an example of a schematic block diagram of an encoding apparatus in which encoding of a video signal is performed according to an embodiment of the present specification.
  • FIG. 3 shows an example of a schematic block diagram of a decoding apparatus for decoding an image signal according to an embodiment of the present specification.
  • FIG. 4 shows an example of a content streaming system according to an embodiment of the present specification.
  • FIG 5 shows an example of a video signal processing apparatus according to an embodiment of the present specification.
  • FIG. 6 illustrates an example of a picture division structure according to an embodiment of the present specification.
  • FIG. 7 illustrates an example of a picture divided into a plurality of coding tree units according to an embodiment of the present specification.
  • FIG 8 shows an example of a multi-type tree structure according to an embodiment of the present specification.
  • FIG. 9 shows an example of a mechanism for signaling split information of a quadtree with nested multi-type tree structure according to an embodiment of the present specification.
  • FIG. 10 illustrates an example of a coding tree unit divided into a plurality of coding units based on a quadtree and a nested multi-type tree structure according to an embodiment of the present specification.
  • FIG. 11 illustrates an example of a case in which division of a ternary tree is limited according to an embodiment of the present specification.
  • FIG. 12 illustrates an example in which binary tree division and ternary tree division overlap according to an embodiment of the present specification.
  • FIG. 13 illustrates an example of a case in which the ternary tree division and the byte tree division are restricted according to an embodiment of the present specification.
  • FIG. 14 is an example of a flowchart for encoding a picture constituting a video signal according to an embodiment of the present specification.
  • 15 is an example of a flowchart for decoding a picture constituting a video signal according to an embodiment of the present specification.
  • 16 illustrates an example of a hierarchical structure for a coded image according to an embodiment of the present specification.
  • 17 is a schematic block diagram of a transform and quantization unit, an inverse quantization and an inverse transform unit in an encoding apparatus according to an embodiment of the present specification.
  • FIG. 18 is a schematic block diagram of an inverse quantization and inverse transform unit in a decoding apparatus.
  • FIG. 19 illustrates an example of a transformation procedure to which multiple transform selection is applied according to an embodiment of the present specification.
  • FIG. 20 illustrates an example of an inverse transform procedure to which multiple transform selection is applied according to an embodiment of the present specification.
  • 21 illustrates an example of an inverse transform procedure using information related to multiple transform selection according to an embodiment of the present specification.
  • 22 is a block diagram for entropy encoding according to an embodiment of the present specification.
  • 23A and 23B illustrate an entropy encoding method and related components according to an embodiment of the present specification.
  • 24A and 24B illustrate an entropy decoding method and related components according to an embodiment of the present specification.
  • 25 illustrates an example of intra-block transform coefficients according to an embodiment of the present specification.
  • 26 illustrates an example of a color difference block and a corresponding luminance block in a dual tree according to an embodiment of the present specification.
  • FIG. 27 is an example of a flowchart for encoding a video signal according to an embodiment of the present specification.
  • a'processing unit' means a unit in which an encoding/decoding process such as prediction, transformation, and/or quantization is performed.
  • the processing unit may be interpreted as including a unit for a luma component and a unit for a chroma component.
  • the processing unit may correspond to a block, a coding unit (CU), a prediction unit (PU), or a transform unit (TU).
  • the processing unit may be interpreted as a unit for a luminance component or a unit for a color difference component.
  • the processing unit may correspond to a coding tree block (CTB), a coding block (CB), a PU, or a transform block (TB) for a luminance component.
  • the processing unit may correspond to CTB, CB, PU or TB for the color difference component.
  • the present invention is not limited thereto, and the processing unit may be interpreted as including a unit for a luminance component and a unit for a color difference component.
  • processing unit is not necessarily limited to a square block, and may be configured in a polygonal shape having three or more vertices.
  • pixels or pixels are collectively referred to as samples.
  • using a sample may mean using a pixel value or a pixel value.
  • the image coding system may include a source device 10 and a reception device 20.
  • the source device 10 may transmit the encoded video/video information or data in a file or streaming format to the receiving device 20 through a digital storage medium or a network.
  • the source device 10 may include a video source 11, an encoding device 12, and a transmitter 13.
  • the receiving device 20 may include a receiver 21, a decoding device 22 and a renderer 23.
  • the encoding device 12 may be referred to as a video/image encoding device, and the decoding device 22 may be referred to as a video/image decoding device.
  • the transmitter 13 may be included in the encoding device 12.
  • the receiver 21 may be included in the decoding device 22.
  • the renderer 23 may include a display unit, and the display unit may be configured as a separate device or an external component.
  • the video source 11 may acquire a video/image through a process of capturing, synthesizing, or generating a video/image.
  • the video source 11 may include a video/image capturing device and/or a video/image generating device.
  • the video/image capturing device may include, for example, one or more cameras, and a video/image archive including previously captured video/images.
  • Video/image generating devices may include, for example, computers, tablets, and smartphones, and may (electronically) generate video/images.
  • a virtual video/image may be generated through a computer, and in this case, a video/image capturing process may be substituted as a process of generating related data.
  • the encoding device 12 may encode an input video/video.
  • the encoding apparatus 12 may perform a series of procedures such as prediction, transformation, and quantization for compression and coding efficiency.
  • the encoded data (encoded video/video information) may be output in the form of a bitstream.
  • the transmitter 13 may transmit the encoded video/video information or data output in the form of a bitstream to the receiver 21 of the receiving device 20 through a digital storage medium or a network in a file or streaming form.
  • Digital storage media include USB (universal serial bus), SD card (secure digital card), CD (compact disc), DVD (digital versatile disc), Blu-ray disc, HDD (hard disk drive), SSD (solid state drive) may include a variety of storage media.
  • the transmitter 13 may include an element for generating a media file through a predetermined file format, and may include an element for transmission through a broadcast/communication network.
  • the receiver 21 may extract the bitstream and transmit it to the decoding device 22.
  • the decoding device 22 may decode the video/video by performing a series of procedures such as inverse quantization, inverse transformation, and prediction corresponding to the operation of the encoding device 12.
  • the renderer 23 may render the decoded video/image.
  • the rendered video/image may be displayed through the display unit.
  • FIG. 2 shows an example of a schematic block diagram of an encoding apparatus in which encoding of a video signal is performed according to an embodiment of the present specification.
  • the encoding device 100 of FIG. 2 may correspond to the encoding device 12 of FIG. 1.
  • the encoding apparatus 100 includes an image partitioning module 110, a subtraction module 115, a transform module 120, and a quantization module. (130), a de-quantization module (140), an inverse-transform module (150), an addition module (155), a filtering module (160), a memory A (memory) 170, an inter prediction module 180, an intra prediction module 185, and an entropy encoding module 190 may be included.
  • the inter prediction unit 180 and the intra prediction unit 185 may be collectively referred to as a prediction unit. That is, the prediction unit may include an inter prediction unit 180 and an intra prediction unit 185.
  • the transform unit 120, the quantization unit 130, the inverse quantization unit 140, and the inverse transform unit 150 may be included in a residual processing unit.
  • the residual processing unit may further include a subtraction unit 115.
  • the above-described image segmentation unit 110, subtraction unit 115, transform unit 120, quantization unit 130, inverse quantization unit 140, inverse transform unit 150, addition unit 155, filtering unit 160 ), the inter prediction unit 180, the intra prediction unit 185, and the entropy encoding unit 190 may be configured by one hardware component (eg, an encoder or a processor) according to an embodiment.
  • the memory 170 may include a decoded picture buffer (DPB) 175 and may be configured by a digital storage medium.
  • DPB decoded picture buffer
  • the image segmentation unit 110 may divide an input image (or picture, frame) input to the encoding apparatus 100 into one or more processing units.
  • the processing unit may be referred to as a coding unit (CU).
  • the coding unit may be recursively partitioned from a coding tree unit (CTU) or a largest coding unit (LCU) according to a quad-tree binary-tree (QTBT) structure.
  • CTU coding tree unit
  • LCU largest coding unit
  • QTBT quad-tree binary-tree
  • one coding unit may be divided into a plurality of coding units of a deeper depth based on a quad tree structure and/or a binary tree structure.
  • a quad tree structure may be applied first and a binary tree structure may be applied later.
  • the binary tree structure may be applied first.
  • a coding procedure according to an embodiment of the present specification may be performed based on a final coding unit that is no longer divided.
  • the maximum coding unit may be directly used as the final coding unit based on coding efficiency according to image characteristics.
  • the coding unit is recursively divided into coding units of a lower depth, so that a coding unit having an optimal size may be used as a final coding unit.
  • the coding procedure may include procedures such as prediction, transformation, and restoration described below.
  • the processing unit may further include a prediction unit (PU) or a transform unit (TU).
  • the prediction unit and the transform unit may be divided from the above-described coding units, respectively.
  • the prediction unit may be a unit of sample prediction
  • the transform unit may be a unit for inducing a transform coefficient or a unit for inducing a residual signal from the transform coefficient.
  • the term "unit” used in this document may be used interchangeably with terms such as "block” or "area” in some cases.
  • the MxN block may represent a set of samples or transform coefficients consisting of M columns and N rows.
  • a sample may generally represent a pixel or a value of a pixel, may represent a pixel/pixel value of a luminance component, or a pixel/pixel value of a saturation component.
  • a sample may be used as a term corresponding to one picture (or image) as a pixel or pel.
  • the encoding apparatus 100 subtracts a prediction signal (predicted block, prediction sample array) output from the inter prediction unit 180 or the intra prediction unit 185 from the input video signal (original block, original sample array)
  • a signal residual signal, residual block, residual sample array
  • the generated residual signal is transmitted to the conversion unit 120.
  • a unit that subtracts the prediction signal (prediction block, prediction sample array) from the input image signal (original block, original sample array) in the encoding apparatus 100 may be referred to as a subtraction unit 115.
  • the prediction unit may perform prediction on a block to be processed (hereinafter, referred to as a current block) and generate a predicted block including prediction samples for the current block.
  • the prediction module may determine whether intra prediction or inter prediction is applied on a per CU basis.
  • the prediction unit may generate information about prediction, such as prediction mode information, as described later in the description of each prediction mode, and may transmit information about prediction to the entropy encoding unit 190.
  • Information about prediction is encoded by the entropy encoding unit 190 and may be output in the form of a bitstream.
  • the intra prediction unit 185 may predict the current block by referring to samples in the current picture.
  • the referenced samples may be located in the vicinity of the current block or may be located away from each other according to the prediction mode.
  • prediction modes may include a plurality of non-directional modes and a plurality of directional modes.
  • the non-directional mode may include, for example, a DC mode and a planar mode (Planar mode).
  • the directional mode may include, for example, 33 directional prediction modes or 65 directional prediction modes according to a detailed degree of the prediction direction. However, this is an example, and more or less directional prediction modes may be used depending on the setting.
  • the intra prediction unit 185 may determine a prediction mode applied to the current block by using the prediction mode applied to the neighboring block.
  • the inter prediction unit 180 may derive a predicted block for the current block based on a reference block (reference sample array) specified by a motion vector on the reference picture. In this case, in order to reduce the amount of motion information transmitted in the inter prediction mode, the inter prediction unit 180 may predict motion information in units of blocks, subblocks, or samples based on the correlation between motion information between neighboring blocks and the current block have.
  • the motion information may include a motion vector and a reference picture index.
  • the motion information may further include inter prediction direction (L0 prediction, L1 prediction, Bi prediction, etc.) information.
  • the neighboring block may include a spatial neighboring block existing in the current picture and a temporal neighboring block existing in the reference picture.
  • the reference picture including the reference block and the reference picture including the temporal neighboring block may be the same or different.
  • the temporal neighboring block may be referred to as a collocated reference block or a colCU (colCU), and a reference picture including the temporal neighboring block may be referred to as a collocated picture (colPic).
  • the inter prediction unit 180 constructs a motion information candidate list based on motion information of neighboring blocks, and indicates which candidate is used to derive a motion vector and/or a reference picture index of the current block. Can generate information. Inter prediction may be performed based on various prediction modes. For example, when a skip mode and a merge mode are used, the inter prediction unit 180 may use motion information of a neighboring block as motion information of a current block.
  • a residual signal is not transmitted.
  • MVP motion vector prediction
  • MVD motion vector difference
  • the prediction unit may generate a prediction signal (prediction sample) based on various prediction methods described later. For example, the prediction unit may not only apply intra prediction or inter prediction to predict one block, but also apply intra prediction and inter prediction together (simultaneously). This may be referred to as CIIP (combined inter and intra prediction). Also, the prediction unit may perform intra block copy (IBC) to predict a block. IBC may be used for content (eg, game) video/video coding, such as, for example, screen content coding (SCC). Also, IBC may be referred to as CPR (current picture referencing). IBC basically performs prediction in the current picture, but can be performed similarly to inter prediction in that it derives a reference block in the current picture. That is, the IBC may use at least one of the inter prediction techniques described in this document.
  • IBC intra block copy
  • the prediction signal generated by the prediction unit may be used to generate a reconstructed signal or may be used to generate a residual signal.
  • the transform unit 120 may generate transform coefficients by applying a transform technique to the residual signal.
  • the transformation technique uses at least one of DCT (Discrete Cosine Transform), DST (Discrete Sine Transform), KLT (Karhunen-Loeve Transform), GBT (Graph-Based Transform), or CNT (Conditionally Non-linear Transform).
  • DCT Discrete Cosine Transform
  • DST Discrete Sine Transform
  • KLT Kerhunen-Loeve Transform
  • GBT Graph-Based Transform
  • CNT Conditionally Non-linear Transform
  • GBT refers to transformation obtained from a graph representing relationship information between pixels.
  • CNT refers to a transformation obtained based on the prediction signal and generating a prediction signal using all previously reconstructed pixels.
  • the conversion process may be applied to a pixel block having the
  • the quantization unit 130 quantizes the transform coefficients and transmits the quantized transform coefficients to the entropy encoding unit 190.
  • the entropy encoding unit 190 may encode a quantized signal (information on quantized transform coefficients) and output it as a bitstream. Information about the quantized transform coefficients may be referred to as residual information.
  • the quantization unit 130 may rearrange the quantized transform coefficients in a block form into a one-dimensional vector form based on a coefficient scan order, and quantize the quantized transform coefficients based on the characteristics of the quantized transform coefficients in a one-dimensional vector form. It is also possible to generate information about transform coefficients.
  • the entropy encoding unit 190 may perform various encoding techniques such as exponential Golomb, context-adaptive variable length coding (CAVLC), and context-adaptive binary arithmetic coding (CABAC).
  • the entropy encoding unit 190 may encode information necessary for video/image restoration (eg, values of syntax elements) in addition to quantized transform coefficients together or separately.
  • the encoded information (eg, video/video information) may be transmitted or stored in a bitstream format in units of network abstraction layer (NAL) units.
  • the video/video information may further include information on various parameter sets, such as adaptation parameter set (APS), picture parameter set (PPS), sequence parameter set (SPS), or video parameter set (VPS).
  • Signaled/transmitted information and/or syntax elements described later in this document may be encoded through the above-described encoding procedure and included in the bitstream.
  • the bitstream may be transmitted over a network or may be stored in a digital storage medium.
  • the network may include a broadcasting network and/or a communication network
  • the digital storage medium may include a storage medium such as USB, SD, CD, DVD, Blu-ray, HDD, and SSD.
  • a transmission unit (not shown) for transmitting and/or a storage unit (not shown) for storing may be configured as internal/external elements of the encoding apparatus 100, or the transmission unit It may be a component of the entropy encoding unit 190.
  • the quantized transform coefficients output from the quantization unit 130 may be used to generate a reconstructed signal.
  • a residual signal may be restored by applying inverse quantization and inverse transform through the inverse quantization unit 140 and the inverse transform unit 150 in the loop for the quantized transform coefficients.
  • the addition unit 155 adds the reconstructed residual signal to the prediction signal output from the inter prediction unit 180 or the intra prediction unit 185 to obtain a reconstructed signal (a reconstructed picture, a reconstructed block, and a reconstructed sample array). Can be generated.
  • the predicted block may be used as a reconstructed block.
  • the addition unit 155 may be referred to as a restoration unit or a restoration block generation unit.
  • the generated reconstructed signal may be used for intra prediction of the next processing target block in the current picture, and may be used for inter prediction of the next picture through filtering as described later.
  • the filtering unit 160 may improve subjective/objective image quality by applying filtering to the reconstructed signal.
  • the filtering unit 160 may apply various filtering methods to the reconstructed picture to generate a modified reconstructed picture, and may transmit the modified reconstructed picture to the DPB 175 of the memory 170.
  • Various filtering methods may include, for example, deblocking filtering, sample adaptive offset (SAO), adaptive loop filter (ALF), and bilateral filter.
  • the filtering unit 160 may generate filtering information and transmit the filtering information to the entropy encoding unit 190 as described later in the description of each filtering method.
  • the filtering information may be output in the form of a bitstream through entropy encoding in the entropy encoding unit 190.
  • the modified reconstructed picture transmitted to the DPB 175 may be used as a reference picture in the inter prediction unit 180.
  • the encoding apparatus 100 may avoid prediction mismatch between the encoding apparatus 100 and the decoding apparatus 200 by using the modified reconstructed picture, and may improve encoding efficiency.
  • the DPB 175 may store the modified reconstructed picture for use as a reference picture in the inter prediction unit 180.
  • the stored motion information may be transmitted to the inter prediction unit 180 for use as motion information of a spatial neighboring block or motion information of a temporal neighboring block.
  • the memory 170 may store reconstructed samples of reconstructed blocks in the current picture, and transfer information on the reconstructed samples to the intra prediction unit 185.
  • FIG. 3 shows an example of a schematic block diagram of a decoding apparatus for decoding an image signal according to an embodiment of the present specification.
  • the decoding device 200 of FIG. 3 may correspond to the decoding device 22 of FIG. 1.
  • the decoding apparatus 200 includes an entropy decoding module 210, a de-quantization module 220, an inverse transform module 230, and an adder. (addition module) 235, filtering module 240, memory 250, inter prediction module 260, and intra prediction module 265 may be included. have.
  • the inter prediction unit 260 and the intra prediction unit 265 may be collectively referred to as a prediction module. That is, the prediction unit may include an inter prediction unit 180 and an intra prediction unit 185.
  • the inverse quantization unit 220 and the inverse transform unit 230 may be collectively referred to as a residual processing module. That is, the residual processing unit may include an inverse quantization unit 220 and an inverse transform unit 230.
  • the entropy decoding unit 210, the inverse quantization unit 220, the inverse transform unit 230, the addition unit 235, the filtering unit 240, the inter prediction unit 260, and the intra prediction unit 265 are implemented. It may be configured by one hardware component (eg, a decoder or a processor) according to an example. Also, the memory 250 may include the DPB 255, and may be configured by one hardware component (eg, a memory or a digital storage medium) according to an embodiment.
  • the decoding apparatus 200 may reconstruct an image in response to a process in which the video/image information is processed by the encoding apparatus 100 of FIG. 2.
  • the decoding apparatus 200 may perform decoding using a processing unit applied by the encoding apparatus 100.
  • the processing unit may be, for example, a coding unit, and the coding unit may be divided from a coding tree unit or a maximum coding unit according to a quad tree structure and/or a binary tree structure.
  • the reconstructed image signal decoded and output through the decoding device 200 may be reproduced through the playback device.
  • the decoding apparatus 200 may receive a signal output from the encoding apparatus 100 of FIG. 2 in the form of a bitstream, and the received signal may be decoded through the entropy decoding unit 210.
  • the entropy decoding unit 210 may parse the bitstream to derive information (eg, video/video information) necessary for image restoration (or picture restoration).
  • the video/video information may further include information on various parameter sets, such as adaptation parameter set (APS), picture parameter set (PPS), sequence parameter set (SPS), or video parameter set (VPS).
  • APS adaptation parameter set
  • PPS picture parameter set
  • SPS sequence parameter set
  • VPS video parameter set
  • the decoding apparatus may decode a picture based on information on a parameter set.
  • Signaled/received information and/or syntax elements described later in this document may be decoded through a decoding procedure and obtained from a bitstream.
  • the entropy decoding unit 210 acquires information in the bitstream using a coding technique such as exponential Golomb coding, CAVLC, or CABAC, and a value of a syntax element required for image restoration, and a quantized value of a transform coefficient for a residual. Can be printed.
  • a bin corresponding to each syntax element is received in a bitstream, and information about the syntax element to be decoded and decoding information of a block to be decoded and a neighbor or a symbol/bin decoded in a previous step
  • the symbol corresponding to the value of each syntax element is determined by determining the context model using the information of, and performing arithmetic decoding of the bin by predicting the probability of occurrence of the bin according to the determined context model.
  • the CABAC entropy decoding method may update the context model using information of the decoded symbol/bin for the context model of the next symbol/bin after the context model is determined.
  • the entropy decoding unit 210 Among the information decoded by the entropy decoding unit 210, information on prediction is provided to the prediction unit (inter prediction unit 260 and intra prediction unit 265), and the register on which entropy decoding is performed by the entropy decoding unit 210 Dual values, that is, quantized transform coefficients and related parameter information may be input to the inverse quantization unit 220. In addition, information about filtering among information decoded by the entropy decoding unit 210 may be provided to the filtering unit 240. Meanwhile, a receiving unit (not shown) for receiving a signal output from the encoding device 100 may be further configured as an inner/outer element of the decoding device 200, or the receiving unit may be a component of the entropy decoding unit 210. May be.
  • the decoding apparatus 200 may be referred to as a video/video/picture decoding apparatus.
  • the decoding apparatus 200 may be divided into an information decoder (video/video/picture information decoder) and a sample decoder (video/video/picture sample decoder).
  • the information decoder may include an entropy decoding unit 210, and the sample decoder is an inverse quantization unit 220, an inverse transform unit 230, an addition unit 235, a filtering unit 240, a memory 250, and an inter prediction. It may include at least one of the unit 260 and the intra prediction unit 265.
  • the inverse quantization unit 220 may output transform coefficients through inverse quantization of the quantized transform coefficients.
  • the inverse quantization unit 220 may rearrange the quantized transform coefficients into a two-dimensional block shape. In this case, the reordering may be performed based on the coefficient scan order performed by the encoding apparatus 100.
  • the inverse quantization unit 220 may perform inverse quantization on quantized transform coefficients by using a quantization parameter (eg, quantization step size information) and obtain transform coefficients.
  • a quantization parameter eg, quantization step size information
  • the inverse transform unit 230 inversely transforms the transform coefficients to obtain a residual signal (residual block, residual sample array).
  • the prediction unit may perform prediction on the current block and generate a predicted block including prediction samples for the current block.
  • the prediction unit may determine whether intra prediction or inter prediction is applied to the current block based on information on prediction output from the entropy decoding unit 210, and may determine a specific intra/inter prediction mode.
  • the prediction unit may generate a prediction signal (prediction sample) based on various prediction methods described later. For example, the prediction unit may not only apply intra prediction or inter prediction to predict one block, but also apply intra prediction and inter prediction together (simultaneously). This may be referred to as CIIP (combined inter and intra prediction). Also, the prediction unit may perform intra block copy (IBC) to predict a block. IBC may be used for content (eg, game) video/video coding, such as, for example, screen content coding (SCC). Also, IBC may be referred to as CPR (current picture referencing). IBC basically performs prediction in the current picture, but can be performed similarly to inter prediction in that it derives a reference block in the current picture. That is, the IBC may use at least one of the inter prediction techniques described in this document.
  • IBC intra block copy
  • the intra prediction unit 265 may predict the current block by referring to samples in the current picture.
  • the referenced samples may be located near the current block or may be spaced apart according to the prediction mode.
  • prediction modes may include a plurality of non-directional modes and a plurality of directional modes.
  • the intra prediction unit 265 may determine a prediction mode applied to the current block by using the prediction mode applied to the neighboring block.
  • the inter prediction unit 260 may derive a predicted block for the current block based on a reference block (reference sample array) specified by a motion vector on the reference picture.
  • motion information may be predicted in units of blocks, subblocks, or samples based on correlation between motion information between neighboring blocks and current blocks.
  • the motion information may include a motion vector and a reference picture index.
  • the motion information may further include inter prediction direction (L0 prediction, L1 prediction, Bi prediction) information.
  • the neighboring block may include a spatial neighboring block existing in the current picture and a temporal neighboring block existing in the reference picture.
  • the inter prediction unit 260 may construct a motion information candidate list based on neighboring blocks, and derive a motion vector and/or a reference picture index of the current block based on the received candidate selection information.
  • Inter prediction may be performed based on various prediction modes, and information on prediction may include information indicating a mode of inter prediction for a current block.
  • the addition unit 235 is reconstructed by adding the obtained residual signal to the prediction signal (predicted block, prediction sample array) output from the prediction unit (including the inter prediction unit 260 and/or the intra prediction unit 265). Signals (restored pictures, reconstructed blocks, reconstructed sample arrays) can be generated. When there is no residual for a block to be processed, such as when the skip mode is applied, the predicted block may be used as a reconstructed block.
  • the addition unit 235 may be referred to as a restoration unit or a restoration block generation unit.
  • the generated reconstructed signal may be used for intra prediction of the next processing target block in the current picture, and may be used for inter prediction of the next picture through filtering as described later.
  • the filtering unit 240 may improve subjective/objective image quality by applying filtering to the reconstructed signal. For example, the filtering unit 240 may apply various filtering methods to the reconstructed picture to generate a modified reconstructed picture, and may transmit the modified reconstructed picture to the DPB 255 of the memory 250. .
  • Various filtering methods may include, for example, deblocking filtering, sample adaptive offset, adaptive loop filter, and bilateral filter.
  • the modified reconstructed picture delivered to the DPB 255 of the memory 250 may be used as a reference picture by the inter prediction unit 260.
  • the memory 250 may store motion information of a block from which motion information in a current picture is derived (or decoded) and/or motion information of blocks in a picture that have already been reconstructed.
  • the stored motion information may be transmitted to the inter prediction unit 260 to be used as motion information of a spatial neighboring block or motion information of a temporal neighboring block.
  • the memory 250 may store reconstructed samples of reconstructed blocks in the current picture, and may be transmitted to the intra prediction unit 265.
  • embodiments described in the filtering unit 160, the inter prediction unit 180, and the intra prediction unit 185 of the encoding apparatus 100 are respectively the filtering unit 240 and the inter prediction unit 260 of the decoding apparatus.
  • the intra prediction unit 265 may be applied to be the same or correspond to each other.
  • FIG. 4 shows an example of a content streaming system according to an embodiment of the present specification.
  • Content streaming systems to which the embodiments of the present specification are applied are largely an encoding server 410, a streaming server 420, a web server 430, and a media storage 440. ), a user equipment 450, and a multimedia input device 460.
  • the encoding server 410 generates a bitstream by compressing content input from a multimedia input device 460 such as a smartphone, a camera, or a camcorder into digital data, and transmits the generated bitstream to the streaming server 420.
  • a multimedia input device 460 such as a smartphone, a camera, or a camcorder
  • the encoding server 410 may be omitted.
  • the bitstream may be generated by an encoding method or a bitstream generation method to which an embodiment of the present specification is applied, and the streaming server 420 may temporarily store the bitstream while transmitting or receiving the bitstream.
  • the streaming server 420 transmits multimedia data to the user device 450 based on a user request through the web server 430, and the web server 430 serves as an intermediary that informs the user of what kind of service exists.
  • the web server 430 transmits information on the requested service to the streaming server 420, and the streaming server 420 transmits multimedia data to the user.
  • the content streaming system may include a separate control server, and in this case, the control server serves to control commands/responses between devices in the content streaming system.
  • the streaming server 420 may receive content from the media storage 440 and/or the encoding server 410. For example, when receiving content from the encoding server 410, the streaming server 420 may receive the content in real time. In this case, in order to provide a smooth streaming service, the streaming server 420 may store the bitstream for a predetermined time.
  • the user device 450 includes, for example, a mobile phone, a smart phone, a laptop computer, a digital broadcasting terminal, a personal digital assistants (PDA), a portable multimedia player (PMP), a navigation system, and a slate PC ( slate PC), tablet PC, ultrabook, wearable device, e.g., smartwatch, smart glass, head mounted display (HMD)), It can include digital TV, desktop computer, and digital signage.
  • PDA personal digital assistants
  • PMP portable multimedia player
  • HMD head mounted display
  • Each server in the content streaming system may be operated as a distributed server, and in this case, data received from each server may be distributedly processed.
  • FIG. 5 shows an example of a video signal processing apparatus according to an embodiment of the present specification.
  • the video signal processing apparatus of FIG. 5 may correspond to the encoding apparatus 100 of FIG. 1 or the decoding apparatus 200 of FIG. 2.
  • the video signal processing apparatus 500 for processing a video signal includes a memory 520 for storing a video signal, and a processor 510 for processing a video signal while being combined with the memory 520.
  • the processor 510 may be configured with at least one processing circuit for processing a video signal, and may process a video signal by executing instructions for encoding/decoding a video signal. That is, the processor 510 may encode original video data or decode an encoded video signal by executing encoding/decoding methods described below.
  • the processor 510 may be composed of one or more processors corresponding to each of the modules of FIG. 2 or 3.
  • the memory 520 may correspond to the memory 170 of FIG. 2 or the memory 250 of FIG. 3.
  • the video/image coding method according to the present specification may be performed based on a split structure described later.
  • Procedures such as prediction, residual processing (e.g., (inverse) transformation, (inverse) quantization), syntax element coding, and filtering, which will be described later in detail, are CTU (coding tree unit) derived based on the load structure, CU (and/ Alternatively, it may be performed based on TU, PU).
  • the block division procedure may be performed by the video division unit 110 of the encoding apparatus 100 described above, and division-related information is (encoded) processed by the entropy encoding unit 190 and transferred to the decoding apparatus 200 in the form of a bitstream. Can be delivered.
  • the entropy decoding unit 210 of the decoding apparatus 200 derives the block division structure of the current block based on the division-related information obtained from the bitstream, and based on this, a series of procedures (e.g., prediction, registration) for decoding an image. Dual processing, block/picture restoration, and in-loop filtering) can be performed.
  • an image processing unit may have a hierarchical structure.
  • One picture may be divided into one or more tiles or tile groups.
  • One tile group may include one or more tiles.
  • One tile may contain more than one CTU.
  • the CTU can be divided into one or more CUs.
  • a tile is a rectangular region of CTUs within a particular tile column and a particular tile row in a picture.
  • the tile group may include an integer number of tiles according to a tile raster scan in a picture.
  • the tile group header may convey information/parameters applicable to the corresponding tile group.
  • the tile group may have one type of tile groups including an intra (I) tile group, a predictive (P) tile group, and a bi-predictive (B) tile group.
  • inter prediction is not used and only intra prediction can be used.
  • a coded original sample value may be signaled without prediction.
  • Intra prediction or inter prediction may be used for blocks in a P tile group, and when inter prediction is used, only uni prediction may be used.
  • intra prediction or inter prediction may be used for blocks in the B tile group, and when inter prediction is used, not only unidirectional prediction but also bi prediction may be used.
  • FIG. 6 illustrates an example of a picture division structure according to an embodiment of the present specification.
  • a picture having 216 (18 by 12) luminance CTUs is divided into 12 tiles and 3 tile groups.
  • the encoder determines the size of a tile/tile group and a maximum and minimum coding unit according to a characteristic (e.g., resolution) of a video image or in consideration of coding efficiency or parallel processing, and provides information about this or information for inducing it. It can be included in the bitstream.
  • a characteristic e.g., resolution
  • the decoder may obtain information indicating whether the tile/tile group of the current picture and the CTU in the tile are divided into a plurality of coding units. Coding efficiency can be increased if such information is not always acquired (decoded) by the decoder, but is acquired (decoded) only under certain conditions.
  • the tile group header may include information/parameters commonly applicable to the tile group.
  • APS APS syntax
  • PPS PPS syntax
  • SPS SPS syntax
  • VPS VPS syntax
  • the high-level syntax of the present specification may include at least one of APS syntax, PPS syntax, SPS syntax, and VPS syntax.
  • information on the division and configuration of a tile/tile group may be configured in an encoder through a higher level syntax and then transmitted to a decoder in the form of a bitstream.
  • FIG. 7 illustrates an example of a picture divided into a plurality of coding tree units according to an embodiment of the present specification.
  • Pictures can be divided into a sequence of coding tree units (CTUs).
  • the CTU may correspond to a coding tree block (CTB).
  • CTU may include a coding tree block of luma samples and two coding tree blocks of corresponding chroma samples.
  • the CTU may include an NxN block of luminance samples and two corresponding blocks of chrominance samples. 7 shows an example in which a picture is divided into CTUs.
  • the maximum allowed size of the CTU for coding and prediction may be different from the maximum allowed size of the CTU for transformation. For example, even if the maximum size of the luminance conversion blocks is 64x64, the maximum allowable size of the luminance block in the CTU may be 128x128.
  • FIG 8 shows an example of a multi-type tree structure according to an embodiment of the present specification.
  • the CTU may be divided into CUs based on a quad-tree (QT) structure.
  • the quadtree structure can be called a quaternary tree structure. This is to reflect various local characteristics.
  • the CTU may be divided based on division of a multi-type tree structure including a binary tree (binary-tree, BT) and a ternary tree (TT) as well as a quad tree.
  • the QTBT structure may include a quadtree and binary tree-based partitioning structure
  • QTBTTT may include a quadtree, binary tree, and ternary tree-based partitioning structure.
  • the QTBT structure may include a quadtree, binary tree, and ternary tree-based partitioning structure.
  • the CU may have a square or rectangular shape.
  • the CTU can be divided into a quadtree structure first. Thereafter, leaf nodes of a quadtree structure may be further divided by a multitype tree structure.
  • the multitype tree structure may schematically include four partition types.
  • the four split types are vertical binary splitting (SPLIT_BT_VER) (310), horizontal binary splitting (SPLIT_BT_HOR) (320), vertical ternary splitting (SPLIT_TT_VER) (330), and horizontal turner. It may include horizontal ternary splitting (SPLIT_TT_HOR) 340.
  • Leaf nodes of a multi-type tree structure can be called CUs. These CUs can be used for prediction and transformation procedures. In this document, in general, CU, PU, and TU may have the same block size. However, if the maximum supported transform length is smaller than the width or height of the color component of the CU, the CU and the TU may have different block sizes.
  • FIG. 9 shows an example of a mechanism for signaling split information of a quadtree with nested multi-type tree structure according to an embodiment of the present specification.
  • the CTU is treated as the root of a quadtree, and is first partitioned into a quadtree structure.
  • Each quadtree leaf node can then be further partitioned into a multitype tree structure.
  • a first flag eg, mtt_split_cu_flag
  • a second flag eg, mtt_split_cu_vertical_flag
  • a third flag (eg, mtt_split_cu_binary_flag) may be signaled to indicate whether the division type is binary division or ternary division.
  • the multi-type tree splitting mode (MttSplitMode) of the CU may be derived as shown in Table 1 below.
  • FIG. 10 illustrates an example of a coding tree unit divided into a plurality of coding units based on a quadtree and a nested multi-type tree structure according to an embodiment of the present specification.
  • the CU may correspond to a coding block (CB).
  • the CU may include a coding block of luminance samples and two coding blocks of corresponding chrominance samples.
  • the size of the CU may be as large as CTU, or may be as small as 4x4 in units of luminance samples. For example, in the case of a 4:2:0 color format (or color difference format), the maximum color difference CB size may be 64x64 and the minimum color difference CB size may be 2x2.
  • the maximum allowable luminance TB size may be 64x64, and the maximum allowable color difference TB size may be 32x32. If the width or height of the CB divided according to the tree structure is larger than the maximum transform width or height, the corresponding CB may be automatically (or implicitly) divided until the TB size limit in the horizontal and vertical directions is satisfied.
  • the following parameters may be defined and identified as SPS syntax elements.
  • -CTU size the root node size of a quaternary tree
  • the CTU size may be set to 128x128 luminance samples and 64x64 blocks of two corresponding color difference samples (in a 4:2:0 chroma format).
  • MinQTSize is set to 16x16
  • MaxBtSize is set to 128x1208
  • MaxTtSzie is set to 64x64
  • MinBtSize and MinTtSize (for width and height mode) may be set to 4x4
  • MaxMttDepth may be set to 4.
  • Quart tree partitioning can be applied to CTU to create quadtree leaf nodes.
  • the quadtree leaf node may be referred to as a leaf QT node.
  • Quadtree leaf nodes may have a size of 128x128 (eg, CTU size) from 16x16 size (eg MinOTSize). If the leaf QT node is 128x128, it may not be additionally divided into a binary tree/ternary tree. This is because even if it is split in this case, it exceeds MaxBtsize and MaxTtszie (ie, 64x64). In other cases, the leaf QT node can be further divided into a multi-type tree. Therefore, the leaf QT node is a root node for a multi-type tree, and the leaf QT node may have a multi-type tree depth (mttDepth) of 0.
  • mttDepth multi-type tree depth
  • MaxMttdepth eg. 4
  • additional partitioning may not be considered any more. If the width of the multi-type tree node is equal to MinBtSize and less than or equal to 2xMinTtSize, additional horizontal division may not be considered. If the height of the multi-type tree node is equal to MinBtSize and less than or equal to 2xMinTtSize, additional vertical division may not be considered.
  • FIG. 11 illustrates an example of a case in which division of a ternary tree is limited according to an embodiment of the present specification.
  • TT segmentation may be forbidden in certain cases. For example, when the width or height of the luma coding block is greater than 64, TT partitioning may be prohibited as shown in FIG. 11. Also, for example, if the width or height of the color difference coding block is greater than 32, TT division may be prohibited.
  • the coding tree scheme may support that luminance and color difference (component) blocks have a separate block tree structure.
  • luminance and color difference (component) blocks may be indicated as SINGLE_TREE.
  • DUAL_TREE the luminance and color difference blocks in one CTU have an individual block tree structure.
  • the block tree type for the luminance component may be called DUAL_TREE_LUMA
  • the block tree type for the color difference component may be called DUAL_TREE_CHROMA.
  • luminance and color difference CTBs within one CTU may be limited to have the same coding tree structure.
  • the luminance and color difference blocks may have separate block tree structures from each other. If an individual block tree mode is applied, the luminance CTB may be divided into CUs based on a specific coding tree structure, and the color difference CTB may be divided into color difference CUs based on a different coding tree structure.
  • the CU in the I slice/tile group may be composed of a coding block of a luminance component or a coding block of two color difference components, and the CU of a P or B slice/tile group may be composed of blocks of three color components. can do.
  • the structure in which the CU is divided is not limited thereto.
  • the BT structure and the TT structure may be interpreted as a concept included in the Multiple Partitioning Tree (MPT) structure, and the CU may be interpreted as being divided through the QT structure and the MPT structure.
  • MPT Multiple Partitioning Tree
  • a syntax element eg, MPT_split_type
  • MPT_split_mode a syntax element including information on which direction is split.
  • the CU may be divided in a different way from the QT structure, BT structure, or TT structure. That is, according to the QT structure, the CU of the lower depth is divided into 1/4 size of the CU of the upper depth, or the CU of the lower depth is divided into 1/2 of the CU of the upper depth according to the BT structure, or according to the TT structure. Unlike CUs of lower depth are divided into 1/4 or 1/2 of CUs of higher depth, CUs of lower depth are 1/5, 1/3, 3/8, 3 of CUs of higher depth depending on the case. It may be divided into /5, 2/3, or 5/8 size, and the method of dividing the CU is not limited thereto.
  • the tree node block restricts all samples of all coded CUs to be located within the picture boundaries. Can be. In this case, for example, the following division rules may be applied.
  • the block is a QT node and the size of the block is larger than the minimum QT size, the block is forcibly divided into the QT division mode.
  • the block is a QT node and the block size is larger than the minimum QT size and the block size is larger than the maximum BT size, the block is forcibly divided into the QT division mode.
  • the block is a QT node and the size of the block is less than or equal to the minimum QT size, the block is forcibly divided into the QT division mode or the SPLIT_BT_HOR mode.
  • the block is forcibly split into SPLIT_BT_HOR mode.
  • the block is a QT node, the size of the block is larger than the minimum QT size, and the size of the block is larger than the maximum BT size, the block is forcibly divided into the QT division mode.
  • the block is a QT node
  • the size of the block is larger than the minimum QT size, and the size of the block is less than or equal to the maximum BT size, the block is forcibly divided into the QT division mode or SPLIT_BT_VER mode.
  • the block is forcibly divided into SPLIT_BT_VER mode.
  • FIG. 12 illustrates an example in which binary tree division and ternary tree division overlap according to an embodiment of the present specification.
  • a quadtree coding block structure with a multitype tree can provide a very flexible block partitioning structure. Because of the partitioning types supported for the multitype tree, different partitioning patterns can potentially lead to the same coding block structure result in some cases. By limiting the occurrence of such redundant partition patterns, the amount of data of partitioning information can be reduced.
  • two levels of consecutive binary splits in one direction have the same coding block structure as binary division for the center partition after ternary division.
  • the binary tree division (in the given direction) for the center partition of the ternary tree division is prohibited. This prohibition can be applied to CUs of all pictures.
  • signaling of corresponding syntax elements may be modified to reflect such a prohibited case, and through this, the number of bits signaled for partitioning may be reduced. For example, as shown in FIG.
  • the mtt_split_cu_binary_flag syntax element indicating whether the division is binary division or ternary division is not signaled, and its value is 0 can be inferred by the decoder.
  • VPDUs virtual pipeline data units
  • VPDUs may be defined as non-overlapping units within one picture.
  • successive VPDUs can be processed simultaneously by multiple pipeline stages.
  • the VPDU size is roughly proportional to the buffer size in most pipeline stages. Therefore, keeping the VDPU size small is important when considering the buffer size from a hardware perspective.
  • the VPDU size can be set equal to the maximum TB size.
  • the VPDU size may be 64x64 (64x64 luminance samples) size.
  • the VPDU size may be changed (increased or decreased) in consideration of the TT and/or BT partition described above.
  • an MxN block may represent a block including samples consisting of M columns and N rows.
  • FIG. 13 illustrates an example of a case in which the ternary tree division and the byte tree division are restricted according to an embodiment of the present specification.
  • at least one of the following restrictions may be applied as shown in FIG. 13.
  • -TT split is not allowed for a CU with either width or height, or both width and height equal to the width or height, or for a CU with both width and height equal to 128. 128).
  • vertical BT is not allowed
  • pictures constituting the video/video may be encoded/decoded according to a series of decoding orders.
  • a picture order corresponding to an output order of a decoded picture may be set differently from a decoding order, and based on this, not only forward prediction but also backward prediction may be performed during inter prediction.
  • step S1410 may be performed by the prediction units 180 and 185 of the encoding apparatus 100 described in FIG. 2, and step S1420 may be performed by the residual processing units 115, 120, and 130. , S1430 may be performed by the entropy encoding unit 190.
  • Step S1410 may include an inter/intra prediction procedure described in this document
  • step S1420 may include a residual processing procedure described in this document
  • step S1430 includes an information encoding procedure described in this document. can do.
  • the picture encoding procedure is not only a procedure for encoding information for picture restoration (eg, prediction information, residual information, and partitioning information) schematically as described in FIG. 2 to output in a bitstream format,
  • a procedure for generating a reconstructed picture for the current picture and a procedure for applying in-loop filtering to the reconstructed picture (optional) may be included.
  • the encoding apparatus 100 may derive (modified) residual samples from the quantized transform coefficients through the inverse quantization unit 140 and the inverse transform unit 150, and prediction samples corresponding to the output of step S1410 and ( A reconstructed picture may be generated based on the modified) residual samples.
  • the reconstructed picture generated in this way may be the same as the reconstructed picture generated by the decoding apparatus 200 described above.
  • a modified reconstructed picture can be generated through an in-loop filtering procedure for the reconstructed picture, which can be stored in the memory 170 (DPB 175), and, as in the case of the decoding device 200, a subsequent picture It can be used as a reference picture in an inter prediction procedure upon encoding of. As described above, in some cases, some or all of the in-loop filtering procedure may be omitted.
  • (in-loop) filtering-related information may be encoded by the entropy encoding unit 190 and output in the form of a bitstream, and the decoding apparatus 200
  • the in-loop filtering procedure may be performed in the same manner as the encoding apparatus 100.
  • noise generated during image/video coding such as blocking artifacts and ringing artifacts may be reduced, and subjective/objective visual quality may be improved.
  • the encoding device 100 and the decoding device 200 can derive the same prediction result, so that the reliability of picture coding is This can be improved and the amount of data transmitted for picture coding can be reduced.
  • Step S1510 may be performed by the entropy decoding unit 210 in the decoding apparatus 200 of FIG. 3, step S1520 may be performed by the prediction units 260 and 265, and step S1530 may be performed by the residual processing unit ( 220, 230), step S1540 may be performed by the addition unit 235, step S1350 may be performed by the filtering unit 240.
  • Step S1510 may include the information decoding procedure described in this document, step S1520 may include the inter/intra prediction procedure described in this document, and step S1530 includes the residual processing procedure described in this document.
  • step S1540 may include the block/picture restoration procedure described in this document, and step S1550 may include the in-loop filtering procedure described in this document.
  • the picture decoding procedure is a procedure for obtaining image/video information (through decoding) from a bitstream (S1510), a picture restoration procedure (S1520 to S1540), and a reconstructed picture, as described in FIG. It may include an in-loop filtering procedure (S1550) for.
  • the picture restoration procedure is based on prediction samples and residual samples obtained through the process of inter/intra prediction (S1520) and residual processing (S1530, inverse quantization and inverse transformation of a quantized code or coefficient) described in this document. Can be done.
  • a modified reconstructed picture may be generated through an in-loop filtering procedure for a reconstructed picture generated through a picture restoration procedure, and the modified reconstructed picture may be output as a decoded picture, and the decoding apparatus 200 It is stored in the DPB 255 of and can be used as a reference picture in inter prediction train when decoding a picture later.
  • the in-loop filtering procedure may be omitted, and in this case, the reconstructed picture may be output as a decoded picture, stored in the DPB 255 of the decoding device 200, and referenced in the inter prediction train when decoding a subsequent picture. Can be used as a picture.
  • the in-loop filtering procedure S1550 may include a deblocking filtering procedure, a sample adaptive offset (SAO) procedure, an adaptive loop filter (ALF) procedure, and/or a bi-lateral filter procedure as described above. And some or all of them may be omitted.
  • one or some of the deblocking filtering procedure, the SAO procedure, the ALF procedure, and the bilateral filter procedure may be sequentially applied, or all may be sequentially applied.
  • the SAO procedure may be performed.
  • the ALF procedure may be performed. This may be similarly performed in the encoding device 100.
  • a reconstructed block may be generated based on intra prediction/inter prediction for each block, and a reconstructed picture including the reconstructed blocks may be generated.
  • the current picture/slice/tile group is an I picture/slice/tile group
  • blocks included in the current picture/slice/tile group may be reconstructed based only on intra prediction.
  • inter prediction may be applied to some blocks in the current picture/slice/tile group
  • intra prediction may be applied to the remaining some blocks.
  • the color component of a picture may include a luminance component and a chrominance component, and the methods and embodiments proposed in this document may be applied to the luminance component and the chrominance component unless explicitly limited in this document.
  • 16 illustrates an example of a hierarchical structure for a coded image according to an embodiment of the present specification.
  • the coded image is a video coding layer (VCL) that deals with the decoding process of the image and itself, a subsystem that transmits and stores encoded information, and a network abstraction (NAL) that exists between the VCL and the subsystem and is responsible for network adaptation. layer).
  • VCL video coding layer
  • NAL network abstraction
  • VCL data including video data (tile group data) compressed in the VCL is generated, or a parameter set including information such as PPS (picture parameter set), SPS (sequence parameter set), VPS (video parameter set), or An additionally required SEI (supplemental enhancement information) message may be generated in the process of decoding an image.
  • PPS picture parameter set
  • SPS sequence parameter set
  • VPS video parameter set
  • SEI Supplemental Enhancement information
  • NAL unit data may be added to a raw byte sequence payload (RBSP) generated in VCL to generate a NAL unit.
  • RBSP may refer to tile group data, parameter set, and SEI message generated in the VCL.
  • NAL unit type information specified according to RBSP data included in the corresponding NAL unit may be included.
  • the NAL unit may be divided into a VCL NAL unit and a Non-VCL NAL unit according to an RBSP generated from VCL.
  • the VCL NAL unit may mean a NAL unit that includes information about an image (tile group data), and the Non-VCL NAL unit is an NAL that includes information (parameter set or SEI message) necessary for decoding an image. It can mean a unit.
  • VCL NAL unit and Non-VCL NAL unit may be transmitted through a network with header information added according to the data standard of the sub-system.
  • the NAL unit may be converted into a data format of a predetermined standard such as an H.266/VVC file format, a real-time transport protocol (RTP), and a transport stream (TS) and then transmitted through various networks.
  • a predetermined standard such as an H.266/VVC file format, a real-time transport protocol (RTP), and a transport stream (TS)
  • the NAL unit type may be specified according to the RBSP data structure included in the corresponding NAL unit, and information on the NAL unit type may be stored in the NAL unit header and signaled.
  • the NAL unit may be largely classified into a VCL NAL unit type and a Non-VCL NAL unit type according to whether or not information on an image (tile group data) is included.
  • the VCL NAL unit type may be classified according to the nature and type of a picture included in the VCL NAL unit, and the non-VCL NAL unit type may be classified according to the type of the parameter set.
  • NAL unit type specified according to the type of a parameter set included in the Non-VCL NAL unit type.
  • NAL unit A type for a NAL unit including APS
  • VPS Video Parameter Set
  • NAL unit a type for a NAL unit including SPS
  • NAL unit A type for a NAL unit including PPS
  • NAL unit types have syntax information for the NAL unit type, and the syntax information may be stored in the NAL unit header and signaled.
  • syntax information may be nal_unit_type, and NAL unit types may be specified by nal_unit_type values.
  • the tile group header may include information/parameters commonly applicable to the tile group.
  • APS APS syntax
  • PPS PPS syntax
  • SPS SPS syntax
  • VPS VPS syntax
  • the higher-level syntax may include at least one of APS syntax, PPS syntax, SPS syntax, and VPS syntax.
  • the image/video information encoded by the encoding device 100 by the decoding device 200 and signaled in the form of a bitstream includes intra-picture partitioning-related information, intra/inter prediction information, residual information, and in-loop filtering information.
  • information included in the APS, information included in the PPS, information included in the SPS, and/or the information included in the VPS may be included.
  • MTS Multiple Transform Selection, hereinafter referred to as'MTS'
  • MTS Multiple Transform Selection, hereinafter referred to as'MTS'
  • AMT Adaptive Mutliple Transform
  • EMT Explicit Multiple Transform
  • mts_idx may also be expressed as AMT_idx, EMT_idx, AMT_TU_idx EMT_TU_idx, transformation index or transformation combination index, and the like, and embodiments of the present specification are It is not limited to these expressions.
  • FIG. 17 is a schematic block diagram of a transform and quantization unit, an inverse quantization and inverse transform unit in an encoding apparatus according to an embodiment of the present specification
  • FIG. 18 is a schematic block diagram of an inverse quantization and inverse transform unit in a decoding apparatus.
  • the transform and quantization unit 120/130 may include a primary transform unit 121, a secondary transform unit 122, and a quantization unit 130. have.
  • the inverse quantization and inverse transform unit 140/150 may include an inverse quantization unit 140, an inverse secondary transform unit 151, and an inverse primary transform unit 152. I can.
  • the inverse quantization and inverse transform unit 220/230 includes an inverse quantization unit 220, an inverse secondary transform unit 231, and an inverse primary transform unit ( 232) may be included.
  • the transformation when performing the transformation, the transformation may be performed through a plurality of steps. For example, as shown in FIG. 17, two steps of a primary transform and a secondary transform may be applied, or a higher transform step may be used depending on an algorithm.
  • the first-order transform may be referred to as a core transform.
  • the first-order transform unit 121 may apply a first-order transform to the residual signal, where the first-order transform may be predefined as a table in the encoder and/or decoder.
  • the second-order transform unit 122 may apply a second-order transform to the first-order transformed signal, where the second-order transform may be predefined as a table in the encoder and/or decoder.
  • a non-separable secondary trans-form may be conditionally applied as a secondary transform.
  • NSST is applied only to an intra prediction block, and may have a transform set applicable to each prediction mode group.
  • the prediction mode group may be set based on symmetry with respect to the prediction direction. For example, since prediction mode 52 and prediction mode 16 are symmetric with respect to prediction mode 34 (diagonal direction), one group may be formed and the same transform set may be applied. In this case, when applying the transform for the prediction mode 52, the input data is transposed and then applied, because the prediction mode 16 and the transform set are the same.
  • each transform set may be formed, and the corresponding transform set may be composed of two transforms.
  • three transforms may be configured for each transform set.
  • the quantization unit 130 may perform quantization on the second-order transformed signal.
  • the inverse quantization and inverse transform unit 140/150 performs the above-described process in reverse, and redundant descriptions will be omitted.
  • FIG. 19 illustrates an example of a transformation procedure to which multiple transform selection is applied according to an embodiment of the present specification.
  • a transform combination may be configured by mixing separable transforms and non-separable transforms.
  • non-separated transformation selection of transformation for each row/column or selection for each horizontal/vertical direction becomes unnecessary, and transformation combinations can be used only when a separable transformation is selected.
  • the schemes proposed in the present specification can be applied regardless of the first-order transformation or the second-order transformation. That is, there is no restriction that it should be applied to either of the two, and both can be applied.
  • the first-order transform may mean a transform for firstly transforming the residual block
  • the second-order transform may mean a transform for applying a transform to a block generated as a result of the first-order transform.
  • the encoding apparatus 100 may determine a transform group corresponding to the current block (S1910).
  • the transform group may refer to the transform group shown in Table 2 below, but the present invention is not limited thereto and may be composed of other transform combinations.
  • the encoding apparatus 100 may perform transformation on candidate transformation combinations available in the transformation group (S1920). As a result of performing the conversion, the encoding apparatus 100 may determine or select a conversion combination having the lowest RD (rate distortion) cost (S1930). The encoding apparatus 100 may encode a transformation combination index corresponding to the selected transformation combination (S1940).
  • FIG. 20 illustrates an example of an inverse transform procedure to which multiple transform selection is applied according to an embodiment of the present specification.
  • the decoding apparatus 200 may determine a transform group for the current block (S2010).
  • the decoding apparatus 200 may parse the transform combination index, where the transform combination index may correspond to any one of a plurality of transform combinations in the transform group (S2020).
  • the decoding apparatus 200 may induce a transform combination corresponding to the transform combination index (S2030).
  • the decoding apparatus 200 may perform an inverse transform on the current block based on the transform combination (S2040).
  • the transformation combination is composed of row transformation and column transformation, the row transformation may be applied first and then the column transformation may be applied.
  • the present invention is not limited thereto, and the opposite is applied, or when non-separated transforms are configured, the non-separated transform may be directly applied.
  • 21 illustrates an example of an inverse transform procedure using information related to multiple transform selection according to an embodiment of the present specification.
  • the decoding apparatus 200 to which the present invention is applied may acquire sps_mts_intra_enabled_flag or sps_mts_inter_enabled_flag (S2110).
  • sps_mts_intra_enabled_flag indicates whether cu_mts_flag is present in the residual coding syntax of the intra coding unit.
  • sps_mts_intra_enabled_flag 0
  • cu_mts_flag 1
  • cu_mts_flag 1
  • cu_mts_flag 1
  • mts_idx indicates which transform kernel is applied to the luminance residual samples along the horizontal and/or vertical directions of the current transform block.
  • mts_idx For example, for mts_idx, at least one of the embodiments described herein may be applied.
  • the decoding apparatus 200 may derive a transform kernel corresponding to mts_idx (S2040).
  • a transformation kernel corresponding to mts_idx may be divided into horizontal transformation and vertical transformation and defined.
  • the decoding apparatus 200 may configure an MTS candidate based on the intra prediction mode of the current block.
  • the step of configuring an MTS candidate may be further included in the decoding flowchart of FIG. 21.
  • the decoding apparatus 200 may determine an MTS candidate applied to the current block using mts_idx from among the configured MTS candidates.
  • transformation kernels may be applied for horizontal transformation and vertical transformation.
  • present invention is not limited thereto, and the same transformation kernel may be applied to the horizontal transformation and the vertical transformation.
  • a horizontal transform kernel and a vertical transform kernel according to mts_idx may be defined as shown in Table 2 below.
  • trTypeHor and trTypeVer represent the type of the horizontal conversion kernel and the type of the vertical conversion kernel. If trTypeHor and trTypeVer are 0, DCT2 is applied, if trTypeHor and trTypeVer are 1, DST7 is applied, and if trTypeHor and trTypeVer are 2, DCT8 can be applied.
  • the decoding apparatus 200 may perform inverse transformation based on the transformation kernel (S2050).
  • Table 3 shows an example of the syntax for the syntax element tu_mts_idx.
  • Example 2 Compared with Example 1, in Example 2, instead of parsing the TS (transform skip) flag after fixed length coding with two bins for the MTS flag and MTS index, the syntax element tu_mts_idx according to Example 2 was truncated. It uses truncated unary binarization. The first bin indicates TS, the second bin indicates MTS, and the rest indicate MTS index.
  • Table 4 The semantics and binarization methods are shown in Table 4 below.
  • semantics and binarization method may be as shown in Table 5.
  • Some or all of the above-described video/video information may be entropy-encoded by the entropy encoding unit 190, and some or all of the above-described video/video information may be entropy-decoded by the entropy decoding unit 210.
  • CABAC may be employed as a technique for entropy coding, and syntax element(s) included in residual information to be described later may be entropy-coded based on CABAC.
  • the video/image information may be encoded/decoded in units of syntax elements.
  • that information is encoded/decoded may include encoding/decoding by the method described in this paragraph.
  • 22 is a block diagram for entropy encoding according to an embodiment of the present specification. 22 shows a block diagram of CABAC for encoding one syntax element.
  • the encoding process of CABAC first converts the input signal into a binary value through binarization when the input signal is a syntax element rather than a binary value. If the input signal is already binary, it is bypassed without going through binarization.
  • each binary number 0 or 1 constituting the binary value is called a bin.
  • each of 1, 1, and 0 is referred to as one bin.
  • the bin(s) for one syntax element may represent a value of a corresponding syntax element.
  • the binarized bins are input into a regular coding engine or a bypass coding engine.
  • the regular coding engine allocates a context model that reflects a probability value to the corresponding bin, and codes the corresponding bin based on the assigned context model.
  • the regular coding engine may update the probability model for the corresponding bin after performing coding for each bin. Bins coded in this way are called context-coded bins.
  • the bypass coding engine omits the procedure of estimating the probability for the input bin and the procedure of updating the probability model applied to the corresponding bin after coding. Instead of allocating context, a uniform probability distribution (eg, 50:50) is applied to code the input bins to improve coding speed. Bins coded in this way are called bypass bins.
  • the context model may be allocated and updated for each context-coded (normally coded) bin, and the context model may be indicated based on ctxIdx or ctxInc.
  • ctxIdx may be derived based on ctxInc.
  • a context index (ctxIdx) indicating a context model for each of the regularly coded bins may be derived as a sum of a context index increment (ctxInc) and a context index offset (ctxIdxOffset).
  • ctxInc may be derived differently for each bin.
  • ctxIdxOffset may be represented by the lowest value of ctxIdx.
  • ctxIdx may be referred to as an initial value (initValue) of ctxIdx.
  • ctxIdxOffset is a value generally used to distinguish context models for other syntax elements, and a context model for one syntax element may be identified/derived based on ctxInc.
  • Entropy decoding performs the same process as entropy encoding in reverse order.
  • 23A and 23B illustrate an entropy encoding method and related components according to an embodiment of the present specification.
  • the encoding apparatus 100 performs an entropy coding procedure for image/video information.
  • the image/video information may include partitioning related information, prediction related information (eg, inter/intra prediction classification information, intra prediction mode information, inter prediction mode information), residual information, and in-loop filtering related information, or It can contain various syntax elements for.
  • Entropy coding may be performed in units of syntax elements. Steps S2310 to S2320 of FIG. 23A may be performed by the entropy encoding unit 190 of the encoding apparatus 100 of FIG. 2 described above.
  • the encoding device 100 performs binarization on the target syntax element (S2310).
  • binarization may be based on various binarization methods such as a Truncated Rice binarization process and a fixed-length binarization process, and a binarization method for the target syntax element may be predefined.
  • the binarization procedure may be performed by the binarization unit 192 in the entropy encoding unit 190.
  • the encoding device 100 performs entropy encoding on the target syntax element (S2320).
  • the encoding apparatus 100 may encode an empty string of a target syntax element based on an entropy coding technique such as CABAC or CAVLC based on normal coding (context based) or bypass coding, and the output may be included in a bitstream.
  • the entropy encoding procedure may be performed by the entropy encoding processing unit 193 in the entropy encoding unit 190.
  • the bitstream can be delivered to a decoding device through a (digital) storage medium or a network.
  • 24A and 24B illustrate an entropy decoding method and related components according to an embodiment of the present specification.
  • the decoding apparatus 200 may decode encoded image/video information.
  • the image/video information may include partitioning related information, prediction related information (eg, inter/intra prediction classification information, intra prediction mode information, inter prediction mode information), residual information, and in-loop filtering related information, or It can contain various syntax elements related to it.
  • Entropy coding may be performed in units of syntax elements. Steps S2410 to S2420 may be performed by the entropy decoding unit 210 of the decoding apparatus 200 of FIG. 3 described above.
  • the decoding apparatus 200 performs binarization on the target syntax element (S2410). Binarization can be based on various binarization methods such as the Truncated Rice binarization process and the Fixed-length binarization process, and the binarization method for the target syntax element can be predefined.
  • the decoding apparatus may derive available bin strings (empty string candidates) for available values of a target syntax element through a binarization procedure.
  • the binarization procedure may be performed by the binarization unit 212 in the entropy decoding unit 210.
  • the decoding apparatus 200 performs entropy decoding on the target syntax element (S2420).
  • the decoding apparatus 200 sequentially decodes and parses each bin for a relative syntax element from the input bit(s) in the bitstream, and compares the derived bin string with the available bin strings for the corresponding syntax element. If the derived empty string is the same as one of the available empty strings, a value corresponding to the corresponding empty string is derived as a value of the corresponding syntax element. If not, the next bit in the bitstream is further parsed and the above-described procedure is performed again. Through this process, the information can be signaled using variable length bits without using a start bit or an end bit for specific information (specific syntax element) in the bitstream. Through this, relatively fewer bits can be allocated to a low value, and overall coding efficiency can be improved.
  • the decoding apparatus 200 may decode each bin in the bin string from the bitstream based on an entropy coding technique such as CABAC or CAVLC based on context or bypass.
  • the bitstream may include various information for video/video decoding.
  • the bitstream can be delivered to a decoding device through a (digital) storage medium or a network.
  • residual samples may be derived into quantized transform coefficients through a transform and quantization process.
  • the quantized transform coefficients may also be called transform coefficients.
  • the transform coefficients within the block may be signaled in the form of residual information.
  • the residual information may include residual coding syntax. That is, the encoding apparatus 100 may construct a residual coding syntax with residual information, encode it, and output it in the form of a bitstream, and the decoding apparatus 200 decodes the residual coding syntax from the bitstream to obtain a residual ( Quantized) transform coefficients can be derived.
  • the residual coding syntax is a syntax element indicating where the position of the last effective transform coefficient in the corresponding block is, whether there is an effective transform coefficient in the subblock, and the size/code of the effective transform coefficient ( syntax elements).
  • the transform coefficients are encoded by using any or all of the transform_skip_flag, last_sig_coeff_x_prefix, last_sig_coeff_y_prefix, last_sig_coeff_x_suffix, last_sig_coeff_y_suffix, coded_sub_block_flag, sig_coeff_flag, par_level_flag, abs_level_gt1_flag, abs_level_gt3_flag, abs_remainder, coeff_sign_flag, and mts_idx syntax element (syntax element).
  • residual (data) coding or (transform) coefficient coding.
  • the conversion/quantization process may be omitted.
  • values of residual samples may be coded and signaled according to a predetermined method. Table 7 shows syntax elements related to residual data encoding.
  • transform_skip_flag indicates whether transformation is omitted in an associated block.
  • the associated block may be a coding block (CB) or a transform block (TB).
  • CB and TB may be used interchangeably.
  • residual samples are derived for CB, and (quantized) transform coefficients can be derived through transform and quantization of the residual samples, and through a residual coding procedure.
  • Information or syntax elements
  • Quantized transform coefficients can simply be called transform coefficients.
  • the size of the CB may be the same as the size of the TB.
  • the target block to be transformed (and quantized) and residual coded may be referred to as CB, and may be referred to as TB.
  • CB when CB is larger than the maximum TB, the target block to be transformed (and quantized) and residual coded may be referred to as TB.
  • syntax elements related to residual coding will be described as being signaled in units of transform blocks (TB), but this is an example, as described above, that the TB can be mixed with the coding block (CB).
  • the (x, y) position information of the last non-zero coefficient in the transform block is encoded as last_sig_coeff_x_prefix, last_sig_coeff_y_prefix, last_sig_coeff_x_suffix, and last_sig_coeff_y_suffix.
  • last_sig_coeff_x_prefix represents the prefix of the column position of the last significant coefficient in the scanning order in the transform block
  • last_sig_coeff_y_prefix is the scan order in the transform block Represents the prefix of the row position of the last significant coefficient in (scanning order)
  • last_sig_coeff_x_suffix is the last in the scanning order in the transform block Represents the suffix of the column position of the significant coefficient
  • last_sig_coeff_y_suffix is the row position of the last significant coefficient in the scanning order in the transform block Represents the suffix of (row position).
  • the effective coefficient may represent the non-zero coefficient.
  • the scan order may be an upward-right diagonal scan order.
  • the scan order may be a horizontal scan order or a vertical scan order.
  • the scan order may be determined based on whether intra/inter prediction is applied to a target block (CB or CB including TB) and/or a specific intra/inter prediction mode.
  • a 1-bit syntax element coded_sub_block_flag is used for each 4x4 sub-block to indicate whether a non-zero coefficient exists in the current sub-block.
  • the sub-block may be used interchangeably with a coefficient group (CG).
  • coded_sub_block_flag is 0, since there is no more information to be transmitted, the encoding process for the current sub-block ends. Conversely, if the value is 1, the sig_coeff_flag encoding process is continuously performed. The coded_sub_block_flag coding is unnecessary for the last sub-block containing the non-zero coefficient, and the sub-block containing the DC information of the transform block has a high probability of containing the non-zero coefficient, so the coded_sub_block_flag is not encoded, and this value is 1 Assume this.
  • sig_coeff_flag having a binary value is encoded according to the reverse scan order.
  • the 1-bit syntax element sig_coeff_flag is encoded for each coefficient according to the scan order. If the coefficient value at the current scan position is not 0, the sig_coeff_flag value becomes 1.
  • the encoding process is omitted.
  • Level information encoding is performed only when sig_coeff_flag is 1, and four syntax elements are used in the level information encoding process. Specifically, each sig_coeff_flag[xC][yC] represents whether the level (value) of the corresponding transform coefficient at each transform coefficient position (xC, yC) in the current TB is non-zero.
  • Equation 1 The remaining level value after sig_coeff_flag encoding is shown in Equation 1.
  • the level value remAbsLevel to be encoded is as follows.
  • coeff means an actual transform coefficient value.
  • abs_level_gt1_flag indicates whether remAbsLevel' at the corresponding scanning position (n) is greater than 1. If the value of abs_level_gt1_flag is 0, the absolute value of the coefficient at the corresponding position is 1. If the value of abs_level_gt1_flag is 1, then the level value remAbsLevel to be encoded is equal to Equation 2 below.
  • the least significant coefficient (LSB) value of remAbsLevel of Equation 2 is encoded as shown in Equation 3 through par_level_flag. That is, par_level_flag[n] may represent parity of the transform coefficient level (value) at the scanning position n.
  • the level value remAbsLevel to be encoded is updated as shown in Equation 4.
  • abs_level_gt3_flag indicates whether remAbsLevel' at the corresponding scanning position n is greater than 3. Only when abs_level_gt3_flag is 1, abs_remainder encoding is performed.
  • the relationship between the actual transform coefficient value coeff and each syntax element is shown in Equation 5, and Table 2 shows some examples. Finally, the sign of each coefficient is coded using a 1-bit symbol coeff_sign_flag.
  • represents a transform coefficient level (value), and may be expressed as AbsLevel for the transform coefficient.
  • coeff_sign_flag represents the sign of the transform coefficient level at the corresponding scanning position (n).
  • Table 8 below shows syntax elements of the transform coefficient level
  • 25 illustrates an example of intra-block transform coefficients according to an embodiment of the present specification.
  • This block may be a 4x4 transform block, or may be an 8x8, 16x16, 32x32 code or a 4x4 subblock of a block.
  • Table 9 shows encoding results for the coefficients scanned inverse diagonally in FIG. 25.
  • scan_pos refers to the position of the coefficient according to the inverse diagonal scan.
  • scan_pos 15 is the coefficient of the first scan in the 4x4 block, that is, the lower right corner
  • scan_pos 0 is the coefficient of the last scan, that is, the upper left corner.
  • CABAC provides high performance, but has a disadvantage of poor throughput performance. This is due to the regular encoding engine of CABAC. Since the regular encoding uses the updated probability state and range through encoding of the previous bin, it shows high data dependence, and it takes a lot of time to read the probability interval and determine the current state. This can solve the CABAC throughput problem by limiting the number of context-coded bins.
  • the sum of bins used to express sig_coeff_flag, abs_level_gt1_flag, par_level_flag, and abs_level_gt3_flag may be limited to 32 for 4x4 subblocks and 8 (remBinsPass1) for 2x2 subblocks according to the size of the subblock. .
  • bypass encoding can be performed by binarizing the coefficients for the remaining coefficients without using CABAC.
  • No last significant coefficient scanning position Since the residual signal reflects the spatial residual after prediction and energy compaction by transformation for TS (transform skip) is not performed, a high probability or transformation for zero tailings The insignificant at the lower right corner of the block is no longer given. Thus, in this case, signaling of the last significant coefficient scanning position is omitted. Instead, the subblock to be processed first is the lower-right subblock in the transform block.
  • Subblock CBF The absence of last significant coefficient scanning position signaling requires that subblock CBF signaling using coded_sub_block_flag for TS is changed as follows.
  • the coded_sub_block_flag for the DC frequency position (upper left subblock) subblock indicates a special case.
  • the coded_sub_block_flag for the DC frequency location subblock is not signaled and is always inferred as 1.
  • the last valid scanning position is in another subblock, this means that at least one valid level exists outside the DC subblock.
  • the coded_sub_block_flag for the DC subblock is 1, the DC subblock may only include zero/invalid levels.
  • a coded_sub_block_flag for each subblock is signaled together with the absence of last scanning position information in the TS.
  • DC coded_sub_block_flag for DC subblocks except when all other coded_sub_block_flag syntax elements are already 0.
  • the context modeling for coded_sub_block_flag is changed.
  • the context model index is calculated as the sum of the coded_sub_block_flag on the right side of the current subblock and the coded_sub_block_flag on the bottom side and the logical disjunction of both sides.
  • sig_coeff_flag context modeling In sig_coeff_flag, the local template context modeling includes only the right neighbor (NB0) and the lower neighbor (NB1) for the current scanning position.
  • the context Moel offset is only the number of valid neighbor locations sig_coeff_flag[NB0] + sig_coeff_flag[NB1].
  • abs_level_gt1_flag and par_level_flag context modeling A single context model is used for abs_level_gt1_flag and par_level_flag.
  • abs_remainder coding Although the empirical distribution of the transform skip from skip residual absolute levels is still suitable for Laplacian or geometrical distribution, the instationarity of transform coefficients is greater than the absolute levels. In particular, the variance inside the window of successive realization is higher than the residual absolute levels, hereinafter causing abs_remainder syntax binarization and changes in context modeling.
  • the template for deriving the Rice parameter is changed, that is, the left neighbor and the lower neighbor at the current scanning position are considered to be similar to the local template for sig_coeff_flag context modeling.
  • coeff_sign_flag context modeling even when the global empirical distribution is almost uniformly distributed, the codes are used using context models due to the fact that the predictive residual is often skewed and the instationarities inside the sequences of codes. Is coded. A single dedicated context model is used for coding of codes, and the code is parsed after sig_coeff_flag to keep all context coded bins together.
  • CCBs context coded bins
  • the first scanning pass i.e. the transmission of sig_coeff_flag, abs_level_gt1_flag, and par_level_flag syntax elements.
  • CCBs context coded bins
  • Transform skip residual coding syntax may be as shown in Table 10 below.
  • Blocks that have not undergone transcoding have different characteristics of residual data from those in which general transcoding has been performed, so efficient residual data coding for blocks to which transcoding has not been performed, that is, a block to which transform skip is applied.
  • the conversion status flag indicating whether conversion is performed may be transmitted in units of conversion blocks.
  • the size of the transform block may vary and is not limited to a specific value. For example, when the conversion status flag is 1, the residual data encoding proposed in the present invention may be performed, and when the conversion status flag is 0, the existing residual data encoding described in Table 7 may be performed.
  • the residual data encoding except for coeff_sign_flag below coded_sub_block_flag may follow some or all of the previously described residual data encoding method.
  • the proposed residual data encoding is performed.
  • tu_mts_idx is 0 (or a value other than 1)
  • residual data encoding based on the syntax elements of Table 7 may be performed.
  • the transform_skip_flag syntax element and/or the mts_idx syntax element in Table 7 may be omitted.
  • ts_enabled When the binarization for the transform skip and the transform index is mts_enabled, ts_enabled, mts_enabled, and ts_enabled are all possible, each may be defined differently. Likewise, the size at which the transform skip is defined may be differently defined depending on whether mts_enabled is 0 or 1.
  • the size of the transform skip may be dependent on the allowed MTS. For example, if the size of the MTS is allowed to be 32 or less, the transform skip may be always defined for a block having a block size of 32 or less.
  • ts_enabled the maximum size already promised between the encoder and the decoder may be used.
  • ts_enabled may be defined according to this maximum size.
  • an encoder and a decoder can be defined to use only transform skips of blocks with the size of one side less than or equal to 8.
  • the maximum size information of the transform skip block may be expressed as the maximum number of pixels rather than the maximum size of one side of the block.
  • the maximum size of the transform skip may be defined separately from the size of the MTS.
  • the maximum size information of the transform skip block may be expressed as the maximum number of pixels instead of the maximum size of one side of the block.
  • mts_enabled 0
  • ts_enabled 1
  • the encoder and the decoder use only the transform skip of a block whose size of one side is less than or equal to 8.
  • the maximum size information of the transform skip block may be expressed as the maximum number of pixels rather than the maximum size of one side of the block.
  • mts_enabled 0
  • information on the maximum size of the transform skip may be transmitted.
  • information for allowing the maximum size of the transform skip to 16 may be transmitted in a high level syntax.
  • ts_enabled 0 is defined, so that the binarization table of "unified transform type signaling" can be effectively applied.
  • the maximum size information of the transform skip block may be expressed as the maximum number of pixels instead of the maximum size of one side of the block.
  • the context table may be determined according to the size of the block, the width-height ratio of the block, whether intra or inter prediction of the block, and whether to skip surrounding transforms. For example, when the block size is less than 8x8, the context table of index 0 can be used, and when the size of the block is larger than 8x8, the context table of index 1 can be used. As another example, when the width-height ratio of a block is 1, the context table of index 0 can be used, and if it is smaller or larger than that, the context table of index 1 can be used.
  • index 0 context table when the prediction mode of the current block is an intra mode, index 0 context table may be used, and when an inter mode is an inter mode, index 1 context table may be used for encoding.
  • index 0 context table when the prediction mode of the current block is an intra mode, index 0 context table may be used, and when an inter mode is an inter mode, index 1 context table may be used for encoding.
  • the number of context tables and tables can be variously defined based on probability and distribution, and the present invention is not limited to the number of specific context tables and context tables.
  • a syntax including the following syntax elements may be configured/encoded and signaled to the decoding apparatus 200 through a bitstream, and the decoding apparatus 200 ordered the syntax elements. Can be parsed/decoded according to. What each syntax element specifies is indicated in the relevant semantics.
  • the picture parameter set RBSP syntax may be as shown in Table 11 below.
  • transform_skip_enabled_flag indicates whether it is possible to omit transform for residual blocks in a picture. In one embodiment, if transform_skip_enabled_flag is 0, tu_mts_idx does not indicate whether to omit the transform for the residual block coding syntax.
  • log2_transform_skip_max_size_minus2 represents the maximum block size to which the transform skip can be applied. If transform_skip_enabled_flag is 0 or does not exist, the value of log2_transform_skip_max_size_minus2 is deduced as 0.
  • the variable MaxTsSize indicating the maximum transform skip size may be set to 1 ⁇ (log2_transform_skip_max_size_minus2 + 2).
  • the following embodiments provide a method for determining whether to apply a transform skip to a luminance and color difference block and to apply the transform skip.
  • a transform skip may be applied to a color difference block, and in order to determine whether to apply a transform skip to a color difference block, a transform skip flag indicating whether a transform skip is applied to the color difference block is used.
  • a condition for applying the transform skip to the color difference block may be set, and the transform skip condition of the color difference block may be determined based on the size of the current block and the tree type of the current block. That is, the size of the current block must be smaller than or equal to the reference size in consideration of coding complexity, and the tree type (single tree or dual tree chroma) of the current block is a condition for determining whether the current block corresponds to a color difference block.
  • the reference size may be set equal to the conversion skip condition of the luminance block.
  • the reference size may be determined based on the transform skip maximum size information, and the transform skip maximum size information is commonly applied to luminance and color difference components. Since the reference size for applying the transform skip to the luminance block and the chrominance block is set identically, the encoder does not need to separately transmit information indicating the reference size for the luminance block and the chrominance block, and single information (transform skip maximum The signaling overhead can be reduced by transmitting the size information) to the decoder.
  • 26 illustrates an example of a color difference block and a corresponding luminance block in a dual tree according to an embodiment of the present specification.
  • the transform skip and the transcoding related index may be integrated and managed (tu_mts_idx), which may be used only for the luminance block. That is, in the chrominance block, there are no indexes related to transform skip and transcoding, which means that transform skip is not used in the chrominance block.
  • Transform skips are often used in text and graphics with motion (TGM) images, and result in a lot of improvement in compression performance. Accordingly, this embodiment proposes a method of adaptively applying a transform skip to a color difference block.
  • Transformation skip may be adaptively applied to the chrominance block according to whether the luminance block co-located to the current chrominance block is skipped. That is, when the luminance block corresponding to the current color difference block is applied with the transform skip, the transform skip is applied to the color difference block in the same manner.
  • a luminance image and a chrominance image have high correlation characteristics. Therefore, when a transformation skip is applied to a luminance block, applying the transformation skip to the corresponding chrominance block is probabilistically improving coding efficiency. It helps.
  • This method can be applied when the tile group type is I, P, and B, and when the tile group type is I, it can be applied regardless of whether or not dual tree is applied. That is, when the dual tree as shown in FIG. 26 is applied, the conversion of the luminance block corresponding to the center position (CR) of the luminance block corresponding to the current color difference block (same as the luminance mode derivation method in the prediction DM mode in the color difference screen) Transformation skip is adaptively applied to the current color difference block through the presence or absence of skip application. In addition to the CR position, it is possible to use whether or not to apply the transform skip of the upper left position (TL), the upper right position (TR), the lower left position (BL), and the lower right position (BR) in the luminance block.
  • a conversion skip flag indicating whether to skip conversion of the current color difference block may be transmitted. That is, when determining whether to apply the transform skip to the current color difference block, the encoder determines whether to apply the transform skip to the color difference block through calculation of the RD cost, and transmits this information (transform skip flag) to the decoder.
  • the transform skip flag may be encoded/decoded through CABAC, and by-pass coding or context model may be used.
  • the encoder/decoder may determine whether to apply it only when the size of the current color difference block is 32x32 or less, such as a luminance block. Also, the encoder/decoder may determine whether to apply the transform skip according to the color format of the current block. For example, when the current color format is 4:2:0, the encoder/decoder may determine whether to apply the color difference block only when the size of the color difference block is 16x16 or less. Also, the encoder/decoder may determine whether to apply the transform skip according to the type of the region to which the current block belongs (eg, picture, slice, tile group).
  • the type of the region to which the current block belongs eg, picture, slice, tile group.
  • the encoder/decoder may determine whether or not the transform skip is applied only when the block size is 32x32 or 16x16 or less. If the current tile group type is P or B, and the block size is less than 16x16 (if it is 8x8, 4x4, or 2x2 or less), it may be determined whether or not transform skip is applied. Blocks that have not undergone transcoding through the above method may be encoded and decoded through the same method as before.
  • the transform skip and the transcoding related index may be integrated and managed (tu_mts_idx), which may be used only for the luminance block. That is, in the chrominance block, there are no indexes related to transform skip and transcoding, which means that transform skip is not used in the chrominance block.
  • Transform skips are often used in text and graphics with motion (TGM) images, and result in a lot of improvement in compression performance. Accordingly, this embodiment proposes a method of adaptively applying a transform skip to a color difference block.
  • the encoder/decoder may adaptively determine whether or not to apply the transform skip according to the intra prediction mode of the color difference block. That is, the luminance block corresponding to the current chrominance block uses the transform skip method, and the intra prediction mode of the chrominance block is the DM mode (direct mode, a method of using the luminance block's intra prediction mode) or CCLM (cross-component linear model). Only in the mode, the transform skip can be applied to the current color difference block.
  • the intra prediction mode of the chrominance block is the DM mode (direct mode, a method of using the luminance block's intra prediction mode) or CCLM (cross-component linear model). Only in the mode, the transform skip can be applied to the current color difference block.
  • the intra prediction mode of the current color difference block is the DM mode or the CCLM mode
  • This method may be used only when the intra prediction mode of the current color difference block is the DM mode, or may be used only when the CCLM mode is used. Also, this method is applicable when the current luminance block and color difference block are in the intra prediction mode. If the current color difference block is not in the intra prediction mode, the transform skip method is not used, or if the corresponding luminance block uses transform skip as described above, the transform skip may be applied to the color difference block.
  • This method can be applied when the tile group type is I, P, and B, and when the tile group type is I, it can be applied regardless of whether or not dual tree is applied. That is, when the dual tree as shown in FIG. 26 is applied, the conversion of the luminance block corresponding to the center position (CR) of the luminance block corresponding to the current color difference block (same as the luminance mode derivation method in the prediction DM mode in the color difference screen) Transformation skip is adaptively applied to the current color difference block through the presence or absence of skip application. In addition to the CR position, it is possible to use whether or not to apply the transform skip of the upper left position (TL), the upper right position (TR), the lower left position (BL), and the lower right position (BR) in the luminance block.
  • a transformation skip flag indicating whether to skip transformation of a current color difference block may be transmitted. That is, when determining whether to apply the transform skip to the current color difference block, the encoder determines whether to apply the transform skip to the color difference block through calculation of the RD cost, and transmits this information (transform skip flag) to the decoder.
  • the transform skip flag may be encoded/decoded through CABAC, and by-pass coding or context model may be used.
  • the encoder/decoder may determine whether to apply it only when the size of the current color difference block is 32x32 or less, such as a luminance block. Also, the encoder/decoder may determine whether to apply the transform skip according to the color format of the current block. For example, when the current color format is 4:2:0, the encoder/decoder may determine whether to apply the color difference block only when the size of the color difference block is 16x16 or less. Also, the encoder/decoder may determine whether to apply the transform skip according to the type of the region to which the current block belongs (eg, picture, slice, tile group).
  • the type of the region to which the current block belongs eg, picture, slice, tile group.
  • the encoder/decoder may determine whether or not the transform skip is applied only when the block size is 32x32 or 16x16 or less. If the current tile group type is P or B, and the block size is less than 16x16 (if it is 8x8, 4x4, or 2x2 or less), it may be determined whether or not transform skip is applied. Blocks that have not undergone transcoding through the above method may be encoded and decoded through the same method as before.
  • transform skip and transform encoding related indexes may be integrated and managed (tu_mts_idx), but this may be used only for a luminance block, and is used when the block size is less than or equal to 32x32. (Same as MTS conditions)
  • the condition for transform skip may be applied to all I, P, and B tile group types, and a flag for transform skip (transform skip flag) may be transmitted when the P/B tile group type is smaller than 32x32.
  • a flag for transform skip may be transmitted when the P/B tile group type is smaller than 32x32.
  • this embodiment proposes a method of more efficiently transmitting transform skip information (transform skip flag) by changing a block size condition for transform skip for a block belonging to a P/B tile group type. That is, as shown in Tables 12 to 14, whether or not to apply the transform skip may be determined according to the tile group type.
  • the encoder/decoder may perform encoding and decoding through the same method as before for a block for which transcoding is determined through the method described above.
  • the encoded information (eg, encoded video/video information) derived by the encoding apparatus 100 based on the above-described embodiments of the present specification may be output in a bitstream form.
  • the encoded information may be transmitted or stored in a bitstream form in units of network abstraction layer (NAL) units.
  • NAL network abstraction layer
  • the bitstream may be transmitted over a network or may be stored in a non-transitory digital storage medium.
  • the bitstream is not directly transmitted from the encoding device 100 to the decoding device 200, but may be provided with a streaming/download service through an external server (eg, a content streaming server).
  • the network may include a broadcasting network and/or a communication network
  • the digital storage medium may include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, and SSD.
  • FIG. 27 is an example of a flowchart for encoding a video signal according to an embodiment of the present specification. The operations of FIG. 27 may be performed by the encoding device 100 or the video signal processing device 500.
  • step S2710 the encoder checks a condition for skipping a transform based on a dual tree type of the current block and a size of the current block with respect to the current block including data corresponding to a chroma component.
  • the condition for the transform skip is satisfied. Can be determined to be.
  • the transform skip maximum size may be determined based on transform skip maximum size information (eg, log2_transform_skip_max_size_minus2). For example, the maximum transform skip size (MaxTsSize) may be set to 1 ⁇ (log2_transform_skip_max_size_minus2 + 2).
  • the transform skip maximum size information may be transmitted to the decoder as a syntax element for an upper layer component including the current block.
  • the transform skip maximum size information may be transmitted as a syntax element for a picture as shown in Table 11, and may also be transmitted as a syntax element for a sequence.
  • the maximum transform skip size may be determined based on a type of a tile group to which the current block belongs. For example, as shown in Tables 12 to 19, the maximum transform skip size may be set according to whether the current tile group is an I tile group or a B/P tile group.
  • the maximum transform skip size is determined as the first reference size
  • the transform skip maximum The size may be determined as the second reference size.
  • the first reference size is a value larger than the second reference size. That is, the maximum transform skip size for the tile group corresponding to the B-tile group or the P-tile group may be set to be relatively smaller than that of the I-tile group.
  • the maximum transform skip size may be determined based on a type of a tile group to which the current block belongs and a prediction type of the current block.
  • the prediction type includes either an intra prediction type or an inter prediction type.
  • the maximum transform skip size may be set based on the prediction type (Intra/Inter) of the current block together with the type of the current tile group.
  • step S2720 the encoder determines whether to apply the transform skip to the current block when the condition for transform skip is satisfied.
  • the encoder may determine whether to skip the transform through comparison between the case of performing the transform and the case of not performing the transform.
  • the encoder encodes a transform skip flag (eg, transform_skip_flag) for the current block. For example, when a transform is applied to the current block, the transform skip flag may be encoded as 0, and if the transform is not applied to the current block, the transform skip flag may be encoded as 1. As another example, the encoder may indicate whether to skip transform using the MTS index (tu_mts_idx).
  • a transform skip flag eg, transform_skip_flag
  • FIG. 28 is an example of a flowchart for decoding a video signal according to an embodiment of the present specification. The operations of FIG. 28 may be performed by the decoding apparatus 200 or the video signal processing apparatus 500.
  • step S2810 the decoder checks a condition for skipping a transform based on a dual tree type of the current block and a size of the current block with respect to the current block including data corresponding to a chroma component.
  • the condition for the transform skip is satisfied. Can be determined to be.
  • the transform skip maximum size may be determined based on transform skip maximum size information (eg, log2_transform_skip_max_size_minus2). For example, the maximum transform skip size (MaxTsSize) may be set to 1 ⁇ (log2_transform_skip_max_size_minus2 + 2).
  • the transform skip maximum size may be determined based on transform skip maximum size information commonly applied to luminance and color difference components.
  • the transform skip maximum size information may be transmitted from the encoder as a syntax element for an upper layer component including the current block.
  • the transform skip maximum size information may be transmitted as a syntax element for a picture as shown in Table 11, and may also be transmitted as a syntax element for a sequence.
  • the maximum transform skip size may be determined based on a type of a tile group to which the current block belongs. For example, as shown in Tables 12 to 19, the maximum transform skip size may be set according to whether the current tile group is an I tile group or a B/P tile group.
  • the maximum transform skip size is determined as the first reference size
  • the transform skip maximum The size may be determined as the second reference size.
  • the first reference size is a value larger than the second reference size. That is, the maximum transform skip size for the tile group corresponding to the B-tile group or the P-tile group may be set to be relatively smaller than that of the I-tile group.
  • the maximum transform skip size may be determined based on a type of a tile group to which the current block belongs and a prediction type of the current block.
  • the prediction type includes either an intra prediction type or an inter prediction type.
  • the maximum transform skip size may be set based on the prediction type (Intra/Inter) of the current block together with the type of the current tile group.
  • step S2820 when the condition for the transform skip is satisfied, the decoder acquires (parses) a transform skip flag (eg, transform_skip_flag) of the current block.
  • step S2830 the decoder performs residual coding on the current block based on the transform skip flag. For example, if the transform skip flag is 0, an inverse transform may be applied to the current block, and a residual signal derived through the inverse transform may be decoded. If the transform skip flag is 1, decoding of the residual signal of the current block may be performed without applying an inverse transform to the current block.
  • step S2840 the decoder generates a residual sample of the current block through residual coding.
  • the video signal processing apparatus 500 includes a memory 520 for storing a video signal, and a processor 510 coupled to the memory 520. can do.
  • the processor 510 For encoding of a video signal, the processor 510 provides for a current block including data corresponding to a chroma component, based on a dual tree type of the current block and a size of the current block.
  • the transform skip condition is checked, and if the transform skip condition is satisfied, it is determined whether to apply the transform skip to the current block, and the transform skip flag for the current block is encoded.
  • the processor 510 determines that the condition for the transform skip is satisfied. I can.
  • the transform skip maximum size is determined based on transform skip maximum size information, and the transform skip maximum size information may be transmitted to a decoder as a syntax element of an upper layer component including the current block. .
  • the transform skip maximum size may be determined based on transform skip maximum size information commonly applied to luminance and color difference components.
  • the maximum transform skip size may be determined based on a type of a tile group to which the current block belongs.
  • the transform skip maximum size is determined as a first reference size, and if the tile group corresponds to a B-tile group or a P-tile group, the transform skip maximum The size is determined as a second reference size, and the first reference size may be a value larger than the second reference size.
  • the transform skip maximum size is determined based on a type of a tile group to which the current block belongs and a prediction type of the current block, and the prediction type is an intra prediction type or an inter prediction type. It can contain one.
  • the processor 510 For decoding a video signal, the processor 510 performs a transform skip for a current block including data corresponding to a chroma component based on a dual tree type of the current block and a size of the current block.
  • a transform skip flag of the current block is obtained, residual coding for the current block is performed based on the transform skip flag, and the residual coding is performed. Through this, a residual sample of the current block is generated.
  • the processor 510 determines that the condition for the transform skip is satisfied. I can.
  • the transform skip maximum size is determined based on transform skip maximum size information transmitted from an encoder, and the transform skip maximum size information may be transmitted as a syntax element for an upper layer component including the current block. have.
  • the transform skip maximum size may be determined based on transform skip maximum size information commonly applied to luminance and color difference components.
  • the maximum transform skip size may be determined based on a type of a tile group to which the current block belongs.
  • the transform skip maximum size is determined as a first reference size, and if the tile group corresponds to a B-tile group or a P-tile group, the transform skip maximum The size is determined as a second reference size, and the first reference size may be a value larger than the second reference size.
  • the transform skip maximum size is determined based on a type of a tile group to which the current block belongs and a prediction type of the current block, and the prediction type is an intra prediction type or an inter prediction type. It can contain one.
  • the processing method to which the present invention is applied may be produced in the form of a program executed by a computer, and may be stored in a computer-readable recording medium.
  • Multimedia data having a data structure according to the present invention can also be stored in a computer-readable recording medium.
  • the computer-readable recording medium includes all kinds of storage devices and distributed storage devices in which computer-readable data is stored.
  • the computer-readable recording medium includes, for example, Blu-ray disk (BD), universal serial bus (USB), ROM, PROM, EPROM, EEPROM, RAM, CD-ROM, magnetic tape, floppy disk, and optical It may include a data storage device.
  • the computer-readable recording medium includes media implemented in the form of a carrier wave (for example, transmission through the Internet).
  • the bitstream generated by the encoding method may be stored in a computer-readable recording medium or transmitted through a wired or wireless communication network.
  • an embodiment of the present invention may be implemented as a computer program product using a program code, and the program code may be executed in a computer according to the embodiment of the present invention.
  • the program code may be stored on a carrier readable by a computer.
  • a non-transitory computer-readable medium stores one or more instructions executed by one or more processors.
  • the one or more instructions are, for encoding a video signal, for a current block including data corresponding to a chroma component, a dual tree type of the current block and a size of the current block.
  • a video signal to determine whether to apply the transform skip to the current block, and to encode the transform skip flag for the current block when the condition for the transform skip is checked based on the condition for the transform skip is satisfied. It controls the processing device 500 (or the encoding device 100).
  • the one or more instructions indicate that the condition for the transform skip is satisfied when the size of the current block is smaller than the maximum transform skip size and the dual tree type of the current block corresponds to the color difference dual tree. Can be set to determine.
  • the transform skip maximum size is determined based on transform skip maximum size information, and the transform skip maximum size information may be transmitted to a decoder as a syntax element of an upper layer component including the current block. .
  • the transform skip maximum size may be determined based on transform skip maximum size information commonly applied to luminance and color difference components.
  • the maximum transform skip size may be determined based on a type of a tile group to which the current block belongs.
  • the transform skip maximum size is determined as a first reference size, and if the tile group corresponds to a B-tile group or a P-tile group, the transform skip maximum The size is determined as a second reference size, and the first reference size may be a value larger than the second reference size.
  • the transform skip maximum size is determined based on a type of a tile group to which the current block belongs and a prediction type of the current block, and the prediction type is an intra prediction type or an inter prediction type. It can contain one.
  • the one or more commands are transform skipped based on the dual tree type of the current block and the size of the current block for a current block including data corresponding to a chroma component for decoding a video signal. If the condition for is checked and the condition for the transform skip is satisfied, a transform skip flag of the current block is obtained, residual coding for the current block is performed based on the transform skip flag, and the residual
  • the video signal processing apparatus 500 (or encoding apparatus 100) is controlled to generate a residual sample of the current block through coding.
  • the one or more instructions indicate that the condition for the transform skip is satisfied when the size of the current block is smaller than the maximum transform skip size and the dual tree type of the current block corresponds to the color difference dual tree. You can decide.
  • the transform skip maximum size is determined based on transform skip maximum size information transmitted from an encoder, and the transform skip maximum size information may be transmitted as a syntax element for an upper layer component including the current block. have.
  • the transform skip maximum size may be determined based on transform skip maximum size information commonly applied to luminance and color difference components.
  • the maximum transform skip size may be determined based on a type of a tile group to which the current block belongs.
  • the transform skip maximum size is determined as a first reference size, and if the tile group corresponds to a B-tile group or a P-tile group, the transform skip maximum The size is determined as a second reference size, and the first reference size may be a value larger than the second reference size.
  • the transform skip maximum size is determined based on a type of a tile group to which the current block belongs and a prediction type of the current block, and the prediction type is an intra prediction type or an inter prediction type. It can contain one.
  • the embodiments described in the present invention may be implemented and performed on a processor, microprocessor, controller, or chip.
  • the functional units illustrated in each drawing may be implemented and executed on a computer, processor, microprocessor, controller, or chip.
  • the decoder and encoder to which the present invention is applied include a multimedia broadcasting transmission/reception device, a mobile communication terminal, a home cinema video device, a digital cinema video device, a surveillance camera, a video chat device, a real-time communication device such as video communication, a mobile streaming device, Storage media, camcorders, video-on-demand (VoD) service providers, OTT video (Over the top video) devices, Internet streaming service providers, three-dimensional (3D) video devices, video telephony video devices, and medical video devices. And can be used to process video signals or data signals.
  • an OTT video (Over the top video) device may include a game console, a Blu-ray player, an Internet-connected TV, a home theater system, a smartphone, a tablet PC, and a digital video recorder (DVR).
  • an embodiment of the present invention may be implemented by various means, for example, hardware, firmware, software, or a combination thereof.
  • an embodiment of the present invention is one or more ASICs (application specific integrated circuits), DSPs (digital signal processors), DSPDs (digital signal processing devices), PLDs (programmable logic devices), FPGAs ( field programmable gate arrays), processors, controllers, microcontrollers, microprocessors, etc.
  • ASICs application specific integrated circuits
  • DSPs digital signal processors
  • DSPDs digital signal processing devices
  • PLDs programmable logic devices
  • FPGAs field programmable gate arrays
  • processors controllers, microcontrollers, microprocessors, etc.
  • an embodiment of the present invention may be implemented in the form of a module, procedure, or function that performs the functions or operations described above.
  • the software code can be stored in a memory and driven by a processor.
  • the memory may be located inside or outside the processor, and may exchange data with the processor through various known means.

Abstract

Embodiments of the present specification provide a method and an apparatus for processing a video signal. A decoding method for a video signal according to an embodiment of the present specification may comprise the steps of: for a current block including data corresponding to a chroma component, identifying conditions for a conversion skip on the basis of a dual tree type of the current block and the size of the current block; when the conditions for the conversion skip are satisfied, acquiring a conversion skip flag of the current block; performing residual coding with respect to the current block on the basis the conversion skip flag; and generating a residual sample of the current block through the residual coding. Efficient encoding/decoding can be performed with respect to a chroma block by identifying conditions for a conversion skip for the chroma block and applying the conversion skip to the chroma block.

Description

비디오 신호를 처리하기 위한 방법 및 장치Method and apparatus for processing video signals
본 명세서의 실시예는 비디오/영상 압축 코딩 시스템에 관한 것으로서, 보다 구체적으로 비디오 신호의 인코딩/디코딩 과정에서 레지듀얼 데이터를 처리하기 위한 방법 및 장치에 관한 것이다. Embodiments of the present specification relate to a video/video compression coding system, and more particularly, to a method and apparatus for processing residual data in an encoding/decoding process of a video signal.
압축 부호화는 디지털화된 정보를 통신 회선을 통해 전송하거나, 저장 매체에 적합한 형태로 저장하기 위한 일련의 신호 처리 기술을 의미한다. 영상, 이미지, 음성 등의 미디어가 압축 부호화의 대상이 될 수 있으며, 특히 영상을 대상으로 압축 부호화를 수행하는 기술을 비디오 영상 압축이라고 일컫는다. Compression coding refers to a series of signal processing techniques for transmitting digitized information through a communication line or storing it in a format suitable for a storage medium. Media such as video, image, and audio may be subject to compression encoding. In particular, a technique for performing compression encoding on an image is referred to as video image compression.
차세대 비디오 컨텐츠는 고해상도(high spatial resolution), 고 프레임 율(high frame rate) 및 영상 표현의 고차원화(high dimensionality of scene representation)라는 특징을 갖게 될 것이다. 그러한 컨텐츠를 처리하기 위해서는 메모리 저장(memory storage), 메모리 액세스율(memory access rate) 및 처리 전력(processing power) 측면에서 엄청난 증가를 가져올 것이다. Next-generation video content will be characterized by high spatial resolution, high frame rate, and high dimensionality of scene representation. In order to process such content, it will bring a tremendous increase in terms of memory storage, memory access rate, and processing power.
하이브리드 코딩 시스템에서, 비디오 신호에 대한 예측을 통해 예측 신호가 생성되고, 원본 비디오 신호에서 예측 신호를 감산함으로써 생성된 레지듀얼 신호에 대하여 변환이 적용된다. 이때 변환 스킵이 적용될 수 있는데, 변환 또는 변환 스킵을 효율적으로 수행하기 위한 다양한 기법들이 논의되고 있다.In a hybrid coding system, a prediction signal is generated through prediction of a video signal, and a transform is applied to a residual signal generated by subtracting the prediction signal from an original video signal. In this case, transformation skip may be applied, and various techniques for efficiently performing transformation or transformation skip are being discussed.
본 명세서의 실시예는 색차 성분 데이터를 포함하는 색차 블록에 대한 변환/변환 스킵, 및 레지듀얼 데이터 코딩을 효율적으로 수행하기 위한 방법 및 장치를 제공한다. An embodiment of the present specification provides a method and apparatus for efficiently performing transformation/transformation skipping and residual data coding for a color difference block including color difference component data.
본 명세서의 실시예에서 이루고자 하는 기술적 과제들은 이상에서 언급한 기술적 과제들로 제한되지 않으며, 언급하지 않은 또 다른 기술적 과제들은 아래의 기재로부터 본 명세서의 실시예가 속하는 기술분야에서 통상의 지식을 가진 자에게 명확하게 이해될 수 있을 것이다. The technical problems to be achieved in the embodiments of the present specification are not limited to the technical problems mentioned above, and other technical problems that are not mentioned are those of ordinary skill in the technical field to which the embodiments of the present specification belong from the following description. Will be clearly understood.
본 명세서의 실시예들은 비디오 신호를 처리하기 위한 방법 및 장치를 제공한다. 본 명세서의 실시예에 따른 비디오 신호의 인코딩 방법은, 색차(chroma) 성분에 해당하는 데이터를 포함하는 현재 블록에 대하여, 상기 현재 블록의 트리 타입(dual tree type) 및 현재 블록의 사이즈에 기반하여 변환 스킵을 위한 조건을 확인하는 단계와, 상기 변환 스킵을 위한 조건이 만족되면, 상기 현재 블록에 대하여 상기 변환 스킵을 적용할지 여부를 결정하는 단계와, 상기 현재 블록에 대한 변환 스킵 플래그를 인코딩하는 단계를 포함한다.Embodiments of the present specification provide a method and apparatus for processing a video signal. The encoding method of a video signal according to an embodiment of the present specification includes, for a current block including data corresponding to a chroma component, based on a dual tree type of the current block and a size of the current block. Checking a condition for transform skipping, and if the condition for transform skipping is satisfied, determining whether to apply the transform skip to the current block, and encoding a transform skip flag for the current block Includes steps.
일 실시예에서, 상기 변환 스킵을 위한 조건을 확인하는 단계는, 상기 현재 블록의 사이즈가 변환 스킵 최대 사이즈보다 작고, 상기 현재 블록의 트리 타입이 색차 듀얼 트리 또는 싱글 트리에 해당하는 경우 상기 변환 스킵을 위한 조건이 만족되는 것으로 결정하는 단계를 포함할 수 있다.In one embodiment, the checking of the condition for the transform skip includes the transform skip when the size of the current block is smaller than the transform skip maximum size and the tree type of the current block corresponds to a color difference dual tree or a single tree. It may include determining that the condition for is satisfied.
일 실시예에서, 상기 변환 스킵 최대 사이즈는 변환 스킵 최대 사이즈 정보에 기반하여 결정되고, 상기 변환 스킵 최대 사이즈 정보는 상기 현재 블록을 포함하는 상위 계층 성분에 대한 신택스 요소로서 디코더로 전송될 수 있다.In an embodiment, the transform skip maximum size is determined based on transform skip maximum size information, and the transform skip maximum size information may be transmitted to a decoder as a syntax element for an upper layer component including the current block.
일 실시예에서, 상기 변환 스킵 최대 사이즈는 상기 현재 블록이 속한 타일 그룹(tile group)의 타입에 기반하여 결정될 수 있다.In an embodiment, the maximum transform skip size may be determined based on a type of a tile group to which the current block belongs.
일 실시예에서, 상기 타일 그룹이 I-타일 그룹에 해당하면 상기 변환 스킵 최대 사이즈는 제1 기준 사이즈로 결정되고, 상기 타일 그룹이 B-타일 그룹 또는 P-타일 그룹에 해당하면 상기 변환 스킵 최대 사이즈는 제2 기준 사이즈로 결정되며, 상기 제1 기준 사이즈는 제2 기준 사이즈보다 큰 값에 해당할 수 있다.In an embodiment, if the tile group corresponds to an I-tile group, the transform skip maximum size is determined as a first reference size, and if the tile group corresponds to a B-tile group or a P-tile group, the transform skip maximum The size is determined as a second reference size, and the first reference size may correspond to a value larger than the second reference size.
일 실시예에서, 상기 변환 스킵 최대 사이즈는 상기 현재 블록이 속한 타일 그룹(tile group)의 타입 및 상기 현재 블록의 예측 타입에 기반하여 결정되고, 상기 예측 타입은 인트라 예측 타입 또는 인터 예측 타입 중 하나를 포함할 수 있다.In one embodiment, the transform skip maximum size is determined based on a type of a tile group to which the current block belongs and a prediction type of the current block, and the prediction type is one of an intra prediction type or an inter prediction type. It may include.
본 명세서의 실시예에 따른 비디오 신호의 디코딩 방법은, 색차(chroma) 성분에 해당하는 데이터를 포함하는 현재 블록에 대하여, 상기 현재 블록의 트리 타입 및 상기 현재 블록의 사이즈에 기반하여 변환 스킵을 위한 조건을 확인하는 단계와, 상기 변환 스킵을 위한 조건이 만족되면, 상기 현재 블록의 변환 스킵 플래그를 획득하는 단계와, 상기 변환 스킵 플래그에 기반하여 상기 현재 블록에 대한 레지듀얼 코딩을 수행하는 단계와, 상기 레지듀얼 코딩을 통해 상기 현재 블록의 레지듀얼 샘플을 생성하는 단계를 포함한다.The decoding method of a video signal according to an embodiment of the present specification is for skipping a transform based on a tree type of the current block and a size of the current block for a current block including data corresponding to a chroma component. Checking a condition; if the condition for the transform skip is satisfied, obtaining a transform skip flag of the current block; and performing residual coding for the current block based on the transform skip flag; and And generating a residual sample of the current block through the residual coding.
일 실시예에서, 상기 변환 스킵을 위한 조건을 확인하는 단계는, 상기 현재 블록의 사이즈가 변환 스킵 최대 사이즈보다 작고, 상기 현재 블록의 트리 타입이 색차 듀얼 트리 또는 싱글 트리에 해당하는 경우 상기 변환 스킵을 위한 조건이 만족되는 것으로 결정할 수 있다.In one embodiment, the checking of the condition for the transform skip includes the transform skip when the size of the current block is smaller than the transform skip maximum size and the tree type of the current block corresponds to a color difference dual tree or a single tree. It can be determined that the condition for is satisfied.
일 실시예에서, 상기 변환 스킵 최대 사이즈는 인코더로부터 전송되는 변환 스킵 최대 사이즈 정보에 기반하여 결정되고, 상기 변환 스킵 최대 사이즈 정보는 상기 현재 블록을 포함하는 상위 계층 성분에 대한 신택스 요소로서 전송될 수 있다.In one embodiment, the transform skip maximum size is determined based on transform skip maximum size information transmitted from an encoder, and the transform skip maximum size information may be transmitted as a syntax element for an upper layer component including the current block. have.
일 실시예에서, 상기 변환 스킵 최대 사이즈는 상기 현재 블록이 속한 타일 그룹(tile group)의 타입에 기반하여 결정될 수 있다.In an embodiment, the maximum transform skip size may be determined based on a type of a tile group to which the current block belongs.
일 실시예에서, 상기 타일 그룹이 I-타일 그룹에 해당하면 상기 변환 스킵 최대 사이즈는 제1 기준 사이즈로 결정되고, 상기 타일 그룹이 B-타일 그룹 또는 P-타일 그룹에 해당하면 상기 변환 스킵 최대 사이즈는 제2 기준 사이즈로 결정되며, 상기 제1 기준 사이즈는 제2 기준 사이즈보다 큰 값에 해당할 수 있다.In an embodiment, if the tile group corresponds to an I-tile group, the transform skip maximum size is determined as a first reference size, and if the tile group corresponds to a B-tile group or a P-tile group, the transform skip maximum The size is determined as a second reference size, and the first reference size may correspond to a value larger than the second reference size.
일 실시예에서, 상기 변환 스킵 최대 사이즈는 상기 현재 블록이 속한 타일 그룹(tile group)의 타입 및 상기 현재 블록의 예측 타입에 기반하여 결정되고, 상기 예측 타입은 인트라 예측 타입 또는 인터 예측 타입 중 하나를 포함할 수 있다.In one embodiment, the transform skip maximum size is determined based on a type of a tile group to which the current block belongs and a prediction type of the current block, and the prediction type is one of an intra prediction type or an inter prediction type. It may include.
본 명세서의 실시예는 비디오 신호를 처리하기 위한 장치를 제공한다. 본 명세서의 실시예에 따른 비디오 신호의 인코딩 장치는, 상기 비디오 신호를 저장하는 메모리와, 상기 메모리와 결합되고, 상기 비디오 신호를 처리하는 프로세서를 포함한다. 상기 프로세서는, 색차(chroma) 성분에 해당하는 데이터를 포함하는 현재 블록에 대하여, 상기 현재 블록의 트리 타입(tree type) 및 현재 블록의 사이즈에 기반하여 변환 스킵을 위한 조건을 확인하고, 상기 변환 스킵을 위한 조건이 만족되면, 상기 현재 블록에 대하여 상기 변환 스킵을 적용할지 여부를 결정하고, 상기 현재 블록에 대한 변환 스킵 플래그를 인코딩하도록 설정된다.An embodiment of the present specification provides an apparatus for processing a video signal. A video signal encoding apparatus according to an embodiment of the present specification includes a memory for storing the video signal, and a processor coupled to the memory and for processing the video signal. The processor, for a current block including data corresponding to a chroma component, checks a condition for skipping transformation based on a tree type of the current block and a size of the current block, and the transformation When a condition for skipping is satisfied, it is determined whether to apply the transform skip to the current block, and set to encode a transform skip flag for the current block.
본 명세서의 실시예에 따른 비디오 신호의 디코딩 장치는, 상기 비디오 신호를 저장하는 메모리와, 상기 메모리와 결합되고, 상기 비디오 신호를 처리하는 프로세서를 포함한다. 상기 프로세서는, 색차(chroma) 성분에 해당하는 데이터를 포함하는 현재 블록에 대하여, 상기 현재 블록의 트리 타입(tree type) 및 현재 블록의 사이즈에 기반하여 변환 스킵을 위한 조건을 확인하고, 상기 변환 스킵을 위한 조건이 만족되면, 상기 현재 블록의 변환 스킵 플래그를 획득하고, 상기 변환 스킵 플래그에 기반하여 상기 현재 블록에 대한 레지듀얼 코딩을 수행하고, 상기 레지듀얼 코딩을 통해 상기 현재 블록의 레지듀얼 샘플을 생성하도록 설정된다.A video signal decoding apparatus according to an exemplary embodiment of the present specification includes a memory for storing the video signal, and a processor coupled to the memory and for processing the video signal. The processor, for a current block including data corresponding to a chroma component, checks a condition for skipping transformation based on a tree type of the current block and a size of the current block, and the transformation When the condition for skipping is satisfied, a transform skip flag of the current block is obtained, residual coding of the current block is performed based on the transform skip flag, and residual coding of the current block is performed through the residual coding. It is set up to generate samples.
본 명세서의 실시예는 하나 또는 그 이상의 명령어들을 저장하는 비일시적 컴퓨터 판독가능한 매체(non-transitory computer-readable medium)를 제공한다. 하나 또는 그 이상의 프로세서들에 의해 실행되는 상기 하나 또는 그 이상의 명령어들은, 색차(chroma) 성분에 해당하는 데이터를 포함하는 현재 블록에 대하여, 상기 현재 블록의 트리 타입(tree type) 및 현재 블록의 사이즈에 기반하여 변환 스킵을 위한 조건을 확인하고, 상기 변환 스킵을 위한 조건이 만족되면, 상기 현재 블록에 대하여 상기 변환 스킵을 적용할지 여부를 결정하고, 상기 현재 블록에 대한 변환 스킵 플래그를 인코딩하도록 비디오 신호 처리 장치를 제어한다.An embodiment of the present specification provides a non-transitory computer-readable medium storing one or more instructions. The one or more instructions executed by one or more processors are, for a current block including data corresponding to a chroma component, a tree type of the current block and a size of the current block. A video to determine whether to apply the transform skip to the current block, and to encode the transform skip flag for the current block if the condition for the transform skip is satisfied and the condition for the transform skip is satisfied. Control the signal processing device.
또한, 하나 또는 그 이상의 프로세서들에 의해 실행되는 상기 하나 또는 그 이상의 명령어들은, 색차(chroma) 성분에 해당하는 데이터를 포함하는 현재 블록에 대하여, 상기 현재 블록의 트리 타입(tree type) 및 현재 블록의 사이즈에 기반하여 변환 스킵을 위한 조건을 확인하고, 상기 변환 스킵을 위한 조건이 만족되면, 상기 현재 블록의 변환 스킵 플래그를 획득하고, 상기 변환 스킵 플래그에 기반하여 상기 현재 블록에 대한 레지듀얼 코딩을 수행하고, 상기 레지듀얼 코딩을 통해 상기 현재 블록의 레지듀얼 샘플을 생성하도록 비디오 신호 처리 장치를 제어한다. In addition, the one or more instructions executed by one or more processors are, for a current block including data corresponding to a chroma component, a tree type and a current block of the current block. A condition for transform skip is checked based on the size of, and if the condition for transform skip is satisfied, a transform skip flag of the current block is obtained, and residual coding for the current block is performed based on the transform skip flag. And controlling a video signal processing apparatus to generate a residual sample of the current block through the residual coding.
본 명세서의 실시예에서 제공되는 색차 블록에 대한 변환 스킵의 적용 여부를 결정하는 방법 또는 색차 블록에 대한 변환 스킵의 적용 방법을 통해 인코더 또는 디코더는 색차 블록에 대하여 효율적으로 변환 또는 변환 스킵을 수행할 수 있다.Through the method of determining whether to apply the transform skip to the color difference block or the method of applying the transform skip to the color difference block provided in the embodiment of the present specification, the encoder or decoder can efficiently perform transform or transform skip on the color difference block. I can.
본 명세서의 실시예에서 얻을 수 있는 효과는 이상에서 언급한 효과로 제한되지 않으며, 언급하지 않은 또 다른 효과들은 아래의 기재로부터 본 명세서의 실시예가 속하는 기술분야에서 통상의 지식을 가진 자에게 명확하게 이해될 수 있을 것이다.The effects obtained in the embodiments of the present specification are not limited to the above-mentioned effects, and other effects not mentioned are clearly to those of ordinary skill in the art to which the embodiments of the present specification belong from the following description. It will be understandable.
본 명세서에 관한 이해를 돕기 위해 상세한 설명의 일부로 포함되는, 첨부 도면은 본 명세서에 대한 실시예를 제공하고, 상세한 설명과 함께 본 명세서의 기술적 특징을 설명한다.The accompanying drawings, which are included as part of the detailed description to aid in understanding of the present specification, provide embodiments of the present specification, and describe technical features of the present specification together with the detailed description.
도 1은 본 명세서의 실시예에 따른 영상 코딩 시스템의 예를 도시한다.1 shows an example of an image coding system according to an embodiment of the present specification.
도 2는 본 명세서의 실시예에 따른 비디오 신호의 인코딩이 수행되는 인코딩 장치의 개략적인 블록도의 예를 도시한다.2 shows an example of a schematic block diagram of an encoding apparatus in which encoding of a video signal is performed according to an embodiment of the present specification.
도 3은 본 명세서의 실시예에 따른 영상 신호의 디코딩이 수행되는 디코딩 장치의 개략적인 블록도의 예를 도시한다.3 shows an example of a schematic block diagram of a decoding apparatus for decoding an image signal according to an embodiment of the present specification.
도 4는 본 명세서의 실시예에 따른 컨텐츠 스트리밍 시스템의 예를 도시한다.4 shows an example of a content streaming system according to an embodiment of the present specification.
도 5는 본 명세서의 실시예에 따른 비디오 신호 처리 장치의 예를 도시한다.5 shows an example of a video signal processing apparatus according to an embodiment of the present specification.
도 6은 본 명세서의 실시예에 따른 픽처의 분할 구조의 예를 도시한다.6 illustrates an example of a picture division structure according to an embodiment of the present specification.
도 7은 본 명세서의 실시예에 따른 복수개의 코딩 트리 유닛들로 분할된 픽처의 예를 도시한다.7 illustrates an example of a picture divided into a plurality of coding tree units according to an embodiment of the present specification.
도 8은 본 명세서의 실시예에 따른 멀티타입 트리 구조의 예를 도시한다.8 shows an example of a multi-type tree structure according to an embodiment of the present specification.
도 9는 본 명세서의 실시예에 따른 멀티타입 트리를 수반하는 쿼드트리(quadtree with nested multi-type tree) 구조의 분할 정보를 시그널링하기 위한 메커니즘의 예를 도시한다.9 shows an example of a mechanism for signaling split information of a quadtree with nested multi-type tree structure according to an embodiment of the present specification.
도 10은 본 명세서의 실시예에 따른 쿼드트리 및 수반되는 멀티타입 트리(quadtree and nested multi-type tree) 구조에 기반하여 복수개의 코딩 유닛들로 분할된 코딩 트리 유닛의 예를 도시한다.10 illustrates an example of a coding tree unit divided into a plurality of coding units based on a quadtree and a nested multi-type tree structure according to an embodiment of the present specification.
도 11은 본 명세서의 실시예에 따른 터너리 트리(ternary tree) 분할이 제한되는 경우의 예를 도시한다.11 illustrates an example of a case in which division of a ternary tree is limited according to an embodiment of the present specification.
도 12는 본 명세서의 실시예에 따른 바이너리 트리 분할과 터너리 트리 분할이 중첩되는 경우의 예를 도시한다.12 illustrates an example in which binary tree division and ternary tree division overlap according to an embodiment of the present specification.
도 13은 본 명세서의 실시예에 따른 터너리 트리 분할과 바이터리 트리 분할이 제한되는 경우의 예를 도시한다.13 illustrates an example of a case in which the ternary tree division and the byte tree division are restricted according to an embodiment of the present specification.
도 14는 본 명세서의 실시예에 따른 비디오 신호를 구성하는 픽처의 인코딩을 위한 흐름도의 예이다.14 is an example of a flowchart for encoding a picture constituting a video signal according to an embodiment of the present specification.
도 15는 본 명세서의 실시예에 따른 비디오 신호를 구성하는 픽처의 디코딩을 위한 흐름도의 예이다.15 is an example of a flowchart for decoding a picture constituting a video signal according to an embodiment of the present specification.
도 16는 본 명세서의 실시예에 따른 코딩된 영상에 대한 계층 구조의 예를 도시한다.16 illustrates an example of a hierarchical structure for a coded image according to an embodiment of the present specification.
도 17은 본 명세서의 실시예에 따른 인코딩 장치 내의 변환 및 양자화부, 역양자화 및 역변환부의 개략적인 블록도이다. 17 is a schematic block diagram of a transform and quantization unit, an inverse quantization and an inverse transform unit in an encoding apparatus according to an embodiment of the present specification.
도 18은 디코딩 장치 내의 역양자화 및 역변환부의 개략적인 블록도이다.18 is a schematic block diagram of an inverse quantization and inverse transform unit in a decoding apparatus.
도 19는 본 명세서의 실시예에 따른 다중 변환 선택(multiple transform selection)이 적용된 변환 절차의 예를 도시한다.19 illustrates an example of a transformation procedure to which multiple transform selection is applied according to an embodiment of the present specification.
도 20은 본 명세서의 실시예에 따른 다중 변환 선택이 적용된 역변환 절차의 예를 도시한다.20 illustrates an example of an inverse transform procedure to which multiple transform selection is applied according to an embodiment of the present specification.
도 21은 본 명세서의 실시예에 따른 다중 변환 선택과 관련된 정보를 이용한 역변환 절차의 예를 도시한다.21 illustrates an example of an inverse transform procedure using information related to multiple transform selection according to an embodiment of the present specification.
도 22는 본 명세서의 실시예에 따른 엔트로피 인코딩을 위한 블록도이다.22 is a block diagram for entropy encoding according to an embodiment of the present specification.
도 23a 및 도 23b는 본 명세서의 실시예에 따른 엔트로피 인코딩 방법 및 관련 컴포넌트를 도시한다.23A and 23B illustrate an entropy encoding method and related components according to an embodiment of the present specification.
도 24a 및 도 24b는 본 명세서의 실시예에 따른 엔트로피 디코딩 방법 및 관련 컴포넌트를 도시한다.24A and 24B illustrate an entropy decoding method and related components according to an embodiment of the present specification.
도 25는 본 명세서의 실시예에 따른 블록 내 변환 계수들의 예를 도시한다.25 illustrates an example of intra-block transform coefficients according to an embodiment of the present specification.
도 26은 본 명세서의 실시예에 따른 듀얼 트리에서 색차 블록 및 대응하는 휘도 블록의 예를 도시한다.26 illustrates an example of a color difference block and a corresponding luminance block in a dual tree according to an embodiment of the present specification.
도 27은 본 명세서의 실시예에 따른 비디오 신호를 인코딩하기 위한 흐름도의 예이다.27 is an example of a flowchart for encoding a video signal according to an embodiment of the present specification.
도 28은 본 명세서의 실시예에 따른 비디오 신호를 디코딩하기 위한 흐름도의 예이다.28 is an example of a flowchart for decoding a video signal according to an embodiment of the present specification.
이하, 본 발명에 따른 바람직한 실시 형태를 첨부된 도면을 참조하여 상세하게 설명한다. 첨부된 도면과 함께 이하에 개시될 상세한 설명은 본 발명의 예시적인 실시형태를 설명하고자 하는 것이며, 본 발명이 실시될 수 있는 유일한 실시형태를 나타내고자 하는 것이 아니다. 이하의 상세한 설명은 본 발명의 완전한 이해를 제공하기 위해서 구체적 세부사항을 포함한다. 그러나, 당업자는 본 발명이 이러한 구체적 세부사항 없이도 실시될 수 있음을 안다. Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings. DETAILED DESCRIPTION OF THE INVENTION The detailed description to be disclosed below together with the accompanying drawings is intended to describe exemplary embodiments of the present invention and is not intended to represent the only embodiments in which the present invention may be practiced. The following detailed description includes specific details to provide a thorough understanding of the present invention. However, one of ordinary skill in the art appreciates that the invention may be practiced without these specific details.
몇몇 경우, 본 발명의 개념이 모호해지는 것을 피하기 위하여 공지의 구조 및 장치는 생략되거나, 각 구조 및 장치의 핵심기능을 중심으로 한 블록도 형식으로 도시될 수 있다. In some cases, in order to avoid obscuring the concept of the present invention, well-known structures and devices may be omitted, or may be shown in a block diagram form centering on core functions of each structure and device.
아울러, 본 발명에서 사용되는 용어는 가능한 한 현재 널리 사용되는 일반적인 용어를 선택하였으나, 특정한 경우는 출원인이 임의로 선정한 용어를 사용하여 설명한다. 그러한 경우에는 해당 부분의 상세 설명에서 그 의미를 명확히 기재하므로, 본 발명의 설명에서 사용된 용어의 명칭만으로 단순 해석되어서는 안 될 것이며 그 해당 용어의 의미까지 파악하여 해석되어야 함을 밝혀두고자 한다.In addition, as for terms used in the present invention, general terms that are currently widely used are selected as far as possible, but specific cases will be described using terms arbitrarily selected by the applicant. In such a case, since the meaning of the term is clearly described in the detailed description of the corresponding part, it should not be interpreted simply by the name of the term used in the description of the present invention, and it should be clarified that the meaning of the term should be understood and interpreted. .
이하의 설명에서 사용되는 특정 용어들은 본 발명의 이해를 돕기 위해서 제공된 것이며, 이러한 특정 용어의 사용은 본 발명의 기술적 사상을 벗어나지 않는 범위에서 다른 형태로 변경될 수 있다. 예를 들어, 신호, 데이터, 샘플, 픽처, 프레임, 블록 등의 경우 각 코딩 과정에서 적절하게 대체되어 해석될 수 있을 것이다.Specific terms used in the following description are provided to aid understanding of the present invention, and the use of these specific terms may be changed in other forms without departing from the technical spirit of the present invention. For example, signals, data, samples, pictures, frames, blocks, etc. may be appropriately replaced and interpreted in each coding process.
이하 본 명세서에서 '처리 유닛'은 예측, 변환 및/또는 양자화 등과 같은 인코딩/디코딩의 처리 과정이 수행되는 단위를 의미한다. 또한, 처리 유닛은 휘도(luma) 성분에 대한 단위와 색차(chroma) 성분에 대한 단위를 포함하는 의미로 해석될 수 있다. 예를 들어, 처리 유닛은 블록(block), 코딩 유닛(coding unit, CU), 예측 유닛(prediction unit, PU) 또는 변환 유닛(transform unit, TU)에 해당될 수 있다. Hereinafter, in this specification, a'processing unit' means a unit in which an encoding/decoding process such as prediction, transformation, and/or quantization is performed. Also, the processing unit may be interpreted as including a unit for a luma component and a unit for a chroma component. For example, the processing unit may correspond to a block, a coding unit (CU), a prediction unit (PU), or a transform unit (TU).
또한, 처리 유닛은 휘도 성분에 대한 단위 또는 색차 성분에 대한 단위로 해석될 수 있다. 예를 들어, 처리 유닛은 휘도 성분에 대한 코딩 트리 블록(coding tree block, CTB), 코딩 블록(coding block, CB), PU 또는 변환 블록(transform block, TB)에 해당될 수 있다. 또는, 처리 유닛은 색차 성분에 대한 CTB, CB, PU 또는 TB에 해당할 수 있다. 또한, 이에 한정되는 것은 아니며 처리 유닛은 휘도 성분에 대한 단위와 색차 성분에 대한 단위를 포함하는 의미로 해석될 수도 있다. Further, the processing unit may be interpreted as a unit for a luminance component or a unit for a color difference component. For example, the processing unit may correspond to a coding tree block (CTB), a coding block (CB), a PU, or a transform block (TB) for a luminance component. Alternatively, the processing unit may correspond to CTB, CB, PU or TB for the color difference component. Further, the present invention is not limited thereto, and the processing unit may be interpreted as including a unit for a luminance component and a unit for a color difference component.
또한, 처리 유닛은 반드시 정사각형의 블록으로 한정되는 것은 아니며, 3개 이상의 꼭지점을 가지는 다각형 형태로 구성될 수도 있다. Further, the processing unit is not necessarily limited to a square block, and may be configured in a polygonal shape having three or more vertices.
또한, 이하 본 명세서에서 픽셀 또는 화소 등을 샘플로 통칭한다. 그리고, 샘플을 이용한다는 것은 픽셀 값 또는 화소 값 등을 이용한다는 것을 의미할 수 있다. In addition, in the present specification, pixels or pixels are collectively referred to as samples. In addition, using a sample may mean using a pixel value or a pixel value.
도 1은 본 명세서의 실시예에 따른 영상 코딩 시스템의 예를 도시한다. 영상 코딩 시스템은 소스 디바이스(10) 및 수신 디바이스(20)를 포함할 수 있다. 소스 디바이스(10)는 인코딩된 비디오/영상 정보 또는 데이터를 파일 또는 스트리밍 형태로 디지털 저장매체 또는 네트워크를 통하여 수신 디바이스(20)로 전달할 수 있다. 1 shows an example of an image coding system according to an embodiment of the present specification. The image coding system may include a source device 10 and a reception device 20. The source device 10 may transmit the encoded video/video information or data in a file or streaming format to the receiving device 20 through a digital storage medium or a network.
소스 디바이스(10)는 비디오 소스(11), 인코딩 장치(12), 송신기(13)를 포함할 수 있다. 수신 디바이스(20)는 수신기(21), 디코딩 장치(22) 및 렌더러(23)를 포함할 수 있다. 인코딩 장치(12)는 비디오/영상 인코딩 장치로 지칭될 수 있고, 디코딩 장치(22)는 비디오/영상 디코딩 장치로 지칭될 수 있다. 송신기(13)는 인코딩 장치(12)에 포함될 수 있다. 수신기(21)는 디코딩 장치(22)에 포함될 수 있다. 렌더러(23)는 디스플레이부를 포함할 수도 있고, 디스플레이부는 별개의 디바이스 또는 외부 컴포넌트로 구성될 수도 있다. The source device 10 may include a video source 11, an encoding device 12, and a transmitter 13. The receiving device 20 may include a receiver 21, a decoding device 22 and a renderer 23. The encoding device 12 may be referred to as a video/image encoding device, and the decoding device 22 may be referred to as a video/image decoding device. The transmitter 13 may be included in the encoding device 12. The receiver 21 may be included in the decoding device 22. The renderer 23 may include a display unit, and the display unit may be configured as a separate device or an external component.
비디오 소스(11)는 비디오/영상의 캡쳐, 합성 또는 생성 과정을 통하여 비디오/영상을 획득할 수 있다. 비디오 소스(11)는 비디오/영상 캡쳐 디바이스 및/또는 비디오/영상 생성 디바이스를 포함할 수 있다. 비디오/영상 캡쳐 디바이스는 예를 들어, 하나 이상의 카메라, 이전에 캡쳐된 비디오/영상을 포함하는 비디오/영상 아카이브를 포함할 수 있다. 비디오/영상 생성 디바이스는 예를 들어 컴퓨터, 태블릿(tablet) 및 스마트폰을 포함할 수 있으며 (전자적으로) 비디오/영상을 생성할 수 있다. 예를 들어, 컴퓨터를 통하여 가상의 비디오/영상이 생성될 수 있으며, 이 경우 관련 데이터가 생성되는 과정으로 비디오/영상 캡쳐 과정이 갈음될 수 있다.The video source 11 may acquire a video/image through a process of capturing, synthesizing, or generating a video/image. The video source 11 may include a video/image capturing device and/or a video/image generating device. The video/image capturing device may include, for example, one or more cameras, and a video/image archive including previously captured video/images. Video/image generating devices may include, for example, computers, tablets, and smartphones, and may (electronically) generate video/images. For example, a virtual video/image may be generated through a computer, and in this case, a video/image capturing process may be substituted as a process of generating related data.
인코딩 장치(12)는 입력 비디오/영상을 인코딩할 수 있다. 인코딩 장치(12)는 압축 및 코딩 효율을 위하여 예측, 변환, 양자화와 같은 일련의 절차를 수행할 수 있다. 인코딩된 데이터(인코딩된 비디오/영상 정보)는 비트스트림(bitstream) 형태로 출력될 수 있다.The encoding device 12 may encode an input video/video. The encoding apparatus 12 may perform a series of procedures such as prediction, transformation, and quantization for compression and coding efficiency. The encoded data (encoded video/video information) may be output in the form of a bitstream.
송신기(13)는 비트스트림 형태로 출력된 인코딩된 비디오/영상 정보 또는 데이터를 파일 또는 스트리밍 형태로 디지털 저장매체 또는 네트워크를 통하여 수신 디바이스(20)의 수신기(21)로 전달할 수 있다. 디지털 저장 매체는 USB(universal serial bus), SD 카드(secure digital card), CD(compact disc), DVD(digital versatile disc), 블루레이 디스크(blu-ray disc), HDD(hard disk drive), SSD(solid state drive)와 같은 다양한 저장 매체를 포함할 수 있다. 송신기(13)는 미리 정해진 파일 포맷을 통해 미디어 파일을 생성하기 위한 엘레먼트를 포함할 수 있고, 방송/통신 네트워크를 통한 전송을 위한 엘레멘트를 포함할 수 있다. 수신기(21)는 비트스트림을 추출하여 디코딩 장치(22)로 전달할 수 있다.The transmitter 13 may transmit the encoded video/video information or data output in the form of a bitstream to the receiver 21 of the receiving device 20 through a digital storage medium or a network in a file or streaming form. Digital storage media include USB (universal serial bus), SD card (secure digital card), CD (compact disc), DVD (digital versatile disc), Blu-ray disc, HDD (hard disk drive), SSD (solid state drive) may include a variety of storage media. The transmitter 13 may include an element for generating a media file through a predetermined file format, and may include an element for transmission through a broadcast/communication network. The receiver 21 may extract the bitstream and transmit it to the decoding device 22.
디코딩 장치(22)는 인코딩 장치(12)의 동작에 대응하는 역양자화, 역변환, 예측과 같은 일련의 절차를 수행함으로써 비디오/영상을 디코딩할 수 있다. The decoding device 22 may decode the video/video by performing a series of procedures such as inverse quantization, inverse transformation, and prediction corresponding to the operation of the encoding device 12.
렌더러(23)는 디코딩된 비디오/영상을 렌더링할 수 있다. 렌더링된 비디오/영상은 디스플레이부를 통하여 디스플레이 될 수 있다.The renderer 23 may render the decoded video/image. The rendered video/image may be displayed through the display unit.
도 2는 본 명세서의 실시예에 따른 비디오 신호의 인코딩이 수행되는 인코딩 장치의 개략적인 블록도의 예를 도시한다. 도 2의 인코딩 장치(100)는 도 1의 인코딩 장치(12)에 대응할 수 있다.2 shows an example of a schematic block diagram of an encoding apparatus in which encoding of a video signal is performed according to an embodiment of the present specification. The encoding device 100 of FIG. 2 may correspond to the encoding device 12 of FIG. 1.
도 2를 참조하면, 인코딩 장치(100)는 영상 분할부(image partitioning module)(110), 감산부(subtraction module)(115), 변환부(transform module)(120), 양자화부(quantization module)(130), 역양자화부(de-quantization module)(140), 역변환부(inverse-transform module)(150), 가산부(addition module)(155), 필터링부(filtering module)(160), 메모리(memory)(170), 인터 예측부(inter prediction module)(180), 인트라 예측부(intra prediction module)(185), 및 엔트로피 인코딩부(entropy encoding module)(190)를 포함할 수 있다. 인터 예측부(180) 및 인트라 예측부(185)를 합쳐서 예측부라고 불릴 수 있다. 즉, 예측부는 인터 예측부(180) 및 인트라 예측부(185)를 포함할 수 있다. 변환부(120), 양자화부(130), 역양자화부(140), 역변환부(150)는 레지듀얼(residual) 처리부에 포함될 수 있다. 레지듀얼 처리부는 감산부(115)를 더 포함할 수도 있다. 상술한 영상 분할부(110), 감산부(115), 변환부(120), 양자화부(130), 역양자화부(140), 역변환부(150), 가산부(155), 필터링부(160), 인터 예측부(180), 인트라 예측부(185) 및 엔트로피 인코딩부(190)는 실시예에 따라 하나의 하드웨어 컴포넌트(예를 들어 인코더 또는 프로세서)에 의하여 구성될 수 있다. 또한 메모리(170)는 DPB(decoded picture buffer)(175)를 포함할 수 있고, 디지털 저장 매체에 의하여 구성될 수도 있다.Referring to FIG. 2, the encoding apparatus 100 includes an image partitioning module 110, a subtraction module 115, a transform module 120, and a quantization module. (130), a de-quantization module (140), an inverse-transform module (150), an addition module (155), a filtering module (160), a memory A (memory) 170, an inter prediction module 180, an intra prediction module 185, and an entropy encoding module 190 may be included. The inter prediction unit 180 and the intra prediction unit 185 may be collectively referred to as a prediction unit. That is, the prediction unit may include an inter prediction unit 180 and an intra prediction unit 185. The transform unit 120, the quantization unit 130, the inverse quantization unit 140, and the inverse transform unit 150 may be included in a residual processing unit. The residual processing unit may further include a subtraction unit 115. The above-described image segmentation unit 110, subtraction unit 115, transform unit 120, quantization unit 130, inverse quantization unit 140, inverse transform unit 150, addition unit 155, filtering unit 160 ), the inter prediction unit 180, the intra prediction unit 185, and the entropy encoding unit 190 may be configured by one hardware component (eg, an encoder or a processor) according to an embodiment. In addition, the memory 170 may include a decoded picture buffer (DPB) 175 and may be configured by a digital storage medium.
영상 분할부(110)는 인코딩 장치(100)에 입력된 입력 영상(또는, 픽처, 프레임)를 하나 이상의 처리 유닛(processing unit)으로 분할할 수 있다. 예를 들어, 처리 유닛은 코딩 유닛(CU)으로 지칭될 수 있다. 이 경우 코딩 유닛은 코딩 트리 유닛(coding tree unit, CTU) 또는 최대 코딩 유닛(largest coding unit, LCU)으로부터 QTBT (Quad-tree binary-tree) 구조에 따라 재귀적으로(recursively) 분할될 수 있다. 예를 들어, 하나의 코딩 유닛은 쿼드 트리 구조 및/또는 바이너리 트리 구조를 기반으로 하위(deeper) 뎁스의 복수의 코딩 유닛들로 분할될 수 있다. 이 경우 예를 들어 쿼드 트리 구조가 먼저 적용되고 바이너리 트리 구조가 나중에 적용될 수 있다. 또는 바이너리 트리 구조가 먼저 적용될 수도 있다. 더 이상 분할되지 않는 최종 코딩 유닛을 기반으로 본 명세서의 실시예에 따른 코딩 절차가 수행될 수 있다. 이 경우 영상 특성에 따른 코딩 효율에 기반하여 최대 코딩 유닛이 바로 최종 코딩 유닛으로 사용될 수 있다. 또한, 필요에 따라 코딩 유닛은 재귀적으로 보다 하위 뎁스의 코딩 유닛들로 분할됨으로써 최적의 사이즈를 갖는 코딩 유닛이 최종 코딩 유닛으로 사용될 수 있다. 여기서 코딩 절차라 함은 후술되는 예측, 변환, 및 복원과 같은 절차를 포함할 수 있다. 다른 예로, 처리 유닛은 예측 유닛(prediction unit, PU) 또는 변환 유닛(transform unit, TU)을 더 포함할 수 있다. 이 경우 예측 유닛 및 변환 유닛은 각각 상술한 코딩 유닛으로부터 분할될 수 있다. 예측 유닛은 샘플 예측의 단위일 수 있고, 변환 유닛은 변환 계수를 유도하는 단위 또는 변환 계수로부터 레지듀얼 신호(residual signal)를 유도하는 단위일 수 있다. The image segmentation unit 110 may divide an input image (or picture, frame) input to the encoding apparatus 100 into one or more processing units. For example, the processing unit may be referred to as a coding unit (CU). In this case, the coding unit may be recursively partitioned from a coding tree unit (CTU) or a largest coding unit (LCU) according to a quad-tree binary-tree (QTBT) structure. For example, one coding unit may be divided into a plurality of coding units of a deeper depth based on a quad tree structure and/or a binary tree structure. In this case, for example, a quad tree structure may be applied first and a binary tree structure may be applied later. Alternatively, the binary tree structure may be applied first. A coding procedure according to an embodiment of the present specification may be performed based on a final coding unit that is no longer divided. In this case, the maximum coding unit may be directly used as the final coding unit based on coding efficiency according to image characteristics. Further, if necessary, the coding unit is recursively divided into coding units of a lower depth, so that a coding unit having an optimal size may be used as a final coding unit. Here, the coding procedure may include procedures such as prediction, transformation, and restoration described below. As another example, the processing unit may further include a prediction unit (PU) or a transform unit (TU). In this case, the prediction unit and the transform unit may be divided from the above-described coding units, respectively. The prediction unit may be a unit of sample prediction, and the transform unit may be a unit for inducing a transform coefficient or a unit for inducing a residual signal from the transform coefficient.
본 문서에서 사용되는 용어 '유닛(unit)'은 경우에 따라서 '블록(block)' 또는 '영역(area)'과 같은 용어와 혼용될 수 있다. 본 문서에서, MxN 블록은 M개의 열과 N개의 행으로 이루어진 샘플들 또는 변환 계수(transform coefficient)들의 집합을 나타낼 수 있다. 샘플은 일반적으로 픽셀 또는 픽셀의 값을 나타낼 수 있으며, 휘도(luma) 성분의 픽셀/픽셀값을 나타낼 수도 있고, 채도(chroma) 성분의 픽셀/픽셀 값을 나타낼 수도 있다. 샘플은 하나의 픽처(또는 영상)을 픽셀(pixel) 또는 펠(pel)에 대응하는 용어로서 사용될 수 있다.The term "unit" used in this document may be used interchangeably with terms such as "block" or "area" in some cases. In this document, the MxN block may represent a set of samples or transform coefficients consisting of M columns and N rows. A sample may generally represent a pixel or a value of a pixel, may represent a pixel/pixel value of a luminance component, or a pixel/pixel value of a saturation component. A sample may be used as a term corresponding to one picture (or image) as a pixel or pel.
인코딩 장치(100)는 입력 영상 신호(원본 블록, 원본 샘플 어레이)에서 인터 예측부 (180) 또는 인트라 예측부(185)로부터 출력된 예측 신호(예측된 블록, 예측 샘플 어레이)를 감산함으로써 레지듀얼 신호(residual signal, 잔여 블록, 잔여 샘플 어레이)를 생성할 수 있다. 생성된 레지듀얼 신호는 변환부(120)로 전송된다. 이 경우 도시된 바와 같이 인코딩 장치(100) 내에서 입력 영상 신호(원본 블록, 원본 샘플 어레이)에서 예측 신호(예측 블록, 예측 샘플 어레이)를 감산하는 유닛은 감산부(115)로 지칭될 수 있다. 예측부는 처리 대상 블록(이하, 현재 블록이라 함)에 대한 예측을 수행하고, 현재 블록에 대한 예측 샘플들을 포함하는 예측된 블록(predicted block)을 생성할 수 있다. 예측부(prediction module)는 CU 단위로 인트라 예측이 적용되는지 또는 인터 예측이 적용되는지 결정할 수 있다. 예측부는 각 예측모드에 대한 설명에서 후술하는 바와 같이 예측 모드 정보와 같이 예측에 관한 정보를 생성하고, 예측에 관한 정보를 엔트로피 인코딩부(190)로 전달할 수 있다. 예측에 관한 정보는 엔트로피 인코딩부(190)에서 인코딩되고, 비트스트림 형태로 출력될 수 있다. The encoding apparatus 100 subtracts a prediction signal (predicted block, prediction sample array) output from the inter prediction unit 180 or the intra prediction unit 185 from the input video signal (original block, original sample array) A signal (residual signal, residual block, residual sample array) may be generated. The generated residual signal is transmitted to the conversion unit 120. In this case, as illustrated, a unit that subtracts the prediction signal (prediction block, prediction sample array) from the input image signal (original block, original sample array) in the encoding apparatus 100 may be referred to as a subtraction unit 115. . The prediction unit may perform prediction on a block to be processed (hereinafter, referred to as a current block) and generate a predicted block including prediction samples for the current block. The prediction module may determine whether intra prediction or inter prediction is applied on a per CU basis. The prediction unit may generate information about prediction, such as prediction mode information, as described later in the description of each prediction mode, and may transmit information about prediction to the entropy encoding unit 190. Information about prediction is encoded by the entropy encoding unit 190 and may be output in the form of a bitstream.
인트라 예측부(185)는 현재 픽처 내의 샘플들을 참조하여 현재 블록을 예측할 수 있다. 참조되는 샘플들은 예측 모드에 따라 현재 블록의 주변(neighbor)에 위치할 수 있고, 또는 떨어져서 위치할 수도 있다. 인트라 예측에서 예측 모드들은 복수의 비방향성 모드와 복수의 방향성 모드를 포함할 수 있다. 비방향성 모드는 예를 들어 DC 모드 및 플래너 모드(Planar 모드)를 포함할 수 있다. 방향성 모드는 예측 방향의 세밀한 정도에 따라 예를 들어 33개의 방향성 예측 모드 또는 65개의 방향성 예측 모드를 포함할 수 있다. 다만, 이는 예시로서 설정에 따라 그 이상 또는 그 이하의 개수의 방향성 예측 모드들이 사용될 수 있다. 인트라 예측부(185)는 주변 블록에 적용된 예측 모드를 이용하여, 현재 블록에 적용되는 예측 모드를 결정할 수도 있다.The intra prediction unit 185 may predict the current block by referring to samples in the current picture. The referenced samples may be located in the vicinity of the current block or may be located away from each other according to the prediction mode. In intra prediction, prediction modes may include a plurality of non-directional modes and a plurality of directional modes. The non-directional mode may include, for example, a DC mode and a planar mode (Planar mode). The directional mode may include, for example, 33 directional prediction modes or 65 directional prediction modes according to a detailed degree of the prediction direction. However, this is an example, and more or less directional prediction modes may be used depending on the setting. The intra prediction unit 185 may determine a prediction mode applied to the current block by using the prediction mode applied to the neighboring block.
인터 예측부(180)는 참조 픽처 상에서 움직임 벡터에 의해 특정되는 참조 블록(참조 샘플 어레이)을 기반으로, 현재 블록에 대한 예측된 블록을 유도할 수 있다. 이때, 인터 예측 모드에서 전송되는 움직임 정보의 양을 감소시키기 위해 인터 예측부(180)는 주변 블록과 현재 블록 간의 움직임 정보의 상관성에 기초하여 움직임 정보를 블록, 서브블록, 또는 샘플 단위로 예측할 수 있다. 움직임 정보는 움직임 벡터 및 참조 픽처 인덱스를 포함할 수 있다. 움직임 정보는 인터 예측 방향(L0 예측, L1 예측, Bi 예측 등) 정보를 더 포함할 수 있다. 인터 예측의 경우, 주변 블록은 현재 픽처 내에 존재하는 공간적 주변 블록(spatial neighboring block)과 참조 픽처에 존재하는 시간적 주변 블록(temporal neighboring block)을 포함할 수 있다. 참조 블록을 포함하는 참조 픽처와 시간적 주변 블록을 포함하는 참조 픽처는 동일할 수도 있고, 다를 수도 있다. 시간적 주변 블록은 동일 위치 참조 블록(collocated reference block), 동일 위치 CU(colCU)로 지칭될 수 있으며, 시간적 주변 블록을 포함하는 참조 픽처는 동일 위치 픽처(collocated picture, colPic)로 지칭될 수 있다. 예를 들어, 인터 예측부(180)는 주변 블록들의 움직임 정보에 기반하여 움직임 정보 후보 리스트를 구성하고, 현재 블록의 움직임 벡터 및/또는 참조 픽처 인덱스를 도출하기 위하여 어떤 후보가 사용되는지를 지시하는 정보를 생성할 수 있다. 다양한 예측 모드에 기반하여 인터 예측이 수행될 수 있으며, 예를 들어 스킵 모드와 머지 모드가 사용되는 경우, 인터 예측부(180)는 주변 블록의 움직임 정보를 현재 블록의 움직임 정보로서 이용할 수 있다. 스킵 모드의 경우, 머지 모드와 달리 레지듀얼 신호가 전송되지 않는다. 움직임 벡터 예측(motion vector prediction, MVP) 모드의 경우, 주변 블록의 움직임 벡터를 움직임 벡터 예측자(motion vector predictor)로 이용하고, 움직임 벡터 차분(motion vector difference, MVD)을 시그널링함으로써 현재 블록의 움직임 벡터를 지시할 수 있다.The inter prediction unit 180 may derive a predicted block for the current block based on a reference block (reference sample array) specified by a motion vector on the reference picture. In this case, in order to reduce the amount of motion information transmitted in the inter prediction mode, the inter prediction unit 180 may predict motion information in units of blocks, subblocks, or samples based on the correlation between motion information between neighboring blocks and the current block have. The motion information may include a motion vector and a reference picture index. The motion information may further include inter prediction direction (L0 prediction, L1 prediction, Bi prediction, etc.) information. In the case of inter prediction, the neighboring block may include a spatial neighboring block existing in the current picture and a temporal neighboring block existing in the reference picture. The reference picture including the reference block and the reference picture including the temporal neighboring block may be the same or different. The temporal neighboring block may be referred to as a collocated reference block or a colCU (colCU), and a reference picture including the temporal neighboring block may be referred to as a collocated picture (colPic). For example, the inter prediction unit 180 constructs a motion information candidate list based on motion information of neighboring blocks, and indicates which candidate is used to derive a motion vector and/or a reference picture index of the current block. Can generate information. Inter prediction may be performed based on various prediction modes. For example, when a skip mode and a merge mode are used, the inter prediction unit 180 may use motion information of a neighboring block as motion information of a current block. In the case of the skip mode, unlike the merge mode, a residual signal is not transmitted. In the case of motion vector prediction (MVP) mode, a motion vector of a neighboring block is used as a motion vector predictor and a motion vector difference (MVD) is signaled to move the current block. Vector can be indicated.
예측부는 후술되는 다양한 예측 방법을 기반으로 예측 신호(예측 샘플)를 생성할 수 있다. 예를 들어, 예측부는 하나의 블록에 대한 예측을 위하여 인트라 예측 또는 인터 예측을 적용할 수 있을 뿐만 아니라, 인트라 예측과 인터 예측을 함께(동시에) 적용할 수 있다. 이는 CIIP(combined inter and intra prediction)으로 지칭될 수 있다. 또한, 예측부는 블록에 대한 예측을 위하여 IBC(intra block copy)를 수행할 수도 있다. IBC는, 예를 들어, SCC(screen content coding)와 같이 컨텐츠(예: 게임) 영상/동영상 코딩을 위하여 사용될 수 있다. 또한, IBC는 CPR(current picture referencing)로 지칭될 수도 있다. IBC는 기본적으로 현재 픽처 내에서 예측을 수행하나 현재 픽처 내에서 참조 블록을 도출하는 점에서 인터 예측과 유사하게 수행될 수 있다. 즉, IBC는 본 문서에서 설명되는 인터 예측 기법들 중 적어도 하나를 이용할 수 있다.The prediction unit may generate a prediction signal (prediction sample) based on various prediction methods described later. For example, the prediction unit may not only apply intra prediction or inter prediction to predict one block, but also apply intra prediction and inter prediction together (simultaneously). This may be referred to as CIIP (combined inter and intra prediction). Also, the prediction unit may perform intra block copy (IBC) to predict a block. IBC may be used for content (eg, game) video/video coding, such as, for example, screen content coding (SCC). Also, IBC may be referred to as CPR (current picture referencing). IBC basically performs prediction in the current picture, but can be performed similarly to inter prediction in that it derives a reference block in the current picture. That is, the IBC may use at least one of the inter prediction techniques described in this document.
예측부(인터 예측부(180) 및/또는 인트라 예측부(185)를 포함)에 의해 생성된 예측 신호는 복원 신호를 생성하기 위해 이용되거나 레지듀얼 신호를 생성하기 위해 이용될 수 있다. 변환부(120)는 레지듀얼 신호에 변환 기법을 적용하여 변환 계수들(transform coefficients)을 생성할 수 있다. 예를 들어, 변환 기법은 DCT(Discrete Cosine Transform), DST(Discrete Sine Transform), KLT(Karhunen-Loeve Transform), GBT(Graph-Based Transform), 또는 CNT(Conditionally Non-linear Transform) 중 적어도 하나를 포함할 수 있다. 여기서, GBT는 픽셀 간의 관계 정보를 나타내는 그래프로부터 획득되는 변환을 의미한다. CNT는 이전에 복원된 모든 픽셀(all previously reconstructed pixel)를 이용하여 예측 신호를 생성하고, 예측 신호에 기반하여 획득되는 변환을 의미한다. 또한, 변환 과정은 정사각형의 동일한 크기를 갖는 픽셀 블록에 적용될 수도 있고, 정사각형이 아니거나 가변적인 크기를 갖는 블록에도 적용될 수 있다.The prediction signal generated by the prediction unit (including the inter prediction unit 180 and/or the intra prediction unit 185) may be used to generate a reconstructed signal or may be used to generate a residual signal. The transform unit 120 may generate transform coefficients by applying a transform technique to the residual signal. For example, the transformation technique uses at least one of DCT (Discrete Cosine Transform), DST (Discrete Sine Transform), KLT (Karhunen-Loeve Transform), GBT (Graph-Based Transform), or CNT (Conditionally Non-linear Transform). Can include. Here, GBT refers to transformation obtained from a graph representing relationship information between pixels. CNT refers to a transformation obtained based on the prediction signal and generating a prediction signal using all previously reconstructed pixels. In addition, the conversion process may be applied to a pixel block having the same size of a square, or may be applied to a block that is not a square or has a variable size.
양자화부(130)는 변환 계수들을 양자화하고, 양자화된 변환 계수들을 엔트로피 인코딩부(190)로 전송한다. 엔트로피 인코딩부(190)는 양자화된 신호(양자화된 변환 계수들에 관한 정보)를 인코딩함으로써 비트스트림으로 출력할 수 있다. 양자화된 변환 계수들에 관한 정보는 레지듀얼 정보로 지칭될 수 있다. 양자화부(130)는 계수 스캔 순서(scan order)에 기반하여 블록 형태의 양자화된 변환 계수들을 1차원 벡터 형태로 재정렬할 수 있고, 1차원 벡터 형태의 양자화된 변환 계수들의 특성에 기반하여 양자화된 변환 계수들에 관한 정보를 생성할 수도 있다. 엔트로피 인코딩부(190)는, 예를 들어, 지수 골롬(exponential Golomb), CAVLC(context-adaptive variable length coding), CABAC(context-adaptive binary arithmetic coding)과 같은 다양한 인코딩 기법을 수행할 수 있다. 엔트로피 인코딩부(190)는 양자화된 변환 계수들 외 비디오/이미지 복원에 필요한 정보들(예를 들어, 신택스 요소들(syntax elements)의 값)을 함께 또는 별도로 인코딩할 수도 있다. 인코딩된 정보(예: 비디오/영상 정보)는 비트스트림 형태로 NAL(network abstraction layer) 유닛 단위로 전송 또는 저장될 수 있다. 비디오/영상 정보는 APS(adaptation parameter set), PPS(picture parameter set), SPS(sequence parameter set), 또는 VPS(video parameter set)와 같은 다양한 파라미터 세트에 관한 정보를 더 포함할 수 있다. 본 문서에서 후술되는 시그널링/전송되는 정보 및/또는 신택스 요소들은 상술한 인코딩 절차를 통하여 인코딩되어 비트스트림에 포함될 수 있다. 비트스트림은 네트워크를 통하여 전송될 수 있고, 또는 디지털 저장매체에 저장될 수 있다. 여기서 네트워크는 방송망 및/또는 통신망을 포함할 수 있고, 디지털 저장매체는 USB, SD, CD, DVD, 블루레이, HDD, SSD와 같은 저장매체를 포함할 수 있다. 엔트로피 인코딩부(190)로부터 출력된 신호는 전송하는 전송부(미도시) 및/또는 저장하는 저장부(미도시)가 인코딩 장치(100)의 내/외부 엘레먼트로서 구성될 수 있고, 또는 전송부는 엔트로피 인코딩부(190)의 구성요소일 수도 있다.The quantization unit 130 quantizes the transform coefficients and transmits the quantized transform coefficients to the entropy encoding unit 190. The entropy encoding unit 190 may encode a quantized signal (information on quantized transform coefficients) and output it as a bitstream. Information about the quantized transform coefficients may be referred to as residual information. The quantization unit 130 may rearrange the quantized transform coefficients in a block form into a one-dimensional vector form based on a coefficient scan order, and quantize the quantized transform coefficients based on the characteristics of the quantized transform coefficients in a one-dimensional vector form. It is also possible to generate information about transform coefficients. The entropy encoding unit 190 may perform various encoding techniques such as exponential Golomb, context-adaptive variable length coding (CAVLC), and context-adaptive binary arithmetic coding (CABAC). The entropy encoding unit 190 may encode information necessary for video/image restoration (eg, values of syntax elements) in addition to quantized transform coefficients together or separately. The encoded information (eg, video/video information) may be transmitted or stored in a bitstream format in units of network abstraction layer (NAL) units. The video/video information may further include information on various parameter sets, such as adaptation parameter set (APS), picture parameter set (PPS), sequence parameter set (SPS), or video parameter set (VPS). Signaled/transmitted information and/or syntax elements described later in this document may be encoded through the above-described encoding procedure and included in the bitstream. The bitstream may be transmitted over a network or may be stored in a digital storage medium. Here, the network may include a broadcasting network and/or a communication network, and the digital storage medium may include a storage medium such as USB, SD, CD, DVD, Blu-ray, HDD, and SSD. For the signal output from the entropy encoding unit 190, a transmission unit (not shown) for transmitting and/or a storage unit (not shown) for storing may be configured as internal/external elements of the encoding apparatus 100, or the transmission unit It may be a component of the entropy encoding unit 190.
양자화부(130)로부터 출력된 양자화된 변환 계수들은 복원 신호를 생성하기 위해 이용될 수 있다. 예를 들어, 양자화된 변환 계수들에 대한 루프 내의 역양자화부(140) 및 역변환부(150)를 통해 역양자화 및 역변환을 적용함으로써 레지듀얼 신호가 복원될 수 있다. 가산부(155)는 복원된 레지듀얼 신호를 인터 예측부(180) 또는 인트라 예측부(185)로부터 출력된 예측 신호에 더함으로써 복원(reconstructed) 신호(복원 픽처, 복원 블록, 복원 샘플 어레이)를 생성할 수 있다. 스킵 모드가 적용된 경우와 같이 처리 대상 블록에 대한 레지듀얼 신호가 없는 경우, 예측된 블록이 복원 블록으로 사용될 수 있다. 가산부(155)는 복원부 또는 복원 블록 생성부라고 불릴 수 있다. 생성된 복원 신호는 현재 픽처 내 다음 처리 대상 블록의 인트라 예측을 위하여 사용될 수 있고, 후술하는 바와 같이 필터링을 거쳐서 다음 픽처의 인터 예측을 위하여 사용될 수도 있다. The quantized transform coefficients output from the quantization unit 130 may be used to generate a reconstructed signal. For example, a residual signal may be restored by applying inverse quantization and inverse transform through the inverse quantization unit 140 and the inverse transform unit 150 in the loop for the quantized transform coefficients. The addition unit 155 adds the reconstructed residual signal to the prediction signal output from the inter prediction unit 180 or the intra prediction unit 185 to obtain a reconstructed signal (a reconstructed picture, a reconstructed block, and a reconstructed sample array). Can be generated. When there is no residual signal for the block to be processed, such as when the skip mode is applied, the predicted block may be used as a reconstructed block. The addition unit 155 may be referred to as a restoration unit or a restoration block generation unit. The generated reconstructed signal may be used for intra prediction of the next processing target block in the current picture, and may be used for inter prediction of the next picture through filtering as described later.
필터링부(160)는 복원 신호에 필터링을 적용함으로써 주관적/객관적 화질을 향상시킬 수 있다. 예를 들어, 필터링부(160)는 복원 픽처에 다양한 필터링 방법을 적용하여 수정된(modified) 복원 픽처를 생성할 수 있고, 수정된 복원 픽처를 메모리(170)의 DPB(175)에 전송할 수 있다. 다양한 필터링 방법은 예를 들어, 디블록킹 필터링, 샘플 적응적 오프셋(sample adaptive offset, SAO), 적응적 루프 필터(adaptive loop filter, ALF), 양방향 필터(bilateral filter)를 포함할 수 있다. 필터링부(160)는 각 필터링 방법에 대한 설명에서 후술하는 바와 같이 필터링에 관한 정보를 생성하고, 필터링에 관한 정보를 엔트로피 인코딩부(190)로 전달할 수 있다. 필터링에 관한 정보는 엔트로피 인코딩부(190)에서의 엔트로피 인코딩을 통해 비트스트림 형태로 출력될 수 있다. The filtering unit 160 may improve subjective/objective image quality by applying filtering to the reconstructed signal. For example, the filtering unit 160 may apply various filtering methods to the reconstructed picture to generate a modified reconstructed picture, and may transmit the modified reconstructed picture to the DPB 175 of the memory 170. . Various filtering methods may include, for example, deblocking filtering, sample adaptive offset (SAO), adaptive loop filter (ALF), and bilateral filter. The filtering unit 160 may generate filtering information and transmit the filtering information to the entropy encoding unit 190 as described later in the description of each filtering method. The filtering information may be output in the form of a bitstream through entropy encoding in the entropy encoding unit 190.
DPB(175)에 전송된 수정된 복원 픽처는 인터 예측부(180)에서 참조 픽처로 사용될 수 있다. 인터 예측이 적용되는 경우, 인코딩 장치(100)는 수정된 복원 픽처를 사용하여 인코딩 장치(100)와 디코딩 장치(200)에서의 예측 미스매치를 피할 수 있고, 부호화 효율도 향상시킬 수 있다. DPB(175)는 수정된 복원 픽처를 인터 예측부(180)에서의 참조 픽처로 사용하기 위해 저장할 수 있다. 저장된 움직임 정보는 공간적 주변 블록의 움직임 정보 또는 시간적 주변 블록의 움직임 정보로 사용하기 위하여 인터 예측부(180)에 전달될 수 있다. 메모리(170)는 현재 픽처 내 복원된 블록들의 복원된 샘플들을 저장할 수 있고, 복원된 샘플들에 대한 정보를 인트라 예측부(185)에 전달할 수 있다.The modified reconstructed picture transmitted to the DPB 175 may be used as a reference picture in the inter prediction unit 180. When inter prediction is applied, the encoding apparatus 100 may avoid prediction mismatch between the encoding apparatus 100 and the decoding apparatus 200 by using the modified reconstructed picture, and may improve encoding efficiency. The DPB 175 may store the modified reconstructed picture for use as a reference picture in the inter prediction unit 180. The stored motion information may be transmitted to the inter prediction unit 180 for use as motion information of a spatial neighboring block or motion information of a temporal neighboring block. The memory 170 may store reconstructed samples of reconstructed blocks in the current picture, and transfer information on the reconstructed samples to the intra prediction unit 185.
도 3은 본 명세서의 실시예에 따른 영상 신호의 디코딩이 수행되는 디코딩 장치의 개략적인 블록도의 예를 도시한다. 도 3의 디코딩 장치(200)는 도 1의 디코딩 장치(22)에 대응할 수 있다.3 shows an example of a schematic block diagram of a decoding apparatus for decoding an image signal according to an embodiment of the present specification. The decoding device 200 of FIG. 3 may correspond to the decoding device 22 of FIG. 1.
도 3을 참조하면, 디코딩 장치(200)는 엔트로피 디코딩부(entropy decoding module)(210), 역양자화부(de-quantization module)(220), 역변환부(inverse transform module)(230), 가산부(addition module)(235), 필터링부(filtering module)(240), 메모리(250), 인터 예측부(inter prediction module)(260) 및 인트라 예측부(intra prediction module)(265)를 포함할 수 있다. 인터 예측부(260) 및 인트라 예측부(265)는 예측부(prediction module)로 통칭될 수 있다. 즉, 예측부는 인터 예측부(180) 및 인트라 예측부(185)를 포함할 수 있다. 역양자화부(220)와 역변환부(230)는 레지듀얼 처리부(residual processing module)로 통칭될 수 있다. 즉, 레지듀얼 처리부는 역양자화부(220)와 역변환부(230)를 포함할 수 있다. 상술한 엔트로피 디코딩부(210), 역양자화부(220), 역변환부(230), 가산부(235), 필터링부(240), 인터 예측부(260), 및 인트라 예측부(265)는 실시예에 따라 하나의 하드웨어 컴포넌트(예를 들어 디코더 또는 프로세서)에 의하여 구성될 수 있다. 또한 메모리(250)는 DPB(255)를 포함할 수도 있고, 실시예에 따라 하나의 하드웨어 컴포넌트(예를 들어 메모리 또는 디지털 저장 매체)에 의하여 구성될 수 있다.Referring to FIG. 3, the decoding apparatus 200 includes an entropy decoding module 210, a de-quantization module 220, an inverse transform module 230, and an adder. (addition module) 235, filtering module 240, memory 250, inter prediction module 260, and intra prediction module 265 may be included. have. The inter prediction unit 260 and the intra prediction unit 265 may be collectively referred to as a prediction module. That is, the prediction unit may include an inter prediction unit 180 and an intra prediction unit 185. The inverse quantization unit 220 and the inverse transform unit 230 may be collectively referred to as a residual processing module. That is, the residual processing unit may include an inverse quantization unit 220 and an inverse transform unit 230. The entropy decoding unit 210, the inverse quantization unit 220, the inverse transform unit 230, the addition unit 235, the filtering unit 240, the inter prediction unit 260, and the intra prediction unit 265 are implemented. It may be configured by one hardware component (eg, a decoder or a processor) according to an example. Also, the memory 250 may include the DPB 255, and may be configured by one hardware component (eg, a memory or a digital storage medium) according to an embodiment.
비디오/이미지 정보를 포함하는 비트스트림이 입력되면, 디코딩 장치(200)는 도 2의 인코딩 장치(100)에서 비디오/이미지 정보가 처리된 프로세스에 대응하여 영상을 복원할 수 있다. 예를 들어, 디코딩 장치(200)는 인코딩 장치(100)에서 적용된 처리 유닛을 이용하여 디코딩을 수행할 수 있다. 따라서 디코딩시 처리 유닛은 예를 들어 코딩 유닛일 수 있고, 코딩 유닛은 코딩 트리 유닛 또는 최대 코딩 유닛으로부터 쿼드 트리 구조 및/또는 바이너리 트리 구조를 따라서 분할될 수 있다. 그리고, 디코딩 장치(200)를 통해 디코딩 및 출력된 복원 영상 신호는 재생 장치를 통해 재생될 수 있다.When a bitstream including video/image information is input, the decoding apparatus 200 may reconstruct an image in response to a process in which the video/image information is processed by the encoding apparatus 100 of FIG. 2. For example, the decoding apparatus 200 may perform decoding using a processing unit applied by the encoding apparatus 100. Thus, upon decoding, the processing unit may be, for example, a coding unit, and the coding unit may be divided from a coding tree unit or a maximum coding unit according to a quad tree structure and/or a binary tree structure. In addition, the reconstructed image signal decoded and output through the decoding device 200 may be reproduced through the playback device.
디코딩 장치(200)는 도 2의 인코딩 장치(100)로부터 출력된 신호를 비트스트림 형태로 수신할 수 있고, 수신된 신호는 엔트로피 디코딩부(210)를 통해 디코딩될 수 있다. 예를 들어, 엔트로피 디코딩부(210)는 비트스트림을 파싱하여 영상 복원(또는 픽처 복원)에 필요한 정보(예: 비디오/영상 정보)를 도출할 수 있다. 비디오/영상 정보는 APS(adaptation parameter set), PPS(picture parameter set), SPS(sequence parameter set), 또는 VPS(video parameter set)와 같은 다양한 파라미터 세트에 관한 정보를 더 포함할 수 있다. 디코딩 장치는 파라미터 세트에 관한 정보를 기반으로 픽처를 디코딩할 수 있다. 본 문서에서 후술되는 시그널링/수신되는 정보 및/또는 신택스 요소들은 디코딩 절차를 통하여 디코딩되어 비트스트림으로부터 획득될 수 있다. 예컨대, 엔트로피 디코딩부(210)는 지수 골롬 부호화, CAVLC 또는 CABAC과 같은 코딩 기법을 사용하여 비트스트림 내 정보를 획득하고, 영상 복원에 필요한 신택스 엘레먼트의 값, 레지듀얼에 관한 변환 계수의 양자화된 값을 출력할 수 있다. 보다 상세하게, CABAC 엔트로피 디코딩 방법은, 비트스트림에서 각 구문 요소에 해당하는 빈(bin)을 수신하고, 디코딩 대상 구문 요소 정보와 주변 및 디코딩 대상 블록의 디코딩 정보 혹은 이전 단계에서 디코딩된 심볼/빈의 정보를 이용하여 문맥(context) 모델을 결정하고, 결정된 문맥 모델에 따라 빈(bin)의 발생 확률을 예측하여 빈의 산술 디코딩(arithmetic decoding)를 수행함으로써 각 구문 요소의 값에 해당하는 심볼을 생성할 수 있다. 이때, CABAC 엔트로피 디코딩 방법은 문맥 모델 결정 후 다음 심볼/빈의 문맥 모델을 위해 디코딩된 심볼/빈의 정보를 이용하여 문맥 모델을 업데이트할 수 있다. 엔트로피 디코딩부(210)에서 디코딩된 정보 중 예측에 관한 정보는 예측부(인터 예측부(260) 및 인트라 예측부(265))로 제공되고, 엔트로피 디코딩부(210)에서 엔트로피 디코딩이 수행된 레지듀얼 값, 즉 양자화된 변환 계수들 및 관련 파라미터 정보는 역양자화부(220)로 입력될 수 있다. 또한, 엔트로피 디코딩부(210)에서 디코딩된 정보 중 필터링에 관한 정보는 필터링부(240)로 제공될 수 있다. 한편, 인코딩 장치(100)로부터 출력된 신호를 수신하는 수신부(미도시)가 디코딩 장치(200)의 내/외부 엘레먼트로서 더 구성될 수 있고, 또는 수신부는 엔트로피 디코딩부(210)의 구성요소일 수도 있다. 한편, 본 명세서에 따른 디코딩 장치(200)는 비디오/영상/픽처 디코딩 장치로 지칭될 수 있다. 디코딩 장치(200)는 정보 디코더(비디오/영상/픽처 정보 디코더) 및 샘플 디코더(비디오/영상/픽처 샘플 디코더)로 구분될 수도 있다. 정보 디코더는 엔트로피 디코딩부(210)를 포함할 수 있고, 샘플 디코더는 역양자화부(220), 역변환부(230), 가산부(235), 필터링부(240), 메모리(250), 인터 예측부(260), 및 인트라 예측부(265) 중 적어도 하나를 포함할 수 있다.The decoding apparatus 200 may receive a signal output from the encoding apparatus 100 of FIG. 2 in the form of a bitstream, and the received signal may be decoded through the entropy decoding unit 210. For example, the entropy decoding unit 210 may parse the bitstream to derive information (eg, video/video information) necessary for image restoration (or picture restoration). The video/video information may further include information on various parameter sets, such as adaptation parameter set (APS), picture parameter set (PPS), sequence parameter set (SPS), or video parameter set (VPS). The decoding apparatus may decode a picture based on information on a parameter set. Signaled/received information and/or syntax elements described later in this document may be decoded through a decoding procedure and obtained from a bitstream. For example, the entropy decoding unit 210 acquires information in the bitstream using a coding technique such as exponential Golomb coding, CAVLC, or CABAC, and a value of a syntax element required for image restoration, and a quantized value of a transform coefficient for a residual. Can be printed. In more detail, in the CABAC entropy decoding method, a bin corresponding to each syntax element is received in a bitstream, and information about the syntax element to be decoded and decoding information of a block to be decoded and a neighbor or a symbol/bin decoded in a previous step The symbol corresponding to the value of each syntax element is determined by determining the context model using the information of, and performing arithmetic decoding of the bin by predicting the probability of occurrence of the bin according to the determined context model. Can be generated. In this case, the CABAC entropy decoding method may update the context model using information of the decoded symbol/bin for the context model of the next symbol/bin after the context model is determined. Among the information decoded by the entropy decoding unit 210, information on prediction is provided to the prediction unit (inter prediction unit 260 and intra prediction unit 265), and the register on which entropy decoding is performed by the entropy decoding unit 210 Dual values, that is, quantized transform coefficients and related parameter information may be input to the inverse quantization unit 220. In addition, information about filtering among information decoded by the entropy decoding unit 210 may be provided to the filtering unit 240. Meanwhile, a receiving unit (not shown) for receiving a signal output from the encoding device 100 may be further configured as an inner/outer element of the decoding device 200, or the receiving unit may be a component of the entropy decoding unit 210. May be. Meanwhile, the decoding apparatus 200 according to the present specification may be referred to as a video/video/picture decoding apparatus. The decoding apparatus 200 may be divided into an information decoder (video/video/picture information decoder) and a sample decoder (video/video/picture sample decoder). The information decoder may include an entropy decoding unit 210, and the sample decoder is an inverse quantization unit 220, an inverse transform unit 230, an addition unit 235, a filtering unit 240, a memory 250, and an inter prediction. It may include at least one of the unit 260 and the intra prediction unit 265.
역양자화부(220)는 양자화된 변환 계수들의 역양자화를 통해 변환 계수들을 출력할 수 있다. 역양자화부(220)는 양자화된 변환 계수들을 2차원의 블록 형태로 재정렬할 수 있다. 이 경우 인코딩 장치(100)에서 수행된 계수 스캔 순서에 기반하여 재정렬이 수행될 수 있다. 역양자화부(220)는 양자화 파라미터(예: 양자화 스텝 사이즈 정보)를 이용하여 양자화된 변환 계수들에 대한 역양자화를 수행하고, 변환 계수들(transform coefficient)을 획득할 수 있다. The inverse quantization unit 220 may output transform coefficients through inverse quantization of the quantized transform coefficients. The inverse quantization unit 220 may rearrange the quantized transform coefficients into a two-dimensional block shape. In this case, the reordering may be performed based on the coefficient scan order performed by the encoding apparatus 100. The inverse quantization unit 220 may perform inverse quantization on quantized transform coefficients by using a quantization parameter (eg, quantization step size information) and obtain transform coefficients.
역변환부(230)는 변환 계수들을 역변환하여 레지듀얼 신호(레지듀얼 블록, 레지듀얼 샘플 어레이)를 획득한다. The inverse transform unit 230 inversely transforms the transform coefficients to obtain a residual signal (residual block, residual sample array).
예측부는 현재 블록에 대한 예측을 수행하고, 현재 블록에 대한 예측 샘플들을 포함하는 예측된 블록(predicted block)을 생성할 수 있다. 예측부는 엔트로피 디코딩부(210)로부터 출력된 예측에 관한 정보에 기반하여 현재 블록에 인트라 예측이 적용되는지 또는 인터 예측이 적용되는지 결정할 수 있고, 구체적인 인트라/인터 예측 모드를 결정할 수 있다. The prediction unit may perform prediction on the current block and generate a predicted block including prediction samples for the current block. The prediction unit may determine whether intra prediction or inter prediction is applied to the current block based on information on prediction output from the entropy decoding unit 210, and may determine a specific intra/inter prediction mode.
예측부는 후술되는 다양한 예측 방법을 기반으로 예측 신호(예측 샘플)를 생성할 수 있다. 예를 들어, 예측부는 하나의 블록에 대한 예측을 위하여 인트라 예측 또는 인터 예측을 적용할 수 있을 뿐만 아니라, 인트라 예측과 인터 예측을 함께(동시에) 적용할 수 있다. 이는 CIIP(combined inter and intra prediction)로 지칭될 수 있다. 또한, 예측부는 블록에 대한 예측을 위하여 IBC(intra block copy)를 수행할 수도 있다. IBC는, 예를 들어, SCC(screen content coding)와 같이 컨텐츠(예: 게임) 영상/동영상 코딩을 위하여 사용될 수 있다. 또한, IBC는 CPR(current picture referencing)로 지칭될 수도 있다. IBC는 기본적으로 현재 픽처 내에서 예측을 수행하나 현재 픽처 내에서 참조 블록을 도출하는 점에서 인터 예측과 유사하게 수행될 수 있다. 즉, IBC는 본 문서에서 설명되는 인터 예측 기법들 중 적어도 하나를 이용할 수 있다.The prediction unit may generate a prediction signal (prediction sample) based on various prediction methods described later. For example, the prediction unit may not only apply intra prediction or inter prediction to predict one block, but also apply intra prediction and inter prediction together (simultaneously). This may be referred to as CIIP (combined inter and intra prediction). Also, the prediction unit may perform intra block copy (IBC) to predict a block. IBC may be used for content (eg, game) video/video coding, such as, for example, screen content coding (SCC). Also, IBC may be referred to as CPR (current picture referencing). IBC basically performs prediction in the current picture, but can be performed similarly to inter prediction in that it derives a reference block in the current picture. That is, the IBC may use at least one of the inter prediction techniques described in this document.
인트라 예측부(265)는 현재 픽처 내의 샘플들을 참조하여 현재 블록을 예측할 수 있다. 참조되는 샘플들은 예측 모드에 따라 현재 블록의 주변(neighbor)에 위치할 수 있고, 또는 이격되어 위치할 수도 있다. 인트라 예측에서 예측 모드들은 복수의 비방향성 모드와 복수의 방향성 모드를 포함할 수 있다. 인트라 예측부(265)는 주변 블록에 적용된 예측 모드를 이용하여, 현재 블록에 적용되는 예측 모드를 결정할 수도 있다.The intra prediction unit 265 may predict the current block by referring to samples in the current picture. The referenced samples may be located near the current block or may be spaced apart according to the prediction mode. In intra prediction, prediction modes may include a plurality of non-directional modes and a plurality of directional modes. The intra prediction unit 265 may determine a prediction mode applied to the current block by using the prediction mode applied to the neighboring block.
인터 예측부(260)는 참조 픽처 상에서 움직임 벡터에 의해 특정되는 참조 블록(참조 샘플 어레이)을 기반으로, 현재 블록에 대한 예측된 블록을 유도할 수 있다. 이때, 인터 예측 모드에서 전송되는 움직임 정보의 양을 줄이기 위해 주변 블록과 현재 블록 간의 움직임 정보의 상관성에 기초하여 움직임 정보를 블록, 서브블록, 또는 샘플 단위로 예측할 수 있다. 움직임 정보는 움직임 벡터 및 참조 픽처 인덱스를 포함할 수 있다. 움직임 정보는 인터 예측 방향(L0 예측, L1 예측, Bi 예측) 정보를 더 포함할 수 있다. 인터 예측의 경우, 주변 블록은 현재 픽처 내에 존재하는 공간적 주변 블록(spatial neighboring block)과 참조 픽처에 존재하는 시간적 주변 블록(temporal neighboring block)을 포함할 수 있다. 예를 들어, 인터 예측부(260)는 주변 블록들을 기반으로 움직임 정보 후보 리스트를 구성하고, 수신된 후보 선택 정보를 기반으로 현재 블록의 움직임 벡터 및/또는 참조 픽처 인덱스를 도출할 수 있다. 다양한 예측 모드를 기반으로 인터 예측이 수행될 수 있으며, 예측에 관한 정보는 현재 블록에 대한 인터 예측의 모드를 지시하는 정보를 포함할 수 있다. The inter prediction unit 260 may derive a predicted block for the current block based on a reference block (reference sample array) specified by a motion vector on the reference picture. In this case, in order to reduce the amount of motion information transmitted in the inter prediction mode, motion information may be predicted in units of blocks, subblocks, or samples based on correlation between motion information between neighboring blocks and current blocks. The motion information may include a motion vector and a reference picture index. The motion information may further include inter prediction direction (L0 prediction, L1 prediction, Bi prediction) information. In the case of inter prediction, the neighboring block may include a spatial neighboring block existing in the current picture and a temporal neighboring block existing in the reference picture. For example, the inter prediction unit 260 may construct a motion information candidate list based on neighboring blocks, and derive a motion vector and/or a reference picture index of the current block based on the received candidate selection information. Inter prediction may be performed based on various prediction modes, and information on prediction may include information indicating a mode of inter prediction for a current block.
가산부(235)는 획득된 레지듀얼 신호를 예측부(인터 예측부(260) 및/또는 인트라 예측부(265) 포함)로부터 출력된 예측 신호(예측된 블록, 예측 샘플 어레이)에 더함으로써 복원 신호(복원 픽처, 복원 블록, 복원 샘플 어레이)를 생성할 수 있다. 스킵 모드가 적용된 경우와 같이 처리 대상 블록에 대한 레지듀얼이 없는 경우, 예측된 블록이 복원 블록으로 사용될 수 있다.The addition unit 235 is reconstructed by adding the obtained residual signal to the prediction signal (predicted block, prediction sample array) output from the prediction unit (including the inter prediction unit 260 and/or the intra prediction unit 265). Signals (restored pictures, reconstructed blocks, reconstructed sample arrays) can be generated. When there is no residual for a block to be processed, such as when the skip mode is applied, the predicted block may be used as a reconstructed block.
가산부(235)는 복원부 또는 복원 블록 생성부로 지칭될 수 있다. 생성된 복원 신호는 현재 픽처 내 다음 처리 대상 블록의 인트라 예측을 위하여 사용될 수 있고, 후술하는 바와 같이 필터링을 거쳐서 다음 픽처의 인터 예측을 위하여 사용될 수도 있다. The addition unit 235 may be referred to as a restoration unit or a restoration block generation unit. The generated reconstructed signal may be used for intra prediction of the next processing target block in the current picture, and may be used for inter prediction of the next picture through filtering as described later.
필터링부(240)는 복원 신호에 필터링을 적용함으로써 주관적/객관적 화질을 향상시킬 수 있다. 예를 들어, 필터링부(240)는 복원 픽처에 다양한 필터링 방법을 적용하여 수정된(modified) 복원 픽처를 생성할 수 있고, 수정된 복원 픽처를 메모리(250)의 DPB(255)에 전송할 수 있다. 다양한 필터링 방법은, 예를 들어, 디블록킹 필터링, 샘플 적응적 오프셋(sample adaptive offset), 적응적 루프 필터(adaptive loop filter), 양방향 필터(bilateral filter)를 포함할 수 있다. The filtering unit 240 may improve subjective/objective image quality by applying filtering to the reconstructed signal. For example, the filtering unit 240 may apply various filtering methods to the reconstructed picture to generate a modified reconstructed picture, and may transmit the modified reconstructed picture to the DPB 255 of the memory 250. . Various filtering methods may include, for example, deblocking filtering, sample adaptive offset, adaptive loop filter, and bilateral filter.
메모리(250)의 DPB(255)에 전달된 수정된 복원 픽처는 인터 예측부(260)에 의해 참조 픽처로 사용될 수 있다. 메모리(250)는 현재 픽처 내 움직임 정보가 도출된(또는 디코딩된) 블록의 움직임 정보 및/또는 이미 복원된 픽처 내 블록들의 움직임 정보를 저장할 수 있다. 저장된 움직임 정보는 공간적 주변 블록의 움직임 정보 또는 시간적 주변 블록의 움직임 정보로 활용하기 위하여 인터 예측부(260)에 전달할 수 있다. 메모리(250)는 현재 픽처 내 복원된 블록들의 복원 샘플들을 저장할 수 있고, 인트라 예측부(265)에 전달할 수 있다.The modified reconstructed picture delivered to the DPB 255 of the memory 250 may be used as a reference picture by the inter prediction unit 260. The memory 250 may store motion information of a block from which motion information in a current picture is derived (or decoded) and/or motion information of blocks in a picture that have already been reconstructed. The stored motion information may be transmitted to the inter prediction unit 260 to be used as motion information of a spatial neighboring block or motion information of a temporal neighboring block. The memory 250 may store reconstructed samples of reconstructed blocks in the current picture, and may be transmitted to the intra prediction unit 265.
본 명세서에서, 인코딩 장치(100)의 필터링부(160), 인터 예측부(180) 및 인트라 예측부(185)에서 설명된 실시예들은 각각 디코딩 장치의 필터링부(240), 인터 예측부(260) 및 인트라 예측부(265)에도 동일 또는 대응되도록 적용될 수 있다.In the present specification, embodiments described in the filtering unit 160, the inter prediction unit 180, and the intra prediction unit 185 of the encoding apparatus 100 are respectively the filtering unit 240 and the inter prediction unit 260 of the decoding apparatus. ) And the intra prediction unit 265 may be applied to be the same or correspond to each other.
도 4는 본 명세서의 실시예에 따른 컨텐츠 스트리밍 시스템의 예를 도시한다. 본 명세서의 실시예가 적용되는 컨텐츠 스트리밍 시스템은 크게 인코딩 서버(encoding server)(410), 스트리밍 서버(streaming server)(420), 웹 서버(web server)(430), 미디어 저장소(media storage)(440), 사용자 장치(user equipment)(450), 및 멀티미디어 입력 장치(multimedia input device)(460)를 포함할 수 있다.4 shows an example of a content streaming system according to an embodiment of the present specification. Content streaming systems to which the embodiments of the present specification are applied are largely an encoding server 410, a streaming server 420, a web server 430, and a media storage 440. ), a user equipment 450, and a multimedia input device 460.
인코딩 서버(410)는 스마트폰, 카메라, 캠코더와 같은 멀티미디어 입력 장치(460)로부터 입력된 컨텐츠를 디지털 데이터로 압축하여 비트스트림을 생성하고, 생성된 비트스트림을 스트리밍 서버(420)로 전송한다. 다른 예로, 스마트폰, 카메라, 캠코더와 같은 멀티미디어 입력 장치(460)가 비트스트림을 직접 생성하는 경우, 인코딩 서버(410)는 생략될 수 있다.The encoding server 410 generates a bitstream by compressing content input from a multimedia input device 460 such as a smartphone, a camera, or a camcorder into digital data, and transmits the generated bitstream to the streaming server 420. As another example, when the multimedia input device 460 such as a smartphone, a camera, or a camcorder directly generates a bitstream, the encoding server 410 may be omitted.
비트스트림은 본 명세서의 실시예가 적용되는 인코딩 방법 또는 비트스트림 생성 방법에 의해 생성될 수 있고, 스트리밍 서버(420)는 비트스트림을 전송 또는 수신하는 과정에서 일시적으로 비트스트림을 저장할 수 있다.The bitstream may be generated by an encoding method or a bitstream generation method to which an embodiment of the present specification is applied, and the streaming server 420 may temporarily store the bitstream while transmitting or receiving the bitstream.
스트리밍 서버(420)는 웹 서버(430)를 통한 사용자 요청에 기초하여 멀티미디어 데이터를 사용자 장치(450)에 전송하고, 웹 서버(430)는 사용자에게 어떠한 서비스가 있는지를 알려주는 매개체 역할을 한다. 사용자가 웹 서버(430)에 원하는 서비스를 요청하면, 웹 서버(430)는 요청된 서비스에 대한 정보를 스트리밍 서버(420)에 전달하고, 스트리밍 서버(420)는 사용자에게 멀티미디어 데이터를 전송한다. 이때, 컨텐츠 스트리밍 시스템은 별도의 제어 서버를 포함할 수 있고, 이 경우 제어 서버는 컨텐츠 스트리밍 시스템 내 각 장치 간 명령/응답을 제어하는 역할을 한다.The streaming server 420 transmits multimedia data to the user device 450 based on a user request through the web server 430, and the web server 430 serves as an intermediary that informs the user of what kind of service exists. When a user requests a desired service from the web server 430, the web server 430 transmits information on the requested service to the streaming server 420, and the streaming server 420 transmits multimedia data to the user. In this case, the content streaming system may include a separate control server, and in this case, the control server serves to control commands/responses between devices in the content streaming system.
스트리밍 서버(420)는 미디어 저장소(440) 및/또는 인코딩 서버(410)로부터 컨텐츠를 수신할 수 있다. 예를 들어, 인코딩 서버(410)로부터 컨텐츠를 수신하는 경우, 스트리밍 서버(420)는 컨텐츠를 실시간으로 수신할 수 있다. 이 경우, 원활한 스트리밍 서비스를 제공하기 위하여 스트리밍 서버(420)는 비트스트림을 일정 시간동안 저장할 수 있다.The streaming server 420 may receive content from the media storage 440 and/or the encoding server 410. For example, when receiving content from the encoding server 410, the streaming server 420 may receive the content in real time. In this case, in order to provide a smooth streaming service, the streaming server 420 may store the bitstream for a predetermined time.
사용자 장치(450)는, 예를 들어, 휴대폰, 스마트 폰(smart phone), 노트북 컴퓨터(laptop computer), 디지털방송용 단말기, PDA(personal digital assistants), PMP(portable multimedia player), 네비게이션, 슬레이트 PC(slate PC), 태블릿 PC(tablet PC), 울트라북(ultrabook), 웨어러블 디바이스(wearable device, 예를 들어, 워치형 단말기 (smartwatch), 글래스형 단말기 (smart glass), HMD(head mounted display)), 디지털 TV, 데스크탑 컴퓨터, 디지털 사이니지를 포함할 수 있다.The user device 450 includes, for example, a mobile phone, a smart phone, a laptop computer, a digital broadcasting terminal, a personal digital assistants (PDA), a portable multimedia player (PMP), a navigation system, and a slate PC ( slate PC), tablet PC, ultrabook, wearable device, e.g., smartwatch, smart glass, head mounted display (HMD)), It can include digital TV, desktop computer, and digital signage.
컨텐츠 스트리밍 시스템 내 각 서버들은 분산 서버로 운영될 수 있으며, 이 경우 각 서버에서 수신하는 데이터는 분산 처리될 수 있다.Each server in the content streaming system may be operated as a distributed server, and in this case, data received from each server may be distributedly processed.
도 5는 본 명세서의 실시예에 따른 비디오 신호 처리 장치의 예를 도시한다. 도 5의 비디오 신호 처리 장치는 도 1의 인코딩 장치(100) 또는 도 2의 디코딩 장치(200)에 해당할 수 있다. 5 shows an example of a video signal processing apparatus according to an embodiment of the present specification. The video signal processing apparatus of FIG. 5 may correspond to the encoding apparatus 100 of FIG. 1 or the decoding apparatus 200 of FIG. 2.
비디오 신호를 처리하는 비디오 신호 처리 장치(500)는, 비디오 신호를 저장하는 메모리(520)와, 메모리(520)와 결합되면서 비디오 신호를 처리하는 프로세서(510)를 포함한다. 본 명세서의 실시예에 따른 프로세서(510)는 비디오 신호의 처리를 위한 적어도 하나의 프로세싱 회로로 구성될 수 있으며, 비디오 신호의 인코딩/디코딩을 위한 명령어들을 실행함으로써 비디오 신호를 처리할 수 있다. 즉, 프로세서(510)는 이하 설명되는 인코딩/디코딩 방법들을 실행함으로써 원본 비디오 데이터를 인코딩하거나 인코딩된 비디오 신호를 디코딩할 수 있다. 프로세서(510)는, 도 2 또는 도 3의 각 모듈들에 대응하는 하나 또는 그 이상의 프로세서들로 구성될 수 있다. 메모리(520)는 도 2의 메모리(170) 또는 도 3의 메모리(250)에 해당할 수 있다.The video signal processing apparatus 500 for processing a video signal includes a memory 520 for storing a video signal, and a processor 510 for processing a video signal while being combined with the memory 520. The processor 510 according to the embodiment of the present specification may be configured with at least one processing circuit for processing a video signal, and may process a video signal by executing instructions for encoding/decoding a video signal. That is, the processor 510 may encode original video data or decode an encoded video signal by executing encoding/decoding methods described below. The processor 510 may be composed of one or more processors corresponding to each of the modules of FIG. 2 or 3. The memory 520 may correspond to the memory 170 of FIG. 2 or the memory 250 of FIG. 3.
분할 구조(Partitioning structure)Partitioning structure
본 명세서에 따른 비디오/영상 코딩 방법은 후술되는 분할 구조에 기반하여 수행될 수 있다. 구체적으로 후술되는 예측, 레지듀얼 처리(예: (역)변환, (역)양자화), 신택스 요소 코딩, 필터링과 같은 절차는 부할 구조에 기반하여 도출된 CTU(coding tree unit), CU(및/또는 TU, PU)에 기반하여 수행될 수 있다. 블록 분할 절차는 상술한 인코딩 장치(100)의 영상 분할부(110)에서 수행될 수 있으며, 분할 관련 정보는 엔트로피 인코딩부(190)에서 (인코딩) 처리되어 비트스트림 형태로 디코딩 장치(200)로 전달될 수 있다. 디코딩 장치(200)의 엔트로피 디코딩부(210)는 비트스트림으로부터 획득된 분할 관련 정보를 기반으로 현재 블록의 블록 분할 구조를 도출하고, 이를 기반으로 영상 디코딩을 위한 일련의 절차(예: 예측, 레지듀얼 처리, 블록/픽처 복원, 인루프 필터링)를 수행할 수 있다.The video/image coding method according to the present specification may be performed based on a split structure described later. Procedures such as prediction, residual processing (e.g., (inverse) transformation, (inverse) quantization), syntax element coding, and filtering, which will be described later in detail, are CTU (coding tree unit) derived based on the load structure, CU (and/ Alternatively, it may be performed based on TU, PU). The block division procedure may be performed by the video division unit 110 of the encoding apparatus 100 described above, and division-related information is (encoded) processed by the entropy encoding unit 190 and transferred to the decoding apparatus 200 in the form of a bitstream. Can be delivered. The entropy decoding unit 210 of the decoding apparatus 200 derives the block division structure of the current block based on the division-related information obtained from the bitstream, and based on this, a series of procedures (e.g., prediction, registration) for decoding an image. Dual processing, block/picture restoration, and in-loop filtering) can be performed.
본 명세서의 실시예에 따른 비디오/이미지의 코딩에 있어서, 영상 처리 단위는 계층적 구조를 가질 수 있다. 하나의 픽처는 하나 이상의 타일 또는 타일 그룹으로 구분될 수 있다. 하나의 타일 그룹은 하나 이상의 타일을 포함할 수 있다. 하나의 타일은 하나 이상의 CTU를 포함할 수 있다. CTU는 하나 이상의 CU로 분할될 수 있다. 타일은 픽처 내에서 특정 타일 행 및 특정 타일 열 내의 CTU들을 포함하는 사각 영역이다(a rectangular region of CTUs within a particular tile column and a particular tile row in a picture). 타일 그룹은 픽처 내의 타일 래스터 스캔에 따른 정수개의 타일들을 포함할 수 있다. 타일 그룹 헤더는 해당 타일 그룹에 적용될 수 있는 정보/파라미터를 전달할 수 있다. 인코딩 장치(100)/디코딩 장치(200)가 멀티 코어 프로세서를 갖는 경우, 타일 또는 타일 그룹에 대한 인코딩/디코딩 절차는 병렬 처리될 수 있다. 여기서 타일 그룹은 intra (I) tile group, predictive (P) tile group, 및 bi-predictive (B) tile group을 포함하는 타일 그룹들 중 하나의 타입을 가질 수 있다. I 타일 그룹 내의 블록들에 대한 예측을 위하여 인터 예측이 사용되지 않고 인트라 예측만이 사용될 수 있다. 물론 I 타일 그룹에 대해서도 예측 없이 코딩된 원본 샘플 값이 시그널링될 수 있다. P 타일 그룹 내의 블록들에 대하여 인트라 예측 또는 인터 예측이 사용될 수 있으며, 인터 예측이 사용되는 경우 단방향(uni) 예측만이 사용될 수 있다. 한편, B 타일 그룹 내의 블록들에 대하여 인트라 예측 또는 인터 예측이 사용될 수 있으며, 인터 예측이 사용되는 경우 단방향 예측뿐만 아니라 쌍(bi) 예측도 사용될 수 있다.In video/image coding according to the embodiment of the present specification, an image processing unit may have a hierarchical structure. One picture may be divided into one or more tiles or tile groups. One tile group may include one or more tiles. One tile may contain more than one CTU. The CTU can be divided into one or more CUs. A tile is a rectangular region of CTUs within a particular tile column and a particular tile row in a picture. The tile group may include an integer number of tiles according to a tile raster scan in a picture. The tile group header may convey information/parameters applicable to the corresponding tile group. When the encoding device 100/decoding device 200 has a multi-core processor, an encoding/decoding procedure for a tile or a group of tiles may be processed in parallel. Here, the tile group may have one type of tile groups including an intra (I) tile group, a predictive (P) tile group, and a bi-predictive (B) tile group. For prediction of blocks in an I tile group, inter prediction is not used and only intra prediction can be used. Of course, even for the I tile group, a coded original sample value may be signaled without prediction. Intra prediction or inter prediction may be used for blocks in a P tile group, and when inter prediction is used, only uni prediction may be used. Meanwhile, intra prediction or inter prediction may be used for blocks in the B tile group, and when inter prediction is used, not only unidirectional prediction but also bi prediction may be used.
도 6은 본 명세서의 실시예에 따른 픽처의 분할 구조의 예를 도시한다. 도 6에서, 216개(18 by 12)의 휘도 CTU들을 갖는 픽처가 12개의 타일들과 3개의 타일 그룹들로 분할된다.6 illustrates an example of a picture division structure according to an embodiment of the present specification. In FIG. 6, a picture having 216 (18 by 12) luminance CTUs is divided into 12 tiles and 3 tile groups.
인코더는 비디오 영상의 특성(예를 들어, 해상도)에 따라 또는 코딩의 효율 또는 병렬 처리를 고려하여 타일/타일 그룹, 최대 및 최소 코딩 유닛 크기를 결정하고, 이에 대한 정보 또는 이를 유도하기 위한 정보를 비트스트림에 포함시킬 수 있다. The encoder determines the size of a tile/tile group and a maximum and minimum coding unit according to a characteristic (e.g., resolution) of a video image or in consideration of coding efficiency or parallel processing, and provides information about this or information for inducing it. It can be included in the bitstream.
디코더는 현재 픽처의 타일/타일 그룹, 타일 내 CTU가 다수의 코딩 유닛들로 분할되었는지 여부를 나타내는 정보를 획득할 수 있다. 이러한 정보가 디코더에 의해 항상 획득(디코딩)되는 것이 아니라 특정 조건 하에서만 획득(디코딩)되도록하면 코딩 효율이 증대될 수 있다.The decoder may obtain information indicating whether the tile/tile group of the current picture and the CTU in the tile are divided into a plurality of coding units. Coding efficiency can be increased if such information is not always acquired (decoded) by the decoder, but is acquired (decoded) only under certain conditions.
타일 그룹 헤더(타일 그룹 헤더 신택스)는 타일 그룹에 공통적으로 적용될 수 있는 정보/파라미터를 포함할 수 있다. APS(APS 신택스) 또는 PPS(PPS 신택스)는 하나 이상의 픽처에 공통적으로 적용될 수 있는 정보/파라미터를 포함할 수 있다. SPS(SPS 신택스)는 하나 이상의 시퀀스에 공통적으로 적용될 수 있는 정보/파라미터를 포함할 수 있다. VPS(VPS 신택스)는 비디오 전반에 공통적으로 적용될 수 있는 정보/파라미터를 포함할 수 있다. 본 명세서의 상위 레벨 신택스는 APS 신택스, PPS 신택스, SPS 신택스, VPS 신택스 중 적어도 하나를 포함할 수 있다.The tile group header (tile group header syntax) may include information/parameters commonly applicable to the tile group. APS (APS syntax) or PPS (PPS syntax) may include information/parameters that can be commonly applied to one or more pictures. SPS (SPS syntax) may include information/parameters that can be commonly applied to one or more sequences. VPS (VPS syntax) may include information/parameters that can be commonly applied to the entire video. The high-level syntax of the present specification may include at least one of APS syntax, PPS syntax, SPS syntax, and VPS syntax.
또한, 예를 들어 타일/타일 그룹의 분할 및 구성에 관한 정보는 상위 레벨 신택스를 통하여 인코더에서 구성된 후 비트스트림 형태로 디코더로 전송될 수 있다.Further, for example, information on the division and configuration of a tile/tile group may be configured in an encoder through a higher level syntax and then transmitted to a decoder in the form of a bitstream.
도 7은 본 명세서의 실시예에 따른 복수개의 코딩 트리 유닛들로 분할된 픽처의 예를 도시한다.7 illustrates an example of a picture divided into a plurality of coding tree units according to an embodiment of the present specification.
픽처들은 코딩 트리 유닛들 (CTUs)의 시퀀스로 분할될(divided into a sequence) 수 있다. CTU는 코딩 트리 블록(CTB)에 대응될 수 있다. 혹은 CTU는 휘도(luma) 샘플들의 코딩 트리 블록과, 대응하는 색차(chroma) 샘플들의 두개의 코딩 트리 블록들을 포함할 수 있다. 다시 말하면, 세가지 샘플 어레이를 포함하는 픽처에 대하여, CTU는 휘도 샘플들의 NxN 블록과 색차 샘플들의 두 개의 대응 블록들을 포함할 수 있다. 도 7은 픽처가 CTU들로 분할되는 예를 나타낸다.Pictures can be divided into a sequence of coding tree units (CTUs). The CTU may correspond to a coding tree block (CTB). Alternatively, the CTU may include a coding tree block of luma samples and two coding tree blocks of corresponding chroma samples. In other words, for a picture including three sample arrays, the CTU may include an NxN block of luminance samples and two corresponding blocks of chrominance samples. 7 shows an example in which a picture is divided into CTUs.
코딩 및 예측을 위한 CTU의 최대 허용 사이즈는 변환을 위한 CTU의 최대 허용 사이즈와 다를 수 있다. 예를 들어, 비록 휘도 변환 블록들의 최대 사이즈가 64x64인 경우에도 CTU 내 휘도 블록의 최대 허용 사이즈는 128x128일 수 있다.The maximum allowed size of the CTU for coding and prediction may be different from the maximum allowed size of the CTU for transformation. For example, even if the maximum size of the luminance conversion blocks is 64x64, the maximum allowable size of the luminance block in the CTU may be 128x128.
도 8은 본 명세서의 실시예에 따른 멀티타입 트리 구조의 예를 도시한다.8 shows an example of a multi-type tree structure according to an embodiment of the present specification.
CTU는 쿼드트리(quad-tree, QT) 구조를 기반으로 CU들로 분할될 수 있다. 쿼드트리 구조는 쿼터너리(quaternary) 트리 구조라고 불릴 수 있다. 이는 다양한 국지적 특징(local characteristic)을 반영하기 위함이다. 한편, 본 문서에서는 CTU는 쿼드트리 뿐 아니라 바이너리 트리(binary-tree, BT) 및 터너리 트리(ternary-tree, TT)을 포함하는 멀티타입 트리 구조 분할을 기반하여 분할될 수 있다. 이하, QTBT 구조라 함은 쿼드트리 및 바이너리 트리 기반 분할 구조를 포함할 수 있고, QTBTTT라 함은 쿼드트리, 바이너리 트리 및 터너리 트리 기반 분할 구조를 포함할 수 있다. 혹은 QTBT 구조는 쿼드트리, 바이너리 트리 및 터너리 트리 기반 분할 구조를 포함할 수도 있다. 코딩 트리 구조에서, CU는 정사각형 또는 직사각형 모양을 가질 수 있다. CTU는 먼저 쿼드트리 구조로 분할될 수 있다. 이후 쿼드트리 구조의 리프 노드들은 멀티타입 트리 구조에 의하여 더 분할될 수 있다. 예를 들어 도 8에서 보이는 바와 같이, 멀티타입 트리 구조는 개략적으로 4개의 분할 타입을 포함할 수 있다.The CTU may be divided into CUs based on a quad-tree (QT) structure. The quadtree structure can be called a quaternary tree structure. This is to reflect various local characteristics. Meanwhile, in this document, the CTU may be divided based on division of a multi-type tree structure including a binary tree (binary-tree, BT) and a ternary tree (TT) as well as a quad tree. Hereinafter, the QTBT structure may include a quadtree and binary tree-based partitioning structure, and QTBTTT may include a quadtree, binary tree, and ternary tree-based partitioning structure. Alternatively, the QTBT structure may include a quadtree, binary tree, and ternary tree-based partitioning structure. In the coding tree structure, the CU may have a square or rectangular shape. The CTU can be divided into a quadtree structure first. Thereafter, leaf nodes of a quadtree structure may be further divided by a multitype tree structure. For example, as shown in FIG. 8, the multitype tree structure may schematically include four partition types.
4개의 분할 타입은 수직 바이너리 분할(vertical binary splitting, SPLIT_BT_VER)(310), 수평 바이너리 분할(horizontal binary splitting, SPLIT_BT_HOR)(320), 수직 터너리 분할(vertical ternary splitting, SPLIT_TT_VER)(330), 수평 터너리 분할(horizontal ternary splitting, SPLIT_TT_HOR)(340)을 포함할 수 있다. 멀티타입 트리 구조의 리프 노드들은 CU들이라고 불릴 수 있다. 이러한 CU들은 예측 및 변환 절차를 위하여 사용될 수 있다. 본 문서에서 일반적으로 CU, PU, TU는 동일한 블록 사이즈를 가질 수 있다. 다만, 최대 허용 변환 길이(maximum supported transform length )가 CU의 컬러 성분(colour component)의 너비 또는 높이보다 작은 경우에는 CU와 TU가 서로 다른 블록 사이즈를 가질 수 있다.The four split types are vertical binary splitting (SPLIT_BT_VER) (310), horizontal binary splitting (SPLIT_BT_HOR) (320), vertical ternary splitting (SPLIT_TT_VER) (330), and horizontal turner. It may include horizontal ternary splitting (SPLIT_TT_HOR) 340. Leaf nodes of a multi-type tree structure can be called CUs. These CUs can be used for prediction and transformation procedures. In this document, in general, CU, PU, and TU may have the same block size. However, if the maximum supported transform length is smaller than the width or height of the color component of the CU, the CU and the TU may have different block sizes.
도 9는 본 명세서의 실시예에 따른 멀티타입 트리를 수반하는 쿼드트리(quadtree with nested multi-type tree) 구조의 분할 정보를 시그널링하기 위한 메커니즘의 예를 도시한다.9 shows an example of a mechanism for signaling split information of a quadtree with nested multi-type tree structure according to an embodiment of the present specification.
도 9에서, CTU는 쿼드트리의 루트(root)로 취급되며, 쿼드트리 구조로 처음으로 파티셔닝된다. 각 쿼드트리 리프 노드는 이후 멀티타입 트리 구조로 더 파티셔닝될 수 있다. 멀티타입 트리 구조에서, 제1 플래그(예: mtt_split_cu_flag)가 해당 노드가 추가적으로 파티셔닝되는지를 지시하기 위하여 시그널링된다. 만약 해당 노드가 추가적으로 파티셔닝되는 경우, 제2 플래그(예: mtt_split_cu_vertical_flag)가 분할 방향(splitting direction)을 지시하기 위하여 시그널링될 수 있다. 그 후 제3 플래그(예: mtt_split_cu_binary_flag)가 분할 타입이 바이너리 분할인지 터너리 분할인지 여부를 지시하기 위하여 시그널링될 수 있다. 예를 들어, 제2 플래그(mtt_split_cu_vertical_flag) 및 제3 플래그(mtt_split_cu_binary_flag)를 기반으로, CU의 멀티타입 트리 분할 모드(multi-type tree splitting mode, MttSplitMode)가 아래의 표 1과 같이 도출될 수 있다.In Fig. 9, the CTU is treated as the root of a quadtree, and is first partitioned into a quadtree structure. Each quadtree leaf node can then be further partitioned into a multitype tree structure. In a multi-type tree structure, a first flag (eg, mtt_split_cu_flag) is signaled to indicate whether a corresponding node is additionally partitioned. If the corresponding node is additionally partitioned, a second flag (eg, mtt_split_cu_vertical_flag) may be signaled to indicate the splitting direction. Thereafter, a third flag (eg, mtt_split_cu_binary_flag) may be signaled to indicate whether the division type is binary division or ternary division. For example, based on the second flag (mtt_split_cu_vertical_flag) and the third flag (mtt_split_cu_binary_flag), the multi-type tree splitting mode (MttSplitMode) of the CU may be derived as shown in Table 1 below.
Figure PCTKR2020003187-appb-T000001
Figure PCTKR2020003187-appb-T000001
도 10은 본 명세서의 실시예에 따른 쿼드트리 및 수반되는 멀티타입 트리(quadtree and nested multi-type tree) 구조에 기반하여 복수개의 코딩 유닛들로 분할된 코딩 트리 유닛의 예를 도시한다.10 illustrates an example of a coding tree unit divided into a plurality of coding units based on a quadtree and a nested multi-type tree structure according to an embodiment of the present specification.
도 10에서, 볼드 블록 엣지들(bold block edges)는 쿼드트리 파티셔닝을, 나머지 엣지들은 멀티타입 트리 파티셔닝을 나타낸다. 멀티타입 트리를 수반한 쿼드트리 파티션은 컨텐츠-어댑티드 코딩 트리 구조를 제공할 수 있다. CU는 코딩 블록(CB)에 대응될 수 있다. 혹은 CU는 휘도 샘플들의 코딩 블록과, 대응하는 색차 샘플들의 두개의 코딩 블록들을 포함할 수 있다. CU의 사이즈는 CTU 만큼 클 수도 있고, 또는 휘도 샘플 단위에서 4x4 만큼 작을 수도 있다. 예를 들어, 4:2:0 컬러 포맷(또는 색차 포맷)인 경우, 최대 색차 CB 사이즈는 64x64이고 최소 색차 CB 사이즈는 2x2일 수 있다.In FIG. 10, bold block edges represent quadtree partitioning, and the remaining edges represent multitype tree partitioning. A quadtree partition with a multi-type tree can provide a content-adaptive coding tree structure. The CU may correspond to a coding block (CB). Alternatively, the CU may include a coding block of luminance samples and two coding blocks of corresponding chrominance samples. The size of the CU may be as large as CTU, or may be as small as 4x4 in units of luminance samples. For example, in the case of a 4:2:0 color format (or color difference format), the maximum color difference CB size may be 64x64 and the minimum color difference CB size may be 2x2.
본 문서에서 예를 들어, 최대 허용 휘도 TB 사이즈는 64x64이고, 최대 허용 색차 TB 사이즈는 32x32일 수 있다. 만약 트리 구조에 따라 분할된 CB의 너비 또는 높이가 최대 변환 너비 또는 높이보다 큰 경우, 해당 CB는 자동적으로(또는 묵시적으로) 수평 및 수직 방향의 TB 사이즈 제한을 만족할 때까지 분할될 수 있다. In this document, for example, the maximum allowable luminance TB size may be 64x64, and the maximum allowable color difference TB size may be 32x32. If the width or height of the CB divided according to the tree structure is larger than the maximum transform width or height, the corresponding CB may be automatically (or implicitly) divided until the TB size limit in the horizontal and vertical directions is satisfied.
한편, 멀티타입 트리를 수반한 쿼드트리 코딩 트리 스킴(scheme)을 위하여, 다음 파라미터들이 SPS 신택스 요소로 정의 및 식별될 수 있다.Meanwhile, for a quadtree coding tree scheme involving a multi-type tree, the following parameters may be defined and identified as SPS syntax elements.
- CTU size: 쿼터너리 트리의 루트 노드 사이즈 (the root node size of a quaternary tree)-CTU size: the root node size of a quaternary tree
- MinQTSize: 최소의 허용된 쿼터너리 트리 리프 노드 사이즈 (the minimum allowed quaternary tree leaf node size)-MinQTSize: the minimum allowed quaternary tree leaf node size
- MaxBtSize: 최대의 허용된 바이너리 트리 루트 노드 사이즈 (the maximum allowed binary tree root node size)-MaxBtSize: the maximum allowed binary tree root node size
- MaxTtSize: 최대의 허용된 터너리 트리 루트 노드 사이즈 (the maximum allowed ternary tree root node size)-MaxTtSize: the maximum allowed ternary tree root node size
- MaxMttDepth: 쿼드트리 리프로부터 분할된 멀티타입 트리 분할의 최대의 허용된 계층적 뎁스 (the maximum allowed hierarchy depth of multi-type tree splitting from a quadtree leaf)-MaxMttDepth: the maximum allowed hierarchy depth of multi-type tree splitting from a quadtree leaf
- MinBtSize: 최소의 허용된 바이너리 트리 리프 노드 사이즈 (the minimum allowed binary tree leaf node size)-MinBtSize: the minimum allowed binary tree leaf node size
- MinTtSize: 최소의 허용된 터너리 트리 리프 노드 사이즈 (the minimum allowed ternary tree leaf node size)-MinTtSize: the minimum allowed ternary tree leaf node size
멀티타입 트리를 수반한 쿼드트리 코딩 트리 구조의 일 예로, CTU 사이즈는 128x128 휘도 샘플들 및 두 개의 대응하는 색차 샘플들의 64x64 블록들로 설정될 수 있다(4:2:0 크로마 포맷에서). 이 경우, MinQTSize는 16x16으로 설정되고, MaxBtSize는 128x128로 설정되고, MaxTtSzie는 64x64로 설정되고, MinBtSize 및 MinTtSize (너비와 높이 모드에 대하여)는 4x4로, 그리고 MaxMttDepth는 4로 설정될 수 있다. 쿼트트리 파티셔닝은 CTU에 적용되어 쿼드트리 리프 노드들을 생성할 수 있다. 쿼드트리 리프 노드는 리프 QT 노드라고 불릴 수 있다. 쿼드트리 리프 노드들은 16x16 사이즈 (예: MinOTSize)로부터 128x128 사이즈(예: CTU size)를 가질 수 있다. 만약 리프 QT 노드가 128x128인 경우, 추가적으로 바이너리 트리/터너리 트리로 분할되지 않을 수 있다. 이는 이 경우 분할되더라도 MaxBtsize 및 MaxTtszie (즉, 64x64)를 초과하기 때문이다. 이 외의 경우, 리프 QT 노드는 멀티타입 트리로 추가적으로 분할될 수 있다. 그러므로, 리프 QT 노드는 멀티타입 트리에 대한 루트 노드(root node)이고, 리프 QT 노드는 멀티타입 트리 뎁스(mttDepth) 0 값을 가질 수 있다. 만약, 멀티타입 트리 뎁스가 MaxMttdepth (예: 4)에 도달한 경우, 더 이상 추가 분할은 고려되지 않을 수 있다. 만약, 멀티타입 트리 노드의 너비가 MinBtSize와 같고, 2xMinTtSize보다 작거나 같을 때, 더 이상 추가적인 수평 분할은 고려되지 않을 수 있다. 만약, 멀티타입 트리 노드의 높이가 MinBtSize와 같고, 2xMinTtSize보다 작거나 같을 때, 더 이상 추가적인 수직 분할은 고려되지 않을 수 있다.As an example of a quadtree coding tree structure involving a multitype tree, the CTU size may be set to 128x128 luminance samples and 64x64 blocks of two corresponding color difference samples (in a 4:2:0 chroma format). In this case, MinQTSize is set to 16x16, MaxBtSize is set to 128x128, MaxTtSzie is set to 64x64, MinBtSize and MinTtSize (for width and height mode) may be set to 4x4, and MaxMttDepth may be set to 4. Quart tree partitioning can be applied to CTU to create quadtree leaf nodes. The quadtree leaf node may be referred to as a leaf QT node. Quadtree leaf nodes may have a size of 128x128 (eg, CTU size) from 16x16 size (eg MinOTSize). If the leaf QT node is 128x128, it may not be additionally divided into a binary tree/ternary tree. This is because even if it is split in this case, it exceeds MaxBtsize and MaxTtszie (ie, 64x64). In other cases, the leaf QT node can be further divided into a multi-type tree. Therefore, the leaf QT node is a root node for a multi-type tree, and the leaf QT node may have a multi-type tree depth (mttDepth) of 0. If the multi-type tree depth reaches MaxMttdepth (eg, 4), additional partitioning may not be considered any more. If the width of the multi-type tree node is equal to MinBtSize and less than or equal to 2xMinTtSize, additional horizontal division may not be considered. If the height of the multi-type tree node is equal to MinBtSize and less than or equal to 2xMinTtSize, additional vertical division may not be considered.
도 11은 본 명세서의 실시예에 따른 터너리 트리(ternary tree) 분할이 제한되는 경우의 예를 도시한다.11 illustrates an example of a case in which division of a ternary tree is limited according to an embodiment of the present specification.
하드웨어 디코더에서의, 64x64 휘도 블록 및 32x32 색차 블록의 파이프라인 디자인을 허용하기 위하여, TT 분할은 특정 경우 금지될(forbidden) 수 있다. 예를 들어, 루마 코딩 블록의 너비 또는 높이가 64보다 큰 경우, 도 11에 도시된 바와 같이, TT 분할이 금지될 수 있다. 또한 예를 들어, 색차 코딩 블록의 너비 또는 높이가 32보다 큰 경우 TT 분할은 금지될 수 있다.In the hardware decoder, in order to allow the pipeline design of 64x64 luminance blocks and 32x32 chrominance blocks, TT segmentation may be forbidden in certain cases. For example, when the width or height of the luma coding block is greater than 64, TT partitioning may be prohibited as shown in FIG. 11. Also, for example, if the width or height of the color difference coding block is greater than 32, TT division may be prohibited.
본 문서에서, 코딩 트리 스킴은 휘도 및 색차 (성분) 블록이 개별적(separate) 블록 트리 구조를 가지는 것을 지원할 수 있다. 하나의 CTU 내 휘도 및 색차 블록이 동일한 블록 트리 구조를 가지는 경우는 SINGLE_TREE라고 나타낼 수 있다. 하나의 CTU 내 휘도 및 색차 블록이 개별적 블록 트리 구조를 가지는 경우는 DUAL_TREE라고 나타낼 수 있다. 이 경우 휘도 성분에 대한 블록 트리 타입은 DUAL_TREE_LUMA라고 불릴 수 있고, 색차 성분에 대한 블록 트리 타입은 DUAL_TREE_CHROMA라고 불릴 수 있다. P 및 B 슬라이스/타일 그룹들에 대하여, 하나의 CTU 내 휘도 및 색차 CTB들은 동일한 코딩 트리 구조를 갖도록 제한될 수 있다. 그러나, I 슬라이스/타일 그룹들에 대하여, 휘도 및 색차 블록들은 서로 개별적 블록 트리 구조를 가질 수 있다. 만약 개별적 블록 트리 모드가 적용되는 경우, 휘도 CTB는 특정 코딩 트리 구조를 기반으로 CU들로 분할되고, 색차 CTB는 다른 코딩 트리 구조를 기반으로 색차 CU들로 분할될 수 있다. 이는, I 슬라이스/타일 그룹 내 CU는 휘도 성분의 코딩 블록 또는 두 색차 성분들의 코딩 블록들로 구성되고, P 또는 B 슬라이스/타일 그룹의 CU는 세가지 컬러 성분의 블록들로 구성될 수 있음을 의미할 수 있다.In this document, the coding tree scheme may support that luminance and color difference (component) blocks have a separate block tree structure. When the luminance and color difference blocks in one CTU have the same block tree structure, it may be indicated as SINGLE_TREE. When the luminance and color difference blocks in one CTU have an individual block tree structure, it may be indicated as DUAL_TREE. In this case, the block tree type for the luminance component may be called DUAL_TREE_LUMA, and the block tree type for the color difference component may be called DUAL_TREE_CHROMA. For P and B slice/tile groups, luminance and color difference CTBs within one CTU may be limited to have the same coding tree structure. However, for I slice/tile groups, the luminance and color difference blocks may have separate block tree structures from each other. If an individual block tree mode is applied, the luminance CTB may be divided into CUs based on a specific coding tree structure, and the color difference CTB may be divided into color difference CUs based on a different coding tree structure. This means that the CU in the I slice/tile group may be composed of a coding block of a luminance component or a coding block of two color difference components, and the CU of a P or B slice/tile group may be composed of blocks of three color components. can do.
앞에서 멀티타입 트리를 수반한 쿼드트리 코딩 트리 구조에 대하여 설명하였으나, CU가 분할되는 구조는 이에 한정되지 않는다. 예를 들어, BT 구조 및 TT 구조는 다수 분할 트리 (Multiple Partitioning Tree, MPT) 구조에 포함되는 개념으로 해석될 수 있고, CU는 QT 구조 및 MPT 구조를 통해 분할된다고 해석할 수 있다. QT 구조 및 MPT 구조를 통해 CU가 분할되는 일 예에서, QT 구조의 리프 노드가 몇 개의 블록으로 분할되는지에 관한 정보를 포함하는 신택스 요소(예: MPT_split_type) 및 QT 구조의 리프 노드가 수직과 수평 중 어느 방향으로 분할되는지에 관한 정보를 포함하는 신택스 요소(예: MPT_split_mode)가 시그널링 됨으로써 분할 구조가 결정될 수 있다.Although the quadtree coding tree structure accompanying a multi-type tree has been described above, the structure in which the CU is divided is not limited thereto. For example, the BT structure and the TT structure may be interpreted as a concept included in the Multiple Partitioning Tree (MPT) structure, and the CU may be interpreted as being divided through the QT structure and the MPT structure. In an example in which a CU is divided through a QT structure and an MPT structure, a syntax element (eg, MPT_split_type) including information on how many blocks a leaf node of the QT structure is divided into, and a leaf node of the QT structure are vertical and horizontal. The split structure may be determined by signaling a syntax element (eg, MPT_split_mode) including information on which direction is split.
또 다른 예에서, CU는 QT 구조, BT 구조 또는 TT 구조와 다른 방법으로 분할될 수 있다. 즉, QT 구조에 따라 하위 뎁스의 CU가 상위 뎁스의 CU의 1/4 크기로 분할되거나, BT 구조에 따라 하위 뎁스의 CU가 상위 뎁스의 CU의 1/2 크기로 분할되거나, TT 구조에 따라 하위 뎁스의 CU가 상위 뎁스의 CU의 1/4 또는 1/2 크기로 분할되는 것과 달리, 하위 뎁스의 CU는 경우에 따라 상위 뎁스의 CU의 1/5, 1/3, 3/8, 3/5, 2/3 또는 5/8 크기로 분할될 수 있으며, CU가 분할되는 방법은 이에 한정되지 않는다.In another example, the CU may be divided in a different way from the QT structure, BT structure, or TT structure. That is, according to the QT structure, the CU of the lower depth is divided into 1/4 size of the CU of the upper depth, or the CU of the lower depth is divided into 1/2 of the CU of the upper depth according to the BT structure, or according to the TT structure. Unlike CUs of lower depth are divided into 1/4 or 1/2 of CUs of higher depth, CUs of lower depth are 1/5, 1/3, 3/8, 3 of CUs of higher depth depending on the case. It may be divided into /5, 2/3, or 5/8 size, and the method of dividing the CU is not limited thereto.
만약 트리 노드 블록의 부분(a portion)이 하단(bottom) 또는 오른쪽(right) 픽처 바운더리를 초과하는(exceeds) 경우, 해당 트리 노드 블록은 모든 코딩된 CU의 모든 샘플들이 픽처 바운더리들 내에 위치하도록 제한될 수 있다. 이 경우 예를 들어 다음과 같은 분할 규칙이 적용될 수 있다.If a portion of the tree node block exceeds the bottom or right picture boundary, the tree node block restricts all samples of all coded CUs to be located within the picture boundaries. Can be. In this case, for example, the following division rules may be applied.
- 만약 트리 노드 블록의 일부가 하측 및 우측 픽처 경계를 벗어난 경우, -If a part of the tree node block is outside the boundary of the lower and right pictures,
· 블록이 QT 노드이고 블록의 사이즈가 최소 QT 사이즈보다 크면, 블록은 QT 분할 모드로 강제로 분할된다. · If the block is a QT node and the size of the block is larger than the minimum QT size, the block is forcibly divided into the QT division mode.
· 그렇지 않으면, 블록은 SPLIT_BT_HOR 모드로 강제로 분할된다.Otherwise, the block is forcibly divided into SPLIT_BT_HOR mode.
- 그렇지 않으면, 만약 트리 노드 블록의 일부가 하측 픽처 경계를 벗어난 경우,-Otherwise, if part of the tree node block is outside the lower picture boundary,
· 블록이 QT 노드이고 블록의 사이즈가 최소 QT 사이즈보다 크고 블록의 사이즈가 최대 BT 사이즈보다 크면, 블록은 QT 분할 모드로 강제로 분할된다.· If the block is a QT node and the block size is larger than the minimum QT size and the block size is larger than the maximum BT size, the block is forcibly divided into the QT division mode.
· 블록이 QT 노드이고 블록의 사이즈가 최소 QT 사이즈보다 작거나 같으면, 블록은 QT 분할 모드 또는 SPLIT_BT_HOR 모드로 강제로 분할된다. · If the block is a QT node and the size of the block is less than or equal to the minimum QT size, the block is forcibly divided into the QT division mode or the SPLIT_BT_HOR mode.
· 그렇지 않으면 (블록이 BTT 노드이거나 블록의 사이즈가 최소 QT 사이즈보다 작거나 같으면), 블록은 SPLIT_BT_HOR 모드로 강제로 분할된다. Otherwise (if the block is a BTT node or the size of the block is less than or equal to the minimum QT size), the block is forcibly split into SPLIT_BT_HOR mode.
- 그렇지 않으면 트리 노드 블록의 일부가 우측 픽처 경계를 벗어나는 경우,-Otherwise, if a part of the tree node block is outside the right picture boundary,
· 블록이 QT 노드이고, 블록의 사이즈가 최소 QT 사이즈보다 크고, 블록의 사이즈가 최대 BT 사이즈보다 크면, 블록은 QT 분할 모드로 강제로 분할된다.· If the block is a QT node, the size of the block is larger than the minimum QT size, and the size of the block is larger than the maximum BT size, the block is forcibly divided into the QT division mode.
· 그렇지 않으면, 블록이 QT 노드이고, 블록의 사이즈가 최소 QT 사이즈보다 크고, 블록의 사이즈가 최대 BT 사이즈보다 작거나 같으면, 블록은 QT 분할 모드 또는 SPLIT_BT_VER 모드로 강제로 분할된다.Otherwise, if the block is a QT node, the size of the block is larger than the minimum QT size, and the size of the block is less than or equal to the maximum BT size, the block is forcibly divided into the QT division mode or SPLIT_BT_VER mode.
· 그렇지 않으면 (블록이 BTT 노드이거나 블록의 사이즈가 최소 QT 사이즈보다 작거나 같으면), 블록은 SPLIT_BT_VER 모드로 강제로 분할된다.Otherwise (if the block is a BTT node or the size of the block is less than or equal to the minimum QT size), the block is forcibly divided into SPLIT_BT_VER mode.
도 12는 본 명세서의 실시예에 따른 바이너리 트리 분할과 터너리 트리 분할이 중첩되는 경우의 예를 도시한다.12 illustrates an example in which binary tree division and ternary tree division overlap according to an embodiment of the present specification.
멀티타입 트리를 수반한 쿼드트리 코딩 블록 구조는 매우 유연한 블록 파티셔닝 구조를 제공할 수 있다. 멀티타입 트리에 지원되는 분할 타입들 때문에, 다른 분할 패턴들이 경우에 따라서 잠재적으로 동일한 코딩 블록 구조 결과를 가져올 수 잇다. 이러한 리던던트(redundant)한 분할 패턴들의 발생을 제한함으로써 파티셔닝 정보의 데이터 량을 줄일 수 있다.A quadtree coding block structure with a multitype tree can provide a very flexible block partitioning structure. Because of the partitioning types supported for the multitype tree, different partitioning patterns can potentially lead to the same coding block structure result in some cases. By limiting the occurrence of such redundant partition patterns, the amount of data of partitioning information can be reduced.
도 12에 도시된 바와 같이, 2 단계 레벨의 한 방향에 대한 연속적인 바이너리 분할(two levels of consecutive binary splits in one direction)은, 터너리 분할 이후 센터 파티션에 대한 바이너리 분할과 동일한 코딩 블록 구조를 갖는다. 이러한 경우, 터너리 트리 분할의 센터 파티션에 대한 바이너리 트리 분할 (in the given direction)은 금지된다. 이러한 금지는 모든 픽처들의 CU들에 대하여 적용될 수 있다. 이러한 특정 분할이 금지되는 경우, 대응하는 신택스 요소들의 시그널링은 이러한 금지되는 경우를 반영하여 수정될 수 있고, 이를 통하여 파티셔닝을 위하여 시그널링되는 비트 수를 줄일 수 있다. 예를 들어, 도 12에 도시된 예와 같이, CU의 센터 파티션에 대한 바이너리 트리 분할이 금지되는 경우, 분할이 바이너리 분할인지 터너리 분할인지 여부를 가리키는 mtt_split_cu_binary_flag 신택스 요소는 시그널링되지 않고, 그 값은 0으로 디코더에 의하여 추론될 수 있다.As shown in FIG. 12, two levels of consecutive binary splits in one direction have the same coding block structure as binary division for the center partition after ternary division. . In this case, the binary tree division (in the given direction) for the center partition of the ternary tree division is prohibited. This prohibition can be applied to CUs of all pictures. When such a specific division is prohibited, signaling of corresponding syntax elements may be modified to reflect such a prohibited case, and through this, the number of bits signaled for partitioning may be reduced. For example, as shown in FIG. 12, when binary tree division for the center partition of the CU is prohibited, the mtt_split_cu_binary_flag syntax element indicating whether the division is binary division or ternary division is not signaled, and its value is 0 can be inferred by the decoder.
또한, 픽처 내 파이프라인 처리를 위하여 VPDUs(virtual pipeline data units)가 정의될 수 있다. VPDUs는 하나의 픽처 내에서 비-중첩 유닛들(non-overlapping units)로 정의될 수 있다. 하드웨어 디코더에서, 다중 파이프라인 스테이지들에 의하여 연속적인(successive) VPDUs가 동시에 처리될 수 있다. VPDU 사이즈는 대부분의 파이프라인 스테이지들(most pipeline stages)에서 버퍼 사이즈에 대략적으로 비례한다(roughly proportional). 따라서, VDPU 사이즈를 작게 유지하는 것은 하드웨어 관점에서 버퍼 사이즈를 고려할 때 중요하다. 대부분의 하드웨어 디코더에서, VPDU 사이즈는 최대 TB 사이즈와 같도록 설정될 수 있다. 예를 들어, VPDU 사이즈는 64x64(64x64 휘도 샘플들) 사이즈일 수 있다. 다만 이는 예시이며 상술한 TT 및/또는 BT 파티션을 고려하여 VPDU 사이즈는 변경(증가 또는 감소)될 수 있다. 본 문서에서, MxN 블록은 M개의 열과 N개의 행으로 이루어진 샘플들을 포함하는 블록을 나타낼 수 있다.In addition, virtual pipeline data units (VPDUs) may be defined for intra-picture pipeline processing. VPDUs may be defined as non-overlapping units within one picture. In a hardware decoder, successive VPDUs can be processed simultaneously by multiple pipeline stages. The VPDU size is roughly proportional to the buffer size in most pipeline stages. Therefore, keeping the VDPU size small is important when considering the buffer size from a hardware perspective. In most hardware decoders, the VPDU size can be set equal to the maximum TB size. For example, the VPDU size may be 64x64 (64x64 luminance samples) size. However, this is an example, and the VPDU size may be changed (increased or decreased) in consideration of the TT and/or BT partition described above. In this document, an MxN block may represent a block including samples consisting of M columns and N rows.
도 13은 본 명세서의 실시예에 따른 터너리 트리 분할과 바이터리 트리 분할이 제한되는 경우의 예를 도시한다. VPDU 사이즈를 64x64 휘도 샘플들 사이즈로 유지하기 위하여, 도 13에 도시된 것과 같이 아래와 같은 제한들 중 적어도 하나가 적용될 수 있다.13 illustrates an example of a case in which the ternary tree division and the byte tree division are restricted according to an embodiment of the present specification. In order to maintain the VPDU size at 64x64 luminance samples size, at least one of the following restrictions may be applied as shown in FIG. 13.
- 너비(width) 또는 높이(height), 또는 너비와 높이 모두가 128인 CU에 대한 TT 분할은 허용되지 않는다(TT split is not allowed for a CU with either width or height, or both width and height equal to 128).-TT split is not allowed for a CU with either width or height, or both width and height equal to the width or height, or for a CU with both width and height equal to 128. 128).
- 128xN(N <= 64)(즉, 너비가 128이고 높이가 128보다 작은) CU에 대한 수평 BT는 허용되지 않는다(For a 128xN CU with N <= 64 (i.e. width equal to 128 and height smaller than 128), horizontal BT is not allowed).-For a 128xN CU with N <= 64 (ie width equal to 128 and height smaller than) 128xN (N <= 64) (i.e., width 128 and height less than 128) CU 128), horizontal BT is not allowed).
- Nx128(N <= 64)(즉, 높이가 128이고 너비가 128보다 작은) CU에 대한 수직 BT는 허용되지 않는다(For an Nx128 CU with N <= 64 (i.e. height equal to 128 and width smaller than 128), vertical BT is not allowed).-For an Nx128 CU with N <= 64 (ie height equal to 128 and width smaller than) Nx128 (N <= 64) (i.e., the height is 128 and the width is less than 128) 128), vertical BT is not allowed).
영상/비디오 코딩 절차Video/video coding procedure
영상/비디오 코딩에 있어서, 영상/비디오를 구성하는 픽처는 일련의 디코딩 순서(decoding order)에 따라 인코딩/디코딩될 수 있다. 디코딩된 픽처의 출력 순서(output order)에 해당하는 픽처 순서(picture order)는 디코딩 순서와 다르게 설정될 수 있으며, 이를 기반으로 인터 예측시 순방향 예측뿐만 아니라 역방향 예측 또한 수행될 수 있다.In video/video coding, pictures constituting the video/video may be encoded/decoded according to a series of decoding orders. A picture order corresponding to an output order of a decoded picture may be set differently from a decoding order, and based on this, not only forward prediction but also backward prediction may be performed during inter prediction.
도 14는 본 명세서의 실시예에 따른 비디오 신호를 구성하는 픽처의 인코딩을 위한 흐름도의 예이다. 도 14에서 S1410 단계는 도 2에서 설명된 인코딩 장치(100)의 예측부(180, 185)에 의해 수행될 수 있고, S1420 단계는 레지듀얼 처리부(115, 120, 130)에 의해 수행될 수 있고, S1430 단계는 엔트로피 인코딩부(190)에 의해 수행될 수 있다. S1410 단계는 본 문서에서 설명되는 인터/인트라 예측 절차를 포함할 수 있고, S1420 단계는 본 문서에서 설명되는 레지듀얼 처리 절차를 포함할 수 있고, S1430 단계는 본 문서에서 설명되는 정보 인코딩 절차를 포함할 수 있다.14 is an example of a flowchart for encoding a picture constituting a video signal according to an embodiment of the present specification. In FIG. 14, step S1410 may be performed by the prediction units 180 and 185 of the encoding apparatus 100 described in FIG. 2, and step S1420 may be performed by the residual processing units 115, 120, and 130. , S1430 may be performed by the entropy encoding unit 190. Step S1410 may include an inter/intra prediction procedure described in this document, step S1420 may include a residual processing procedure described in this document, and step S1430 includes an information encoding procedure described in this document. can do.
도 14를 참조하면, 픽처 인코딩 절차는 도 2에서 설명된 것과 같이 개략적으로 픽처 복원을 위한 정보(예: 예측 정보, 레지듀얼 정보, 파티셔닝 정보)를 인코딩함으로써 비트스트림 형태로 출력하는 절차뿐만 아니라, 현재 픽처에 대한 복원 픽처를 생성하는 절차 및 복원 픽처에 인루프 필터링을 적용하는 절차(optional)를 포함할 수 있다. 인코딩 장치(100)는 역양자화부(140) 및 역변환부(150)를 통해 양자화된 변환 계수로부터 (수정된) 레지듀얼 샘플들을 도출할 수 있으며, S1410 단계의 출력에 해당하는 예측 샘플들과 (수정된) 레지듀얼 샘플들에 기반하여 복원 픽처를 생성할 수 있다. 이렇게 생성된 복원 픽처는 상술한 디코딩 장치(200)에서 생성된 복원 픽처와 동일할 수 있다. 복원 픽처에 대한 인루프 필터링 절차를 통하여 수정된 복원 픽처가 생성될 수 있으며, 이는 메모리(170)(DPB(175))에 저장될 수 있으며, 디코딩 장치(200)에서의 경우와 마찬가지로, 이후 픽처의 인코딩시 인터 예측 절차에서 참조 픽처로 사용될 수 있다. 상술한 바와 같이 경우에 따라 인루프 필터링 절차의 일부 또는 전부는 생략될 수 있다. 인루프 필터링 절차가 수행되는 경우, (인루프) 필터링 관련 정보(파라미터)가 엔트로피 인코딩부(190)에서 인코딩되어 비트스트림 형태로 출력될 수 있고, 디코딩 장치(200)는 필터링 관련 정보를 기반으로 인코딩 장치(100)와 동일한 방법으로 인루프 필터링 절차를 수행할 수 있다.Referring to FIG. 14, the picture encoding procedure is not only a procedure for encoding information for picture restoration (eg, prediction information, residual information, and partitioning information) schematically as described in FIG. 2 to output in a bitstream format, A procedure for generating a reconstructed picture for the current picture and a procedure for applying in-loop filtering to the reconstructed picture (optional) may be included. The encoding apparatus 100 may derive (modified) residual samples from the quantized transform coefficients through the inverse quantization unit 140 and the inverse transform unit 150, and prediction samples corresponding to the output of step S1410 and ( A reconstructed picture may be generated based on the modified) residual samples. The reconstructed picture generated in this way may be the same as the reconstructed picture generated by the decoding apparatus 200 described above. A modified reconstructed picture can be generated through an in-loop filtering procedure for the reconstructed picture, which can be stored in the memory 170 (DPB 175), and, as in the case of the decoding device 200, a subsequent picture It can be used as a reference picture in an inter prediction procedure upon encoding of. As described above, in some cases, some or all of the in-loop filtering procedure may be omitted. When the in-loop filtering procedure is performed, (in-loop) filtering-related information (parameters) may be encoded by the entropy encoding unit 190 and output in the form of a bitstream, and the decoding apparatus 200 The in-loop filtering procedure may be performed in the same manner as the encoding apparatus 100.
이러한 인루프 필터링 절차를 통하여 블로킹 아티팩트(artifact) 및 링잉(ringing) 아티팩트와 같은 영상/동영상 코딩시 발생하는 노이즈가 감소될 수 있으며, 주관적/객관적 비주얼 퀄리티가 개선될 수 있다. 또한, 인코딩 장치(100)와 디코딩 장치(200)가 모두 인루프 필터링 절차를 수행함으로써, 인코딩 장치(100)와 디코딩 장치(200)는 동일한 예측 결과를 도출할 수 있으며, 그리하여 픽처 코딩의 신뢰성이 향상되고, 픽처 코딩을 위하여 전송되는 데이터 량이 감소될 수 있다.Through this in-loop filtering procedure, noise generated during image/video coding such as blocking artifacts and ringing artifacts may be reduced, and subjective/objective visual quality may be improved. In addition, since both the encoding device 100 and the decoding device 200 perform an in-loop filtering procedure, the encoding device 100 and the decoding device 200 can derive the same prediction result, so that the reliability of picture coding is This can be improved and the amount of data transmitted for picture coding can be reduced.
도 15는 본 명세서의 실시예에 따른 비디오 신호를 구성하는 픽처의 디코딩을 위한 흐름도의 예이다. S1510 단계는 도 3의 디코딩 장치(200)에서의 엔트로피 디코딩부(210)에 의해 수행될 수 있고, S1520 단계는 예측부(260, 265)에 의해 수행될 수 있고, S1530 단계는 레지듀얼 처리부(220, 230)에 의해 수행될 수 있고, S1540 단계는 가산부(235)에 의해 수행될 수 있고, S1350 단계는 필터링부(240)에 의해 수행될 수 있다. S1510 단계는 본 문서에서 설명된 정보 디코딩 절차를 포함할 수 있고, S1520 단계는 본 문서에서 설명된 인터/인트라 예측 절차를 포함할 수 있고, S1530 단계는 본 문서에서 설명된 레지듀얼 처리 절차를 포함할 수 있고, S1540 단계는 본 문서에서 설명된 블록/픽처 복원 절차를 포함할 수 있고, S1550 단계는 본 문서에서 설명된 인루프 필터링 절차를 포함할 수 있다.15 is an example of a flowchart for decoding a picture constituting a video signal according to an embodiment of the present specification. Step S1510 may be performed by the entropy decoding unit 210 in the decoding apparatus 200 of FIG. 3, step S1520 may be performed by the prediction units 260 and 265, and step S1530 may be performed by the residual processing unit ( 220, 230), step S1540 may be performed by the addition unit 235, step S1350 may be performed by the filtering unit 240. Step S1510 may include the information decoding procedure described in this document, step S1520 may include the inter/intra prediction procedure described in this document, and step S1530 includes the residual processing procedure described in this document. In addition, step S1540 may include the block/picture restoration procedure described in this document, and step S1550 may include the in-loop filtering procedure described in this document.
도 15를 참조하면, 픽처 디코딩 절차는 도 2에서 설명된 것과 같이 개략적으로 비트스트림으로부터 (디코딩을 통한) 영상/비디오 정보 획득 절차(S1510), 픽처 복원 절차(S1520 내지 S1540), 및 복원된 픽처에 대한 인루프 필터링 절차(S1550)를 포함할 수 있다. 픽처 복원 절차는 본 문서에서 설명된 인터/인트라 예측(S1520) 및 레지듀얼 처리(S1530, 양자화된 변호나 계수에 대한 역양자화, 역변환) 과정을 거쳐서 획득된 예측 샘플들 및 레지듀얼 샘플들을 기반으로 수행될 수 있다. 픽처 복원 절차를 통하여 생성된 복원 픽처에 대한 인루프 필터링 절차를 통하여 수정된(modified) 복원 픽처가 생성될 수 있으며, 수정된 복원 픽처가 디코딩된 픽처로서 출력될 수 있고, 또한 디코딩 장치(200)의 DPB(255)에 저장되어 이후 픽처의 디코딩시 인터 예측 철차에서 참조 픽처로 사용될 수 있다. 경우에 따라서 인루프 필터링 절차는 생략될 수 있으며, 이 경우 복원 픽처가 디코딩된 픽처로서 출력될 수 있고, 디코딩 장치(200)의 DPB(255)에 저장되어 이후 픽처의 디코딩시 인터 예측 철차에서 참조 픽처로 사용될 수 있다. 인루프 필터링 절차(S1550)는 상술한 바와 같이 디블로킹 필터링 절차, SAO(sample adaptive offset) 절차, ALF(adaptive loop filter) 절차, 및/또는 바이래터럴 필터(bi-lateral filter) 절차를 포함할 수 있고, 그 일부 또는 전부가 생략될 수 있다. 또한, 디블로킹 필터링 절차, SAO 절차, ALF 절차, 및 바이래터럴 필터 절차들 중 하나 또는 일부가 순차적으로 적용될 수 있고, 또는 모두가 순차적으로 적용될 수 있다. 예를 들어, 복원 픽처에 대하여 디블로킹 필터링 절차가 적용된 후 SAO 절차가 수행될 수 있다. 또한, 예를 들어, 복원 픽처에 대하여 디블로킹 필터링 절차가 적용된 후 ALF 절차가 수행될 수 있다. 이는 인코딩 장치(100)에서도 마찬가지로 수행될 수 있다.Referring to FIG. 15, the picture decoding procedure is a procedure for obtaining image/video information (through decoding) from a bitstream (S1510), a picture restoration procedure (S1520 to S1540), and a reconstructed picture, as described in FIG. It may include an in-loop filtering procedure (S1550) for. The picture restoration procedure is based on prediction samples and residual samples obtained through the process of inter/intra prediction (S1520) and residual processing (S1530, inverse quantization and inverse transformation of a quantized code or coefficient) described in this document. Can be done. A modified reconstructed picture may be generated through an in-loop filtering procedure for a reconstructed picture generated through a picture restoration procedure, and the modified reconstructed picture may be output as a decoded picture, and the decoding apparatus 200 It is stored in the DPB 255 of and can be used as a reference picture in inter prediction train when decoding a picture later. In some cases, the in-loop filtering procedure may be omitted, and in this case, the reconstructed picture may be output as a decoded picture, stored in the DPB 255 of the decoding device 200, and referenced in the inter prediction train when decoding a subsequent picture. Can be used as a picture. The in-loop filtering procedure S1550 may include a deblocking filtering procedure, a sample adaptive offset (SAO) procedure, an adaptive loop filter (ALF) procedure, and/or a bi-lateral filter procedure as described above. And some or all of them may be omitted. In addition, one or some of the deblocking filtering procedure, the SAO procedure, the ALF procedure, and the bilateral filter procedure may be sequentially applied, or all may be sequentially applied. For example, after the deblocking filtering procedure is applied to the reconstructed picture, the SAO procedure may be performed. Also, for example, after the deblocking filtering procedure is applied to the reconstructed picture, the ALF procedure may be performed. This may be similarly performed in the encoding device 100.
상술한 바와 같이 디코딩 장치(200)뿐만 아니라 인코딩 장치(100)에서도 픽처 복원 절차가 수행될 수 있다. 각 블록 단위로 인트라 예측/인터 예측에 기반하여 복원 블록이 생성될 수 있으며, 복원 블록들을 포함하는 복원 픽처가 생성될 수 있다. 현재 픽처/슬라이스/타일 그룹이 I 픽처/슬라이스/타일 그룹인 경우 현재 픽처/슬라이스/타일 그룹에 포함되는 블록들은 인트라 예측만을 기반으로 복원될 수 있다. 이 경우 현재 픽처/슬라이스/타일 그룹 내 일부 블록들에 대하여 인터 예측이 적용되고, 나머지 일부 블록들에 대하여 인트라 예측이 적용될 수 있다. 픽처의 컬러 성분은 휘도 성분 및 색차 성분을 포함할 수 있으며, 본 문서에서 명시적으로 제한하지 않으면 본 문서에서 제안되는 방법들 및 실시예들은 휘도 성분 및 색차 성분에 적용될 수 있다.As described above, not only the decoding device 200 but also the encoding device 100 may perform a picture restoration procedure. A reconstructed block may be generated based on intra prediction/inter prediction for each block, and a reconstructed picture including the reconstructed blocks may be generated. When the current picture/slice/tile group is an I picture/slice/tile group, blocks included in the current picture/slice/tile group may be reconstructed based only on intra prediction. In this case, inter prediction may be applied to some blocks in the current picture/slice/tile group, and intra prediction may be applied to the remaining some blocks. The color component of a picture may include a luminance component and a chrominance component, and the methods and embodiments proposed in this document may be applied to the luminance component and the chrominance component unless explicitly limited in this document.
도 16는 본 명세서의 실시예에 따른 코딩된 영상에 대한 계층 구조의 예를 도시한다.16 illustrates an example of a hierarchical structure for a coded image according to an embodiment of the present specification.
코딩된 영상은 영상의 디코딩 처리 및 그 자체를 다루는 VCL(video coding layer), 부호화된 정보를 전송하고 저장하는 하위 시스템, 그리고 VCL과 하위 시스템 사이에 존재하며 네트워크 적응 기능을 담당하는 NAL(network abstraction layer)로 구분될 수 있다. The coded image is a video coding layer (VCL) that deals with the decoding process of the image and itself, a subsystem that transmits and stores encoded information, and a network abstraction (NAL) that exists between the VCL and the subsystem and is responsible for network adaptation. layer).
VCL에서 압축된 영상 데이터(타일 그룹 데이터)를 포함하는 VCL 데이터가 생성되거나, 또는 PPS(picture parameter set), SPS(sequence parameter set), VPS(video parameter set)과 같은 정보를 포함하는 파라미터 세트 또는 영상의 디코딩 과정에서 부가적으로 필요한 SEI(supplemental enhancement information) 메시지가 생성될 수 있다.VCL data including video data (tile group data) compressed in the VCL is generated, or a parameter set including information such as PPS (picture parameter set), SPS (sequence parameter set), VPS (video parameter set), or An additionally required SEI (supplemental enhancement information) message may be generated in the process of decoding an image.
NAL에서 VCL에서 생성된 RBSP(raw byte sequence payload)에 헤더 정보(NAL 유닛 데이터)가 부가되어 NAL 유닛이 생성될 수 있다. 이때, RBSP는 VCL에서 생성된 타일 그룹 데이터, 파라미터 세트, SEI 메시지를 지칭할 수 있다. NAL 유닛 헤더에서 해당 NAL 유닛에 포함되는 RBSP 데이터에 따라 특정되는 NAL 유닛 타입 정보를 포함할 수 있다.In NAL, header information (NAL unit data) may be added to a raw byte sequence payload (RBSP) generated in VCL to generate a NAL unit. In this case, the RBSP may refer to tile group data, parameter set, and SEI message generated in the VCL. In the NAL unit header, NAL unit type information specified according to RBSP data included in the corresponding NAL unit may be included.
도 16에서 도시된 것과 같이, NAL 유닛은 VCL에서 생성된 RBSP에 따라 VCL NAL 유닛과 Non-VCL NAL 유닛으로 구분될 수 있다. VCL NAL 유닛은 영상에 대한 정보(타일 그룹 데이터)를 포함하고 있는 NAL 유닛을 의미할 수 있고, Non-VCL NAL 유닛은 영상을 디코딩하기 위하여 필요한 정보(파라미터 세트 또는 SEI 메시지)를 포함하고 있는 NAL 유닛을 의미할 수 있다. As shown in FIG. 16, the NAL unit may be divided into a VCL NAL unit and a Non-VCL NAL unit according to an RBSP generated from VCL. The VCL NAL unit may mean a NAL unit that includes information about an image (tile group data), and the Non-VCL NAL unit is an NAL that includes information (parameter set or SEI message) necessary for decoding an image. It can mean a unit.
상술한 VCL NAL 유닛, Non-VCL NAL 유닛은 하위 시스템의 데이터 규격에 따라 헤더 정보가 부가된 상태로 네트워크를 통해 전송될 수 있다. 예를 들어, NAL 유닛은 H.266/VVC 파일 포맷, RTP(real-time transport protocol), TS(transport stream)과 같은 소정 규격의 데이터 형태로 변환된 이후 다양한 네트워크를 통해 전송될 수 있다.The above-described VCL NAL unit and Non-VCL NAL unit may be transmitted through a network with header information added according to the data standard of the sub-system. For example, the NAL unit may be converted into a data format of a predetermined standard such as an H.266/VVC file format, a real-time transport protocol (RTP), and a transport stream (TS) and then transmitted through various networks.
상술한 바와 같이, NAL 유닛은 해당 NAL 유닛에 포함되는 RBSP 데이터 구조에 따라 NAL 유닛 타입이 특정될 수 있으며, 이러한 NAL 유닛 타입에 대한 정보는 NAL 유닛 헤더에 저장되어 시그널링될 수 있다.As described above, the NAL unit type may be specified according to the RBSP data structure included in the corresponding NAL unit, and information on the NAL unit type may be stored in the NAL unit header and signaled.
예를 들어, NAL 유닛은 영상에 대한 정보(타일 그룹 데이터)를 포함하는지 여부에 따라 크게 VCL NAL 유닛 타입과 Non-VCL NAL 유닛 타입으로 분류될 수 있다. VCL NAL 유닛 타입은 VCL NAL 유닛이 포함하는 픽처의 성질 및 종류에 따라 분류될 수 있으며, Non-VCL NAL 유닛 타입은 파라미터 세트의 종류에 따라 분류될 수 있다.For example, the NAL unit may be largely classified into a VCL NAL unit type and a Non-VCL NAL unit type according to whether or not information on an image (tile group data) is included. The VCL NAL unit type may be classified according to the nature and type of a picture included in the VCL NAL unit, and the non-VCL NAL unit type may be classified according to the type of the parameter set.
아래는 Non-VCL NAL 유닛 타입이 포함하는 파라미터 세트의 종류에 따라 특정된 NAL 유닛 타입의 일 예이다.The following is an example of a NAL unit type specified according to the type of a parameter set included in the Non-VCL NAL unit type.
- APS(Adaptation Parameter Set) NAL unit: APS를 포함하는 NAL 유닛에 대한 타입-APS (Adaptation Parameter Set) NAL unit: A type for a NAL unit including APS
- VPS(Video Parameter Set) NAL unit: VPS를 포함하는 NAL 유닛에 대한 타입-Video Parameter Set (VPS) NAL unit: A type for a NAL unit including a VPS
- SPS(Sequence Parameter Set) NAL unit: SPS를 포함하는 NAL 유닛에 대한 타입-SPS (Sequence Parameter Set) NAL unit: a type for a NAL unit including SPS
- PPS(Picture Parameter Set) NAL unit: PPS를 포함하는 NAL 유닛에 대한 타입-PPS (Picture Parameter Set) NAL unit: A type for a NAL unit including PPS
상술한 NAL 유닛 타입들은 NAL 유닛 타입을 위한 신택스 정보를 가지며, 신택스 정보는 NAL 유닛 헤더에 저장되어 시그널링될 수 있다. 예를 들어, 신택스 정보는 nal_unit_type일 수 있으며, NAL 유닛 타입들은 nal_unit_type 값에 의해 특정될 수 있다.The above-described NAL unit types have syntax information for the NAL unit type, and the syntax information may be stored in the NAL unit header and signaled. For example, syntax information may be nal_unit_type, and NAL unit types may be specified by nal_unit_type values.
타일 그룹 헤더(타일 그룹 헤더 신택스)는 타일 그룹에 공통적으로 적용될 수 있는 정보/파라미터를 포함할 수 있다. APS(APS 신택스) 또는 PPS(PPS 신택스)는 하나 이상의 픽처에 공통적으로 적용될 수 있는 정보/파라미터를 포함할 수 있다. SPS(SPS 신택스)는 하나 이상의 시퀀스에 공통적으로 적용될 수 있는 정보/파라미터를 포함할 수 있다. VPS(VPS 신택스)는 비디오 전반에 공통적으로 적용될 수 있는 정보/파라미터를 포함할 수 있다. 본 명세서에서 상위 레벨 신택스라 함은 APS 신택스, PPS 신택스, SPS 신택스, VPS 신택스 중 적어도 하나를 포함할 수 있다. The tile group header (tile group header syntax) may include information/parameters commonly applicable to the tile group. APS (APS syntax) or PPS (PPS syntax) may include information/parameters that can be commonly applied to one or more pictures. SPS (SPS syntax) may include information/parameters that can be commonly applied to one or more sequences. VPS (VPS syntax) may include information/parameters that can be commonly applied to the entire video. In this specification, the higher-level syntax may include at least one of APS syntax, PPS syntax, SPS syntax, and VPS syntax.
본 명세서에서 인코딩 장치(100)에서 디코딩 장치(200)로 인코딩되어 비트스트림 형태로 시그널링되는 영상/비디오 정보는 픽처 내 파티셔닝 관련 정보, 인트라/인터 예측 정보, 레지듀얼 정보, 인루프 필터링 정보를 포함할 뿐만 아니라, APS에 포함된 정보, PPS에 포함된 정보, SPS에 포함된 정보, 및/또는 VPS에 포함된 정보를 포함할 수 있다.In this specification, the image/video information encoded by the encoding device 100 by the decoding device 200 and signaled in the form of a bitstream includes intra-picture partitioning-related information, intra/inter prediction information, residual information, and in-loop filtering information. In addition, information included in the APS, information included in the PPS, information included in the SPS, and/or the information included in the VPS may be included.
변환 (Transform)Transform
본 문서에서 MTS(Multiple Transform Selection, 이하 'MTS'라 함)라 함은 적어도 2개 이상의 변환 타입을 이용하여 변환을 수행하는 방법을 의미할 수 있다. 이는 AMT(Adaptive Mutliple Transform) 또는 EMT(Explicit Multiple Transform)로도 표현될 수 있으며, 마찬가지로, mts_idx 도 AMT_idx, EMT_idx, AMT_TU_idx EMT_TU_idx, 변환 인덱스 또는 변환 조합 인덱스 등과 같이 표현될 수 있으며, 본 명세서의 실시예는 이러한 표현에 한정되지 않는다.In this document, MTS (Multiple Transform Selection, hereinafter referred to as'MTS') may mean a method of performing transformation using at least two or more transformation types. This may also be expressed as AMT (Adaptive Mutliple Transform) or EMT (Explicit Multiple Transform), and likewise, mts_idx may also be expressed as AMT_idx, EMT_idx, AMT_TU_idx EMT_TU_idx, transformation index or transformation combination index, and the like, and embodiments of the present specification are It is not limited to these expressions.
도 17은 본 명세서의 실시예에 따른 인코딩 장치 내의 변환 및 양자화부, 역양자화 및 역변환부의 개략적인 블록도이고, 도 18은 디코딩 장치 내의 역양자화 및 역변환부의 개략적인 블록도이다.17 is a schematic block diagram of a transform and quantization unit, an inverse quantization and inverse transform unit in an encoding apparatus according to an embodiment of the present specification, and FIG. 18 is a schematic block diagram of an inverse quantization and inverse transform unit in a decoding apparatus.
도 17을 살펴보면, 변환 및 양자화부(120/130)는 1차 변환부(primary transform unit)(121), 2차 변환부(secondary transform unit)(122) 및 양자화부(130)를 포함할 수 있다. 역양자화 및 역변환부 (140/150)는 역양자화부(140), 역 2차 변환부(inverse secondary transform unit)(151) 및 역 1차 변환부(inverse primary transform unit)(152)를 포함할 수 있다.Referring to FIG. 17, the transform and quantization unit 120/130 may include a primary transform unit 121, a secondary transform unit 122, and a quantization unit 130. have. The inverse quantization and inverse transform unit 140/150 may include an inverse quantization unit 140, an inverse secondary transform unit 151, and an inverse primary transform unit 152. I can.
도 18을 살펴보면, 역양자화 및 역변환부 (220/230)는 역양자화부(220), 역 2차 변환부(inverse secondary transform unit)(231) 및 역 1차 변환부(inverse primary transform unit)(232)를 포함할 수 있다.Referring to FIG. 18, the inverse quantization and inverse transform unit 220/230 includes an inverse quantization unit 220, an inverse secondary transform unit 231, and an inverse primary transform unit ( 232) may be included.
본 발명에서, 변환을 수행할 때 복수의 단계를 통해 변환을 수행할 수 있다. 예를 들어, 도 17에서와 같이 1차 변환(primary transform), 2차 변환(secondary transform)의 2단계를 적용할 수 있고, 또는 알고리즘에 따라 그 이상의 변환 단계가 이용될 수도 있다. 여기서, 1차 변환은 코어 변환(core transform)으로 지칭될 수 있다.In the present invention, when performing the transformation, the transformation may be performed through a plurality of steps. For example, as shown in FIG. 17, two steps of a primary transform and a secondary transform may be applied, or a higher transform step may be used depending on an algorithm. Here, the first-order transform may be referred to as a core transform.
1차 변환부(121)는 레지듀얼 신호에 대해 1차 변환을 적용할 수 있으며, 여기서 1차 변환은 인코더 및/또는 디코더에서 테이블로 기정의될 수 있다.The first-order transform unit 121 may apply a first-order transform to the residual signal, where the first-order transform may be predefined as a table in the encoder and/or decoder.
2차 변환부(122)는 1차 변환된 신호에 대해 2차 변환을 적용할 수 있으며, 여기서 2차 변환은 인코더 및/또는 디코더에서 테이블로 기정의될 수 있다.The second-order transform unit 122 may apply a second-order transform to the first-order transformed signal, where the second-order transform may be predefined as a table in the encoder and/or decoder.
일 실시예에서, 2차 변환으로서 비분리 2차 변환(non-separable secondary trans-form)(NSST)이 조건적으로 적용될 수 있다. 예를 들어, NSST는 화면내 예측 블록일 경우에만 적용되며, 예측 모드 그룹마다 적용 가능한 변환 셋을 가질 수 있다. In one embodiment, a non-separable secondary trans-form (NSST) may be conditionally applied as a secondary transform. For example, NSST is applied only to an intra prediction block, and may have a transform set applicable to each prediction mode group.
여기서, 예측 모드 그룹은 예측 방향에 대한 대칭성에 기초하여 설정될 수 있다. 예를 들어, 예측 모드 52와 예측 모드 16은 예측 모드 34 (대각 방향)를 기준으로 대칭이므로, 하나의 그룹을 형성하여 동일한 변환 셋(transform set)이 적용될 수 있다. 이때, 예측 모드 52에 대한 변환을 적용할 때 입력 데이터를 전치(transpose)한 후 적용하며, 이는 예측 모드 16과 변환 셋이 동일하기 때문이다.Here, the prediction mode group may be set based on symmetry with respect to the prediction direction. For example, since prediction mode 52 and prediction mode 16 are symmetric with respect to prediction mode 34 (diagonal direction), one group may be formed and the same transform set may be applied. In this case, when applying the transform for the prediction mode 52, the input data is transposed and then applied, because the prediction mode 16 and the transform set are the same.
한편, 플래너 모드(Planar mode)와 DC 모드(DC mode)의 경우 방향에 대한 대칭성이 존재하지 않으므로 각자의 변환 셋을 가지며, 해당 변환 셋은 2개의 변환들로 구성될 수 있다. 나머지 방향성 모드에 대해서는 변환 셋마다 3개의 변환들로 구성될 수 있다.Meanwhile, in the case of the planar mode and the DC mode, since there is no symmetry with respect to a direction, each transform set may be formed, and the corresponding transform set may be composed of two transforms. For the remaining directional modes, three transforms may be configured for each transform set.
양자화부(130)는 2차 변환된 신호에 대해 양자화를 수행할 수 있다.The quantization unit 130 may perform quantization on the second-order transformed signal.
역양자화 및 역변환부 (140/150)는 앞서 설명된 과정을 역으로 수행하며, 중복되는 설명은 생략하도록 한다.The inverse quantization and inverse transform unit 140/150 performs the above-described process in reverse, and redundant descriptions will be omitted.
도 19는 본 명세서의 실시예에 따른 다중 변환 선택(multiple transform selection)이 적용된 변환 절차의 예를 도시한다.19 illustrates an example of a transformation procedure to which multiple transform selection is applied according to an embodiment of the present specification.
본 명세서에서, 수평 방향과 수직 방향에 대해 분리하여 변환이 적용되는 분리가능한 변환(separable transform)에 대한 실시예가 기본적으로 설명되나, 변환 조합은 비분리 변환(non-separable transform)들로도 구성될 수 있다.In this specification, an embodiment of a separable transform in which a transform is applied by separating a horizontal direction and a vertical direction is basically described, but the transform combination may also be composed of non-separable transforms. .
또는, 분리가능한 변환들과 비분리 변환들의 혼합으로도 변환 조합이 구성될 수 있다. 이 경우, 비분리 변환이 이용되면 행/열 별 변환 선택이나 수평/수직 방향 별 선택은 불필요해지며, 분리가능한 변환이 선택되는 경우에만 변환 조합들이 이용될 수 있다.Alternatively, a transform combination may be configured by mixing separable transforms and non-separable transforms. In this case, when non-separated transformation is used, selection of transformation for each row/column or selection for each horizontal/vertical direction becomes unnecessary, and transformation combinations can be used only when a separable transformation is selected.
또한, 본 명세서에서 제안되는 방식들은 1차 변환이나 2차 변환에 관계없이 적용될 수 있다. 즉, 둘 중 어느 한쪽에만 적용되어야 한다는 제약이 없으며, 둘 다 적용될 수 있다. 여기서, 1차 변환은 레지듀얼 블록을 맨 처음에 변환하기 위한 변환을 의미할 수 있고, 2차 변환은 1차 변환의 결과로 생성된 블록에 대해 변환을 적용하기 위한 변환을 의미할 수 있다.In addition, the schemes proposed in the present specification can be applied regardless of the first-order transformation or the second-order transformation. That is, there is no restriction that it should be applied to either of the two, and both can be applied. Here, the first-order transform may mean a transform for firstly transforming the residual block, and the second-order transform may mean a transform for applying a transform to a block generated as a result of the first-order transform.
먼저 인코딩 장치(100)는 현재 블록에 대응되는 변환 그룹을 결정할 수 있다(S1910). 여기서, 변환 그룹은 이후 표 2의 변환 그룹을 의미할 수 있으나, 본 발명은 이에 한정되지 않으며 다른 변환 조합들로 구성될 수 있다.First, the encoding apparatus 100 may determine a transform group corresponding to the current block (S1910). Here, the transform group may refer to the transform group shown in Table 2 below, but the present invention is not limited thereto and may be composed of other transform combinations.
인코딩 장치(100)는 변환 그룹 내 이용가능한 후보 변환 조합들에 대해 변환을 수행할 수 있다(S1920). 변환 수행 결과, 인코딩 장치(100)는 RD(rate distortion) 비용이 가장 작은 변환 조합을 결정 또는 선택할 수 있다(S1930). 인코딩 장치(100)는 선택된 변환 조합에 대응되는 변환 조합 인덱스를 인코딩할 수 있다(S1940).The encoding apparatus 100 may perform transformation on candidate transformation combinations available in the transformation group (S1920). As a result of performing the conversion, the encoding apparatus 100 may determine or select a conversion combination having the lowest RD (rate distortion) cost (S1930). The encoding apparatus 100 may encode a transformation combination index corresponding to the selected transformation combination (S1940).
도 20은 본 명세서의 실시예에 따른 다중 변환 선택이 적용된 역변환 절차의 예를 도시한다.20 illustrates an example of an inverse transform procedure to which multiple transform selection is applied according to an embodiment of the present specification.
먼저, 디코딩 장치(200)는 현재 블록을 위한 변환 그룹을 결정할 수 있다(S2010). 디코딩 장치(200)는 변환 조합 인덱스를 파싱할 수 있으며, 여기서 변환 조합 인덱스는 변환 그룹 내 복수개의 변환 조합들 중 어느 하나에 대응될 수 있다(S2020). 디코딩 장치(200)는 변환 조합 인덱스에 대응하는 변환 조합을 유도할 수 있다(S2030). 디코딩 장치(200)는 변환 조합에 기초하여 현재 블록에 대해 역변환을 수행할 수 있다(S2040). 변환 조합이 행 변환과 열 변환으로 구성되는 경우, 행 변환을 먼저 적용한 후 열 변환을 적용할 수 있다. 다만, 본 발명은 이에 한정되지 않으며, 반대로 적용되거나, 또는 비분리 변환들로 구성된 경우에는 바로 비분리 변환이 적용될 수 있다.First, the decoding apparatus 200 may determine a transform group for the current block (S2010). The decoding apparatus 200 may parse the transform combination index, where the transform combination index may correspond to any one of a plurality of transform combinations in the transform group (S2020). The decoding apparatus 200 may induce a transform combination corresponding to the transform combination index (S2030). The decoding apparatus 200 may perform an inverse transform on the current block based on the transform combination (S2040). When the transformation combination is composed of row transformation and column transformation, the row transformation may be applied first and then the column transformation may be applied. However, the present invention is not limited thereto, and the opposite is applied, or when non-separated transforms are configured, the non-separated transform may be directly applied.
도 21은 본 명세서의 실시예에 따른 다중 변환 선택과 관련된 정보를 이용한 역변환 절차의 예를 도시한다.21 illustrates an example of an inverse transform procedure using information related to multiple transform selection according to an embodiment of the present specification.
본 발명이 적용되는 디코딩 장치(200)는, sps_mts_intra_enabled_flag 또는 sps_mts_inter_enabled_flag를 획득할 수 있다(S2110). 여기서, sps_mts_intra_enabled_flag는 cu_mts_flag가 인트라 코딩 유닛의 레지듀얼 코딩 신택스에 존재하는지 여부를 나타낸다. 예를 들어, sps_mts_intra_enabled_flag = 0 이면, cu_mts_flag가 인트라 코딩 유닛의 레지듀얼 코딩 신택스에 존재하지 않고, sps_mts_intra_enabled_flag = 1 이면, cu_mts_flag가 인트라 코딩 유닛의 레지듀얼 코딩 신택스에 존재한다. 그리고, sps_mts_inter_enabled_flag는 cu_mts_flag가 인터 코딩 유닛의 레지듀얼 코딩 신택스에 존재하는지 여부를 나타낸다. 예를 들어, sps_mts_inter_enabled_flag = 0 이면, cu_mts_flag 가 인터 코딩 유닛의 레지듀얼 코딩 신택스에 존재하지 않고, sps_mts_inter_enabled_flag = 1 이면, cu_mts_flag가 인터 코딩 유닛의 레지듀얼 코딩 신택스에 존재한다.The decoding apparatus 200 to which the present invention is applied may acquire sps_mts_intra_enabled_flag or sps_mts_inter_enabled_flag (S2110). Here, sps_mts_intra_enabled_flag indicates whether cu_mts_flag is present in the residual coding syntax of the intra coding unit. For example, if sps_mts_intra_enabled_flag = 0, cu_mts_flag does not exist in the residual coding syntax of the intra coding unit, and if sps_mts_intra_enabled_flag = 1, cu_mts_flag is present in the residual coding syntax of the intra coding unit. In addition, sps_mts_inter_enabled_flag indicates whether cu_mts_flag is present in the residual coding syntax of the inter coding unit. For example, if sps_mts_inter_enabled_flag = 0, cu_mts_flag does not exist in the residual coding syntax of the inter coding unit, and if sps_mts_inter_enabled_flag = 1, cu_mts_flag is present in the residual coding syntax of the inter coding unit.
디코딩 장치(200)는 sps_mts_intra_enabled_flag 또는 sps_mts_inter_enabled_flag에 기초하여 cu_mts_flag를 획득할 수 있다(S2120). 예를 들어, sps_mts_intra_enabled_flag = 1 또는 sps_mts_inter_enabled_flag = 1 일 때, 디코딩 장치(200)는 cu_mts_flag를 획득할 수 있다. 여기서, cu_mts_flag는 MTS가 휘도 변환 블록의 레지듀얼 샘플에 적용되는지 여부를 나타낸다. 예를 들어, cu_mts_flag = 0 이면 MTS가 휘도 변환 블록의 레지듀얼 샘플에 적용되지 않고, cu_mts_flag = 1 이면 MTS가 휘도 변환 블록의 레지듀얼 샘플에 적용된다.The decoding apparatus 200 may acquire cu_mts_flag based on sps_mts_intra_enabled_flag or sps_mts_inter_enabled_flag (S2120). For example, when sps_mts_intra_enabled_flag = 1 or sps_mts_inter_enabled_flag = 1, the decoding device 200 may acquire cu_mts_flag. Here, cu_mts_flag indicates whether MTS is applied to the residual samples of the luminance conversion block. For example, if cu_mts_flag = 0, the MTS is not applied to the residual samples of the luminance transform block, and if cu_mts_flag = 1, the MTS is applied to the residual samples of the luminance transform block.
디코딩 장치(200)는 cu_mts_flag에 기초하여 mts_idx를 획득할 수 있다(S2030). 예를 들어, cu_mts_flag = 1 일 때, 디코딩 장치(200)는 mts_idx를 획득할 수 있다. 여기서, mts_idx는 어떤 변환 커널이 현재 변환 블록의 수평 및/또는 수직 방향에 따른 휘도 레지듀얼 샘플들에 적용되는지를 나타낸다.The decoding apparatus 200 may acquire mts_idx based on cu_mts_flag (S2030). For example, when cu_mts_flag = 1, the decoding apparatus 200 may acquire mts_idx. Here, mts_idx indicates which transform kernel is applied to the luminance residual samples along the horizontal and/or vertical directions of the current transform block.
예를 들어, mts_idx에 대해, 본 명세서에서 설명되는 실시예들 중 적어도 하나가 적용될 수 있다.For example, for mts_idx, at least one of the embodiments described herein may be applied.
디코딩 장치(200)는 mts_idx에 대응되는 변환 커널을 유도할 수 있다(S2040). 예를 들어, mts_idx에 대응되는 변환 커널은 수평 변환 및 수직 변환으로 구분되어 정의될 수 있다. The decoding apparatus 200 may derive a transform kernel corresponding to mts_idx (S2040). For example, a transformation kernel corresponding to mts_idx may be divided into horizontal transformation and vertical transformation and defined.
일 예로, 현재 블록에 MTS가 적용되는 경우(즉, cu_mts_flag = 1), 디코딩 장치(200)는 현재 블록의 인트라 예측 모드에 기초하여 MTS 후보를 구성할 수 있다. 이 경우, 도 21의 디코딩 흐름도에 MTS 후보를 구성하는 단계가 더 포함될 수 있다. 그리고, 디코딩 장치(200)는 구성된 MTS 후보 중에서 mts_idx를 이용하여 현재 블록에 적용되는 MTS 후보를 결정할 수 있다. For example, when MTS is applied to the current block (ie, cu_mts_flag = 1), the decoding apparatus 200 may configure an MTS candidate based on the intra prediction mode of the current block. In this case, the step of configuring an MTS candidate may be further included in the decoding flowchart of FIG. 21. In addition, the decoding apparatus 200 may determine an MTS candidate applied to the current block using mts_idx from among the configured MTS candidates.
다른 일 예로, 수평 변환 및 수직 변환은 서로 다른 변환 커널이 적용될 수 있다. 다만, 본 발명은 이에 한정되지 않으며, 상기 수평 변환 및 수직 변환은 동일한 변환 커널이 적용될 수도 있다.As another example, different transformation kernels may be applied for horizontal transformation and vertical transformation. However, the present invention is not limited thereto, and the same transformation kernel may be applied to the horizontal transformation and the vertical transformation.
일 실시예로서, mts_idx에 따른 수평 변환 커널 및 수직 변환 커널은 아래의 표 2와 같이 정의될 수 있다.As an embodiment, a horizontal transform kernel and a vertical transform kernel according to mts_idx may be defined as shown in Table 2 below.
Figure PCTKR2020003187-appb-T000002
Figure PCTKR2020003187-appb-T000002
표 2에서, trTypeHor, trTypeVer는 수평 변환 커널의 타입, 수직 변환 커널의 타입을 나타낸다. trTypeHor, trTypeVer가 0이면 DCT2가 적용되고, trTypeHor, trTypeVer가 1이면 DST7이 적용되고, trTypeHor, trTypeVer가 2이면 DCT8이 적용될 수 있다.In Table 2, trTypeHor and trTypeVer represent the type of the horizontal conversion kernel and the type of the vertical conversion kernel. If trTypeHor and trTypeVer are 0, DCT2 is applied, if trTypeHor and trTypeVer are 1, DST7 is applied, and if trTypeHor and trTypeVer are 2, DCT8 can be applied.
그리고, 디코딩 장치(200)는 변환 커널에 기초하여 역변환을 수행할 수 있다(S2050).Further, the decoding apparatus 200 may perform inverse transformation based on the transformation kernel (S2050).
통일된 변환 타입 시그널링 (Unified transform type signaling)Unified transform type signaling
아래의 표 3은 신택스 요소 tu_mts_idx에 관한 신택스의 예를 나타낸다.Table 3 below shows an example of the syntax for the syntax element tu_mts_idx.
Figure PCTKR2020003187-appb-T000003
Figure PCTKR2020003187-appb-T000003
예시 1과 비교하여 예시 2에서, MTS 플래그, MTS 인덱스에 대한 두 빈(bin)들로 고정 길이 코딩 이후 TS(transform skip) 플래그를 파싱하는 것을 대신하여, 예시 2에 따른 신택스 요소 tu_mts_idx는 절단된 단항 이진화(truncated unary binarization)를 사용한다. 첫번째 빈은 TS, 두번째 빈은 MTS, 그리고 나머지는 MTS 인덱스를 지시한다. 시맨틱스와 이진화 방법이 이하의 표 4에 나타난다. Compared with Example 1, in Example 2, instead of parsing the TS (transform skip) flag after fixed length coding with two bins for the MTS flag and MTS index, the syntax element tu_mts_idx according to Example 2 was truncated. It uses truncated unary binarization. The first bin indicates TS, the second bin indicates MTS, and the rest indicate MTS index. The semantics and binarization methods are shown in Table 4 below.
Figure PCTKR2020003187-appb-T000004
Figure PCTKR2020003187-appb-T000004
또는 시맨틱스와 이진화 방법은 표 5와 같을 수 있다.Alternatively, the semantics and binarization method may be as shown in Table 5.
Figure PCTKR2020003187-appb-T000005
Figure PCTKR2020003187-appb-T000005
컨텍스트 모델들의 개수는 변경되지 않고 tu_mts_idx의 각 bin에 대한 컨텍스트 인덱스 증분 CtxInc의 할당은 아래의 표 6과 같을 수 있다.The number of context models is not changed, and the allocation of the context index increment CtxInc to each bin of tu_mts_idx may be as shown in Table 6 below.
Figure PCTKR2020003187-appb-T000006
Figure PCTKR2020003187-appb-T000006
엔트로피 코딩 (Entropy coding)Entropy coding
상술한 비디오/영상 정보의 일부 또는 전부는 엔트로피 인코딩부(190)에 의하여 엔트로피 인코딩될 수 있고, 상술한 비디오/영상 정보의 일부 또는 전부는 엔트로피 디코딩부(210)에 의하여 엔트로피 디코딩될 수 있다. 상술한 엔트로피 코딩 중 CABAC이 엔트로피 코딩을 위한 기법으로서 절용될 수 있으며, 후술하는 레지듀얼 정보에 포함되는 신택스 요소(들)은 CABAC 기반으로 엔트로피 코딩될 수 있다.Some or all of the above-described video/video information may be entropy-encoded by the entropy encoding unit 190, and some or all of the above-described video/video information may be entropy-decoded by the entropy decoding unit 210. Among the above-described entropy coding, CABAC may be employed as a technique for entropy coding, and syntax element(s) included in residual information to be described later may be entropy-coded based on CABAC.
비디오/영상 정보는 신택스 요소(syntax element) 단위로 인코딩/디코딩될 수 있다. 본 문서에서 정보가 인코딩/디코딩된다 함은 본 단락에서 설명되는 방법에 의하여 인코딩/디코딩되는 것을 포함할 수 있다.The video/image information may be encoded/decoded in units of syntax elements. In this document, that information is encoded/decoded may include encoding/decoding by the method described in this paragraph.
도 22는 본 명세서의 실시예에 따른 엔트로피 인코딩을 위한 블록도이다. 도 22는 하나의 신택스 요소를 인코딩하기 위한 CABAC의 블록도를 보여준다. CABAC의 인코딩 과정은 먼저 입력 신호가 이진 값이 아닌 신택스 요소인 경우에 이진화(binarization)를 통해 입력 신호를 이진 값으로 변환한다. 입력 신호가 이미 이진 값인 경우에는 이진화를 거치지 않고 바이패스 된다. 여기서, 이진 값을 구성하는 각각의 이진수 0 또는 1을 빈(bin)이라고 한다. 예를 들어, 이진화된 후의 이진 스트링(빈 스트링)이 110인 경우, 1, 1, 0 각각을 하나의 빈이라고 한다. 하나의 구문요소에 대한 상기 빈(들)은 해당 신택스 요소의 값을 나타낼 수 있다.22 is a block diagram for entropy encoding according to an embodiment of the present specification. 22 shows a block diagram of CABAC for encoding one syntax element. The encoding process of CABAC first converts the input signal into a binary value through binarization when the input signal is a syntax element rather than a binary value. If the input signal is already binary, it is bypassed without going through binarization. Here, each binary number 0 or 1 constituting the binary value is called a bin. For example, if the binary string (empty string) after binarization is 110, each of 1, 1, and 0 is referred to as one bin. The bin(s) for one syntax element may represent a value of a corresponding syntax element.
이진화된 빈들은 정규(regular) 코딩 엔진 또는 바이패스 코딩 엔진으로 입력된다. 정규 코딩 엔진은 해당 빈에 대해 확률 값을 반영하는 문맥(context) 모델을 할당하고, 할당된 문맥 모델에 기반해 해당 빈을 코딩한다. 정규 코딩 엔진은 각 빈에 대한 코딩을 수행한 뒤에 해당 빈에 대한 확률 모델을 갱신할 수 있다. 이렇게 코딩되는 빈들을 문맥 코딩된 빈(context-coded bin)이라 한다. 바이패스 코딩 엔진은 입력된 빈에 대해 확률을 추정하는 절차와 코딩 후에 해당 빈에 적용했던 확률 모델을 갱신하는 절차를 생략한다. 문맥을 할당하는 대신 균일한 확률 분포(예: 50:50)를 적용해 입력되는 빈을 코딩함으로써 코딩 속도를 향상시킨다. 이렇게 코딩되는 빈들을 바이패스 빈(bypass bin)이라 한다. 문맥 모델은 문맥 코딩(정규 코딩)되는 빈 별로 할당 및 업데이트될 수 있으며, 문맥 모델은 ctxIdx 또는 ctxInc를 기반으로 지시될 수 있다. ctxIdx는 ctxInc를 기반으로 도출될 수 있다. 구체적으로 예를 들어, 정규 코딩되는 빈들 각각에 대한 문맥 모델을 가리키는 컨텍스트 인덱스(ctxIdx)는 context index increment (ctxInc) 및 context index offset (ctxIdxOffset)의 합으로 도출될 수 있다. 여기서 ctxInc는 각 빈 별로 다르게 도출될 수 있다. ctxIdxOffset는 ctxIdx의 최소값(the lowest value)으로 나타내어질 수 있다. ctxIdx의 최소값은 ctxIdx의 초기값(initValue)으로 지칭될 수 있다 수 있다. ctxIdxOffset은 일반적으로 다른 신택스 요소에 대한 문맥 모델들과의 구분을 위하여 이용되는 값으로, 하나의 신택스 요소에 대한 문맥 모델은 ctxInc를 기반으로 구분/도출될 수 있다.The binarized bins are input into a regular coding engine or a bypass coding engine. The regular coding engine allocates a context model that reflects a probability value to the corresponding bin, and codes the corresponding bin based on the assigned context model. The regular coding engine may update the probability model for the corresponding bin after performing coding for each bin. Bins coded in this way are called context-coded bins. The bypass coding engine omits the procedure of estimating the probability for the input bin and the procedure of updating the probability model applied to the corresponding bin after coding. Instead of allocating context, a uniform probability distribution (eg, 50:50) is applied to code the input bins to improve coding speed. Bins coded in this way are called bypass bins. The context model may be allocated and updated for each context-coded (normally coded) bin, and the context model may be indicated based on ctxIdx or ctxInc. ctxIdx may be derived based on ctxInc. Specifically, for example, a context index (ctxIdx) indicating a context model for each of the regularly coded bins may be derived as a sum of a context index increment (ctxInc) and a context index offset (ctxIdxOffset). Here, ctxInc may be derived differently for each bin. ctxIdxOffset may be represented by the lowest value of ctxIdx. The minimum value of ctxIdx may be referred to as an initial value (initValue) of ctxIdx. ctxIdxOffset is a value generally used to distinguish context models for other syntax elements, and a context model for one syntax element may be identified/derived based on ctxInc.
엔트로피 인코딩 절차에서 정규 코딩 엔진을 통해 인코딩을 수행할 것인지, 바이패스 코딩 엔진을 통해 인코딩을 수행할 것인지가 결정되고, 코딩 경로가 스위칭될 수 있다. 엔트로피 디코딩은 엔트로피 인코딩과 동일한 과정을 역순으로 수행한다.In the entropy encoding procedure, it is determined whether encoding is performed through a regular coding engine or a bypass coding engine, and a coding path may be switched. Entropy decoding performs the same process as entropy encoding in reverse order.
도 23a 및 도 23b는 본 명세서의 실시예에 따른 엔트로피 인코딩 방법 및 관련 컴포넌트를 도시한다.23A and 23B illustrate an entropy encoding method and related components according to an embodiment of the present specification.
도 23b를 참조하면, 인코딩 장치(100)(엔트로피 인코딩부(190))는 영상/비디오 정보에 관한 엔트로피 코딩 절차를 수행한다. 영상/비디오 정보는 파티셔닝 관련 정보, 예측 관련 정보(예: 인터/인트라 예측 구분 정보, 인트라 예측 모드 정보, 인터 예측 모드 정보), 레지듀얼 정보, 인루프 필터링 관련 정보를 포함할 수 있고, 또는 그에 관한 다양한 신택스 요소들을 포함할 수 있다. 엔트로피 코딩은 신택스 요소 단위로 수행될 수 있다. 도 23a의 S2310 내지 S2320 단계는 상술한 도 2의 인코딩 장치(100)의 엔트로피 인코딩부(190)에 의하여 수행될 수 있다.Referring to FIG. 23B, the encoding apparatus 100 (entropy encoding unit 190) performs an entropy coding procedure for image/video information. The image/video information may include partitioning related information, prediction related information (eg, inter/intra prediction classification information, intra prediction mode information, inter prediction mode information), residual information, and in-loop filtering related information, or It can contain various syntax elements for. Entropy coding may be performed in units of syntax elements. Steps S2310 to S2320 of FIG. 23A may be performed by the entropy encoding unit 190 of the encoding apparatus 100 of FIG. 2 described above.
인코딩 장치(100)는 대상 신택스 요소에 대한 이진화를 수행한다(S2310). 여기서 이진화는 Truncated Rice binarization process, Fixed-length binarization process와 같은 다양한 이진화 방법에 기반할 수 있으며, 대상 신택스 요소에 대한 이진화 방법은 미리 정의될 수 있다. 이진화 절차는 엔트로피 인코딩부(190) 내의 이진화부(192)에 의하여 수행될 수 있다.The encoding device 100 performs binarization on the target syntax element (S2310). Here, binarization may be based on various binarization methods such as a Truncated Rice binarization process and a fixed-length binarization process, and a binarization method for the target syntax element may be predefined. The binarization procedure may be performed by the binarization unit 192 in the entropy encoding unit 190.
인코딩 장치(100)는 대상 신택스 요소에 대한 엔트로피 인코딩을 수행한다(S2320). 인코딩 장치(100)는 CABAC 또는 CAVLC과 같은 엔트로피 코딩 기법을 기반으로 대상 신택스 요소의 빈 스트링을 정규 코딩 기반(컨텍스트 기반) 또는 바이패스 코딩 기반 인코딩할 수 있으며, 그 출력은 비트스트림에 포함될 수 있다. 엔트로피 인코딩 절차는 엔트로피 인코딩부(190) 내의 엔트로피 인코딩 처리부(193)에 의하여 수행될 수 있다. 비트스트림은 (디지털) 저장매체 또는 네트워크를 통하여 디코딩 장치로 전달될 수 있음을 전술한 바와 같다.The encoding device 100 performs entropy encoding on the target syntax element (S2320). The encoding apparatus 100 may encode an empty string of a target syntax element based on an entropy coding technique such as CABAC or CAVLC based on normal coding (context based) or bypass coding, and the output may be included in a bitstream. . The entropy encoding procedure may be performed by the entropy encoding processing unit 193 in the entropy encoding unit 190. As described above, the bitstream can be delivered to a decoding device through a (digital) storage medium or a network.
도 24a 및 도 24b는 본 명세서의 실시예에 따른 엔트로피 디코딩 방법 및 관련 컴포넌트를 도시한다.24A and 24B illustrate an entropy decoding method and related components according to an embodiment of the present specification.
도 24b를 참조하면, 디코딩 장치(200)(엔트로피 디코딩부(210))는 인코딩된 영상/비디오 정보를 디코딩할 수 있다. 상기 영상/비디오 정보는 파티셔닝 관련 정보, 예측 관련 정보(예: 인터/인트라 예측 구분 정보, 인트라 예측 모드 정보, 인터 예측 모드 정보), 레지듀얼 정보, 인루프 필터링 관련 정보를 포함할 수 있고, 또는 그에 관한 다양한 신택스 요소들을 포함할 수 있다. 엔트로피 코딩은 신택스 요소 단위로 수행될 수 있다. S2410 단계 내지 S2420 단계는 상술한 도 3의 디코딩 장치(200)의 엔트로피 디코딩부(210)에 의하여 수행될 수 있다. Referring to FIG. 24B, the decoding apparatus 200 (entropy decoding unit 210) may decode encoded image/video information. The image/video information may include partitioning related information, prediction related information (eg, inter/intra prediction classification information, intra prediction mode information, inter prediction mode information), residual information, and in-loop filtering related information, or It can contain various syntax elements related to it. Entropy coding may be performed in units of syntax elements. Steps S2410 to S2420 may be performed by the entropy decoding unit 210 of the decoding apparatus 200 of FIG. 3 described above.
디코딩 장치(200)는 대상 신택스 요소에 대한 이진화를 수행한다(S2410). 이진화는 Truncated Rice binarization process, Fixed-length binarization process와 같은 다양한 이진화 방법에 기반할 수 있으며, 대상 신택스 요소에 대한 이진화 방법은 미리 정의될 수 있다. 디코딩 장치는 이진화 절차를 통하여 대상 신택스 요소의 가용 값들에 대한 가용 빈 스트링들(빈 스트링 후보들)을 도출할 수 있다. 이진화 절차는 엔트로피 디코딩부(210) 내의 이진화부(212)에 의하여 수행될 수 있다.The decoding apparatus 200 performs binarization on the target syntax element (S2410). Binarization can be based on various binarization methods such as the Truncated Rice binarization process and the Fixed-length binarization process, and the binarization method for the target syntax element can be predefined. The decoding apparatus may derive available bin strings (empty string candidates) for available values of a target syntax element through a binarization procedure. The binarization procedure may be performed by the binarization unit 212 in the entropy decoding unit 210.
디코딩 장치(200)는 대상 신택스 요소에 대한 엔트로피 디코딩을 수행한다(S2420). 디코딩 장치(200)는 비트스트림 내 입력 비트(들)로부터 상대상 신택스 요소에 대한 각 빈들을 순차적으로 디코딩 및 파싱하면서, 도출된 빈 스트링을 해당 신택스 요소에 대한 가용 빈 스트링들과 비교한다. 만약 도출된 빈 스트링이 상기 가용 빈 스트링들 중 하나와 같으면, 해당 빈 스트링에 대응하는 값이 해당 신택스 요소의 값으로 도출된다. 만약, 그렇지 않으면, 비트스트림 내 다음 비트를 더 파싱 후 상술한 절차를 다시 수행한다. 이러한 과정을 통하여 비트스트림 내에 특정 정보(특정 신택스 요소)에 대한 시작 비트나 끝 비트를 사용하지 않고도 가변 길이 비트를 이용하여 해당 정보를 시그널링할 수 있다. 이를 통하여 낮은 값에 대하여는 상대적으로 더 적은 비트를 할당할 수 있으며, 전반적인 코딩 효율을 높일 수 있다.The decoding apparatus 200 performs entropy decoding on the target syntax element (S2420). The decoding apparatus 200 sequentially decodes and parses each bin for a relative syntax element from the input bit(s) in the bitstream, and compares the derived bin string with the available bin strings for the corresponding syntax element. If the derived empty string is the same as one of the available empty strings, a value corresponding to the corresponding empty string is derived as a value of the corresponding syntax element. If not, the next bit in the bitstream is further parsed and the above-described procedure is performed again. Through this process, the information can be signaled using variable length bits without using a start bit or an end bit for specific information (specific syntax element) in the bitstream. Through this, relatively fewer bits can be allocated to a low value, and overall coding efficiency can be improved.
디코딩 장치(200)는 CABAC 또는 CAVLC과 같은 엔트로피 코딩 기법을 기반으로 비트스트림으로부터 빈 스트링 내 각 빈들을 컨텍스트 기반하거나 또는 바이패스 기반하여 디코딩할 수 있다. 비트스트림은 상술한 바와 같이 영상/비디오 디코딩을 위한 다양한 정보를 포함할 수 있다. 비트스트림은 (디지털) 저장매체 또는 네트워크를 통하여 디코딩 장치로 전달될 수 있음을 전술한 바와 같다.The decoding apparatus 200 may decode each bin in the bin string from the bitstream based on an entropy coding technique such as CABAC or CAVLC based on context or bypass. As described above, the bitstream may include various information for video/video decoding. As described above, the bitstream can be delivered to a decoding device through a (digital) storage medium or a network.
상술한 바와 같이 레지듀얼 샘플들은 변환, 양자화 과정을 거쳐서 양자화된 변환 계수들로 도출될 수 있다. 이 경우에는 양자화된 변환 계수들은 변환 계수들이라고도 불릴 수도 있다. 이 경우 블록 내 변환 계수들은 레지듀얼 정보의 형태로 시그널링될 수 있다. 레지듀얼 정보는 레지듀얼 코딩 신택스를 포함할 수 있다. 즉, 인코딩 장치(100)는 레지듀얼 정보로 레지듀얼 코딩 신택스를 구성하고 이를 인코딩하여 비트스트림 형태로 출력할 수 있고, 디코딩 장치(200)는 비트스트림으로부터 레지듀얼 코딩 신택스를 디코딩하여 레지듀얼 (양자화된) 변환 계수들을 도출할 수 있다. 레지듀얼 코딩 신택스는 표 7에서 후술하는 바와 같이 해당 블록 내 마지막 유효 변환 계수의 위치가 어디인지, 서브블록 내 유효 변환 계수가 존재하는지, 유효 변환 계수의 크기/부호가 어떠한지 등을 나타내는 구문 요소(syntax elements)들을 포함할 수 있다. As described above, residual samples may be derived into quantized transform coefficients through a transform and quantization process. In this case, the quantized transform coefficients may also be called transform coefficients. In this case, the transform coefficients within the block may be signaled in the form of residual information. The residual information may include residual coding syntax. That is, the encoding apparatus 100 may construct a residual coding syntax with residual information, encode it, and output it in the form of a bitstream, and the decoding apparatus 200 decodes the residual coding syntax from the bitstream to obtain a residual ( Quantized) transform coefficients can be derived. As described later in Table 7, the residual coding syntax is a syntax element indicating where the position of the last effective transform coefficient in the corresponding block is, whether there is an effective transform coefficient in the subblock, and the size/code of the effective transform coefficient ( syntax elements).
예를 들어, 변환 계수는 transform_skip_flag, last_sig_coeff_x_prefix, last_sig_coeff_y_prefix, last_sig_coeff_x_suffix, last_sig_coeff_y_suffix, coded_sub_block_flag, sig_coeff_flag, par_level_flag, abs_level_gt1_flag, abs_level_gt3_flag, abs_remainder, coeff_sign_flag, 및 mts_idx 구문 요소(syntax element) 중 일부 또는 전부를 이용해 부호화된다. 이는 레지듀얼 (데이터) 코딩 또는 (변환) 계수 코딩이라고 불릴 수 있다. 한편, 변환/양자화 과정은 생략될 수 있다. 이 경우 레지듀얼 샘플들의 값이 정해진 방법에 따라 코딩되어 시그널링될 수 있다. 표 7은 잔여 데이터 부호화와 관련된 구문 요소들을 보여준다.For example, the transform coefficients are encoded by using any or all of the transform_skip_flag, last_sig_coeff_x_prefix, last_sig_coeff_y_prefix, last_sig_coeff_x_suffix, last_sig_coeff_y_suffix, coded_sub_block_flag, sig_coeff_flag, par_level_flag, abs_level_gt1_flag, abs_level_gt3_flag, abs_remainder, coeff_sign_flag, and mts_idx syntax element (syntax element). This may be referred to as residual (data) coding or (transform) coefficient coding. Meanwhile, the conversion/quantization process may be omitted. In this case, values of residual samples may be coded and signaled according to a predetermined method. Table 7 shows syntax elements related to residual data encoding.
Figure PCTKR2020003187-appb-T000007
Figure PCTKR2020003187-appb-T000007
Figure PCTKR2020003187-appb-I000001
Figure PCTKR2020003187-appb-I000001
Figure PCTKR2020003187-appb-I000002
Figure PCTKR2020003187-appb-I000002
transform_skip_flag는 연관된 블록(associated block)에 변환이 생략되는지 여부를 나타낸다. 상기 연관된 블록은 CB(coding block) 또는 TB(Transform block)일 수 있다. 변환(및 양자화) 및 레지듀얼 코딩 절차에 관하여, CB와 TB는 혼용될 수 있다. 예를 들어, CB에 대하여 레지듀얼 샘플들이 도출되고, 상기 레지듀얼 샘플들에 대한 변환 및 양자화를 통하여 (양자화된) 변환 계수들이 도출될 수 있음은 상술한 바와 같으며, 레지듀얼 코딩 절차를 통하여 상기 (양자화된) 변환 계수들(의 위치, 크기, 부호 등)을 효율적으로 나타내는 정보(or 신택스 요소들)이 생성 및 시그널링될 수 있다. 양자화된 변환 계수들은 간단히 변환 계수들이라고 불릴 수 있다. 일반적으로 CB가 최대 TB보다 크지 않은 경우 CB의 사이즈는 TB의 사이즈와 같을 수 있으며, 이 경우 변환(및 양자화) 및 레지듀얼 코딩되는 대상 블록은 CB라고 불릴 수 있고, TB라고 불릴 수 있다. 한편, CB가 최대 TB보다 큰 경우에는 변환(및 양자화) 및 레지듀얼 코딩되는 대상 블록은 TB라고 불릴 수 있다. 이하 레지듀얼 코딩에 관련된 신택스 요소들이 변환 블록(TB) 단위로 시그널링되는 것으로 설명하나, 이는 예시로서 상기 TB는 코딩 블록(CB)과 혼용될 수 있음은 상술한 바와 같다.transform_skip_flag indicates whether transformation is omitted in an associated block. The associated block may be a coding block (CB) or a transform block (TB). Regarding the transform (and quantization) and residual coding procedure, CB and TB may be used interchangeably. For example, it is as described above that residual samples are derived for CB, and (quantized) transform coefficients can be derived through transform and quantization of the residual samples, and through a residual coding procedure. Information (or syntax elements) efficiently representing the (quantized) transform coefficients (position, size, sign, etc.) can be generated and signaled. Quantized transform coefficients can simply be called transform coefficients. In general, when the CB is not larger than the maximum TB, the size of the CB may be the same as the size of the TB. In this case, the target block to be transformed (and quantized) and residual coded may be referred to as CB, and may be referred to as TB. On the other hand, when CB is larger than the maximum TB, the target block to be transformed (and quantized) and residual coded may be referred to as TB. Hereinafter, syntax elements related to residual coding will be described as being signaled in units of transform blocks (TB), but this is an example, as described above, that the TB can be mixed with the coding block (CB).
last_sig_coeff_x_prefix, last_sig_coeff_y_prefix, last_sig_coeff_x_suffix, last_sig_coeff_y_suffix 로 변환 블록 내의 마지막 0이 아닌 계수의 (x, y) 위치 정보를 부호화 한다. 구체적으로, last_sig_coeff_x_prefix는 변환 블록 내 스캔 순서(scanning order)에서의 마지막(last) 유효 계수(significant coefficient)의 열 위치(column position)의 프리픽스(prefix)를 나타내고, last_sig_coeff_y_prefix는 상기 변환 블록 내 상기 스캔 순서(scanning order)에서의 마지막(last) 유효 계수(significant coefficient)의 행 위치(row position)의 프리픽스(prefix)를 나타내고, last_sig_coeff_x_suffix는 상기 변환 블록 내 상기 스캔 순서(scanning order)에서의 마지막(last) 유효 계수(significant coefficient)의 열 위치(column position)의 서픽스(suffix)를 나타내고, last_sig_coeff_y_suffix는 상기 변환 블록 내 상기 스캔 순서(scanning order)에서의 마지막(last) 유효 계수(significant coefficient)의 행 위치(row position)의 서픽스(suffix)를 나타낸다. 여기서 유효 계수는 상기 0이 아닌 계수를 나타낼 수 있다. 상기 스캔 순서는 우상향 대각 스캔 순서일 수 있다. 또는 상기 스캔 순서는 수평 스캔 순서, 또는 수직 스캔 순서일 수 있다. 상기 스캔 순서는 대상 블록(CB or TB를 포함하는 CB)에 인트라/인터 예측이 적용되는지 여부 및/또는 구체적인 인트라/인터 예측 모드를 기반으로 결정될 수 있다.The (x, y) position information of the last non-zero coefficient in the transform block is encoded as last_sig_coeff_x_prefix, last_sig_coeff_y_prefix, last_sig_coeff_x_suffix, and last_sig_coeff_y_suffix. Specifically, last_sig_coeff_x_prefix represents the prefix of the column position of the last significant coefficient in the scanning order in the transform block, and last_sig_coeff_y_prefix is the scan order in the transform block Represents the prefix of the row position of the last significant coefficient in (scanning order), and last_sig_coeff_x_suffix is the last in the scanning order in the transform block Represents the suffix of the column position of the significant coefficient, and last_sig_coeff_y_suffix is the row position of the last significant coefficient in the scanning order in the transform block Represents the suffix of (row position). Here, the effective coefficient may represent the non-zero coefficient. The scan order may be an upward-right diagonal scan order. Alternatively, the scan order may be a horizontal scan order or a vertical scan order. The scan order may be determined based on whether intra/inter prediction is applied to a target block (CB or CB including TB) and/or a specific intra/inter prediction mode.
그 다음, 변환 블록을 4x4 하위 블록(sub-block)들로 분할한 후, 각 4x4 하위 블록마다 1비트의 구문요소 coded_sub_block_flag를 사용해 현재 하위 블록 내에 0이 아닌 계수가 존재하는지를 나타낸다. 상기 하위 블록(sub-block)은 CG (coefficient group)과 혼용되어 사용될 수 있다.Next, after dividing the transform block into 4x4 sub-blocks, a 1-bit syntax element coded_sub_block_flag is used for each 4x4 sub-block to indicate whether a non-zero coefficient exists in the current sub-block. The sub-block may be used interchangeably with a coefficient group (CG).
coded_sub_block_flag가 0이면 더 이상 전송할 정보가 없으므로 현재 하위 블록에 대한 부호화 과정을 종료한다. 반대로 값이 1이면 sig_coeff_flag 부호화 과정을 계속해서 수행한다. 마지막 0이 아닌 계수를 포함하는 하위 블록은 coded_sub_block_flag 부호화가 불필요하고, 변환 블록의 DC 정보를 포함하고 있는 하위 블록은 0이 아닌 계수를 포함할 확률이 높으므로 coded_sub_block_flag을 부호화하지 않고, 이 값이 1이라 가정한다. If coded_sub_block_flag is 0, since there is no more information to be transmitted, the encoding process for the current sub-block ends. Conversely, if the value is 1, the sig_coeff_flag encoding process is continuously performed. The coded_sub_block_flag coding is unnecessary for the last sub-block containing the non-zero coefficient, and the sub-block containing the DC information of the transform block has a high probability of containing the non-zero coefficient, so the coded_sub_block_flag is not encoded, and this value is 1 Assume this.
만약 coded_sub_block_flag가 현재 하위 블록 내에 0이 아닌 계수가 존재한다고 나타내면 역으로 스캔된 순서에 따라 이진값을 갖는 sig_coeff_flag를 부호화한다. 스캔 순서에 따라 각각의 계수에 대해 1비트 구문 요소 sig_coeff_flag를 부호화한다. 만약 현재 스캔 위치에서 계수의 값이 0이 아니면 sig_coeff_flag값은 1이 된다. 여기서, 마지막 0이 아닌 계수를 포함하고 있는 하위 블록의 경우, 마지막 0이 아닌 계수에 대해서는 sig_coeff_flag를 부호화할 필요가 없으므로 부호화 과정이 생략된다. sig_coeff_flag가 1인 경우에만 레벨 정보 부호화가 수행되며, 레벨 정보 부호화 과정에는 네 개의 구문 요소를 사용한다. 구체적으로 각 sig_coeff_flag[xC][yC]는 현재 TB내 각 변환 계수 위치 (xC, yC)에서의 해당 변환 계수의 레벨(값)이 non-zero인지 여부를 나타낸다.If coded_sub_block_flag indicates that a non-zero coefficient exists in the current sub-block, sig_coeff_flag having a binary value is encoded according to the reverse scan order. The 1-bit syntax element sig_coeff_flag is encoded for each coefficient according to the scan order. If the coefficient value at the current scan position is not 0, the sig_coeff_flag value becomes 1. Here, in the case of a sub-block including the last non-zero coefficient, since sig_coeff_flag is not required to be encoded for the last non-zero coefficient, the encoding process is omitted. Level information encoding is performed only when sig_coeff_flag is 1, and four syntax elements are used in the level information encoding process. Specifically, each sig_coeff_flag[xC][yC] represents whether the level (value) of the corresponding transform coefficient at each transform coefficient position (xC, yC) in the current TB is non-zero.
sig_coeff_flag 부호화 이후의 남은 레벨 값은 수학식 1과 같다. 이 때, 부호화해야 할 레벨 값 remAbsLevel은 다음과 같다. 여기서, coeff는 실제 변환 계수값을 의미한다.The remaining level value after sig_coeff_flag encoding is shown in Equation 1. At this time, the level value remAbsLevel to be encoded is as follows. Here, coeff means an actual transform coefficient value.
Figure PCTKR2020003187-appb-M000001
Figure PCTKR2020003187-appb-M000001
abs_level_gt1_flag는 해당 스캐닝 위치(n)에서의 remAbsLevel'이 1보다 큰 지 여부를 나타낸다. abs_level_gt1_flag의 값이 0이면 해당 위치의 계수의 절댓값은 1이다. abs_level_gt1_flag의 값이 1이면, 이후 부호화해야 할 레벨 값 remAbsLevel은 수학식 2와 같다.abs_level_gt1_flag indicates whether remAbsLevel' at the corresponding scanning position (n) is greater than 1. If the value of abs_level_gt1_flag is 0, the absolute value of the coefficient at the corresponding position is 1. If the value of abs_level_gt1_flag is 1, then the level value remAbsLevel to be encoded is equal to Equation 2 below.
Figure PCTKR2020003187-appb-M000002
Figure PCTKR2020003187-appb-M000002
par_level_flag을 통하여 수학식 3과 같이, 수학식 2의 remAbsLevel의 least significant coefficient (LSB) 값을 부호화한다. 즉, par_level_flag[n]는 스캐닝 위치 n에서의 변환 계수 레벨(값)의 패리티(parity)를 나타낼 수 있다. par_leve_flag 부호화 후에 부호화해야 할 레벨 값 remAbsLevel을 수학식 4와 같이 업데이트 한다.The least significant coefficient (LSB) value of remAbsLevel of Equation 2 is encoded as shown in Equation 3 through par_level_flag. That is, par_level_flag[n] may represent parity of the transform coefficient level (value) at the scanning position n. After par_leve_flag encoding, the level value remAbsLevel to be encoded is updated as shown in Equation 4.
Figure PCTKR2020003187-appb-M000003
Figure PCTKR2020003187-appb-M000003
Figure PCTKR2020003187-appb-M000004
Figure PCTKR2020003187-appb-M000004
abs_level_gt3_flag는 해당 스캐닝 위치(n)에서의 remAbsLevel'이 3보다 큰 지 여부를 나타낸다. abs_level_gt3_flag가 1인 경우에만 abs_remainder 부호화가 수행된다. 실제 변환 계수값인 coeff와 각 구문요소들의 관계를 정리하면 수학식 5와 같으며, Table 2에서 몇 가지 예시를 보여준다. 마지막으로, 각 계수의 부호는 1비트 심볼인 coeff_sign_flag를 이용해 부호화 된다. | coeff |는 변환 계수 레벨(값)을 나타내며, 변환 계수에 대한 AbsLevel이라고 표시될 수도 있다.abs_level_gt3_flag indicates whether remAbsLevel' at the corresponding scanning position n is greater than 3. Only when abs_level_gt3_flag is 1, abs_remainder encoding is performed. The relationship between the actual transform coefficient value coeff and each syntax element is shown in Equation 5, and Table 2 shows some examples. Finally, the sign of each coefficient is coded using a 1-bit symbol coeff_sign_flag. | coeff| represents a transform coefficient level (value), and may be expressed as AbsLevel for the transform coefficient.
Figure PCTKR2020003187-appb-M000005
Figure PCTKR2020003187-appb-M000005
coeff_sign_flag은 해당 스캐닝 위치(n)에서의 변환 계수 레벨의 부호(sign)를 나타낸다. 아래의 표 8은 변환 계수 레벨 |coeff|의 신택스 요소들을 나타낸다.coeff_sign_flag represents the sign of the transform coefficient level at the corresponding scanning position (n). Table 8 below shows syntax elements of the transform coefficient level |coeff|.
Figure PCTKR2020003187-appb-T000008
Figure PCTKR2020003187-appb-T000008
도 25는 본 명세서의 실시예에 따른 블록 내 변환 계수들의 예를 도시한다.25 illustrates an example of intra-block transform coefficients according to an embodiment of the present specification.
이 블록은 4x4 변환 블록일 수도 있거나, 또는 8x8, 16x16, 32x32 변호나 블록의 4x4 서브 블록일 수도 있다. 도 25의 역 대각선 스캔되는 계수들에 대한 부호화 결과가 표 9에 보여진다. 표 9에서 scan_pos는 역 대각선 스캔에 따른 계수의 위치를 지칭한다. scan_pos 15는 4x4 블록에서 가장 먼저 스캔되는, 즉 우측하단 코너의 계수이고, scan_pos 0은 가장 나중에 스캔되는, 즉 좌측상단 코너의 계수이다.This block may be a 4x4 transform block, or may be an 8x8, 16x16, 32x32 code or a 4x4 subblock of a block. Table 9 shows encoding results for the coefficients scanned inverse diagonally in FIG. 25. In Table 9, scan_pos refers to the position of the coefficient according to the inverse diagonal scan. scan_pos 15 is the coefficient of the first scan in the 4x4 block, that is, the lower right corner, and scan_pos 0 is the coefficient of the last scan, that is, the upper left corner.
한편, CABAC은 높은 성능을 제공하지만 처리량(throughput) 성능이 좋지 않다는 단점을 갖는다. 이는 CABAC의 정규 부호화 엔진으로 인한 것인데, 정규 부호화는 이전 빈의 부호화를 통해 업데이트된 확률 상태와 범위를 사용하기 때문에 높은 데이터 의존성을 보이며, 확률 구간을 읽고 현재 상태를 판단하는데 많은 시간이 소요된다. 이는 문맥 부호화 빈(context-coded bin)의 수를 제한함으로써 CABAC의 처리량 문제를 해결할 수 있다. 따라서, 표 7과 같이 sig_coeff_flag, abs_level_gt1_flag, par_level_flag, abs_level_gt3_flag를 표현하기 위해 사용된 빈의 합이 서브 블록의 크기에 따라 4x4 서브 블록일 경우 32, 2x2 서브 블록일 경우 8 (remBinsPass1)으로 제한될 수 있다. 문맥 요소를 부호화 하는 데에 제한된 문맥 부호화 빈을 모두 사용할 경우, 나머지 계수들은 CABAC을 사용하지 않고 계수를 이진화하여 bypass 부호화를 수행할 수 있다.On the other hand, CABAC provides high performance, but has a disadvantage of poor throughput performance. This is due to the regular encoding engine of CABAC. Since the regular encoding uses the updated probability state and range through encoding of the previous bin, it shows high data dependence, and it takes a lot of time to read the probability interval and determine the current state. This can solve the CABAC throughput problem by limiting the number of context-coded bins. Therefore, as shown in Table 7, the sum of bins used to express sig_coeff_flag, abs_level_gt1_flag, par_level_flag, and abs_level_gt3_flag may be limited to 32 for 4x4 subblocks and 8 (remBinsPass1) for 2x2 subblocks according to the size of the subblock. . When all the restricted context encoding bins are used to encode the context element, bypass encoding can be performed by binarizing the coefficients for the remaining coefficients without using CABAC.
Figure PCTKR2020003187-appb-T000009
Figure PCTKR2020003187-appb-T000009
변환 스킵에 대한 레지듀얼 코딩Residual Coding for Transform Skip
레지듀얼 코딩을 양자화된 예측 레지듀얼 (공간 도메인)을 나타내는 변환 스킵 레벨들의 통계 및 신호 특성에 적응시키기 위하여, 이하의 방법들이 제공될 수 있다.In order to adapt the residual coding to the statistic and signal characteristics of transform skip levels representing the quantized predictive residual (spatial domain), the following methods may be provided.
마지막 유효 계수 스캐닝 위치 없음: 레지듀얼 신호는 예측 이후 공간 레지듀얼을 반영하고 TS(transform skip)에 대한 변환에 의한 에너지 압축(energy compaction)이 수행되지 않기 때문에, 제로 테일링들에 대한 높은 확률 또는 변환 블록의 우하측 코너에서의 비유효성(insignificant)은 더 이상 주어지지 않는다. 그리하여, 이 경우 마지막 유효 계수 스캐닝 위치 시그널링은 생략된다. 대신에, 첫번째 처리될 서브블록은 변환 블록 내 최 우하측 서브블록이다.No last significant coefficient scanning position: Since the residual signal reflects the spatial residual after prediction and energy compaction by transformation for TS (transform skip) is not performed, a high probability or transformation for zero tailings The insignificant at the lower right corner of the block is no longer given. Thus, in this case, signaling of the last significant coefficient scanning position is omitted. Instead, the subblock to be processed first is the lower-right subblock in the transform block.
서브블록 CBF: 마지막 유효 계수 스캐닝 위치 시그널링의 부재는 TS에 대한 coded_sub_block_flag를 사용한 서브블록 CBF 시그널링이 아래와 같이 변경되도록 요구한다.Subblock CBF: The absence of last significant coefficient scanning position signaling requires that subblock CBF signaling using coded_sub_block_flag for TS is changed as follows.
- 양자화로 인하여, 상술한 비유효성의 시퀀스는 여전히 변환 블록 내부에 국부적으로 발생한다. 그리하여, 마지막 유효 스캐닝 위치는 이전에 설명된 것처럼 제거되고 coded_sub_block_flag는 모든 서브블록들에 대해 코딩된다.-Due to quantization, the above-described ineffective sequence still occurs locally inside the transform block. Thus, the last valid scanning position is removed as previously described and coded_sub_block_flag is coded for all subblocks.
- DC 주파수 위치 (좌상측 서브블록) 서브블록에 대한 coded_sub_block_flag는 특별한 경우를 나타낸다. DC 주파수 위치 서브블록에 대한 coded_sub_block_flag는 시그널링되지 않고 항상 1로 추론된다. 마지막 유효 스캐닝 위치가 다른 서브블록서 있을 때, 이는 적어도 하나의 유효 레벨이 DC 서브블록 외부에 존재함을 의미한다. 결과적으로, 비록 DC 서브블록에 대한 coded_sub_block_flag가 1인 것으로 추론된다고 하더라도 DC 서브블록은 오직 제로/비유효 레벨들만을 포함할 수도 있다. TS에서 마지막 스캐닝 위치 정보의 부재와 함께, 각 서브블록에 대한 coded_sub_block_flag가 시그널링된다. 이는 모든 다른 coded_sub_block_flag 신택스 요소가 이미 0일 때를 제외하고 DC 서브블록에 대한 coded_sub_block_flag를 포함한다. 이 경우, DC coded_sub_block_flag는 1로 추론된다 (inferDcSbCbf=1). 이 DC 서브블록에서 적어도 하나의 유효 레벨이 존재해야 하기 때문에, 만약 DC 서브블록에서 모든 다른 sig_coeff_flag 신택스 요소들이 0이면 (0,0)에서의 첫 번째 위치에 대한 sig_coeff_flag 신택스 요소는 시그널링되지 않고 1인 것으로 대신 추론된다 (inferSbDcSigCoeffFlag=1).-The coded_sub_block_flag for the DC frequency position (upper left subblock) subblock indicates a special case. The coded_sub_block_flag for the DC frequency location subblock is not signaled and is always inferred as 1. When the last valid scanning position is in another subblock, this means that at least one valid level exists outside the DC subblock. As a result, even though it is inferred that the coded_sub_block_flag for the DC subblock is 1, the DC subblock may only include zero/invalid levels. A coded_sub_block_flag for each subblock is signaled together with the absence of last scanning position information in the TS. This includes coded_sub_block_flag for DC subblocks except when all other coded_sub_block_flag syntax elements are already 0. In this case, DC coded_sub_block_flag is deduced as 1 (inferDcSbCbf=1). Since at least one valid level must exist in this DC subblock, if all other sig_coeff_flag syntax elements in the DC subblock are 0, the sig_coeff_flag syntax element for the first position at (0,0) is not signaled and is 1 Is inferred instead (inferSbDcSigCoeffFlag=1).
- coded_sub_block_flag에 대한 컨텍스트 모델링이 변경된다. 컨텍스트 모델 인덱스는 현재 서브블록의 우측에 대한 coded_sub_block_flag와 아래쪽에 대한 coded_sub_block_flag의 합과 양측의 논리적 불일치(logical disjunction)로서 계산된다.-The context modeling for coded_sub_block_flag is changed. The context model index is calculated as the sum of the coded_sub_block_flag on the right side of the current subblock and the coded_sub_block_flag on the bottom side and the logical disjunction of both sides.
sig_coeff_flag 컨텍스트 모델링: sig_coeff_flag에서 로컬 템플릿 컨텍스트 모델링은 현재 스캐닝 위치에 대한 우측 이웃(NB0)과 하측 이웃(NB1)만을 포함한다. 컨텍스트 모엘 오프셋은 단지 유효한 이웃 위치들 개수 sig_coeff_flag[NB0] + sig_coeff_flag[NB1]이다. 그리하여, 현재 블록 내 대각(diagonal) d에 따라 다른 컨텍스트 집합들의 선택은 제거된다. 이는 sig_coeff_flag 플래그에 대한 단일한 컨텍스트 모델 집합과 세 컨텐스트 모델들을 도출한다.sig_coeff_flag context modeling: In sig_coeff_flag, the local template context modeling includes only the right neighbor (NB0) and the lower neighbor (NB1) for the current scanning position. The context Moel offset is only the number of valid neighbor locations sig_coeff_flag[NB0] + sig_coeff_flag[NB1]. Thus, the selection of different context sets according to the diagonal d in the current block is removed. This derives a single context model set and three context models for the sig_coeff_flag flag.
abs_level_gt1_flag 및 par_level_flag 컨텍스트 모델링: 단일한 컨텍스트 모델이 abs_level_gt1_flag 및 par_level_flag에 대해 사용된다.abs_level_gt1_flag and par_level_flag context modeling: A single context model is used for abs_level_gt1_flag and par_level_flag.
abs_remainder 코딩: 비록 스킵 레지듀얼 절대 레벨들로부터의 변환 스킵의 실증적인(empirical) 분포가 여전히 라플라시안(Laplacian) 또는 기하학적(geometrical 분포에 적합하나, 변환 계수 절대 레벨들보다 큰 인스테이셔너리티(instationarity)가 존재한다. 특히, 연속적인 실현의 윈도우 내부의 분산(variance)은 레지듀얼 절대 레벨들보다 높다. 이하 abs_remainder 신택스 이진화 및 컨텍스트 모델링의 변경들을 유발한다.abs_remainder coding: Although the empirical distribution of the transform skip from skip residual absolute levels is still suitable for Laplacian or geometrical distribution, the instationarity of transform coefficients is greater than the absolute levels. In particular, the variance inside the window of successive realization is higher than the residual absolute levels, hereinafter causing abs_remainder syntax binarization and changes in context modeling.
- 이진화에서의 높은 컷오프(cutoff) 값을 사용하면, 즉, abs_level_gt1_flag, par_level_flag, 및 abs_level_gt3_flag를 사용한 코딩에서 abs_remainder에 대한 라이스 코드들(Rice codes)까지의 전환점, 그리고 각 빈 위치에 대한 전용(dedicated) 컨텍스트 모델들은 높은 압축 효율을 요구한다. 컷오프를 증가시키는 것은 더욱 "X 보다 큰(greater than X)" 플래그들을 증가시키며, 예를 들어 컷오프에 도달할 때까지 abs_level_gt5_flag, abs_level_gt7_flag 등을 유도한다. 컷오프 그 자체는 5로 고정된다 (numGtFlags=5).-Using a high cutoff value in binarization, i.e., a turning point from coding with abs_level_gt1_flag, par_level_flag, and abs_level_gt3_flag to Rice codes for abs_remainder, and dedicated for each bin position Context models require high compression efficiency. Increasing the cutoff increases more "greater than X" flags, e.g. leading to abs_level_gt5_flag, abs_level_gt7_flag, etc. until the cutoff is reached. The cutoff itself is fixed at 5 (numGtFlags=5).
- 라이스 파라미터 유도를 위한 템플릿이 변경되며, 즉, 현재 스캐닝 위치에서의 좌측 이웃과 하측 이웃이 sig_coeff_flag 컨텍스트 모델링을 위한 국부적 템플릿과 유사한 것으로 고려된다. -The template for deriving the Rice parameter is changed, that is, the left neighbor and the lower neighbor at the current scanning position are considered to be similar to the local template for sig_coeff_flag context modeling.
coeff_sign_flag 컨텍스트 모델링: 예측 레지듀얼은 자주 치우쳐진다는 사실과 부호들의 시퀀스들 내부의 인스테이셔너리티(instationarities)로 인하여, 글로벌 경험적 분포가 거의 균일하게 분포된 경우에도, 부호들은 컨텍스트 모델들을 사용하여 코딩된다. 단일한 전용 컨텍스트 모델은 부호들의 코딩을 위하여 사용되고 모든 컨텍스트 코딩된 빈들을 함께 유지하기 위하여 sig_coeff_flag 이후 부호가 파싱된다.coeff_sign_flag context modeling: even when the global empirical distribution is almost uniformly distributed, the codes are used using context models due to the fact that the predictive residual is often skewed and the instationarities inside the sequences of codes. Is coded. A single dedicated context model is used for coding of codes, and the code is parsed after sig_coeff_flag to keep all context coded bins together.
컨텍스트 코딩된 빈들의 감소: 첫번째 스캐닝 패스, 즉, sig_coeff_flag, abs_level_gt1_flag, 및 par_level_flag 신택스 요소들의 전송은, 변경되지 않는다. 그러나, 샘플당 컨텍스트 코딩된 빈들(context coded bins, CCBs)의 최대 개수의 제한이 제거되고 다르게 관리된다. CCB > k (k는 양의 정수) 인 모드를 사용 불가능(invalid)하도록 설정함으로써 CCB들의 감소가 보장될 수 있다. 예를 들어, 보통 레벨 코딩 모드로서 k = 2가 적용될 수 있다. 이러한 제한은 양자화 공간의 감소에 대응한다.Reduction of context coded bins: The first scanning pass, i.e. the transmission of sig_coeff_flag, abs_level_gt1_flag, and par_level_flag syntax elements, is not changed. However, the limit on the maximum number of context coded bins (CCBs) per sample is removed and managed differently. Reduction of CCBs may be guaranteed by setting a mode in which CCB> k (k is a positive integer) to be invalid. For example, k = 2 may be applied as a normal level coding mode. This limitation corresponds to the reduction of the quantization space.
변환 스킵 레지듀얼 코딩 신택스는 아래의 표 10과 같을 수 있다.Transform skip residual coding syntax may be as shown in Table 10 below.
Figure PCTKR2020003187-appb-T000010
Figure PCTKR2020003187-appb-T000010
Figure PCTKR2020003187-appb-I000003
Figure PCTKR2020003187-appb-I000003
변환 여부 정보를 포함하는 변환 커널 인덱스 사용시 변환 스킵 크기 정의Definition of the conversion skip size when using the conversion kernel index including conversion status information
변환 부호화를 수행하지 않은 블록은 일반적인 변환 부호화가 수행된 블록과 레지듀얼(residual) 데이터의 특성이 다르므로, 변환 부호화가 수행되지 않은 블록, 즉 변환 스킵이 적용되는 블록을 위한 효율적인 레지듀얼 데이터 코딩 방법이 필요하다. 변환 수행 여부를 나타내는 변환 여부 플래그는 변환 블록 단위로 전송될 수 있다. 다만, 변환 블록의 크기는 다양할 수 있으며, 특정 값에 한정되지 않는다. 예를 들어, 변환 여부 플래그가 1인 경우, 본 발명에서 제안하는 레지듀얼 데이터 부호화가 수행될 수 있으며, 변환 여부 플래그가 0인 경우 표 7에서 설명한 기존의 레지듀얼 데이터 부호화가 수행될 수 있다. Blocks that have not undergone transcoding have different characteristics of residual data from those in which general transcoding has been performed, so efficient residual data coding for blocks to which transcoding has not been performed, that is, a block to which transform skip is applied. I need a way. The conversion status flag indicating whether conversion is performed may be transmitted in units of conversion blocks. However, the size of the transform block may vary and is not limited to a specific value. For example, when the conversion status flag is 1, the residual data encoding proposed in the present invention may be performed, and when the conversion status flag is 0, the existing residual data encoding described in Table 7 may be performed.
또는, coded_sub_block_flag 이하 coeff_sign_flag를 제외한 레지듀얼 데이터 부호화는 이전에 설명된 레지듀얼 데이터 부호화 방법을 일부 또는 전부 따를 수 있다. unified transform type signaling이 수행되는 경우 tu_mts_idx가 1일 때(또는 tu_mts_idx의 값이 대상 블록에 변환이 적용되지 않음을 나타내는 때), 제안한 레지듀얼 데이터 부호화가 수행된다. 이 경우 tu_mts_idx가 0 (또는 1 외의 값)일 때에는 표 7의 신택스 요소들에 기반한 레지듀얼 데이터 부호화가 수행될 수 있다. 이 경우 표 7에서 transform_skip_flag 신택스 요소 및/또는 mts_idx 신택스 요소는 생략될 수 있다. Alternatively, the residual data encoding except for coeff_sign_flag below coded_sub_block_flag may follow some or all of the previously described residual data encoding method. When unified transform type signaling is performed, when tu_mts_idx is 1 (or when the value of tu_mts_idx indicates that transformation is not applied to the target block), the proposed residual data encoding is performed. In this case, when tu_mts_idx is 0 (or a value other than 1), residual data encoding based on the syntax elements of Table 7 may be performed. In this case, the transform_skip_flag syntax element and/or the mts_idx syntax element in Table 7 may be omitted.
혹은 tu_mts_idx 0이 대상 블록에 변환이 적용되지 않음(변환 스킵)을 나타내는 경우, tu_mts_idx가 0일 때, 제안한 잔여 데이터 부호화가 수행될 수 있다. 이 경우 tu_mts_idx가 0이 아닐 때에는 기존 표 7에서 설명된 신택스 요소들(transform_skip_flag 신택스 요소 및/또는 mts_idx 신택스 요소는 생략될 수 있음)에 기반한 잔여 데이터 부호화가 수행될 수 있다. 이 경우 "tu_mts_idx == 1?" 판단 절차는 "tu_mts_idx == 0" 판단 절차로 대체될 수 있다. Alternatively, when tu_mts_idx 0 indicates that no transformation is applied to the target block (transform skip), when tu_mts_idx is 0, the proposed residual data encoding may be performed. In this case, when tu_mts_idx is not 0, residual data encoding based on the syntax elements described in Table 7 (transform_skip_flag syntax element and/or mts_idx syntax element may be omitted) may be performed. In this case "tu_mts_idx == 1?" The determination procedure may be replaced with a "tu_mts_idx == 0" determination procedure.
변환 스킵 및 변환 인덱스에 대한 이진화가 mts_enabled, ts_enabled, mts_enabled와 ts_enabled가 모두 가능한 경우 각각 다르게 정의될 수 있다. 이와 마찬가지로, 변환 스킵이 정의되는 크기가 mts_enabled가 0 또는 1인지에 따라 다르게 정의될 수 있다. When the binarization for the transform skip and the transform index is mts_enabled, ts_enabled, mts_enabled, and ts_enabled are all possible, each may be defined differently. Likewise, the size at which the transform skip is defined may be differently defined depending on whether mts_enabled is 0 or 1.
1) 만일 mts_enabled=1의 경우, 변환 스킵의 크기는 허용된 MTS에 종속적일 수 있다. 예를 들어, MTS의 크기가 32 이하에서 허용될 경우, 변환 스킵은 이와 동일하게 블록 크기가 32 이하인 블록에 대해서 항상 정의될 수 있다. 1) If mts_enabled=1, the size of the transform skip may be dependent on the allowed MTS. For example, if the size of the MTS is allowed to be 32 or less, the transform skip may be always defined for a block having a block size of 32 or less.
2) 또는, mts_enabled=1의 경우, 인코더와 디코더 간 이미 약속된 최대 크기를 사용할 수 있다. 그리고 이 최대 크기에 따라 ts_enabled가 정의될 수 있다. 예를 들어, 인코더와 디코더가 한 변의 크기가 8보다 작거나 같은 블록의 변환 스킵만을 사용하도록 정의할 수 있다. 이러한 경우에는 블록의 한 변의 크기가 8 보다 큰 블록에 대해서는 ts_enabled = 0으로 정의됨으로서 "통일된 변환 타입 시그널링"의 이진화 테이블을 유효하게 적용할 수 있다. 블록의 한 변의 최대 크기가 아닌 최대 픽셀 개수로서 변환 스킵 블록의 최대 크기 정보를 표현할 수도 있다.2) Alternatively, in the case of mts_enabled=1, the maximum size already promised between the encoder and the decoder may be used. And ts_enabled may be defined according to this maximum size. For example, an encoder and a decoder can be defined to use only transform skips of blocks with the size of one side less than or equal to 8. In this case, the binarization table of "Unified Transform Type Signaling" can be effectively applied by defining ts_enabled = 0 for a block with a size of one side of the block larger than 8. The maximum size information of the transform skip block may be expressed as the maximum number of pixels rather than the maximum size of one side of the block.
3) 또는, mts_enabled=1의 경우, MTS의 크기와는 별도로 변환 스킵의 최대 크기가 정의될 수 있다. 이러한 경우, MTS의 크기를 정의하기 위해 변환 스킵 크기에 대한 정보가 디코더로 전송될 수 있다. 예를 들어, MTS의 크기가 32 이하에서 허용될 경우, MTS의 크기를 따르는지 여부에 대한 플래그를 전송하고, MTS의 최대 크기를 따르지 않을 경우 변환 스킵의 최대크기를 16까지 허용하도록 하는 정보를 전송할 수 있다. 이러한 경우에는 블록 한 변의 크기가 16 이상일 경우 ts_enabled = 0으로 정의됨으로서 "통일된 변환 타입 시그널링"의 이진화 테이블을 유효하게 적용할 수 있다. 또는, 블록의 한 변의 최대 크기가 아닌 최대 픽셀 개수로서 변환 스킵 블록의 최대 크기 정보를 표현할 수도 있다.3) Alternatively, in the case of mts_enabled=1, the maximum size of the transform skip may be defined separately from the size of the MTS. In this case, information on the transform skip size may be transmitted to the decoder to define the size of the MTS. For example, if the size of the MTS is allowed to be less than 32, a flag indicating whether to follow the size of the MTS is transmitted, and if the maximum size of the MTS is not followed, information to allow the maximum size of the transform skip to 16 is provided. Can be transmitted. In this case, when the size of one side of the block is 16 or more, ts_enabled = 0 is defined, so that the binarization table of "unified transformation type signaling" can be effectively applied. Alternatively, the maximum size information of the transform skip block may be expressed as the maximum number of pixels instead of the maximum size of one side of the block.
4) 또는, mts_enabled = 0일 때, 인코더와 디코더 간 이미 약속된 최대 크기를 사용할 수 있다. 예를 들어, mts_enabled = 0이고 ts_enabled = 1일 경우에는 인코더와 디코더가 한 변의 크기가 8보다 작거나 같은 블록의 변환 스킵만을 사용하도록 정의할 수 있다. 블록의 한 변의 최대 크기가 아닌 최대 픽셀 개수로서 변환 스킵 블록의 최대 크기 정보를 표현할 수도 있다.4) Alternatively, when mts_enabled = 0, the maximum size already promised between the encoder and the decoder can be used. For example, when mts_enabled = 0 and ts_enabled = 1, it may be defined that the encoder and the decoder use only the transform skip of a block whose size of one side is less than or equal to 8. The maximum size information of the transform skip block may be expressed as the maximum number of pixels rather than the maximum size of one side of the block.
5) 또는, mts_enabled = 0일 때, 변환 스킵의 최대 크기 정보를 전송할 수 있다. 예를 들어, 변환 스킵의 최대크기를 16까지 허용하도록 하는 정보를 고급 구문 (high level syntax)으로 전송할 수 있다. 이러한 경우에는 블록 변의 크기가 16 이상이면 ts_enabled = 0으로 정의됨으로서 "통일된 변환 타입 시그널링"의 이진화 테이블을 유효하게 적용할 수 있다. 또는, 블록의 한 변의 최대 크기가 아닌 최대 픽셀 개수로서 변환 스킵 블록의 최대 크기 정보를 표현할 수도 있다.5) Alternatively, when mts_enabled = 0, information on the maximum size of the transform skip may be transmitted. For example, information for allowing the maximum size of the transform skip to 16 may be transmitted in a high level syntax. In this case, if the size of the block side is 16 or more, ts_enabled = 0 is defined, so that the binarization table of "unified transform type signaling" can be effectively applied. Alternatively, the maximum size information of the transform skip block may be expressed as the maximum number of pixels instead of the maximum size of one side of the block.
또한, 신택스 요소인 tu_mts_idx를 부호화 함에 있어서, 블록의 크기, 블록의 폭-높이 비율, 블록의 인트라 또는 인터 예측 여부, 주변의 변환 스킵 여부 등에 따라 문맥 테이블을 결정할 수 있다. 일례로, 블록의 크기가 8x8보다 작을 때에는 인덱스 0번의 문맥 테이블을 사용하고, 그 이상일 때에는 인덱스 1번의 문맥 테이블을 사용할 수 있다. 또다른 예로서, 블록의 폭 높이 비율이 1인 경우에는 인덱스 0번의 문맥 테이블을 사용하고, 그보다 작거나 큰 경우에는 인덱스 1번의 문맥 테이블을 사용할 수 있다. 또다른 예로서, 현재 블록의 예측 모드가 인트라 모드일 경우 0번 인덱스 문맥 테이블을 사용하고, 인터 모드일 경우 1번 인덱스의 문맥 테이블을 이용하여 부호화 할 수 있다. 문맥 테이블 및 테이블의 개수는 확률 및 분포에 기반하여 다양하게 정의할 수 있으며, 본 발명에서는 특정한 문맥 테이블 및 문맥 테이블의 개수로 한정하지 아니한다.In addition, in encoding the syntax element tu_mts_idx, the context table may be determined according to the size of the block, the width-height ratio of the block, whether intra or inter prediction of the block, and whether to skip surrounding transforms. For example, when the block size is less than 8x8, the context table of index 0 can be used, and when the size of the block is larger than 8x8, the context table of index 1 can be used. As another example, when the width-height ratio of a block is 1, the context table of index 0 can be used, and if it is smaller or larger than that, the context table of index 1 can be used. As another example, when the prediction mode of the current block is an intra mode, index 0 context table may be used, and when an inter mode is an inter mode, index 1 context table may be used for encoding. The number of context tables and tables can be variously defined based on probability and distribution, and the present invention is not limited to the number of specific context tables and context tables.
예를 들어, 본 발명의 실시예에 따라 다음과 같은 신택스 요소들을 포함하는 신택스가 구성/인코딩되어 비트스트림을 통하여 디코딩 장치(200)로 시그널링될 수 있고, 디코딩 장치(200)는 신택스 요소들을 순서에 따라 파싱/디코딩할 수 있다. 각 신택스 요소들이 무엇을 명시(specify)하는지는 관련 시멘틱스(sementics)에서 나타나 있다.For example, according to an embodiment of the present invention, a syntax including the following syntax elements may be configured/encoded and signaled to the decoding apparatus 200 through a bitstream, and the decoding apparatus 200 ordered the syntax elements. Can be parsed/decoded according to. What each syntax element specifies is indicated in the relevant semantics.
픽처 파라미터 셋 RBSP 신택스(Picture parameter set RBSP syntax)는 아래의 표 11과 같을 수 있다.The picture parameter set RBSP syntax may be as shown in Table 11 below.
Figure PCTKR2020003187-appb-T000011
Figure PCTKR2020003187-appb-T000011
표 11에서, transform_skip_enabled_flag는 픽처 내 레지듀얼 블록들에 대한 변환의 생략이 가능한지 여부를 나타낸다. 일 실시예에서, transform_skip_enabled_flag가 0이면 tu_mts_idx는 레지듀얼 블록 코딩 신택스에 대하여 변환을 생략할지 여부를 지시하지 않는다.In Table 11, transform_skip_enabled_flag indicates whether it is possible to omit transform for residual blocks in a picture. In one embodiment, if transform_skip_enabled_flag is 0, tu_mts_idx does not indicate whether to omit the transform for the residual block coding syntax.
log2_transform_skip_max_size_minus2는 변환 스킵이 적용될 수 있는 최대 블록 사이즈를 나타낸다. transform_skip_enabled_flag가 0이거나 존재하지 않으면, log2_transform_skip_max_size_minus2의 값은 0으로 추론된다. log2_transform_skip_max_size_minus2 represents the maximum block size to which the transform skip can be applied. If transform_skip_enabled_flag is 0 or does not exist, the value of log2_transform_skip_max_size_minus2 is deduced as 0.
변환 스킵 최대 사이즈를 나타내는 변수 MaxTsSize는 1 << (log2_transform_skip_max_size_minus2 + 2)로 설정될 수 있다.The variable MaxTsSize indicating the maximum transform skip size may be set to 1 << (log2_transform_skip_max_size_minus2 + 2).
이하, 본 명세서의 실시예에 따른 휘도 및 색차 블록에 대하여 변환 스킵을 적용하기 위한 방법이 설명된다. 이하의 실시예는 휘도 및 색차 블록에 대해 변환 스킵 적용 여부를 결정하고, 변환 스킵을 적용하기 위한 방법을 제공한다.Hereinafter, a method for applying a transform skip to a luminance and color difference block according to an embodiment of the present specification will be described. The following embodiments provide a method for determining whether to apply a transform skip to a luminance and color difference block and to apply the transform skip.
실시예 1Example 1
본 명세서의 실시예에 따르면, 색차 블록에 대하여 변환 스킵이 적용될 수 있으며, 색차 블록에 대한 변환 스킵 적용 여부를 결정하기 위하여, 색차 블록에 대한 변환 스킵이 적용되는지 여부를 지시하는 변환 스킵 플래그가 사용될 수 있다. 다만, 색차 블록에 변환 스킵이 적용되기 위한 조건이 설정될 수 있으며, 색차 블록의 변환 스킵 조건은 현재 블록의 사이즈와 현재 블록의 트리 타입에 기반하여 결정될 수 있다. 즉, 코딩 복잡도를 고려하여 현재 블록의 사이즈가 기준 사이즈보다 작거나 같아야 하며, 현재 블록이 색차 블록에 해당하는지 여부를 판단하기 위한 조건으로서 현재 블록의 트리 타입(싱글 트리 또는 듀얼 트리 크로마)이 색차 블록에 해당하는지 여부가 판단될 수 있다. 여기서 기준 사이즈는 휘도 블록의 변환 스킵 조건과 동일하게 설정할 수 있다. 예를 들어, 기준 사이즈는 변환 스킵 최대 사이즈 정보에 기반하여 결정될 수 있는데, 변환 스킵 최대 사이즈 정보는 휘도 및 색차 성분에 공통적으로 적용된다. 휘도 블록과 색차 블록에 대하여 변환 스킵을 적용하기 위한 기준 사이즈가 동일하게 설정되므로, 인코더는 휘도 블록과 색차 블록에 대하여 각각 기준 사이즈를 지시하는 정보를 별도로 전송할 필요없이, 단일한 정보(변환 스킵 최대 사이즈 정보)를 디코더로 전송함으로써 시그널링 오버헤드를 저감시킬 수 있다.According to an embodiment of the present specification, a transform skip may be applied to a color difference block, and in order to determine whether to apply a transform skip to a color difference block, a transform skip flag indicating whether a transform skip is applied to the color difference block is used. I can. However, a condition for applying the transform skip to the color difference block may be set, and the transform skip condition of the color difference block may be determined based on the size of the current block and the tree type of the current block. That is, the size of the current block must be smaller than or equal to the reference size in consideration of coding complexity, and the tree type (single tree or dual tree chroma) of the current block is a condition for determining whether the current block corresponds to a color difference block. It may be determined whether it corresponds to a block. Here, the reference size may be set equal to the conversion skip condition of the luminance block. For example, the reference size may be determined based on the transform skip maximum size information, and the transform skip maximum size information is commonly applied to luminance and color difference components. Since the reference size for applying the transform skip to the luminance block and the chrominance block is set identically, the encoder does not need to separately transmit information indicating the reference size for the luminance block and the chrominance block, and single information (transform skip maximum The signaling overhead can be reduced by transmitting the size information) to the decoder.
실시예 2Example 2
도 26은 본 명세서의 실시예에 따른 듀얼 트리에서 색차 블록 및 대응하는 휘도 블록의 예를 도시한다.26 illustrates an example of a color difference block and a corresponding luminance block in a dual tree according to an embodiment of the present specification.
상술한 바와 같이, 변환 스킵 및 변환 부호화 관련 인덱스가 통합되어 관리될 수 있는데(tu_mts_idx), 이는 휘도 블록에만 사용될 수 있다. 즉, 색차 블록에서는 변환 스킵 및 변환 부호화 관련 인덱스가 없으며, 이는 색차 블록에 변환 스킵이 사용되지 않음을 의미한다. As described above, the transform skip and the transcoding related index may be integrated and managed (tu_mts_idx), which may be used only for the luminance block. That is, in the chrominance block, there are no indexes related to transform skip and transcoding, which means that transform skip is not used in the chrominance block.
TGM(text and graphics with motion) 영상에서는 변환 스킵이 많이 사용되며, 많은 압축 성능 향상 결과를 보여준다. 이에, 본 실시예는 색차 블록에 적응적으로 변환 스킵을 적용하는 방법을 제안한다.Transform skips are often used in text and graphics with motion (TGM) images, and result in a lot of improvement in compression performance. Accordingly, this embodiment proposes a method of adaptively applying a transform skip to a color difference block.
현재 색차 블록에 대응하는(co-located) 휘도 블록의 변환 스킵 여부에 따라 적응적으로 색차 블록에 변환 스킵을 적용할 수 있다. 즉, 현재 색차 블록에 대응하는 휘도 블록이 변환 스킵이 적용되었을 경우, 색차 블록에 동일하게 변환 스킵을 적용한다. 일반적으로 휘도 영상과 색차 영상은 서로 상관도(correlation)가 높은 특성을 갖고 있으며, 따라서 휘도 블록에 변환 스킵이 적용되었을 경우 그에 대응하는 색차 블록도 변환 스킵을 적용하는 것이 확률적으로 부호화 효율 향상에 도움이 된다. 본 실시예와 같이 휘도 블록의 변환 스킵 여부에 따라 색차 블록에 적응적으로 변환 스킵을 적용할 경우, 추가적인 변환 스킵 적용 여부 정보를 전송할 필요가 없기 때문에 보다 효율적으로 색차 블록에 변환 스킵 적용을 수행할 수 있다. Transformation skip may be adaptively applied to the chrominance block according to whether the luminance block co-located to the current chrominance block is skipped. That is, when the luminance block corresponding to the current color difference block is applied with the transform skip, the transform skip is applied to the color difference block in the same manner. In general, a luminance image and a chrominance image have high correlation characteristics. Therefore, when a transformation skip is applied to a luminance block, applying the transformation skip to the corresponding chrominance block is probabilistically improving coding efficiency. It helps. In the case of adaptively applying the transformation skip to the color difference block according to whether or not the luminance block is skipped, as in this embodiment, since there is no need to transmit additional information on whether to apply the transformation skip, the application of the transformation skip to the color difference block is more efficient. I can.
이 방법은 타일 그룹 타입이 I, P, B 경우 모두 적용할 수 있으며, 타일 그룹 타입이 I일 경우 듀얼 트리 적용 유무에 상관없이 모두 적용할 수 있다. 즉, 도 26과 같이 듀얼 트리가 적용되었을 경우, 현재 색차 블록에 대응하는 휘도 블록의 센터 위치(CR) (색차 화면 내 예측 DM 모드 시의 휘도 모드 유도 방법과 동일)에 해당하는 휘도 블록의 변환 스킵 적용 유무를 통해 현재 색차 블록에 적응적으로 변환 스킵을 적용한다. 또한, CR 위치 외에 휘도 블록에서 좌상측 위치(TL), 우상측 위치(TR), 좌하측 위치(BL), 우하측 위치(BR)의 변환 스킵 적용 유무를 이용할 수 있다.This method can be applied when the tile group type is I, P, and B, and when the tile group type is I, it can be applied regardless of whether or not dual tree is applied. That is, when the dual tree as shown in FIG. 26 is applied, the conversion of the luminance block corresponding to the center position (CR) of the luminance block corresponding to the current color difference block (same as the luminance mode derivation method in the prediction DM mode in the color difference screen) Transformation skip is adaptively applied to the current color difference block through the presence or absence of skip application. In addition to the CR position, it is possible to use whether or not to apply the transform skip of the upper left position (TL), the upper right position (TR), the lower left position (BL), and the lower right position (BR) in the luminance block.
또한, 색차 블록의 변환 스킵 여부 판단 시, 현재 색차 블록에 대응하는 휘도 블록이 변환 스킵을 사용할 경우, 현재 색차 블록의 변환 스킵 여부를 지시하는 변환 스킵 플래그가 전송될 수 있다. 즉, 현재 색차 블록에서 변환 스킵을 적용할지 여부를 때 인코더는 RD 비용의 계산을 통해 색차 블록에 대한 변환 스킵을 적용할지 여부를 결정하며, 이 정보(변환 스킵 플래그)를 디코더에 전송한다. 변환 스킵 플래그는 CABAC을 통해 인코딩/디코딩될 수 있고, by-pass coding 혹은 context model이 사용될 수도 있다.In addition, when determining whether to skip conversion of a color difference block, when the luminance block corresponding to the current color difference block uses the conversion skip, a conversion skip flag indicating whether to skip conversion of the current color difference block may be transmitted. That is, when determining whether to apply the transform skip to the current color difference block, the encoder determines whether to apply the transform skip to the color difference block through calculation of the RD cost, and transmits this information (transform skip flag) to the decoder. The transform skip flag may be encoded/decoded through CABAC, and by-pass coding or context model may be used.
현재 색차 블록의 변환 스킵 여부 판단 시, 인코더/디코더는 휘도 블록과 같이 현재 색차 블록의 크기가 32x32 이하일 경우에만 적용 유무를 판단할 수 있다. 또한, 인코더/디코더는 현재 블록의 컬러 포맷에 따라 변환 스킵 적용 여부를 판단할 수 있다. 예를 들어, 현재 컬러 포맷이 4:2:0인 경우, 인코더/디코더는 색차 블록의 크기가 16x16 이하일 경우에만 적용 유무를 판단할 수 있다. 또한, 인코더/디코더는 현재 블록이 속한 영역(예: 픽처, 슬라이스, 타일 그룹)의 타입에 따라 변환 스킵 적용 여부를 결정할 수 있다. 예를 들어, 현재 타일 그룹의 타입이 I 인 경우 블록 사이즈가 32x32 또는 16x16 이하일 경우에만 인코더/디코더는 변환 스킵 적용 유무를 판단할 수 있다. 현재 타일 그룹의 타입이 P 또는 B인 경우 블록 사이즈가 16x16 보다 작은 경우 (8x8, 4x4 혹은 2x2 이하 일 경우) 변환 스킵 적용 유무를 판단할 수 있다. 앞선 방법을 통해 변환 부호화를 수행하지 않은 블록은 기존과 동일한 방법을 통해 부호화 및 복호화를 수행할 수 있다. When determining whether to skip conversion of the current color difference block, the encoder/decoder may determine whether to apply it only when the size of the current color difference block is 32x32 or less, such as a luminance block. Also, the encoder/decoder may determine whether to apply the transform skip according to the color format of the current block. For example, when the current color format is 4:2:0, the encoder/decoder may determine whether to apply the color difference block only when the size of the color difference block is 16x16 or less. Also, the encoder/decoder may determine whether to apply the transform skip according to the type of the region to which the current block belongs (eg, picture, slice, tile group). For example, when the type of the current tile group is I, the encoder/decoder may determine whether or not the transform skip is applied only when the block size is 32x32 or 16x16 or less. If the current tile group type is P or B, and the block size is less than 16x16 (if it is 8x8, 4x4, or 2x2 or less), it may be determined whether or not transform skip is applied. Blocks that have not undergone transcoding through the above method may be encoded and decoded through the same method as before.
실시예 3Example 3
상술한 바와 같이, 변환 스킵 및 변환 부호화 관련 인덱스가 통합되어 관리될 수 있는데(tu_mts_idx), 이는 휘도 블록에만 사용될 수 있다. 즉, 색차 블록에서는 변환 스킵 및 변환 부호화 관련 인덱스가 없으며, 이는 색차 블록에 변환 스킵이 사용되지 않음을 의미한다. As described above, the transform skip and the transcoding related index may be integrated and managed (tu_mts_idx), which may be used only for the luminance block. That is, in the chrominance block, there are no indexes related to transform skip and transcoding, which means that transform skip is not used in the chrominance block.
TGM(text and graphics with motion) 영상에서는 변환 스킵이 많이 사용되며, 많은 압축 성능 향상 결과를 보여준다. 이에, 본 실시예는 색차 블록에 적응적으로 변환 스킵을 적용하는 방법을 제안한다.Transform skips are often used in text and graphics with motion (TGM) images, and result in a lot of improvement in compression performance. Accordingly, this embodiment proposes a method of adaptively applying a transform skip to a color difference block.
또한, 현재 색차 블록의 변환 스킵 여부 판단 시, 인코더/디코더는 색차 블록의 인트라 예측 모드에 따라 변환 스킵 적용 유무를 적응적으로 판단할 수 있다. 즉, 현재 색차 블록에 대응하는 휘도 블록이 변환 스킵 방법을 사용하며 색차 블록의 화면 내 예측 모드가 DM 모드 (direct mode, 휘도 블록의 화면 내 예측 모드 사용 방법) 혹은 CCLM(cross-component linear model) 모드일 경우에만 현재 색차 블록에 변환 스킵을 적용할 수 있다. 현재 색차 블록의 인트라 예측 모드가 DM 모드 혹은 CCLM 모드일 경우 휘도 블록 과의 상관도가 높다는 것을 의미하며, 따라서 휘도 블록의 정보를 사용하는 것이 보다 높은 확률로 부호화 효율 향상에 도움이 될 수 있다. 이 방법은 현재 색차 블록의 화면 내 예측 모드가 DM 모드일 경우에만 사용할 수도 있으며, CCLM 모드일 경우에만 사용할 수도 있다. 또한, 이 방법은 현재 휘도 블록 및 색차 블록이 인트라 예측 모드일 경우에 적용 가능하다. 현재 색차 블록이 인트라 예측 모드가 아닐 경우에는 변환 스킵 방법이 사용되지 않거나, 상술한 바와 같이 대응하는 휘도 블록이 변환 스킵을 사용할 경우 색차 블록에 변환 스킵을 적용할 수 있다.In addition, when determining whether to skip the transform of the current color difference block, the encoder/decoder may adaptively determine whether or not to apply the transform skip according to the intra prediction mode of the color difference block. That is, the luminance block corresponding to the current chrominance block uses the transform skip method, and the intra prediction mode of the chrominance block is the DM mode (direct mode, a method of using the luminance block's intra prediction mode) or CCLM (cross-component linear model). Only in the mode, the transform skip can be applied to the current color difference block. When the intra prediction mode of the current color difference block is the DM mode or the CCLM mode, it means that the correlation with the luminance block is high, and therefore, using information of the luminance block may help improve coding efficiency with a higher probability. This method may be used only when the intra prediction mode of the current color difference block is the DM mode, or may be used only when the CCLM mode is used. Also, this method is applicable when the current luminance block and color difference block are in the intra prediction mode. If the current color difference block is not in the intra prediction mode, the transform skip method is not used, or if the corresponding luminance block uses transform skip as described above, the transform skip may be applied to the color difference block.
이 방법은 타일 그룹 타입이 I, P, B 경우 모두 적용할 수 있으며, 타일 그룹 타입이 I일 경우 듀얼 트리 적용 유무에 상관없이 모두 적용할 수 있다. 즉, 도 26과 같이 듀얼 트리가 적용되었을 경우, 현재 색차 블록에 대응하는 휘도 블록의 센터 위치(CR) (색차 화면 내 예측 DM 모드 시의 휘도 모드 유도 방법과 동일)에 해당하는 휘도 블록의 변환 스킵 적용 유무를 통해 현재 색차 블록에 적응적으로 변환 스킵을 적용한다. 또한, CR 위치 외에 휘도 블록에서 좌상측 위치(TL), 우상측 위치(TR), 좌하측 위치(BL), 우하측 위치(BR)의 변환 스킵 적용 유무를 이용할 수 있다.This method can be applied when the tile group type is I, P, and B, and when the tile group type is I, it can be applied regardless of whether or not dual tree is applied. That is, when the dual tree as shown in FIG. 26 is applied, the conversion of the luminance block corresponding to the center position (CR) of the luminance block corresponding to the current color difference block (same as the luminance mode derivation method in the prediction DM mode in the color difference screen) Transformation skip is adaptively applied to the current color difference block through the presence or absence of skip application. In addition to the CR position, it is possible to use whether or not to apply the transform skip of the upper left position (TL), the upper right position (TR), the lower left position (BL), and the lower right position (BR) in the luminance block.
또한, 색차 블록의 변환 스킵 여부 판단 시, 현재 색차 블록의 변환 스킵 여부를 지시하는 변환 스킵 플래그가 전송될 수 있다. 즉, 현재 색차 블록에서 변환 스킵을 적용할지 여부를 때 인코더는 RD 비용의 계산을 통해 색차 블록에 대한 변환 스킵을 적용할지 여부를 결정하며, 이 정보(변환 스킵 플래그)를 디코더에 전송한다. 변환 스킵 플래그는 CABAC을 통해 인코딩/디코딩될 수 있고, by-pass coding 혹은 context model이 사용될 수도 있다.In addition, when determining whether to skip transformation of a color difference block, a transformation skip flag indicating whether to skip transformation of a current color difference block may be transmitted. That is, when determining whether to apply the transform skip to the current color difference block, the encoder determines whether to apply the transform skip to the color difference block through calculation of the RD cost, and transmits this information (transform skip flag) to the decoder. The transform skip flag may be encoded/decoded through CABAC, and by-pass coding or context model may be used.
현재 색차 블록의 변환 스킵 여부 판단 시, 인코더/디코더는 휘도 블록과 같이 현재 색차 블록의 크기가 32x32 이하일 경우에만 적용 유무를 판단할 수 있다. 또한, 인코더/디코더는 현재 블록의 컬러 포맷에 따라 변환 스킵 적용 여부를 판단할 수 있다. 예를 들어, 현재 컬러 포맷이 4:2:0인 경우, 인코더/디코더는 색차 블록의 크기가 16x16 이하일 경우에만 적용 유무를 판단할 수 있다. 또한, 인코더/디코더는 현재 블록이 속한 영역(예: 픽처, 슬라이스, 타일 그룹)의 타입에 따라 변환 스킵 적용 여부를 결정할 수 있다. 예를 들어, 현재 타일 그룹의 타입이 I 인 경우 블록 사이즈가 32x32 또는 16x16 이하일 경우에만 인코더/디코더는 변환 스킵 적용 유무를 판단할 수 있다. 현재 타일 그룹의 타입이 P 또는 B인 경우 블록 사이즈가 16x16 보다 작은 경우 (8x8, 4x4 혹은 2x2 이하 일 경우) 변환 스킵 적용 유무를 판단할 수 있다. 앞선 방법을 통해 변환 부호화를 수행하지 않은 블록은 기존과 동일한 방법을 통해 부호화 및 복호화를 수행할 수 있다. When determining whether to skip conversion of the current color difference block, the encoder/decoder may determine whether to apply it only when the size of the current color difference block is 32x32 or less, such as a luminance block. Also, the encoder/decoder may determine whether to apply the transform skip according to the color format of the current block. For example, when the current color format is 4:2:0, the encoder/decoder may determine whether to apply the color difference block only when the size of the color difference block is 16x16 or less. Also, the encoder/decoder may determine whether to apply the transform skip according to the type of the region to which the current block belongs (eg, picture, slice, tile group). For example, when the type of the current tile group is I, the encoder/decoder may determine whether or not the transform skip is applied only when the block size is 32x32 or 16x16 or less. If the current tile group type is P or B, and the block size is less than 16x16 (if it is 8x8, 4x4, or 2x2 or less), it may be determined whether or not transform skip is applied. Blocks that have not undergone transcoding through the above method may be encoded and decoded through the same method as before.
실시예 4Example 4
상술한 바와 같이, 변환 스킵 및 변환 부호화 관련 인덱스가 통합되어 관리될 수 있으나(tu_mts_idx), 이는 휘도 블록에만 사용될 수 있고, 블록 크기가 32x32 보다 작거나 같은 경우에 사용된다. (MTS 조건과 동일)As described above, the transform skip and transform encoding related indexes may be integrated and managed (tu_mts_idx), but this may be used only for a luminance block, and is used when the block size is less than or equal to 32x32. (Same as MTS conditions)
변환 스킵을 위한 조건은 I, P 및 B 타일 그룹 타입에 모두 적용될 수 있고, P/B 타일 그룹 타입에서도 32x32 보다 작을 경우 변환 스킵을 위한 플래그(변환 스킵 플래그)가 전송될 수 있다. 하지만 P/B 타일 그룹 타입은 I 타일 그룹 타입 보다 잔차 신호가 매우 작은 특성을 갖기 때문에 변환 스킵 효율이 감소한다.The condition for transform skip may be applied to all I, P, and B tile group types, and a flag for transform skip (transform skip flag) may be transmitted when the P/B tile group type is smaller than 32x32. However, since the P/B tile group type has a very small residual signal than the I tile group type, the conversion skip efficiency decreases.
따라서, 본 실시예는 P/B 타일 그룹 타입에 속한 블록에 대하여 변환 스킵을 위한 블록 크기 조건을 변경함으로써, 보다 효율적으로 변환 스킵 정보(변환 스킵 플래그)를 전송하는 방법을 제안한다. 즉, 다음의 표 12 내지 표 14와 같이 타일 그룹 타입에 따라 변환 스킵 적용 유무가 결정될 수 있다.Accordingly, this embodiment proposes a method of more efficiently transmitting transform skip information (transform skip flag) by changing a block size condition for transform skip for a block belonging to a P/B tile group type. That is, as shown in Tables 12 to 14, whether or not to apply the transform skip may be determined according to the tile group type.
Figure PCTKR2020003187-appb-T000012
Figure PCTKR2020003187-appb-T000012
Figure PCTKR2020003187-appb-T000013
Figure PCTKR2020003187-appb-T000013
Figure PCTKR2020003187-appb-T000014
Figure PCTKR2020003187-appb-T000014
또한, B/P 타일 그룹 타입에서도 현재 블록의 예측 모드(Intra 또는 Inter)에 따라 조건을 달리 할 수 있다. 즉, 다음의 표 15 내지 19와 같이 타일 그룹 타일과 블록 타입(intra 또는 inter)에 따라 변환 스킵 적용 유무가 결정될 수 있다.In addition, even in the B/P tile group type, conditions may be different according to the prediction mode (Intra or Inter) of the current block. That is, as shown in Tables 15 to 19, whether or not transform skip is applied may be determined according to a tile group tile and a block type (intra or inter).
Figure PCTKR2020003187-appb-T000015
Figure PCTKR2020003187-appb-T000015
Figure PCTKR2020003187-appb-T000016
Figure PCTKR2020003187-appb-T000016
Figure PCTKR2020003187-appb-T000017
Figure PCTKR2020003187-appb-T000017
Figure PCTKR2020003187-appb-T000018
Figure PCTKR2020003187-appb-T000018
Figure PCTKR2020003187-appb-T000019
Figure PCTKR2020003187-appb-T000019
본 실시예에서 제안하는 방법을 통해 현재 블록 크기에 변환 스킵이 적용되지 않을 경우에는 변환 스킵에 관련된 정보(예: 변환 스킵 플래그)는 전송되지 않는다. 또한 앞에서 설명된 방법을 통해 변환 부호화를 수행 여부가 결정된 블록에 대하여 인코더/디코더는 기존과 동일한 방법을 통해 부호화 및 복호화를 수행할 수 있다.When the transform skip is not applied to the current block size through the method proposed in the present embodiment, information related to transform skip (eg, transform skip flag) is not transmitted. In addition, the encoder/decoder may perform encoding and decoding through the same method as before for a block for which transcoding is determined through the method described above.
비트스트림Bitstream
상술한 본 명세서의 실시예들을 기반으로 인코딩 장치(100)에 의하여 도출된 인코딩된 정보(예: 인코딩된 비디오/영상 정보)는 비트스트림 형태로 출력될 수 있다. 인코딩된 정보는 비트스트림 형태로 NAL(network abstraction layer) 유닛 단위로 전송 또는 저장될 수 있다. 비트스트림은 네트워크를 통하여 전송될 수 있고, 또는 비 일시적(non-transitory) 디지털 저장매체에 저장될 수 있다. 또한, 상술한 바와 같이 비트스트림은 인코딩 장치(100)에서 디코딩 장치(200)로 바로 전송되지 않고, 외부 서버(예: 컨텐츠 스트리밍 서버)를 통하여 스트리밍/다운로드 서비스될 수도 있다. 여기서 네트워크는 방송망 및/또는 통신망 등을 포함할 수 있고, 디지털 저장매체는 USB, SD, CD, DVD, 블루레이, HDD, SSD 등 다양한 저장매체를 포함할 수 있다.The encoded information (eg, encoded video/video information) derived by the encoding apparatus 100 based on the above-described embodiments of the present specification may be output in a bitstream form. The encoded information may be transmitted or stored in a bitstream form in units of network abstraction layer (NAL) units. The bitstream may be transmitted over a network or may be stored in a non-transitory digital storage medium. In addition, as described above, the bitstream is not directly transmitted from the encoding device 100 to the decoding device 200, but may be provided with a streaming/download service through an external server (eg, a content streaming server). Here, the network may include a broadcasting network and/or a communication network, and the digital storage medium may include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, and SSD.
도 27은 본 명세서의 실시예에 따른 비디오 신호를 인코딩하기 위한 흐름도의 예이다. 도 27의 동작들은 인코딩 장치(100) 또는 비디오 신호 처리 장치(500)에 의해 수행될 수 있다.27 is an example of a flowchart for encoding a video signal according to an embodiment of the present specification. The operations of FIG. 27 may be performed by the encoding device 100 or the video signal processing device 500.
S2710 단계에서, 인코더는 색차(chroma) 성분에 해당하는 데이터를 포함하는 현재 블록에 대하여, 현재 블록의 듀얼 트리 타입 및 현재 블록의 사이즈에 기반하여 변환 스킵을 위한 조건을 확인한다. In step S2710, the encoder checks a condition for skipping a transform based on a dual tree type of the current block and a size of the current block with respect to the current block including data corresponding to a chroma component.
일 실시예에서, 인코더는 현재 블록의 사이즈가 변환 스킵 최대 사이즈(MaxTsSize)보다 작고, 현재 블록의 듀얼 트리 타입(treetype)이 색차 듀얼 트리(DUAL_TREE_CHROMA)에 해당하는 경우 상기 변환 스킵을 위한 조건이 만족되는 것으로 결정할 수 있다.In one embodiment, when the size of the current block is smaller than the maximum transform skip size (MaxTsSize) and the dual tree type of the current block corresponds to the color difference dual tree (DUAL_TREE_CHROMA), the condition for the transform skip is satisfied. Can be determined to be.
일 실시예에서, 변환 스킵 최대 사이즈(MaxTsSize)는 변환 스킵 최대 사이즈 정보(예: log2_transform_skip_max_size_minus2)에 기반하여 결정될 수 있다. 예를 들어, 변환 스킵 최대 사이즈(MaxTsSize)는 1 << (log2_transform_skip_max_size_minus2 + 2)로 설정될 수 있다.In an embodiment, the transform skip maximum size (MaxTsSize) may be determined based on transform skip maximum size information (eg, log2_transform_skip_max_size_minus2). For example, the maximum transform skip size (MaxTsSize) may be set to 1 << (log2_transform_skip_max_size_minus2 + 2).
여기서 변환 스킵 최대 사이즈 정보는 현재 블록을 포함하는 상위 계층 성분에 대한 신택스 요소로서 디코더로 전송될 수 있다. 예를 들어, 변환 스킵 최대 사이즈 정보는 표 11과 같이 픽처에 대한 신택스 요소로서 전송될 수 있으며, 또한 시퀀스에 대한 신택스 요소로서 전송될 수도 있다.Here, the transform skip maximum size information may be transmitted to the decoder as a syntax element for an upper layer component including the current block. For example, the transform skip maximum size information may be transmitted as a syntax element for a picture as shown in Table 11, and may also be transmitted as a syntax element for a sequence.
일 실시예에서, 변환 스킵 최대 사이즈는, 현재 블록이 속한 타일 그룹(tile group)의 타입에 기반하여 결정될 수 있다. 예를 들어, 표 12 내지 표 19와 같이 현재 타일 그룹이 I 타일 그룹인지, 또는 B/P 타일 그룹인지에 따라 변환 스킵 최대 사이즈가 설정될 수 있다.In an embodiment, the maximum transform skip size may be determined based on a type of a tile group to which the current block belongs. For example, as shown in Tables 12 to 19, the maximum transform skip size may be set according to whether the current tile group is an I tile group or a B/P tile group.
일 실시예에서, 현재 타일 그룹이 I-타일 그룹에 해당하면, 변환 스킵 최대 사이즈는 제1 기준 사이즈로 결정되고, 현재 타일 그룹이 B-타일 그룹 또는 P-타일 그룹에 해당하면, 변환 스킵 최대 사이즈는 제2 기준 사이즈로 결정될 수 있다. 여기서 상기 제1 기준 사이즈는 제2 기준 사이즈보다 큰 값이다. 즉, B-타일 그룹 또는 P-타일 그룹에 해당하는 타일 그룹에 대한 변환 스킵 최대 사이즈는 I-타일 그룹보다 상대적으로 작도록 설정될 수 있다.In an embodiment, if the current tile group corresponds to the I-tile group, the maximum transform skip size is determined as the first reference size, and if the current tile group corresponds to the B-tile group or the P-tile group, the transform skip maximum The size may be determined as the second reference size. Here, the first reference size is a value larger than the second reference size. That is, the maximum transform skip size for the tile group corresponding to the B-tile group or the P-tile group may be set to be relatively smaller than that of the I-tile group.
일 실시예에서, 변환 스킵 최대 사이즈는 현재 블록이 속한 타일 그룹의 타입 및 현재 블록의 예측 타입에 기반하여 결정될 수 있다. 여기서 예측 타입은 인트라 예측 타입 또는 인터 예측 타입 중 하나를 포함한다. 예를 들어, 표 15 내지 표 19와 같이 현재 타일 그룹의 타입과 함께 현재 블록의 예측 타입(Intra/Inter)에 기반하여 변환 스킵 최대 사이즈가 설정될 수 있다.In an embodiment, the maximum transform skip size may be determined based on a type of a tile group to which the current block belongs and a prediction type of the current block. Here, the prediction type includes either an intra prediction type or an inter prediction type. For example, as shown in Tables 15 to 19, the maximum transform skip size may be set based on the prediction type (Intra/Inter) of the current block together with the type of the current tile group.
S2720 단계에서, 인코더는 변환 스킵을 위한 조건이 만족되면 상기 현재 블록에 대하여 상기 변환 스킵을 적용할지 여부를 결정한다. 변환 스킵을 위한 조건이 만족되는 경우, 인코더는 변환을 수행하는 경우와 변환을 수행하지 않는 경우에 대한 비교를 통해 변환 스킵 여부를 결정할 수 있다.In step S2720, the encoder determines whether to apply the transform skip to the current block when the condition for transform skip is satisfied. When the condition for skipping the transform is satisfied, the encoder may determine whether to skip the transform through comparison between the case of performing the transform and the case of not performing the transform.
S2730 단계에서, 인코더는 현재 블록에 대한 변환 스킵 플래그(예: transform_skip_flag)를 인코딩한다. 예를 들어, 현재 블록에 변환이 적용되는 경우 변환 스킵 플래그는 0으로 인코딩되고, 현재 블록에 변환이 적용되지 않는 경우 변환 스킵 플래그는 1로 인코딩될 수 있다. 다른 예로서, 인코더는 MTS 인덱스(tu_mts_idx)를 사용하여 변환 스킵 여부를 지시할 수도 있다.In step S2730, the encoder encodes a transform skip flag (eg, transform_skip_flag) for the current block. For example, when a transform is applied to the current block, the transform skip flag may be encoded as 0, and if the transform is not applied to the current block, the transform skip flag may be encoded as 1. As another example, the encoder may indicate whether to skip transform using the MTS index (tu_mts_idx).
도 28은 본 명세서의 실시예에 따른 비디오 신호를 디코딩하기 위한 흐름도의 예이다. 도 28의 동작들은 디코딩 장치(200) 또는 비디오 신호 처리 장치(500)에 의해 수행될 수 있다.28 is an example of a flowchart for decoding a video signal according to an embodiment of the present specification. The operations of FIG. 28 may be performed by the decoding apparatus 200 or the video signal processing apparatus 500.
S2810 단계에서, 디코더는 색차(chroma) 성분에 해당하는 데이터를 포함하는 현재 블록에 대하여, 현재 블록의 듀얼 트리 타입 및 상기 현재 블록의 사이즈에 기반하여 변환 스킵을 위한 조건을 확인한다.In step S2810, the decoder checks a condition for skipping a transform based on a dual tree type of the current block and a size of the current block with respect to the current block including data corresponding to a chroma component.
일 실시예에서, 디코더는 현재 블록의 사이즈가 변환 스킵 최대 사이즈(MaxTsSize)보다 작고, 현재 블록의 듀얼 트리 타입(treetype)이 색차 듀얼 트리(DUAL_TREE_CHROMA)에 해당하는 경우 상기 변환 스킵을 위한 조건이 만족되는 것으로 결정할 수 있다.In one embodiment, when the size of the current block is smaller than the maximum transform skip size (MaxTsSize), and the dual tree type of the current block corresponds to the color difference dual tree (DUAL_TREE_CHROMA), the condition for the transform skip is satisfied. Can be determined to be.
일 실시예에서, 변환 스킵 최대 사이즈(MaxTsSize)는 변환 스킵 최대 사이즈 정보(예: log2_transform_skip_max_size_minus2)에 기반하여 결정될 수 있다. 예를 들어, 변환 스킵 최대 사이즈(MaxTsSize)는 1 << (log2_transform_skip_max_size_minus2 + 2)로 설정될 수 있다. In an embodiment, the transform skip maximum size (MaxTsSize) may be determined based on transform skip maximum size information (eg, log2_transform_skip_max_size_minus2). For example, the maximum transform skip size (MaxTsSize) may be set to 1 << (log2_transform_skip_max_size_minus2 + 2).
일 실시예에서, 변환 스킵 최대 사이즈는 휘도 및 색차 성분에 공통적으로 적용되는 변환 스킵 최대 사이즈 정보에 기반하여 결정될 수 있다.In an embodiment, the transform skip maximum size may be determined based on transform skip maximum size information commonly applied to luminance and color difference components.
여기서 변환 스킵 최대 사이즈 정보는 현재 블록을 포함하는 상위 계층 성분에 대한 신택스 요소로서 인코더로부터 전송될 수 있다. 예를 들어, 변환 스킵 최대 사이즈 정보는 표 11과 같이 픽처에 대한 신택스 요소로서 전송될 수 있으며, 또한 시퀀스에 대한 신택스 요소로서 전송될 수도 있다.Here, the transform skip maximum size information may be transmitted from the encoder as a syntax element for an upper layer component including the current block. For example, the transform skip maximum size information may be transmitted as a syntax element for a picture as shown in Table 11, and may also be transmitted as a syntax element for a sequence.
일 실시예에서, 변환 스킵 최대 사이즈는, 현재 블록이 속한 타일 그룹(tile group)의 타입에 기반하여 결정될 수 있다. 예를 들어, 표 12 내지 표 19와 같이 현재 타일 그룹이 I 타일 그룹인지, 또는 B/P 타일 그룹인지에 따라 변환 스킵 최대 사이즈가 설정될 수 있다.In an embodiment, the maximum transform skip size may be determined based on a type of a tile group to which the current block belongs. For example, as shown in Tables 12 to 19, the maximum transform skip size may be set according to whether the current tile group is an I tile group or a B/P tile group.
일 실시예에서, 현재 타일 그룹이 I-타일 그룹에 해당하면, 변환 스킵 최대 사이즈는 제1 기준 사이즈로 결정되고, 현재 타일 그룹이 B-타일 그룹 또는 P-타일 그룹에 해당하면, 변환 스킵 최대 사이즈는 제2 기준 사이즈로 결정될 수 있다. 여기서 상기 제1 기준 사이즈는 제2 기준 사이즈보다 큰 값이다. 즉, B-타일 그룹 또는 P-타일 그룹에 해당하는 타일 그룹에 대한 변환 스킵 최대 사이즈는 I-타일 그룹보다 상대적으로 작도록 설정될 수 있다.In an embodiment, if the current tile group corresponds to the I-tile group, the maximum transform skip size is determined as the first reference size, and if the current tile group corresponds to the B-tile group or the P-tile group, the transform skip maximum The size may be determined as the second reference size. Here, the first reference size is a value larger than the second reference size. That is, the maximum transform skip size for the tile group corresponding to the B-tile group or the P-tile group may be set to be relatively smaller than that of the I-tile group.
일 실시예에서, 변환 스킵 최대 사이즈는 현재 블록이 속한 타일 그룹의 타입 및 현재 블록의 예측 타입에 기반하여 결정될 수 있다. 여기서 예측 타입은 인트라 예측 타입 또는 인터 예측 타입 중 하나를 포함한다. 예를 들어, 표 15 내지 표 19와 같이 현재 타일 그룹의 타입과 함께 현재 블록의 예측 타입(Intra/Inter)에 기반하여 변환 스킵 최대 사이즈가 설정될 수 있다.In an embodiment, the maximum transform skip size may be determined based on a type of a tile group to which the current block belongs and a prediction type of the current block. Here, the prediction type includes either an intra prediction type or an inter prediction type. For example, as shown in Tables 15 to 19, the maximum transform skip size may be set based on the prediction type (Intra/Inter) of the current block together with the type of the current tile group.
S2820 단계에서, 디코더는 상기 변환 스킵을 위한 조건이 만족되면, 현재 블록의 변환 스킵 플래그(예: transform_skip_flag)를 획득(파싱)한다. S2830 단계에서, 디코더는 변환 스킵 플래그에 기반하여 현재 블록에 대한 레지듀얼 코딩을 수행한다. 예를 들어, 변환 스킵 플래그가 0이면 현재 블록에 역변환을 적용하고, 역변환을 통해 도출된 레지듀얼 신호에 대한 디코딩을 수행할 수 있다. 변환 스킵 플래그가 1이면 현재 블록에 역변환을 적용하지 않고 현재 블록의 레지듀얼 신호에 대한 디코딩을 수행할 수 있다. S2840 단계에서, 디코더는 레지듀얼 코딩을 통해 현재 블록의 레지듀얼 샘플을 생성한다.In step S2820, when the condition for the transform skip is satisfied, the decoder acquires (parses) a transform skip flag (eg, transform_skip_flag) of the current block. In step S2830, the decoder performs residual coding on the current block based on the transform skip flag. For example, if the transform skip flag is 0, an inverse transform may be applied to the current block, and a residual signal derived through the inverse transform may be decoded. If the transform skip flag is 1, decoding of the residual signal of the current block may be performed without applying an inverse transform to the current block. In step S2840, the decoder generates a residual sample of the current block through residual coding.
도 5를 참조하여 설명한 것과 같이, 본 명세서의 실시예에 따른 비디오 신호 처리 장치(500)는, 비디오 신호를 저장하는 메모리(520)와, 상기 메모리(520)와 결합된 프로세서(510)를 포함할 수 있다. As described with reference to FIG. 5, the video signal processing apparatus 500 according to the exemplary embodiment of the present specification includes a memory 520 for storing a video signal, and a processor 510 coupled to the memory 520. can do.
비디오 신호의 인코딩을 위하여, 상기 프로세서(510)는 색차(chroma) 성분에 해당하는 데이터를 포함하는 현재 블록에 대하여, 상기 현재 블록의 듀얼 트리 타입(dual tree type) 및 현재 블록의 사이즈에 기반하여 변환 스킵을 위한 조건을 확인하고, 상기 변환 스킵을 위한 조건이 만족되면, 상기 현재 블록에 대하여 상기 변환 스킵을 적용할지 여부를 결정하고, 상기 현재 블록에 대한 변환 스킵 플래그를 인코딩하도록 설정된다.For encoding of a video signal, the processor 510 provides for a current block including data corresponding to a chroma component, based on a dual tree type of the current block and a size of the current block. The transform skip condition is checked, and if the transform skip condition is satisfied, it is determined whether to apply the transform skip to the current block, and the transform skip flag for the current block is encoded.
일 실시예에서, 상기 프로세서(510)는 상기 현재 블록의 사이즈가 변환 스킵 최대 사이즈보다 작고, 상기 현재 블록의 듀얼 트리 타입이 색차 듀얼 트리에 해당하는 경우 상기 변환 스킵을 위한 조건이 만족되는 것으로 결정할 수 있다.In one embodiment, when the size of the current block is smaller than the maximum transform skip size and the dual tree type of the current block corresponds to a color difference dual tree, the processor 510 determines that the condition for the transform skip is satisfied. I can.
일 실시예에서, 상기 변환 스킵 최대 사이즈는, 변환 스킵 최대 사이즈 정보에 기반하여 결정되고, 상기 변환 스킵 최대 사이즈 정보는, 상기 현재 블록을 포함하는 상위 계층 성분의 신택스 요소로서 디코더로 전송될 수 있다.In an embodiment, the transform skip maximum size is determined based on transform skip maximum size information, and the transform skip maximum size information may be transmitted to a decoder as a syntax element of an upper layer component including the current block. .
일 실시예에서, 변환 스킵 최대 사이즈는 휘도 및 색차 성분에 공통적으로 적용되는 변환 스킵 최대 사이즈 정보에 기반하여 결정될 수 있다.In an embodiment, the transform skip maximum size may be determined based on transform skip maximum size information commonly applied to luminance and color difference components.
일 실시예에서, 상기 변환 스킵 최대 사이즈는 상기 현재 블록이 속한 타일 그룹(tile group)의 타입에 기반하여 결정될 수 있다.In an embodiment, the maximum transform skip size may be determined based on a type of a tile group to which the current block belongs.
일 실시예에서, 상기 타일 그룹이 I-타일 그룹에 해당하면 상기 변환 스킵 최대 사이즈는 제1 기준 사이즈로 결정되고, 상기 타일 그룹이 B-타일 그룹 또는 P-타일 그룹에 해당하면 상기 변환 스킵 최대 사이즈는 제2 기준 사이즈로 결정되며, 상기 제1 기준 사이즈는 제2 기준 사이즈보다 큰 값일 수 있다.In an embodiment, if the tile group corresponds to an I-tile group, the transform skip maximum size is determined as a first reference size, and if the tile group corresponds to a B-tile group or a P-tile group, the transform skip maximum The size is determined as a second reference size, and the first reference size may be a value larger than the second reference size.
일 실시예에서, 상기 변환 스킵 최대 사이즈는, 상기 현재 블록이 속한 타일 그룹(tile group)의 타입 및 상기 현재 블록의 예측 타입에 기반하여 결정되고, 상기 예측 타입은 인트라 예측 타입 또는 인터 예측 타입 중 하나를 포함할 수 있다.In one embodiment, the transform skip maximum size is determined based on a type of a tile group to which the current block belongs and a prediction type of the current block, and the prediction type is an intra prediction type or an inter prediction type. It can contain one.
비디오 신호의 디코딩을 위하여, 상기 프로세서(510)는 색차(chroma) 성분에 해당하는 데이터를 포함하는 현재 블록에 대하여, 상기 현재 블록의 듀얼 트리 타입 및 상기 현재 블록의 사이즈에 기반하여 변환 스킵을 위한 조건을 확인하고, 상기 변환 스킵을 위한 조건이 만족되면, 상기 현재 블록의 변환 스킵 플래그를 획득하고, 상기 변환 스킵 플래그에 기반하여 상기 현재 블록에 대한 레지듀얼 코딩을 수행하고, 상기 레지듀얼 코딩을 통해 상기 현재 블록의 레지듀얼 샘플을 생성한다.For decoding a video signal, the processor 510 performs a transform skip for a current block including data corresponding to a chroma component based on a dual tree type of the current block and a size of the current block. When a condition is checked and the condition for the transform skip is satisfied, a transform skip flag of the current block is obtained, residual coding for the current block is performed based on the transform skip flag, and the residual coding is performed. Through this, a residual sample of the current block is generated.
일 실시예에서, 상기 프로세서(510)는 상기 현재 블록의 사이즈가 변환 스킵 최대 사이즈보다 작고, 상기 현재 블록의 듀얼 트리 타입이 색차 듀얼 트리에 해당하는 경우 상기 변환 스킵을 위한 조건이 만족되는 것으로 결정할 수 있다.In one embodiment, when the size of the current block is smaller than the maximum transform skip size and the dual tree type of the current block corresponds to a color difference dual tree, the processor 510 determines that the condition for the transform skip is satisfied. I can.
일 실시예에서, 상기 변환 스킵 최대 사이즈는 인코더로부터 전송되는 변환 스킵 최대 사이즈 정보에 기반하여 결정되고, 상기 변환 스킵 최대 사이즈 정보는 상기 현재 블록을 포함하는 상위 계층 성분에 대한 신택스 요소로서 전송될 수 있다.In one embodiment, the transform skip maximum size is determined based on transform skip maximum size information transmitted from an encoder, and the transform skip maximum size information may be transmitted as a syntax element for an upper layer component including the current block. have.
일 실시예에서, 변환 스킵 최대 사이즈는 휘도 및 색차 성분에 공통적으로 적용되는 변환 스킵 최대 사이즈 정보에 기반하여 결정될 수 있다.In an embodiment, the transform skip maximum size may be determined based on transform skip maximum size information commonly applied to luminance and color difference components.
일 실시예에서, 상기 변환 스킵 최대 사이즈는 상기 현재 블록이 속한 타일 그룹(tile group)의 타입에 기반하여 결정될 수 있다.In an embodiment, the maximum transform skip size may be determined based on a type of a tile group to which the current block belongs.
일 실시예에서, 상기 타일 그룹이 I-타일 그룹에 해당하면 상기 변환 스킵 최대 사이즈는 제1 기준 사이즈로 결정되고, 상기 타일 그룹이 B-타일 그룹 또는 P-타일 그룹에 해당하면 상기 변환 스킵 최대 사이즈는 제2 기준 사이즈로 결정되며, 상기 제1 기준 사이즈는 제2 기준 사이즈보다 큰 값일 수 있다.In an embodiment, if the tile group corresponds to an I-tile group, the transform skip maximum size is determined as a first reference size, and if the tile group corresponds to a B-tile group or a P-tile group, the transform skip maximum The size is determined as a second reference size, and the first reference size may be a value larger than the second reference size.
일 실시예에서, 상기 변환 스킵 최대 사이즈는, 상기 현재 블록이 속한 타일 그룹(tile group)의 타입 및 상기 현재 블록의 예측 타입에 기반하여 결정되고, 상기 예측 타입은 인트라 예측 타입 또는 인터 예측 타입 중 하나를 포함할 수 있다.In one embodiment, the transform skip maximum size is determined based on a type of a tile group to which the current block belongs and a prediction type of the current block, and the prediction type is an intra prediction type or an inter prediction type. It can contain one.
또한, 본 발명이 적용되는 처리 방법은 컴퓨터로 실행되는 프로그램의 형태로 생산될 수 있으며, 컴퓨터가 판독할 수 있는 기록 매체에 저장될 수 있다. 본 발명에 따른 데이터 구조를 가지는 멀티미디어 데이터도 또한 컴퓨터가 판독할 수 있는 기록 매체에 저장될 수 있다. 상기 컴퓨터가 판독할 수 있는 기록 매체는 컴퓨터로 읽을 수 있는 데이터가 저장되는 모든 종류의 저장 장치 및 분산 저장 장치를 포함한다. 상기 컴퓨터가 판독할 수 있는 기록 매체는, 예를 들어, 블루레이 디스크(BD), 범용 직렬 버스(USB), ROM, PROM, EPROM, EEPROM, RAM, CD-ROM, 자기 테이프, 플로피 디스크 및 광학적 데이터 저장 장치를 포함할 수 있다. 또한, 상기 컴퓨터가 판독할 수 있는 기록 매체는 반송파(예를 들어, 인터넷을 통한 전송)의 형태로 구현된 미디어를 포함한다. 또한, 인코딩 방법으로 생성된 비트스트림이 컴퓨터가 판독할 수 있는 기록 매체에 저장되거나 유무선 통신 네트워크를 통해 전송될 수 있다.Further, the processing method to which the present invention is applied may be produced in the form of a program executed by a computer, and may be stored in a computer-readable recording medium. Multimedia data having a data structure according to the present invention can also be stored in a computer-readable recording medium. The computer-readable recording medium includes all kinds of storage devices and distributed storage devices in which computer-readable data is stored. The computer-readable recording medium includes, for example, Blu-ray disk (BD), universal serial bus (USB), ROM, PROM, EPROM, EEPROM, RAM, CD-ROM, magnetic tape, floppy disk, and optical It may include a data storage device. Further, the computer-readable recording medium includes media implemented in the form of a carrier wave (for example, transmission through the Internet). In addition, the bitstream generated by the encoding method may be stored in a computer-readable recording medium or transmitted through a wired or wireless communication network.
또한, 본 발명의 실시예는 프로그램 코드에 의한 컴퓨터 프로그램 제품으로 구현될 수 있고, 상기 프로그램 코드는 본 발명의 실시예에 의해 컴퓨터에서 수행될 수 있다. 상기 프로그램 코드는 컴퓨터에 의해 판독가능한 캐리어 상에 저장될 수 있다.In addition, an embodiment of the present invention may be implemented as a computer program product using a program code, and the program code may be executed in a computer according to the embodiment of the present invention. The program code may be stored on a carrier readable by a computer.
본 명세서의 실시예에 따른 비-일시적 컴퓨터-판독 가능한 매체(non-transitory computer-readable medium)는 하나 또는 그 이상의 프로세서들에 의해 실행되는 하나 또는 그 이상의 명령어들을 저장한다. 상기 하나 또는 그 이상의 명령어들은, 비디오 신호의 인코딩을 위하여, 색차(chroma) 성분에 해당하는 데이터를 포함하는 현재 블록에 대하여, 상기 현재 블록의 듀얼 트리 타입(dual tree type) 및 현재 블록의 사이즈에 기반하여 변환 스킵을 위한 조건을 확인하고, 상기 변환 스킵을 위한 조건이 만족되면, 상기 현재 블록에 대하여 상기 변환 스킵을 적용할지 여부를 결정하고, 상기 현재 블록에 대한 변환 스킵 플래그를 인코딩하도록 비디오 신호 처리 장치(500)(또는 인코딩 장치(100))를 제어한다.A non-transitory computer-readable medium according to an embodiment of the present specification stores one or more instructions executed by one or more processors. The one or more instructions are, for encoding a video signal, for a current block including data corresponding to a chroma component, a dual tree type of the current block and a size of the current block. A video signal to determine whether to apply the transform skip to the current block, and to encode the transform skip flag for the current block when the condition for the transform skip is checked based on the condition for the transform skip is satisfied. It controls the processing device 500 (or the encoding device 100).
일 실시예에서, 상기 하나 또는 그 이상의 명령어들은 상기 현재 블록의 사이즈가 변환 스킵 최대 사이즈보다 작고, 상기 현재 블록의 듀얼 트리 타입이 색차 듀얼 트리에 해당하는 경우 상기 변환 스킵을 위한 조건이 만족되는 것으로 결정하도록 설정될 수 있다.In one embodiment, the one or more instructions indicate that the condition for the transform skip is satisfied when the size of the current block is smaller than the maximum transform skip size and the dual tree type of the current block corresponds to the color difference dual tree. Can be set to determine.
일 실시예에서, 상기 변환 스킵 최대 사이즈는, 변환 스킵 최대 사이즈 정보에 기반하여 결정되고, 상기 변환 스킵 최대 사이즈 정보는, 상기 현재 블록을 포함하는 상위 계층 성분의 신택스 요소로서 디코더로 전송될 수 있다.In an embodiment, the transform skip maximum size is determined based on transform skip maximum size information, and the transform skip maximum size information may be transmitted to a decoder as a syntax element of an upper layer component including the current block. .
일 실시예에서, 변환 스킵 최대 사이즈는 휘도 및 색차 성분에 공통적으로 적용되는 변환 스킵 최대 사이즈 정보에 기반하여 결정될 수 있다.In an embodiment, the transform skip maximum size may be determined based on transform skip maximum size information commonly applied to luminance and color difference components.
일 실시예에서, 상기 변환 스킵 최대 사이즈는 상기 현재 블록이 속한 타일 그룹(tile group)의 타입에 기반하여 결정될 수 있다.In an embodiment, the maximum transform skip size may be determined based on a type of a tile group to which the current block belongs.
일 실시예에서, 상기 타일 그룹이 I-타일 그룹에 해당하면 상기 변환 스킵 최대 사이즈는 제1 기준 사이즈로 결정되고, 상기 타일 그룹이 B-타일 그룹 또는 P-타일 그룹에 해당하면 상기 변환 스킵 최대 사이즈는 제2 기준 사이즈로 결정되며, 상기 제1 기준 사이즈는 제2 기준 사이즈보다 큰 값일 수 있다.In an embodiment, if the tile group corresponds to an I-tile group, the transform skip maximum size is determined as a first reference size, and if the tile group corresponds to a B-tile group or a P-tile group, the transform skip maximum The size is determined as a second reference size, and the first reference size may be a value larger than the second reference size.
일 실시예에서, 상기 변환 스킵 최대 사이즈는, 상기 현재 블록이 속한 타일 그룹(tile group)의 타입 및 상기 현재 블록의 예측 타입에 기반하여 결정되고, 상기 예측 타입은 인트라 예측 타입 또는 인터 예측 타입 중 하나를 포함할 수 있다.In one embodiment, the transform skip maximum size is determined based on a type of a tile group to which the current block belongs and a prediction type of the current block, and the prediction type is an intra prediction type or an inter prediction type. It can contain one.
상기 하나 또는 그 이상의 명령어들은, 비디오 신호의 디코딩을 위하여, 색차(chroma) 성분에 해당하는 데이터를 포함하는 현재 블록에 대하여, 상기 현재 블록의 듀얼 트리 타입 및 상기 현재 블록의 사이즈에 기반하여 변환 스킵을 위한 조건을 확인하고, 상기 변환 스킵을 위한 조건이 만족되면, 상기 현재 블록의 변환 스킵 플래그를 획득하고, 상기 변환 스킵 플래그에 기반하여 상기 현재 블록에 대한 레지듀얼 코딩을 수행하고, 상기 레지듀얼 코딩을 통해 상기 현재 블록의 레지듀얼 샘플을 생성하도록 비디오 신호 처리 장치(500)(또는 인코딩 장치(100))를 제어한다.The one or more commands are transform skipped based on the dual tree type of the current block and the size of the current block for a current block including data corresponding to a chroma component for decoding a video signal. If the condition for is checked and the condition for the transform skip is satisfied, a transform skip flag of the current block is obtained, residual coding for the current block is performed based on the transform skip flag, and the residual The video signal processing apparatus 500 (or encoding apparatus 100) is controlled to generate a residual sample of the current block through coding.
일 실시예에서, 상기 하나 또는 그 이상의 명령어들은 상기 현재 블록의 사이즈가 변환 스킵 최대 사이즈보다 작고, 상기 현재 블록의 듀얼 트리 타입이 색차 듀얼 트리에 해당하는 경우 상기 변환 스킵을 위한 조건이 만족되는 것으로 결정할 수 있다.In one embodiment, the one or more instructions indicate that the condition for the transform skip is satisfied when the size of the current block is smaller than the maximum transform skip size and the dual tree type of the current block corresponds to the color difference dual tree. You can decide.
일 실시예에서, 상기 변환 스킵 최대 사이즈는 인코더로부터 전송되는 변환 스킵 최대 사이즈 정보에 기반하여 결정되고, 상기 변환 스킵 최대 사이즈 정보는 상기 현재 블록을 포함하는 상위 계층 성분에 대한 신택스 요소로서 전송될 수 있다.In one embodiment, the transform skip maximum size is determined based on transform skip maximum size information transmitted from an encoder, and the transform skip maximum size information may be transmitted as a syntax element for an upper layer component including the current block. have.
일 실시예에서, 변환 스킵 최대 사이즈는 휘도 및 색차 성분에 공통적으로 적용되는 변환 스킵 최대 사이즈 정보에 기반하여 결정될 수 있다.In an embodiment, the transform skip maximum size may be determined based on transform skip maximum size information commonly applied to luminance and color difference components.
일 실시예에서, 상기 변환 스킵 최대 사이즈는 상기 현재 블록이 속한 타일 그룹(tile group)의 타입에 기반하여 결정될 수 있다.In an embodiment, the maximum transform skip size may be determined based on a type of a tile group to which the current block belongs.
일 실시예에서, 상기 타일 그룹이 I-타일 그룹에 해당하면 상기 변환 스킵 최대 사이즈는 제1 기준 사이즈로 결정되고, 상기 타일 그룹이 B-타일 그룹 또는 P-타일 그룹에 해당하면 상기 변환 스킵 최대 사이즈는 제2 기준 사이즈로 결정되며, 상기 제1 기준 사이즈는 제2 기준 사이즈보다 큰 값일 수 있다.In an embodiment, if the tile group corresponds to an I-tile group, the transform skip maximum size is determined as a first reference size, and if the tile group corresponds to a B-tile group or a P-tile group, the transform skip maximum The size is determined as a second reference size, and the first reference size may be a value larger than the second reference size.
일 실시예에서, 상기 변환 스킵 최대 사이즈는, 상기 현재 블록이 속한 타일 그룹(tile group)의 타입 및 상기 현재 블록의 예측 타입에 기반하여 결정되고, 상기 예측 타입은 인트라 예측 타입 또는 인터 예측 타입 중 하나를 포함할 수 있다.In one embodiment, the transform skip maximum size is determined based on a type of a tile group to which the current block belongs and a prediction type of the current block, and the prediction type is an intra prediction type or an inter prediction type. It can contain one.
상기 기술된 것과 같이, 본 발명에서 설명한 실시예들은 프로세서, 마이크로 프로세서, 컨트롤러 또는 칩 상에서 구현되어 수행될 수 있다. 예를 들어, 각 도면에서 도시한 기능 유닛들은 컴퓨터, 프로세서, 마이크로 프로세서, 컨트롤러 또는 칩 상에서 구현되어 수행될 수 있다.As described above, the embodiments described in the present invention may be implemented and performed on a processor, microprocessor, controller, or chip. For example, the functional units illustrated in each drawing may be implemented and executed on a computer, processor, microprocessor, controller, or chip.
또한, 본 발명이 적용되는 디코더 및 인코더는 멀티미디어 방송 송수신 장치, 모바일 통신 단말, 홈 시네마 비디오 장치, 디지털 시네마 비디오 장치, 감시용 카메라, 비디오 대화 장치, 비디오 통신과 같은 실시간 통신 장치, 모바일 스트리밍 장치, 저장 매체, 캠코더, 주문형 비디오(VoD) 서비스 제공 장치, OTT 비디오(Over the top video) 장치, 인터넷 스트리밍 서비스 제공 장치, 3차원(3D) 비디오 장치, 화상 전화 비디오 장치, 및 의료용 비디오 장치 등에 포함될 수 있으며, 비디오 신호 또는 데이터 신호를 처리하기 위해 사용될 수 있다. 예를 들어, OTT 비디오(Over the top video) 장치로는 게임 콘솔, 블루레이 플레이어, 인터넷 접속 TV, 홈시어터 시스템, 스마트폰, 태블릿 PC, DVR(Digital Video Recorder) 등을 포함할 수 있다.In addition, the decoder and encoder to which the present invention is applied include a multimedia broadcasting transmission/reception device, a mobile communication terminal, a home cinema video device, a digital cinema video device, a surveillance camera, a video chat device, a real-time communication device such as video communication, a mobile streaming device, Storage media, camcorders, video-on-demand (VoD) service providers, OTT video (Over the top video) devices, Internet streaming service providers, three-dimensional (3D) video devices, video telephony video devices, and medical video devices. And can be used to process video signals or data signals. For example, an OTT video (Over the top video) device may include a game console, a Blu-ray player, an Internet-connected TV, a home theater system, a smartphone, a tablet PC, and a digital video recorder (DVR).
이상에서 설명된 실시예들은 본 발명의 구성요소들과 특징들이 소정 형태로 결합된 것들이다. 각 구성요소 또는 특징은 별도의 명시적 언급이 없는 한 선택적인 것으로 고려되어야 한다. 각 구성요소 또는 특징은 다른 구성요소나 특징과 결합되지 않은 형태로 실시될 수 있다. 또한, 일부 구성요소들 및/또는 특징들을 결합하여 본 발명의 실시예를 구성하는 것도 가능하다. 본 발명의 실시예들에서 설명되는 동작들의 순서는 변경될 수 있다. 어느 실시예의 일부 구성이나 특징은 다른 실시예에 포함될 수 있고, 또는 다른 실시예의 대응하는 구성 또는 특징과 교체될 수 있다. 특허청구범위에서 명시적인 인용 관계가 있지 않은 청구항들을 결합하여 실시예를 구성하거나 출원 후의 보정에 의해 새로운 청구항으로 포함시킬 수 있음은 자명하다.The embodiments described above are those in which components and features of the present invention are combined in a predetermined form. Each component or feature should be considered optional unless explicitly stated otherwise. Each component or feature may be implemented in a form that is not combined with other components or features. In addition, it is also possible to constitute an embodiment of the present invention by combining some components and/or features. The order of operations described in the embodiments of the present invention may be changed. Some configurations or features of one embodiment may be included in other embodiments, or may be replaced with corresponding configurations or features of other embodiments. It is obvious that the embodiments may be configured by combining claims that do not have an explicit citation relationship in the claims or may be included as new claims by amendment after filing.
본 발명에 따른 실시예는 다양한 수단, 예를 들어, 하드웨어, 펌웨어(firmware), 소프트웨어 또는 그것들의 결합 등에 의해 구현될 수 있다. 하드웨어에 의한 구현의 경우, 본 발명의 일 실시예는 하나 또는 그 이상의 ASICs(application specific integrated circuits), DSPs(digital signal processors), DSPDs(digital signal processing devices), PLDs(programmable logic devices), FPGAs(field programmable gate arrays), 프로세서, 콘트롤러, 마이크로 콘트롤러, 마이크로 프로세서 등에 의해 구현될 수 있다.The embodiment according to the present invention may be implemented by various means, for example, hardware, firmware, software, or a combination thereof. In the case of implementation by hardware, an embodiment of the present invention is one or more ASICs (application specific integrated circuits), DSPs (digital signal processors), DSPDs (digital signal processing devices), PLDs (programmable logic devices), FPGAs ( field programmable gate arrays), processors, controllers, microcontrollers, microprocessors, etc.
펌웨어나 소프트웨어에 의한 구현의 경우, 본 발명의 일 실시예는 이상에서 설명된 기능 또는 동작들을 수행하는 모듈, 절차, 함수 등의 형태로 구현될 수 있다. 소프트웨어 코드는 메모리에 저장되어 프로세서에 의해 구동될 수 있다. 상기 메모리는 상기 프로세서 내부 또는 외부에 위치하여, 이미 공지된 다양한 수단에 의해 상기 프로세서와 데이터를 주고받을 수 있다.In the case of implementation by firmware or software, an embodiment of the present invention may be implemented in the form of a module, procedure, or function that performs the functions or operations described above. The software code can be stored in a memory and driven by a processor. The memory may be located inside or outside the processor, and may exchange data with the processor through various known means.
본 발명은 본 발명의 필수적 특징을 벗어나지 않는 범위에서 다른 특정한 형태로 구체화될 수 있음은 당업자에게 자명하다. 따라서, 상술한 상세한 설명은 모든 면에서 제한적으로 해석되어서는 아니 되고 예시적인 것으로 고려되어야 한다. 본 발명의 범위는 첨부된 청구항의 합리적 해석에 의해 결정되어야 하고, 본 발명의 등가적 범위 내에서의 모든 변경은 본 발명의 범위에 포함된다. It is obvious to those skilled in the art that the present invention can be embodied in other specific forms without departing from the essential features of the present invention. Therefore, the above detailed description should not be construed as restrictive in all respects, but should be considered as illustrative. The scope of the present invention should be determined by reasonable interpretation of the appended claims, and all changes within the equivalent scope of the present invention are included in the scope of the present invention.
이상, 전술한 본 발명의 바람직한 실시예는, 예시의 목적을 위해 개시된 것으로, 당업자라면 이하 첨부된 특허청구범위에 개시된 본 발명의 기술적 사상과 그 기술적 범위 내에서, 다양한 다른 실시예들을 개량, 변경, 대체 또는 부가 등이 가능할 것이다.Above, the above-described preferred embodiments of the present invention are disclosed for the purpose of illustration, and those skilled in the art improve and change various other embodiments within the technical spirit and scope of the present invention disclosed in the appended claims below. , Substitution or addition may be possible.

Claims (15)

  1. 비디오 신호를 디코딩하기 위한 방법으로서, As a method for decoding a video signal,
    색차(chroma) 성분에 해당하는 데이터를 포함하는 현재 블록에 대하여, 상기 현재 블록의 트리 타입 및 상기 현재 블록의 사이즈에 기반하여 변환 스킵을 위한 조건을 확인하는 단계와,For a current block including data corresponding to a chroma component, checking a condition for skipping transformation based on a tree type of the current block and a size of the current block; and
    상기 변환 스킵을 위한 조건이 만족되면, 상기 현재 블록의 변환 스킵 플래그를 획득하는 단계와,When the condition for the transform skip is satisfied, obtaining a transform skip flag of the current block; and
    상기 변환 스킵 플래그에 기반하여 상기 현재 블록에 대한 레지듀얼 코딩을 수행하는 단계와,Performing residual coding on the current block based on the transform skip flag,
    상기 레지듀얼 코딩을 통해 상기 현재 블록의 레지듀얼 샘플을 생성하는 단계를 포함하는 것을 특징으로 하는 방법.And generating a residual sample of the current block through the residual coding.
  2. 제1항에 있어서,The method of claim 1,
    상기 변환 스킵을 위한 조건을 확인하는 단계는,Checking the conditions for the conversion skip,
    상기 현재 블록의 사이즈가 변환 스킵 최대 사이즈보다 작고, 상기 현재 블록의 트리 타입이 색차 듀얼 트리 또는 싱글 트리에 해당하는 경우 상기 변환 스킵을 위한 조건이 만족되는 것으로 결정하는 단계를 포함하는 것을 특징으로 하는 방법.If the size of the current block is smaller than the maximum transform skip size and the tree type of the current block corresponds to a color difference dual tree or a single tree, determining that a condition for the transform skip is satisfied. Way.
  3. 제2항에 있어서,The method of claim 2,
    상기 변환 스킵 최대 사이즈는,The maximum conversion skip size is,
    인코더로부터 전송되는 변환 스킵 최대 사이즈 정보에 기반하여 결정되고,It is determined based on the transform skip maximum size information transmitted from the encoder,
    상기 변환 스킵 최대 사이즈 정보는,The conversion skip maximum size information,
    상기 현재 블록을 포함하는 상위 계층 성분에 대한 신택스 요소로서 전송되는 것을 특징으로 하는 방법.And transmitted as a syntax element for an upper layer component including the current block.
  4. 제3항에 있어서,The method of claim 3,
    상기 변환 스킵 최대 사이즈는,The maximum conversion skip size is,
    휘도 및 색차 성분에 공통적으로 적용되는 변환 스킵 최대 사이즈 정보에 기반하여 결정되는 것을 특징으로 하는 방법.A method, characterized in that it is determined based on information on a maximum transform skip size commonly applied to luminance and color difference components.
  5. 제2항에 있어서,The method of claim 2,
    상기 변환 스킵 최대 사이즈는,The maximum conversion skip size is,
    상기 현재 블록이 속한 타일 그룹(tile group)의 타입에 기반하여 결정되는 것을 특징으로 하는 방법.And determining based on a type of a tile group to which the current block belongs.
  6. 제5항에 있어서,The method of claim 5,
    상기 타일 그룹이 I-타일 그룹에 해당하면, 상기 변환 스킵 최대 사이즈는 제1 기준 사이즈로 결정되고,If the tile group corresponds to an I-tile group, the maximum transform skip size is determined as a first reference size,
    상기 타일 그룹이 B-타일 그룹 또는 P-타일 그룹에 해당하면, 상기 변환 스킵 최대 사이즈는 제2 기준 사이즈로 결정되며,If the tile group corresponds to a B-tile group or a P-tile group, the maximum transform skip size is determined as a second reference size,
    상기 제1 기준 사이즈는 제2 기준 사이즈보다 큰 것을 특징으로 하는 방법.The method according to claim 1, wherein the first reference size is larger than the second reference size.
  7. 제5항에 있어서,The method of claim 5,
    상기 변환 스킵 최대 사이즈는,The maximum conversion skip size is,
    상기 현재 블록이 속한 타일 그룹(tile group)의 타입 및 상기 현재 블록의 예측 타입에 기반하여 결정되고,It is determined based on a type of a tile group to which the current block belongs and a prediction type of the current block,
    상기 예측 타입은 인트라 예측 타입 또는 인터 예측 타입 중 하나를 포함하는 것을 특징으로 하는 방법.The method of claim 1, wherein the prediction type includes one of an intra prediction type or an inter prediction type.
  8. 비디오 신호를 인코딩하기 위한 방법으로서, A method for encoding a video signal, comprising:
    색차(chroma) 성분에 해당하는 데이터를 포함하는 현재 블록에 대하여, 상기 현재 블록의 트리 타입(tree type) 및 현재 블록의 사이즈에 기반하여 변환 스킵을 위한 조건을 확인하는 단계와,For a current block including data corresponding to a chroma component, checking a condition for skipping transformation based on a tree type of the current block and a size of the current block; and
    상기 변환 스킵을 위한 조건이 만족되면, 상기 현재 블록에 대하여 상기 변환 스킵을 적용할지 여부를 결정하는 단계와,If the condition for the transform skip is satisfied, determining whether to apply the transform skip to the current block;
    상기 현재 블록에 대한 변환 스킵 플래그를 인코딩하는 단계를 포함하는 것을 특징으로 하는 방법.And encoding a transform skip flag for the current block.
  9. 제8항에 있어서,The method of claim 8,
    상기 변환 스킵을 위한 조건을 확인하는 단계는,Checking the conditions for the conversion skip,
    상기 현재 블록의 사이즈가 변환 스킵 최대 사이즈보다 작고, 상기 현재 블록의 트리 타입이 색차 듀얼 트리 또는 싱글 트리에 해당하는 경우 상기 변환 스킵을 위한 조건이 만족되는 것으로 결정하는 단계를 포함하는 것을 특징으로 하는 방법.If the size of the current block is smaller than the maximum transform skip size and the tree type of the current block corresponds to a color difference dual tree or a single tree, determining that a condition for the transform skip is satisfied. Way.
  10. 제9항에 있어서,The method of claim 9,
    상기 변환 스킵 최대 사이즈는,The maximum conversion skip size is,
    변환 스킵 최대 사이즈 정보에 기반하여 결정되고,It is determined based on the transform skip maximum size information,
    상기 변환 스킵 최대 사이즈 정보는,The conversion skip maximum size information,
    상기 현재 블록을 포함하는 상위 계층 성분에 대한 신택스 요소로서 디코더로 전송되는 것을 특징으로 하는 방법.And transmitted to a decoder as a syntax element for an upper layer component including the current block.
  11. 제10항에 있어서,The method of claim 10,
    상기 변환 스킵 최대 사이즈는,The maximum conversion skip size is,
    상기 현재 블록이 속한 타일 그룹(tile group)의 타입에 기반하여 결정되는 것을 특징으로 하는 방법.And determining based on a type of a tile group to which the current block belongs.
  12. 제11항에 있어서,The method of claim 11,
    상기 타일 그룹이 I-타일 그룹에 해당하면, 상기 변환 스킵 최대 사이즈는 제1 기준 사이즈로 결정되고,If the tile group corresponds to an I-tile group, the maximum transform skip size is determined as a first reference size,
    상기 타일 그룹이 B-타일 그룹 또는 P-타일 그룹에 해당하면, 상기 변환 스킵 최대 사이즈는 제2 기준 사이즈로 결정되며,If the tile group corresponds to a B-tile group or a P-tile group, the maximum transform skip size is determined as a second reference size,
    상기 제1 기준 사이즈는 제2 기준 사이즈보다 큰 것을 특징으로 하는 방법.The method according to claim 1, wherein the first reference size is larger than the second reference size.
  13. 제11항에 있어서,The method of claim 11,
    상기 변환 스킵 최대 사이즈는,The maximum conversion skip size is,
    상기 현재 블록이 속한 타일 그룹(tile group)의 타입 및 상기 현재 블록의 예측 타입에 기반하여 결정되고,It is determined based on a type of a tile group to which the current block belongs and a prediction type of the current block,
    상기 예측 타입은 인트라 예측 타입 또는 인터 예측 타입 중 하나를 포함하는 것을 특징으로 하는 방법.The method of claim 1, wherein the prediction type includes one of an intra prediction type or an inter prediction type.
  14. 비디오 신호를 디코딩하기 위한 장치로서, An apparatus for decoding a video signal, comprising:
    상기 비디오 신호를 저장하는 메모리와,A memory for storing the video signal;
    상기 메모리와 결합되고, 상기 비디오 신호를 처리하는 프로세서를 포함하고,A processor coupled to the memory and processing the video signal,
    상기 프로세서는,The processor,
    색차(chroma) 성분에 해당하는 데이터를 포함하는 현재 블록에 대하여, 상기 현재 블록의 트리 타입(tree type) 및 현재 블록의 사이즈에 기반하여 변환 스킵을 위한 조건을 확인하고,For a current block including data corresponding to a chroma component, a condition for skipping transformation is checked based on a tree type of the current block and a size of the current block,
    상기 변환 스킵을 위한 조건이 만족되면, 상기 현재 블록의 변환 스킵 플래그를 획득하고,When the condition for the transformation skip is satisfied, a transformation skip flag of the current block is obtained,
    상기 변환 스킵 플래그에 기반하여 상기 현재 블록에 대한 레지듀얼 코딩을 수행하고,Perform residual coding for the current block based on the transform skip flag,
    상기 레지듀얼 코딩을 통해 상기 현재 블록의 레지듀얼 샘플을 생성하도록 설정되는 것을 특징으로 하는 장치.And generating a residual sample of the current block through the residual coding.
  15. 비디오 신호를 인코딩하기 위한 장치로서, An apparatus for encoding a video signal, comprising:
    상기 비디오 신호를 저장하는 메모리와,A memory for storing the video signal;
    상기 메모리와 결합되고, 상기 비디오 신호를 처리하는 프로세서를 포함하고,A processor coupled to the memory and processing the video signal,
    상기 프로세서는,The processor,
    색차(chroma) 성분에 해당하는 데이터를 포함하는 현재 블록에 대하여, 상기 현재 블록의 트리 타입(tree type) 및 현재 블록의 사이즈에 기반하여 변환 스킵을 위한 조건을 확인하고,For a current block including data corresponding to a chroma component, a condition for skipping transformation is checked based on a tree type of the current block and a size of the current block,
    상기 변환 스킵을 위한 조건이 만족되면, 상기 현재 블록에 대하여 상기 변환 스킵을 적용할지 여부를 결정하고,When the condition for the transform skip is satisfied, it is determined whether to apply the transform skip to the current block,
    상기 현재 블록에 대한 변환 스킵 플래그를 인코딩하도록 설정되는 것을 특징으로 하는 장치.And encoding a transform skip flag for the current block.
PCT/KR2020/003187 2019-03-08 2020-03-06 Method and apparatus for processing video signal WO2020184913A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US201962816013P 2019-03-08 2019-03-08
US62/816,013 2019-03-08

Publications (1)

Publication Number Publication Date
WO2020184913A1 true WO2020184913A1 (en) 2020-09-17

Family

ID=72426055

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/KR2020/003187 WO2020184913A1 (en) 2019-03-08 2020-03-06 Method and apparatus for processing video signal

Country Status (1)

Country Link
WO (1) WO2020184913A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20150048804A (en) * 2012-11-08 2015-05-07 캐논 가부시끼가이샤 Method, apparatus and system for encoding and decoding the transform units of a coding unit
KR20170058908A (en) * 2013-07-23 2017-05-29 인텔렉추얼디스커버리 주식회사 Method and apparatus for image encoding/decoding
WO2018128322A1 (en) * 2017-01-03 2018-07-12 엘지전자(주) Image processing method, and device for same
US20180278958A1 (en) * 2017-03-23 2018-09-27 Mediatek Inc. Transform coding of video data

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20150048804A (en) * 2012-11-08 2015-05-07 캐논 가부시끼가이샤 Method, apparatus and system for encoding and decoding the transform units of a coding unit
KR20170058908A (en) * 2013-07-23 2017-05-29 인텔렉추얼디스커버리 주식회사 Method and apparatus for image encoding/decoding
WO2018128322A1 (en) * 2017-01-03 2018-07-12 엘지전자(주) Image processing method, and device for same
US20180278958A1 (en) * 2017-03-23 2018-09-27 Mediatek Inc. Transform coding of video data

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
BENJAMIN BROSS: "Versatile Video Coding (Draft 4", JVET-M1001-V5, JOINT VIDEO EXPERTS TEAM (JVET) OF ITU-T SG 16 WP 3 AND ISO/IEC JTC 1/SC 29/WG 11, 13TH MEETING, vol. 20190227, Marrakech. MA., pages 1 - 274, XP030202598 *

Similar Documents

Publication Publication Date Title
WO2020149648A1 (en) Image coding method and device using transform skip flag
WO2020180102A1 (en) Image decoding method using context-coded sign flag in image coding system and apparatus therefor
WO2020149608A1 (en) Video decoding method using residual information in video coding system, and apparatus thereof
WO2020213946A1 (en) Image coding using transform index
WO2020213944A1 (en) Transform for matrix-based intra-prediction in image coding
WO2020171592A1 (en) Video decoding method using residual information in video coding system, and apparatus thereof
WO2020162690A1 (en) Method and device for processing video signal using reduced transform
WO2021054807A1 (en) Image encoding/decoding method and device using reference sample filtering, and method for transmitting bitstream
WO2021040410A1 (en) Method for decoding video for residual coding and device therefor
WO2020213976A1 (en) Video encoding/decoding method and device using bdpcm, and method for transmitting bitstream
WO2021172912A1 (en) Method and apparatus for decoding imaging related to sign data hiding
WO2021172914A1 (en) Image decoding method for residual coding and device for same
WO2021066618A1 (en) Image or video coding based on signaling of transform skip- and palette coding-related information
WO2021040487A1 (en) Image decoding method for residual data coding in image coding system, and apparatus therefor
WO2021006697A1 (en) Image decoding method for residual coding and apparatus therefor
WO2021006700A1 (en) Image decoding method using flag for residual coding method in image coding system, and device for same
WO2020256482A1 (en) Transform-based image coding method and device therefor
WO2020145795A1 (en) Image decoding method using residual information in image coding system, and device for same
WO2021158048A1 (en) Image decoding method related to signaling of flag indicating whether tsrc is available, and device therefor
WO2021137556A1 (en) Transform-based image coding method and device for same
WO2021066609A1 (en) Image or video coding based on transform skip- and palette coding-related advanced syntax element
WO2021010680A1 (en) Image coding method based on transform, and device for same
WO2021025526A1 (en) Video coding method on basis of transformation, and device therefor
WO2021040406A1 (en) Video or image coding method and device therefor
WO2021040407A1 (en) Method for decoding video using simplified residual data coding in video coding system and device therefor

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20768930

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20768930

Country of ref document: EP

Kind code of ref document: A1