Image decoding method and device using chrominance quantization parameters
By calculating and sending CU-level chromatic quantization parameter offset related information in the image decoding method, the problem of low compilation efficiency of high-resolution image is solved, reducing the cost and cache requirements of the decoding device.
Patent Information
- Application Number
- CN202080058236.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-08-22
- Filing Date
- 2020-08-20
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2040-08-20
AI Technical Summary
The prior art is difficult to effectively improve image compilation efficiency, especially when processing high-resolution, high-quality images, resulting in increased transmission and storage costs.
In the image decoding method, the residual information of the chromaticity block is obtained, the CU-level chromaticity quantization parameter offset related information is calculated based on the tree type and size, the transformation coefficient and chroma QP are derived, and the transformation coefficient is adjusted through the chroma QP. Perform dequantization, generate reconstructed pictures, and send CU chromaticity QP offset related information in the transformation unit syntax of the transformation block.
Even if the first transformation block of the current chromaticity block does not include a non-zero transformation coefficient level, the configuration cost and cache requirements of the decoding device can be reduced, and image decoding efficiency can be improved.
Smart Images

Figure CN114270840B_ABST
Abstract
Description
Technical Field
[0001] This document relates to image coding technology, and more particularly, to an image decoding method for coding CU-level chroma quantization parameter offset related information in an image coding system, and an apparatus for the image decoding method. Background Art
[0002] Recently, demand for high-resolution, high-quality images, such as HD (High Definition) and UHD (Ultra High Definition), has been growing in various fields. Because image data has high resolution and high quality, the amount of information or bits to be transmitted has increased compared to conventional image data. Consequently, when image data is transmitted using media such as conventional wired / wireless broadband lines or stored using existing storage media, transmission and storage costs increase.
[0003] Therefore, there is a need for efficient image compression technology for effectively transmitting, storing, and reproducing information of high-resolution and high-quality images. Summary of the Invention
[0004] Technical issues
[0005] The technical purpose of the present disclosure is to provide a method and apparatus for improving image coding efficiency.
[0006] Another technical objective of the present disclosure is to provide a method and apparatus for increasing data coding efficiency for deriving quantization parameters of chroma components.
[0007] Technical Solution
[0008] According to an embodiment of the present document, an image decoding method performed by a decoding device is provided. The method includes: obtaining residual information for a current chroma block, obtaining coding unit (CU) chroma quantization parameter (QP) offset related information for the current chroma block based on a tree type and size of the current chroma block, deriving transform coefficients for the current chroma block based on the residual information, deriving a chroma QP for the current chroma block based on the CU chroma QP offset related information, deriving residual samples for the current chroma block by dequantizing the transform coefficients based on the chroma QP, and generating a reconstructed picture based on the residual samples, wherein the CU chroma QP offset related information is signaled in a transform unit syntax of a first transform block among transform blocks for the current chroma block.
[0009] According to another embodiment of this document, a decoding apparatus for performing image decoding is provided. The decoding apparatus includes: an entropy decoder configured to obtain residual information for a current chroma block and obtain coding unit (CU) chroma quantization parameter (QP) offset related information for the current chroma block based on a tree type and size of the current chroma block; a residual processor configured to derive transform coefficients of the current chroma block based on the residual information, derive a chroma QP for the current chroma block based on CU chroma QP offset related information, and derive residual samples for the current chroma block by dequantizing the transform coefficients based on the chroma QP; and an adder configured to generate a reconstructed picture based on the residual samples, wherein the CU chroma QP offset related information is signaled in a transform unit syntax of a first transform block among transform blocks for the current chroma block.
[0010] According to another embodiment of this document, a video encoding method performed by an encoding device is provided. The method includes deriving residual samples for a current chroma block, generating coding unit (CU) chroma quantization parameter (QP) offset related information for the current chroma block based on a tree type and size of the current chroma block, deriving a chroma QP for the current chroma block based on the CU chroma QP offset related information, deriving a transform coefficient for the current chroma block by quantizing the residual samples based on the chroma QP, generating residual information of the transform coefficient, and encoding image information including the CU chroma QP offset related information and the residual information, wherein the CU chroma QP offset related information is signaled in a transform unit syntax of a first transform block among transform blocks for the current chroma block.
[0011] According to another embodiment of this document, a video encoding apparatus is provided. The encoding apparatus includes: a residual processor configured to derive residual samples of a current chroma block, generate coding unit (CU) chroma quantization parameter (QP) offset related information for the current chroma block based on a tree type and size of the current chroma block, derive a chroma QP for the current chroma block based on the CU chroma QP offset related information, derive a transform coefficient of the current chroma block by quantizing the residual samples based on the chroma QP, and generate residual information of the transform coefficient; and an entropy encoder configured to encode image information including CU chroma QP offset related information and residual information, wherein the CU chroma QP offset related information is signaled in a transform unit syntax of a first transform block among transform blocks for the current chroma block.
[0012] According to another embodiment of this document, a computer-readable digital storage medium is provided that stores a bitstream including image information for causing a decoding apparatus to perform an image decoding method. In the computer-readable storage medium, the image decoding method includes: obtaining residual information of a current chroma block, obtaining coding unit (CU) chroma quantization parameter (QP) offset related information of the current chroma block based on a tree type and size of the current chroma block, deriving transform coefficients of the current chroma block based on the residual information, deriving the chroma QP of the current chroma block based on the CU chroma QP offset related information, deriving residual samples of the current chroma block by dequantizing the transform coefficients based on the chroma QP, and generating a reconstructed picture based on the residual samples, wherein the CU chroma QP offset related information is signaled in a transform unit syntax of a first transform block among transform blocks of the current chroma block.
[0013] Beneficial effects
[0014] According to this document, even if the first transform block in the current chroma block does not include a non-zero transform coefficient level, and when at least one of the width and height of the current chroma block is greater than a specific size, information about the CU chroma QP offset can be sent by signal, thereby reducing the cost of configuring the decoding device.
[0015] According to this document, even if the first transform block in the current chroma block does not include a non-zero transform coefficient level, information about the CU chroma QP offset can be signaled in the transform unit syntax of the first transform block based on the size and tree type of the current chroma block, and therefore, the cache requirements of the decoding device can be reduced and the cost of configuring the decoding device can be reduced. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 An example of a video / image coding device to which embodiments of the present disclosure can be applied is briefly illustrated.
[0017] Figure 2 FIG. 1 is a schematic diagram illustrating a configuration of a video / image encoding device to which an embodiment of the present disclosure can be applied.
[0018] Figure 3 FIG. 1 is a schematic diagram illustrating a configuration of a video / image decoding device to which an embodiment of the present disclosure can be applied.
[0019] Figure 4 An example of a video / image encoding method based on intra-frame prediction is illustrated.
[0020] Figure 5 An example of a video / image encoding method based on intra-frame prediction is illustrated.
[0021] Figure 6 The intra prediction process is schematically illustrated.
[0022] Figure 7 An example of transmitting cu_qp_delta for a TU within a CU having a size of 128×128 is shown.
[0023] Figure 8 Shows an example of a QP map for luma and chroma blocks when a single tree is used.
[0024] Figure 9 Shows an example of a QP map for a chroma block when dual-tree is used.
[0025] Figure 10 The sample positions used for deblocking filtering are exemplarily represented.
[0026] Figure 11 An image encoding method according to the encoding device of this document is schematically shown.
[0027] Figure 12 A coding device for performing the image coding method according to this document is schematically shown.
[0028] Figure 13 The image decoding method of the decoding device according to this document is schematically shown.
[0029] Figure 14 A decoding device for performing an image decoding method according to this document is schematically shown.
[0030] Figure 15 The present invention is a structural diagram of a content streaming system to which the present invention is applied. DETAILED DESCRIPTION
[0031] The present disclosure can be modified in various forms, and specific embodiments thereof will be described and illustrated in the accompanying drawings. However, the embodiments are not intended to limit the present disclosure. The terms used in the following description are only used to describe specific embodiments and are not intended to limit the present disclosure. As long as it is clearly understood in different ways, singular expressions include plural expressions. Terms such as "including" and "having" are intended to indicate the presence of features, numbers, steps, operations, elements, components, or combinations thereof used in the following description, and therefore should be understood as not excluding the possibility of the presence or addition of one or more different features, numbers, steps, operations, elements, components, or combinations thereof.
[0032] Furthermore, the elements in the drawings described in this disclosure are drawn independently for the purpose of conveniently explaining different specific functions, and do not imply that these elements are embodied by independent hardware or independent software. For example, two or more elements in the drawings may be combined to form a single element, or an element may be divided into multiple elements. The embodiments of combining elements and / or dividing elements are within the scope of this disclosure and do not depart from the concepts of this disclosure.
[0033] Hereinafter, embodiments of the present disclosure will be described in detail with reference to the accompanying drawings. In addition, throughout the drawings, like reference numerals are used to indicate like elements, and the same description of like elements will be omitted.
[0034] Figure 1 An example of a video / image coding device to which embodiments of the present disclosure can be applied is briefly illustrated.
[0035] Reference Figure 1 The video / image coding system may include a first device (source device) and a second device (receiving device). The source device may send coded video / image information or data to the receiving device in the form of a file or stream via a digital storage medium or a network.
[0036] The source device may include a video source, an encoding device, and a transmitter. The receiving device may include a receiver, a decoding device, and a renderer. The encoding device may be referred to as a video / image encoding device, and the decoding device may be referred to as a video / image decoding device. The transmitter may be included in the encoding device. The receiver may be included in the decoding device. The renderer may include a display, and the display may be configured as a separate device or an external component.
[0037] The video source can obtain the video / image by capturing, synthesizing, or generating a video / image process. The video source may include a video / image capture device and / or a video / image generation device. The video / image capture device may include, for example, one or more cameras, a video / image archive including previously captured videos / images, etc. The video / image generation device may include, for example, a computer, a tablet computer, and a smart phone, and may (electronically) generate the video / image. For example, a virtual video / image may be generated by a computer, etc. In this case, the video / image capture process may be replaced by a process that generates relevant data.
[0038] The encoding device can encode the input video / image. The encoding device can perform a series of processes such as prediction, transformation, and quantization to achieve compression and coding efficiency. The encoded data (encoded video / image information) can be output in the form of a bitstream.
[0039] The transmitter can transmit the encoded image / image information or data in the form of a bitstream, output in the form of a file or stream, via a digital storage medium or network to a receiver of a receiving device. Digital storage media can include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, SSD, etc. The transmitter can include components for generating a media file in a predetermined file format and can also include components for transmitting via a broadcast / communication network. The receiver can receive / extract the bitstream and transmit the received bitstream to a decoding device.
[0040] The decoding device may decode the video / image by performing a series of processes such as dequantization, inverse transformation, and prediction corresponding to the operations of the encoding device.
[0041] The renderer may render the decoded video / image, and the rendered video / image may be displayed on a display.
[0042] The present disclosure relates to video / image coding. For example, the methods / implementations disclosed in the present disclosure can be applied to methods disclosed in Versatile Video Coding (VVC), EVC (Essential Video Coding) standards, AOMedia Video 1 (AV1) standards, the second generation Audio Video Coding standard (AVS2), or next-generation video / image coding standards (e.g., H.267 or H.268).
[0043] The present disclosure presents various embodiments of video / image coding, and unless otherwise mentioned, the embodiments may be performed in combination with each other.
[0044] In the present disclosure, video may refer to a series of images over time. Generally, a picture refers to a unit representing an image in a specific time zone, and a sub-picture / slice / tile is a unit that constitutes a part of a picture in coding. A sub-picture / slice / tile may include one or more coding tree units (CTUs). A picture may be composed of one or more sub-pictures / slices / tiles. A picture may be composed of one or more tile groups. A tile group may include one or more tiles. A brick may represent a rectangular area of a CTU row within a tile in a picture. A tile may be partitioned into multiple tiles, each tile consisting of one or more CTU rows within a tile. A tile that is not partitioned into multiple tiles may also be referred to as a tile. Tile scanning may sort the CTUs partitioned into a picture in a specific order, wherein the CTUs are sorted continuously in the tile by CTU raster scanning, the tiles within the tile are sorted continuously by raster scanning of the tiles of the tile, and the tiles in the picture are sorted continuously by raster scanning of the tiles of the picture. Additionally, a sub-picture can represent a rectangular area of one or more slices within a picture. That is, a sub-picture contains one or more slices that collectively cover a rectangular area of a picture. A tile is a rectangular area of a CTU within a specific tile column and tile row in a picture. A tile column is a rectangular area of a CTU whose height equals the height of the picture and whose width is specified by syntax elements in the picture parameter set. A tile row is a rectangular area of a CTU whose height is specified by syntax elements in the picture parameter set and whose width equals the width of the picture. Tile scan is a specific sequential ordering of CTUs that partition a picture, where CTUs can be ordered consecutively within a tile using a CTU raster scan, while tiles within a picture can be ordered consecutively using a raster scan of the tiles of the picture. A slice comprises an integer number of tiles of a picture that can be exclusively contained in a single NAL unit. A slice can consist of multiple complete tiles or only a contiguous sequence of complete tiles of a tile. In this disclosure, tile group and slice may be used interchangeably. For example, in this disclosure, a tile group / tile group header may be referred to as a slice / slice header.
[0045] A pixel or picture element (pel) may represent the smallest unit constituting a picture (or image). In addition, "sample" may be used as a term corresponding to a pixel. A sample may generally represent a pixel or a pixel value, and may represent only a pixel / pixel value of a luma component or only a pixel / pixel value of a chroma component.
[0046] A unit may represent a basic unit of image processing. A unit may include at least one of a specific area of a picture and information related to the area. A unit may include a luminance block and two chrominance (e.g., CB, CR) blocks. In some cases, a unit may be used interchangeably with terms such as block or area. In general, an M×N block may include M columns and N rows of samples (or sample arrays) or a set (or array) of transform coefficients.
[0047] In this specification, "A or B" may mean "only A," "only B," or "A and B." In other words, in this specification, "A or B" may be interpreted as "A and / or B." For example, "A, B, or C" herein means "only A," "only B," "only C," or "any one and any combination of A, B, and C."
[0048] As used herein, a slash ( / ) or a comma may mean "and / or." For example, "A / B" may mean "A and / or B." Thus, "A / B" may mean "only A," "only B," or "A and B." For example, "A,B,C" may mean "A, B, or C."
[0049] In this specification, “at least one of A and B” may mean “only A”, “only B”, or “both A and B”. In addition, in this specification, the expression “at least one of A or B” or “at least one of A and / or B” may be interpreted as the same as “at least one of A and B”.
[0050] In addition, in this specification, "at least one of A, B, and C" means "only A", "only B", "only C", or "any combination of A, B, and C". In addition, "at least one of A, B, or C" or "at least one of A, B, and / or C" may mean "at least one of A, B, and C".
[0051] Furthermore, brackets used in this specification may refer to "for example." Specifically, when "prediction (intra-frame prediction)" is indicated, "intra-frame prediction" may be provided as an example of "prediction." In other words, "prediction" in this specification is not limited to "intra-frame prediction," and "intra-frame prediction" may be provided as an example of "prediction." Furthermore, even when "prediction (i.e., intra-frame prediction)" is indicated, "intra-frame prediction" may be provided as an example of "prediction."
[0052] In this specification, technical features described separately in one drawing may be implemented separately or simultaneously.
[0053] The following figures are created to explain specific examples of this specification. Since the names of specific devices or the names of specific signals / messages / fields described in the figures are presented by way of example, the technical features of this specification are not limited to the specific names used in the following figures.
[0054] Figure 2 1 is a schematic diagram illustrating a configuration of a video / image encoding device to which an embodiment of the present disclosure can be applied. Hereinafter, a video encoding device may include an image encoding device.
[0055] Reference Figure 2 , the encoding device 200 includes an image segmenter 210, a predictor 220, a residual processor 230 and an entropy encoder 240, an adder 250, a filter 260 and a memory 270. The predictor 220 may include an inter-frame predictor 221 and an intra-frame predictor 222. The residual processor 230 may include a transformer 232, a quantizer 233, a dequantizer 234 and an inverse transformer 235. The residual processor 230 may also include a subtractor 231. The adder 250 may be referred to as a reconstructor or a reconstructed block generator. According to an embodiment, the image segmenter 210, the predictor 220, the residual processor 230, the entropy encoder 240, the adder 250 and the filter 260 may be composed of at least one hardware component (e.g., an encoder chipset or processor). In addition, the memory 270 may include a decoded picture buffer (DPB) or may be composed of a digital storage medium. The hardware components may also include the memory 270 as an internal / external component.
[0056] The image splitter 210 can split the input image (or picture or frame) input to the encoding device 200 into one or more processors. For example, a processor can be referred to as a coding unit (CU). In this case, the coding unit can be recursively split from the coding tree unit (CTU) or the largest coding unit (LCU) based on a quadtree binary tree ternary tree (QTBTTT) structure. For example, a coding unit can be split into multiple coding units of greater depth based on a quadtree structure, a binary tree structure, and / or a ternary structure. In this case, for example, the quadtree structure can be applied first, followed by the binary tree structure and / or the ternary structure. Alternatively, the binary tree structure can be applied first. The coding process according to the present disclosure can be performed based on the final coding unit that is no longer split. In this case, the largest coding unit can be used as the final coding unit based on coding efficiency according to image characteristics, or, if necessary, the coding unit can be recursively split into coding units of greater depth, and the coding unit with the optimal size can be used as the final coding unit. Here, the coding process may include prediction, transformation, and reconstruction processes, which will be described later. As another example, the processor may further include a prediction unit (PU) or a transform unit (TU). In this case, the prediction unit and the transform unit may be split or partitioned from the final coding unit. The prediction unit may be a unit for sample prediction, and the transform unit may be a unit for deriving a transform coefficient and / or a unit for deriving a residual signal from the transform coefficient.
[0057] In some cases, the term "unit" may be used interchangeably with terms such as "block" or "region." In general, an M×N 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 pixel value, and may represent only the pixel / pixel value of the luma component or only the pixel / pixel value of the chroma component. A sample may be used as a term corresponding to a picture (or image) of pixels or picture elements.
[0058] In the encoding device 200, the prediction signal (prediction block, prediction sample array) output from the inter-frame predictor 221 or the intra-frame predictor 222 is subtracted from the input image signal (original block, original sample array) to generate a residual signal (residual block, residual sample array), and the generated residual signal is sent to the transformer 232. In this case, as shown in the figure, the unit in the encoder 200 for subtracting the prediction signal (prediction block, prediction sample array) from the input image signal (original block, original sample array) can be referred to as a subtractor 231. The predictor can perform prediction on the block to be processed (hereinafter referred to as the current block) and generate a prediction block including prediction samples of the current block. The predictor can determine whether to apply intra-frame prediction or inter-frame prediction on a current block or CU basis. As described later in the description of each prediction mode, the predictor can generate various information related to the prediction, such as prediction mode information, and send the generated information to the entropy encoder 240. The information about the prediction can be encoded in the entropy encoder 240 and output in the form of a bitstream.
[0059] The intra-frame predictor 222 can predict the current block by referring to samples in the current picture. Depending on the prediction mode, the referenced samples can be located near the current block or can be far away from the current block. In intra-frame prediction, the prediction mode can include multiple non-directional modes and multiple directional modes. The non-directional mode can include, for example, a DC mode and a planar mode. Depending on the level of detail of the prediction direction, the directional mode can include, for example, 33 directional prediction modes or 65 directional prediction modes. However, this is only an example, and more or fewer directional prediction modes can be used depending on the settings. The intra-frame predictor 222 can determine the prediction mode applied to the current block by using the prediction mode applied to the neighboring block.
[0060] The inter-frame predictor 221 can derive a prediction block for the current block based on a reference block (reference sample array) specified by a motion vector in a reference picture. To reduce the amount of motion information transmitted in inter-frame prediction mode, motion information can be predicted on a block, sub-block, or sample basis based on the correlation of motion information between neighboring blocks and the current block. The motion information can include a motion vector and a reference picture index. The motion information can also include information about the inter-frame prediction direction (e.g., L0 prediction, L1 prediction, Bi prediction, etc.). In the case of inter-frame prediction, neighboring blocks can include spatially neighboring blocks in the current picture and temporally neighboring blocks in a reference picture. The reference picture containing the reference block and the reference picture containing the temporally neighboring block can be the same or different. Temporally neighboring blocks can be referred to as collocated reference blocks, collocated CUs (colCUs), etc., and the reference picture containing temporally neighboring blocks can be referred to as collocated pictures (colPics). For example, the inter-frame predictor 221 can configure a motion information candidate list based on the neighboring blocks and generate information indicating which candidate to use to derive the motion vector and / or reference picture index for the current block. Inter-frame prediction can be performed based on various prediction modes. For example, in the case of skip mode and merge mode, the inter-frame predictor 221 can use the motion information of the neighboring block as the motion information of the current block. In skip mode, unlike merge mode, it may not be possible to send a residual signal. In the case of motion vector prediction (MVP) mode, the motion vector of the neighboring block can be used as a motion vector predictor, and the motion vector of the current block can be indicated by signaling the motion vector difference.
[0061] The predictor 220 can generate a prediction signal based on various prediction methods described below. For example, the predictor can not only apply intra prediction or inter prediction to predict a block, but also apply both intra prediction and inter prediction at the same time. This can be called inter-frame intra-frame combined prediction (CIIP). In addition, the predictor can predict the block based on the intra block copy (IBC) prediction mode or palette mode. The IBC prediction mode or palette mode can be used for content image / video coding for games, etc., such as screen content coding (SCC). IBC basically performs prediction in the current picture, but can be performed similarly to inter prediction because the reference block is derived in the current picture. That is, IBC can use at least one of the inter prediction techniques described in this disclosure. The palette mode can be regarded as an example of intra coding or intra prediction. When the palette mode is applied, the sample value within the picture can be signaled based on information about the palette table and the palette index.
[0062] The prediction signal generated by the predictor (including the inter-frame predictor 221 and / or the intra-frame predictor 222) can be used to generate a reconstruction signal or to generate a residual signal. The transformer 232 can generate a transform coefficient by applying a transform technique to the residual signal. For example, the transform technique may include at least one of a discrete cosine transform (DCT), a discrete sine transform (DST), a Karhunen-Loève transform (KLT), a graph-based transform (GBT), or a conditional nonlinear transform (CNT). Here, GBT refers to a transform obtained from a graph when the relationship information between pixels is represented by a graph. CNT refers to a transform generated based on a prediction signal generated using all previously reconstructed pixels. In addition, the transform process can be applied to square pixel blocks of the same size, or can be applied to blocks of variable size other than square.
[0063] The quantizer 233 can quantize the transform coefficients and send them to the entropy encoder 240, which can encode the quantized signal (information about the quantized transform coefficients) and output a bitstream. The information about the quantized transform coefficients can be called residual information. The quantizer 233 can rearrange the block-type quantized transform coefficients into a one-dimensional vector form based on the coefficient scanning order, and generate information about the quantized transform coefficients based on the quantized transform coefficients in the one-dimensional vector form. Information about the transform coefficients can be generated. The entropy encoder 240 can perform various encoding methods, such as, for example, Exponential Golomb, Context-Adaptive Variable Length Coding (CAVLC), Context-Adaptive Binary Arithmetic Coding (CABAC), etc. The entropy encoder 240 can encode information required for video / image reconstruction (e.g., syntax element values, etc.) in addition to the quantized transform coefficients, together or separately. The encoded information (e.g., encoded video / image information) can be transmitted or stored in the form of a bitstream in units of NALs (Network Abstraction Layers). The video / image information may also include information about various parameter sets such as an adaptive parameter set (APS), a picture parameter set (PPS), a sequence parameter set (SPS), or a video parameter set (VPS). Furthermore, the video / image information may also include general constraint information. In the present disclosure, information and / or syntax elements transmitted / signaled from the encoding device to the decoding device may be included in the video / image information. The video / image information may be encoded through the above-described encoding process and included in the bitstream. The bitstream may be transmitted over a network or stored in a digital storage medium. The network may include a broadcast 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, SSD, etc. A transmitter (not shown) that transmits the signal output from the entropy encoder 240 and / or a storage unit (not shown) that stores the signal may be included as internal / external elements of the encoding device 200. Alternatively, the transmitter may be included in the entropy encoder 240.
[0064] The quantized transform coefficients output from the quantizer 233 can be used to generate a prediction signal. For example, the residual signal (residual block or residual sample) can be reconstructed by applying dequantization and inverse transform to the quantized transform coefficients using the dequantizer 234 and the inverse transformer 235. The adder 250 adds the reconstructed residual signal to the prediction signal output from the inter-frame predictor 221 or the intra-frame predictor 222 to generate a reconstructed signal (reconstructed picture, reconstructed block, reconstructed sample array). If the block to be processed has no residual (such as when skip mode is applied), the prediction block can be used as a reconstructed block. The adder 250 can be called a reconstructor or a reconstructed block generator. The generated reconstructed signal can be used for intra-frame prediction of the next block to be processed in the current picture, and can be used for inter-frame prediction of the next picture through filtering as described below.
[0065] Furthermore, during picture encoding and / or reconstruction, luma mapping and chroma scaling (LMCS) may be applied.
[0066] The filter 260 can improve the subjective / objective image quality by applying filtering to the reconstructed signal. For example, the filter 260 can generate a modified reconstructed picture by applying various filtering methods to the reconstructed picture, and store the modified reconstructed picture in the memory 270 (specifically, the DPB of the memory 270). Various filtering methods may include, for example, deblocking filtering, sample adaptive offset, adaptive loop filter, bilateral filter, etc. The filter 260 can generate various information related to filtering and send the generated information to the entropy encoder 240, as described later in the description of various filtering methods. The information related to filtering can be encoded by the entropy encoder 240 and output in the form of a bit stream.
[0067] The modified reconstructed picture sent to the memory 270 may be used as a reference picture in the inter-frame predictor 221. When inter-frame prediction is applied by the encoding apparatus, prediction mismatch between the encoding apparatus 200 and the decoding apparatus may be avoided, and coding efficiency may be improved.
[0068] The DPB of the memory 270 may store a modified reconstructed picture used as a reference picture in the inter-frame predictor 221. The memory 270 may store motion information of a block from which motion information in the current picture was derived (or encoded) and / or motion information of a reconstructed block in the picture. The stored motion information may be sent to the inter-frame predictor 221 and used as motion information of spatially neighboring blocks or motion information of temporally neighboring blocks. The memory 270 may store reconstructed samples of a reconstructed block in the current picture and may transmit the reconstructed samples to the intra-frame predictor 222.
[0069] Figure 3 FIG. 1 is a schematic diagram illustrating a configuration of a video / image decoding device to which an embodiment of the present disclosure can be applied.
[0070] Reference Figure 3 , the decoding device 300 may include an entropy decoder 310, a residual processor 320, a predictor 330, an adder 340, a filter 350, and a memory 360. The predictor 330 may include an inter-frame predictor 332 and an intra-frame predictor 331. The residual processor 320 may include a dequantizer 321 and an inverse transformer 322. According to an embodiment, the entropy decoder 310, the residual processor 320, the predictor 330, the adder 340, and the filter 350 may be composed of hardware components (e.g., a decoder chipset or processor). In addition, the memory 360 may include a decoded picture buffer (DPB) or may be composed of a digital storage medium. The hardware components may also include the memory 360 as an internal / external component.
[0071] When a bit stream including video / image information is input, the decoding apparatus 300 can be used with Figure 2 The image is reconstructed accordingly to the processing of the video / image information in the encoding device. For example, the decoding device 300 can derive the unit / block based on the block segmentation related information obtained from the bit stream. The decoding device 300 can perform decoding using the processor applied in the encoding device. Therefore, the decoding processor can be, for example, a coding unit, and the coding unit can be divided from the coding tree unit or the maximum coding unit according to the quadtree structure, the binary tree structure and / or the ternary tree structure. One or more transform units can be derived from the coding unit. The reconstructed image signal decoded and output by the decoding device 300 can be reproduced by a reproduction device.
[0072] The decoding device 300 may receive the data in the form of a bit stream from Figure 2The signal output by the encoding device of the encoding device can be decoded by the entropy decoder 310. For example, the entropy decoder 310 can parse the bitstream to derive information required for image reconstruction (or picture reconstruction) (e.g., video / image information). The video / image information may also include information about various parameter sets such as an adaptive parameter set (APS), a picture parameter set (PPS), a sequence parameter set (SPS), or a video parameter set (VPS). In addition, the video / image information may also include general constraint information. The decoding device may also decode the picture based on the information about the parameter set and / or the general constraint information. The signaled / received information and / or syntax elements described later in this disclosure can be decoded through a decoding process and obtained from the bitstream. For example, the entropy decoder 310 decodes the information in the bitstream based on a coding method such as exponential Golomb coding, CAVLC, or CABAC, and outputs syntax elements required for image reconstruction and quantized values of the transform coefficients of the residual. More specifically, the CABAC entropy decoding method can receive a bin (binary bit) corresponding to each syntax element in the bitstream, use the decoding target syntax element information, the decoding information of the decoding target block, or the information of the symbol / bin decoded in the previous stage to determine the context model, and arithmetically decode the bin by predicting the probability of occurrence of the bin based on the determined context model, and generate a symbol corresponding to the value of each syntax element. In this case, after determining the context model, the CABAC entropy decoding method can update the context model by using the information of the decoded symbol / bin for the context model of the next symbol / bin. The information related to prediction among the information decoded by the entropy decoder 310 can be provided to the predictor (inter-frame predictor 332 and intra-frame predictor 331), and the residual value (that is, quantized transform coefficients and related parameter information) on which entropy decoding is performed in the entropy decoder 310 can be input to the residual processor 320. The residual processor 320 can derive a residual signal (residual block, residual sample, residual sample array). In addition, the information about filtering among the information decoded by the entropy decoder 310 can be provided to the filter 350. In addition, a receiver (not shown) for receiving a signal output from the encoding device may be further configured as an internal / external element of the decoding device 300, or the receiver may be a component of the entropy decoder 310. In addition, the decoding device according to the present disclosure may be referred to as a video / image / picture decoding device, and the decoding device may be classified into an information decoder (video / image / picture information decoder) and a sample decoder (video / image / picture sample decoder). The information decoder may include the entropy decoder 310, and the sample decoder may include at least one of a dequantizer 321, an inverse transformer 322, an adder 340, a filter 350, a memory 360, an inter-frame predictor 332, and an intra-frame predictor 331.
[0073] The dequantizer 321 can dequantize the quantized transform coefficients and output the transform coefficients. The dequantizer 321 can rearrange the quantized transform coefficients in the form of two-dimensional blocks. In this case, the rearrangement can be performed based on the coefficient scanning order performed in the encoding device. The dequantizer 321 can dequantize the quantized transform coefficients by using quantization parameters (e.g., quantization step size information) and obtain transform coefficients.
[0074] The inverse transformer 322 performs an inverse transform on the transform coefficients to obtain a residual signal (residual block, residual sample array).
[0075] The predictor may perform prediction on the current block and generate a prediction block including prediction samples of the current block. The predictor may determine whether to apply intra prediction or inter prediction to the current block based on the information on prediction output from the entropy decoder 310, and may determine a specific intra / inter prediction mode.
[0076] The predictor 320 can generate a prediction signal based on various prediction methods described below. For example, the predictor can not only apply intra prediction or inter prediction to predict a block, but also apply intra prediction and inter prediction at the same time. This can be called inter and intra combined prediction (CIIP). In addition, the predictor can predict the block based on the intra block copy (IBC) prediction mode or palette mode. The IBC prediction mode or palette mode can be used for content image / video coding of games, etc., such as screen content coding (SCC). IBC basically performs prediction in the current picture, but can be performed similarly to inter prediction because the reference block is derived in the current picture. That is, IBC can use at least one of the inter prediction techniques described in this disclosure. The palette mode can be regarded as an example of intra coding or intra prediction. When the palette mode is applied, the sample value within the picture can be signaled based on information about the palette table and the palette index.
[0077] The intra-frame predictor 331 can predict the current block by referencing samples in the current picture. Depending on the prediction mode, the referenced samples may be located near the current block or may be located far away from the current block. In intra-frame prediction, the prediction mode may include multiple non-directional modes and multiple directional modes. The intra-frame predictor 331 may determine the prediction mode to be applied to the current block by using the prediction modes applied to the neighboring blocks.
[0078] The inter-frame predictor 332 can derive a prediction block for the current block based on a reference block (reference sample array) specified by a motion vector in a reference picture. In this case, to reduce the amount of motion information transmitted in inter-frame prediction mode, motion information can be predicted in units of blocks, sub-blocks, or samples based on the correlation of motion information between neighboring blocks and the current block. The motion information can include a motion vector and a reference picture index. The motion information can also include information about the inter-frame prediction direction (L0 prediction, L1 prediction, Bi prediction, etc.). In the case of inter-frame prediction, neighboring blocks can include spatially neighboring blocks in the current picture and temporally neighboring blocks in the reference picture. For example, the inter-frame predictor 332 can configure a motion information candidate list based on the neighboring blocks and derive the motion vector and / or reference picture index for the current block based on received candidate selection information. Inter-frame prediction can be performed based on various prediction modes, and prediction information can include information indicating the inter-frame prediction mode for the current block.
[0079] The adder 340 can generate a reconstructed signal (reconstructed picture, reconstructed block, reconstructed sample array) by adding the obtained residual signal to the prediction signal (prediction block, prediction sample array) output from the predictor (including the inter-frame predictor 332 and / or the intra-frame predictor 331). If the block to be processed has no residual (for example, when skip mode is applied), the prediction block can be used as the reconstructed block.
[0080] The adder 340 may be referred to as a reconstructor or a reconstructed block generator. The generated reconstructed signal may be used for intra-frame prediction of the next block to be processed in the current picture, may be output through filtering as described below, or may be used for inter-frame prediction of the next picture.
[0081] In addition, luma mapping and chroma scaling (LMCS) can be applied during picture decoding.
[0082] The filter 350 can improve the subjective / objective image quality by applying filtering to the reconstructed signal. For example, the filter 350 can generate a modified reconstructed image by applying various filtering methods to the reconstructed image, and store the modified reconstructed image in the memory 360 (specifically, the DPB of the memory 360). Various filtering methods may include, for example, deblocking filtering, sample adaptive offset, adaptive loop filter, bilateral filter, etc.
[0083] The (modified) reconstructed picture stored in the DPB of the memory 360 can be used as a reference picture in the inter-frame predictor 332. The memory 360 can store the motion information of the block from which the motion information in the current picture was derived (or decoded) and / or the motion information of the reconstructed block in the picture. The stored motion information can be sent to the inter-frame predictor 260 to be used as the motion information of the spatially neighboring block or the motion information of the temporally neighboring block. The memory 360 can store the reconstructed samples of the reconstructed block in the current picture and can transmit the reconstructed samples to the intra-frame predictor 331.
[0084] In the present disclosure, the embodiments described in the filter 260, the inter-frame predictor 221, and the intra-frame predictor 222 of the encoding device 200 may be the same as the filter 350, the inter-frame predictor 332, and the intra-frame predictor 331 of the decoding device 300 or may be applied to correspond to the filter 350, the inter-frame predictor 332, and the intra-frame predictor 331 of the decoding device 300, respectively. The same contents can also be applied to the inter-frame predictor 332 and the intra-frame predictor 331.
[0085] In the present disclosure, at least one of quantization / inverse quantization and / or transform / inverse transform may be omitted. When quantization / inverse quantization is omitted, the quantized transform coefficient may be referred to as a transform coefficient. When transform / inverse transform is omitted, the transform coefficient may be referred to as a coefficient or a residual coefficient, or, for uniformity of expression, may still be referred to as a transform coefficient.
[0086] In the present disclosure, quantized transform coefficients and transform coefficients may be referred to as transform coefficients and scaled transform coefficients, respectively. In this case, residual information may include information about the transform coefficients, and information about the transform coefficients may be signaled via residual coding syntax. Transform coefficients may be derived based on the residual information (or information about the transform coefficients), and scaled transform coefficients may be derived by inversely transforming (scaling) the transform coefficients. Residual samples may be derived based on inversely transforming (transforming) the scaled transform coefficients. This may also be applied / expressed in other parts of the present disclosure.
[0087] At the same time, as described above, when performing video coding, prediction is performed to improve compression efficiency. In this way, a prediction block including prediction samples of the current block can be generated as a block to be coded (i.e., a coding target block). Here, the prediction block includes prediction samples in the spatial domain (or pixel domain). The prediction block is derived in the same manner in the encoding device and the decoding device, and the encoding device can signal information about the residual between the original block and the prediction block (residual information) instead of the original sample values of the original block to the decoding device, thereby improving image coding efficiency. The decoding device can derive a residual block including residual samples based on the residual information, add the residual block and the prediction block to generate a reconstructed block including reconstructed samples, and generate a reconstructed picture including the reconstructed block.
[0088] Residual information can be generated through a transform and quantization process. For example, the encoding device can derive a residual block between the original block and the prediction block, perform a transform process on the residual samples (residual sample array) included in the residual block to derive transform coefficients, perform a quantization process on the transform coefficients to derive quantized transform coefficients, and signal the relevant residual information to the decoding device (via a bitstream). Here, the residual information may include value information, position information, transform technology, transform kernel, and quantization parameter value information of the quantized transform coefficients. The decoding device can perform a dequantization / inverse transform process based on the residual information and derive residual samples (or residual blocks). The decoding device can generate a reconstructed picture based on the prediction block and the residual block. In addition, the encoding device can dequantize / inverse transform the quantized transform coefficients to derive a residual block for reference for inter-frame prediction of a reference picture, and generate a reconstructed picture based on the residual block.
[0089] Intra-frame prediction may refer to generating a prediction for prediction samples of the current block based on reference samples in the picture to which the current block belongs (hereinafter referred to as the current picture). When intra-frame prediction is applied to the current block, neighboring reference samples to be used for intra-frame prediction of the current block may be derived. The neighboring reference samples of the current block may include samples adjacent to the left boundary of the current block (nWxnH in size), a total of 2xnH samples adjacent to the lower left of the current block, samples adjacent to the upper boundary of the current block, a total of 2xnW samples adjacent to the upper right, and samples adjacent to the upper left of the current block. Alternatively, the neighboring reference samples of the current block may include multiple columns of upper neighboring samples and multiple rows of left neighboring samples. Furthermore, the neighboring reference samples of the current block may include a total of nH samples adjacent to the right boundary of the current block (nWxnH in size), a total of nW samples adjacent to the lower boundary of the current block, and samples adjacent to the lower right of the current block.
[0090] However, some neighboring reference samples of the current block have not yet been decoded or may be unavailable. In this case, the decoder can construct neighboring reference samples to be used for prediction by replacing unavailable samples with available samples. Alternatively, the neighboring reference samples to be used for prediction can be configured by interpolation of available samples.
[0091] When deriving adjacent reference samples, (i) the prediction sample can be derived based on an average or interpolation of adjacent reference samples of the current block, or (ii) the prediction sample can be derived based on a reference sample existing in a specific (prediction) direction relative to the prediction sample in the adjacent reference samples of the current block. Case (i) can be referred to as a non-directional mode or a non-angular mode, and case (ii) can be referred to as a directional mode or an angular mode.
[0092] Alternatively, the prediction sample may be generated by interpolating the first neighboring sample located in the prediction direction of the intra prediction mode of the current block based on the prediction sample of the current block and the second neighboring sample located in the direction opposite to the prediction direction among the neighboring reference samples. This may be referred to as linear interpolation intra prediction (LIP). Furthermore, a linear model (LM) may be used to generate chroma prediction samples based on luma samples. This may be referred to as LM mode or chroma component LM (CCLM) mode.
[0093] In addition, a temporary prediction sample of the current block is derived based on the filtered adjacent reference samples, and the prediction sample of the current block can also be derived by weighted summing the temporary prediction sample with at least one reference sample derived according to the intra prediction mode among the existing adjacent reference samples (i.e., unfiltered adjacent reference samples). The above situation can be called position-dependent intra prediction (PDPC).
[0094] In addition, a reference sample line with the highest prediction accuracy among multiple reference sample lines adjacent to the current block is selected, and a prediction sample is derived using the reference sample in the selected line located in the prediction direction. In this case, intra-frame prediction encoding can be performed by indicating (signaling) the reference sample line to be used to the decoding device. The above situation can be called multi-reference line intra-frame prediction or MRL-based intra-frame prediction.
[0095] In addition, the current block is divided into vertical or horizontal sub-partitions and intra prediction is performed based on the same intra prediction mode, but adjacent reference samples can be derived and used in units of sub-partitions. That is, in this case, the intra prediction mode of the current block is also applicable to the sub-partitions, but in some cases, the intra prediction performance can be improved by deriving and using adjacent reference samples in units of sub-partitions. This prediction method can be called intra prediction based on intra sub-partitions (ISP).
[0096] The above-mentioned intra-frame prediction method can be referred to as an intra-frame prediction type to distinguish it from the intra-frame prediction mode. The intra-frame prediction type can be referred to by various terms, such as intra-frame prediction technology or additional intra-frame prediction mode. For example, the intra-frame prediction type (or additional intra-frame prediction mode, etc.) may include at least one of the above-mentioned LIP, PDPC, MRL and ISP. A general intra-frame prediction method that excludes specific intra-frame prediction types such as LIP, PDPC, MRL and ISP may be referred to as a normal intra-frame prediction type. When the above-mentioned specific intra-frame prediction type is not applied, the normal intra-frame prediction type may generally be applied, and prediction may be performed based on the above-mentioned intra-frame prediction mode. At the same time, if necessary, post-processing filtering may be performed on the derived prediction samples.
[0097] Specifically, the intra prediction process may include an intra prediction mode / type determination step, an adjacent reference sample derivation step, and a prediction sample derivation step based on the intra prediction mode / type. In addition, if necessary, a post-filtering step may be performed on the derived prediction samples.
[0098] Figure 4 An example of a video / image encoding method based on intra-frame prediction is illustrated.
[0099] Reference Figure 4 , the encoding device performs intra prediction on the current block (S400). The encoding device derives the intra prediction mode / type of the current block, derives the adjacent reference samples of the current block, and generates prediction samples in the current block based on the intra prediction mode / type and the adjacent reference samples. Here, the intra prediction mode / type determination, adjacent reference sample derivation, and prediction sample generation processes can be performed simultaneously, or one process can be performed before the other. The encoding device can determine the mode / type applied to the current block from a plurality of intra prediction modes / types. The encoding device can compare the RD costs of the intra prediction modes / types and determine the optimal intra prediction mode / type for the current block.
[0100] At the same time, the encoding device may perform a prediction sample filtering process. Prediction sample filtering may be referred to as post-filtering. Some or all prediction samples may be filtered by the prediction sample filtering process. In some cases, the prediction sample filtering process may be omitted.
[0101] The encoding apparatus generates residual samples of the current block based on the (filtered) prediction samples (S410). The encoding apparatus may compare the prediction samples with the original samples of the current block based on phase and derive the residual samples.
[0102] The encoding device may encode image information including information about intra-frame prediction (prediction information) and residual information about residual samples (S420). The prediction information may include intra-frame prediction mode information and intra-frame prediction type information. The encoding device may output the encoded image information in the form of a bitstream. The output bitstream may be sent to a decoding device via a storage medium or a network.
[0103] The residual information may include a residual coding syntax described later. The encoding device may transform / quantize the residual samples to derive quantized transform coefficients. The residual information may include information about the quantized transform coefficients.
[0104] At the same time, as described above, the encoding device can generate a reconstructed picture (including reconstructed samples and reconstructed blocks). To this end, the encoding device can derive (modified) residual samples by performing inverse quantization / inverse transformation on the quantized transform coefficients again. The reason for performing inverse quantization / inverse transformation again after transforming / quantizing the residual samples in this way is to derive residual samples that are the same as the residual samples derived in the above-mentioned decoding device. The encoding device can generate a reconstructed block including reconstructed samples for the current block based on the predicted samples and the (modified) residual samples. A reconstructed picture for the current picture can be generated based on the reconstructed block. As described above, the in-loop filtering process can be further applied to the reconstructed picture.
[0105] Figure 5 An example of a video / image encoding method based on intra-frame prediction is illustrated.
[0106] The decoding device may perform operations corresponding to those performed by the encoding device.
[0107] Prediction information and residual information can be obtained from the bitstream. Residual samples of the current block can be derived based on the residual information. Specifically, transform coefficients can be derived by performing inverse quantization based on quantized transform coefficients derived from the residual information, and residual samples of the current block can be derived by performing inverse transform on the transform coefficients.
[0108] Specifically, the decoding device may derive the intra-frame prediction mode / type of the current block based on the received prediction information (intra-frame prediction mode / type information) (S500). The decoding device may derive the adjacent reference samples of the current block (S510). The decoding device generates prediction samples in the current block based on the intra-frame prediction mode / type and the adjacent reference samples (S520). In this case, the decoding device may perform a prediction sample filtering process. Prediction sample filtering may be referred to as post-filtering. Some or all prediction samples may be filtered by the prediction sample filtering process. In some cases, the prediction sample filtering process may be omitted.
[0109] The decoding device generates residual samples for the current block based on the received residual information (S530). The decoding device may generate reconstructed samples of the current block based on the predicted samples and the residual samples, and may derive a reconstructed block including the reconstructed samples (S540). A reconstructed picture of the current picture may be generated based on the reconstructed block. As described above, the in-loop filtering process may be further applied to the reconstructed picture.
[0110] The intra-frame prediction mode information may include, for example, flag information (e.g., intra_luma_mpm_flag) indicating whether MPM (most probable mode) is applied to the current block or whether the residual mode is applied, and when MPM is applied to the current block, the prediction mode information may further include index information (e.g., intra_luma_mpm_idx) indicating one of the intra-frame prediction mode candidates (MPM candidates). The intra-frame prediction mode candidates (MPM candidates) may be composed of an MPM candidate list or an MPM list. In addition, when MPM is not applied to the current block, the intra-frame prediction mode information includes residual mode information (e.g., intra_luma_mpm_remainder) indicating one of the remaining intra-frame prediction modes other than the intra-frame prediction mode candidates (MPM candidates). The decoding device may determine the intra-frame prediction mode of the current block based on the intra-frame prediction mode information.
[0111] In addition, the intra-frame prediction type information can be implemented in various forms. For example, the intra-frame prediction type information may include intra-frame prediction type index information indicating one of the intra-frame prediction types. As another example, the intra-frame prediction type information may include at least one of the following: reference sample line information (e.g., intra_luma_ref_idx), which indicates whether MRL is applied to the current block and, if applied, which reference sample line is used; ISP flag information indicating whether ISP is applied to the current block (e.g., intra_subpartitions_mode_flag); or ISP type information indicating the split type of the sub-partition when ISP is applied (e.g., intra_subpartitions_split_flag). In addition, the intra-frame prediction type information may include a MIP flag indicating whether matrix-based intra-frame prediction (MIP) is applied to the current block.
[0112] The intra-frame prediction mode information and / or the intra-frame prediction type information may be encoded / decoded by the coding method described in the present disclosure. For example, the intra-frame prediction mode information and / or the intra-frame prediction type information may be encoded / decoded by entropy coding (e.g., CABAC, CAVLC).
[0113] Figure 6 The intra prediction process is schematically illustrated.
[0114] Reference Figure 6 As described above, the intra prediction process may include the steps of determining an intra prediction mode / type, deriving adjacent reference samples, and performing intra prediction (generating prediction samples). The intra prediction process may be performed by the encoding device and decoding device described above. In the present disclosure, a coding device may include an encoding device and / or a decoding device.
[0115] Reference Figure 6 , the coding device determines the intra prediction mode / type S600.
[0116] The encoding device may determine the intra-frame prediction mode / type applied to the current block from the various intra-frame prediction modes / types described above, and may generate prediction-related information. The prediction-related information may include intra-frame prediction mode information indicating the intra-frame prediction mode applied to the current block and / or intra-frame prediction type information indicating the intra-frame prediction type applied to the current block. The decoding device may determine the intra-frame prediction mode / type applied to the current block based on the prediction-related information.
[0117] The intra-frame prediction mode information may include, for example, flag information (e.g., intra_luma_mpm_flag) indicating whether the most probable mode (MPM) is applied to the current block or the residual mode is applied, and when the MPM is applied to the current block, the prediction mode information may further include index information (e.g., intra_luma_mpm_idx) indicating one of the intra-frame prediction mode candidates (MPM candidates). The intra-frame prediction mode candidates (MPM candidates) may be composed of an MPM candidate list or an MPM list. In addition, when the MPM is not applied to the current block, the intra-frame prediction mode information may further include residual mode information (e.g., intra_luma_mpm_remainder) indicating one of the remaining intra-frame prediction modes other than the intra-frame prediction mode candidates (MPM candidates). The decoding device may determine the intra-frame prediction mode of the current block based on the intra-frame prediction mode information.
[0118] In addition, the intra-frame prediction type information can be implemented in various forms. For example, the intra-frame prediction type information may include intra-frame prediction type index information indicating one of the intra-frame prediction types. As another example, the intra-frame prediction type information may include at least one of the following: reference sample line information (e.g., intra_luma_ref_idx), which indicates whether MRL is applied to the current block and, if applied, which reference sample line is used; ISP flag information indicating whether ISP is applied to the current block (e.g., intra_subpartitions_mode_flag); or ISP type information indicating the split type of the sub-partition when ISP is applied (e.g., intra_subpartitions_split_flag). In addition, the intra-frame prediction type information may include a MIP flag indicating whether matrix-based intra-frame prediction (MIP) is applied to the current block.
[0119] For example, when intra prediction is applied, the intra prediction mode of the neighboring blocks can be used to determine the intra prediction mode applied to the current block. For example, the coding device can select one of the most probable mode (MPM) candidates in the MPM list derived based on the additional candidate mode and / or the intra prediction mode of the neighboring blocks (e.g., left and / or above neighboring blocks) of the current block, or select one of the remaining intra prediction modes not included in the MPM candidates (and planar mode) based on the MPM residual information (residual intra prediction mode information). The MPM list can be configured to include or exclude planar mode as a candidate. For example, when the MPM list includes planar mode as a candidate, the MPM list can have 6 candidates, and when the MPM list does not include planar mode as a candidate, the MPM list can have 5 candidates. When the MPM list does not include planar mode as a candidate, a non-planar flag (e.g., intra_luma_not_planar_flag) indicating whether the intra prediction mode of the current block is not a planar mode can be signaled. For example, the MPM flag may be signaled first, and when the value of the MPM flag is 1, the MPM index and the non-planar flag may be signaled. Furthermore, when the value of the non-planar flag is 1, the MPM index may be signaled. Here, the fact that the MPM list is configured not to include the planar mode as a candidate is that the planar mode is always considered to be an MPM rather than that the planar mode is not an MPM, and therefore, the flag (non-planar flag) is signaled first to check whether it is the planar mode.
[0120] For example, it can be indicated based on an MPM flag (e.g., intra_luma_mpm_flag) whether the intra prediction mode applied to the current block is among the MPM candidates (and planar mode) or among the remaining modes. An MPM flag with a value of 1 can indicate that the intra prediction mode of the current block is within the MPM candidates (and planar mode), while an MPM flag with a value of 0 can indicate that the intra prediction mode of the current block is not within the MPM candidates (and planar mode). A non-planar flag with a value of 0 (e.g., intra_luma_not_planar_flag) can indicate that the intra prediction mode of the current block is planar mode, and a non-planar flag with a value of 1 can indicate that the intra prediction mode of the current block is not planar mode. The MPM index can be signaled in the form of an mpm_idx or intra_luma_mpm_idx syntax element, and the remaining intra prediction mode information can be signaled in the form of a rem_intra_luma_pred_mode or intra_luma_mpm_remainder syntax element. For example, the remaining intra prediction mode information may indicate one of the remaining intra prediction modes that is not included in the MPM candidates (and planar mode) among all intra prediction modes by indexing in order of the prediction mode number. The intra prediction mode may be an intra prediction mode of a luminance component (sample). Hereinafter, the intra prediction mode information may include at least one of an MPM flag (e.g., intra_luma_mpm_flag), a non-planar flag (e.g., intra_luma_not_planar_flag), an MPM index (e.g., mpm_idx or intra_luma_mpm_idx), or the remaining intra prediction mode information (rem_intra_luma_luma_mpm_mode or intra_luma_mpminder). In the present disclosure, the MPM list may be referred to by a variety of terms, such as an MPM candidate list and candModeList.
[0121] When a MIP is applied to a current block, a separate mpm flag (e.g., intra_mip_mpm_flag), an mpm index (e.g., intra_mip_mpm_idx), and remaining intra prediction mode information (e.g., intra_mip_mpm_remainder) for the MIP may be signaled, and a non-planar flag may not be signaled.
[0122] In other words, generally speaking, when performing block segmentation of an image, the current block to be coded and the neighboring blocks have similar image characteristics. Therefore, there is a high probability that the current block and the neighboring blocks have the same or similar intra-frame prediction mode. Therefore, the encoder can use the intra-frame prediction mode of the neighboring block to encode the intra-frame prediction mode of the current block.
[0123] The coding device can construct a most probable mode (MPM) list for the current block. The MPM list can be referred to as an MPM candidate list. Here, MPM can refer to a mode for improving coding efficiency by considering the similarity between the current block and the neighboring blocks during intra-frame prediction mode coding. As described above, the MPM list can be constructed to include the planar mode, or can be constructed to exclude the planar mode. For example, when the MPM list includes the planar mode, the number of candidates in the MPM list can be 6. When the MPM list does not include the planar mode, the number of candidates in the MPM list can be 5.
[0124] The encoding device can perform prediction based on various intra prediction modes, and can determine the optimal intra prediction mode based on rate-distortion optimization (RDO) thereof. In this case, the encoding device can determine the optimal intra prediction mode by using only the MPM candidates and planar mode configured in the MPM list, or by further using the remaining intra prediction modes and the MPM candidates and planar mode configured in the MPM list. Specifically, for example, if the intra prediction type of the current block is a specific type other than the normal intra prediction type (such as LIP, MRL, or ISP), the encoding device can determine the optimal intra prediction mode by considering only the MPM candidates and planar mode as intra prediction mode candidates for the current block. That is, in this case, the intra prediction mode of the current block can be determined only from the MPM candidates and planar mode, and in this case, encoding / signaling of the mpm flag can be not performed. In this case, the decoding device can infer that the mpm flag is 1 without separately signaling the mpm flag.
[0125] Meanwhile, generally, when the intra prediction mode of the current block is not a planar mode but is one of the MPM candidates in the MPM list, the encoding device generates an mpm index (mpm idx) indicating one of the MPM candidates. When the intra prediction mode of the current block is not included in the MPM list, the encoding device generates MPM residual information (remaining intra prediction mode information) indicating the same mode as the intra prediction mode of the current block among the remaining intra prediction modes not included in the MPM list (and planar mode). The MPM residual information may include, for example, the intra_luma_mpm_remainder syntax element.
[0126] The decoding device obtains intra-frame prediction mode information from the bitstream. As described above, the intra-frame prediction mode information may include at least one of an MPM flag, a non-planar flag, an MPM index, and MPM residual information (residual intra-frame prediction mode information). The decoding device may construct an MPM list. The construction of the MPM list is the same as the MPM list constructed in the encoding device. That is, the MPM list may include intra-frame prediction modes of neighboring blocks, or may further include a specific intra-frame prediction mode according to a predetermined method.
[0127] The decoding device can determine the intra prediction mode of the current block based on the MPM list and the intra prediction mode information. For example, when the value of the MPM flag is 1, the decoding device can derive the planar mode as the intra prediction mode of the current block (based on the non-planar flag), or derive the candidate indicated by the MPM index among the MPM candidates in the MPM list as the intra prediction mode of the current block. Here, the MPM candidate may represent only the candidates included in the MPM list, or may include not only the candidates included in the MPM list but also the planar mode applicable when the value of the MPM flag is 1.
[0128] For another example, when the value of the MPM flag is 0, the decoding device may derive the intra prediction mode indicated by the remaining intra prediction mode information (which may be referred to as mpm residual information) among the remaining intra prediction modes not included in the MPM list and the planar mode as the intra prediction mode of the current block. Meanwhile, as another example, when the intra prediction type of the current block is a specific type (such as LIP, MRL, or ISP, etc.), the decoding device may derive the candidate indicated by the MPM flag in the planar mode or the MPM list as the intra prediction mode of the current block without parsing / decoding / checking the MPM flag.
[0129] The coding device derives neighboring reference samples of the current block (S610). When intra prediction is applied to the current block, neighboring reference samples to be used for intra prediction of the current block can be derived. The neighboring reference samples of the current block may include samples adjacent to the left boundary of the current block of size nWxnH and a total of 2xnH samples adjacent to the lower left of the current block, samples adjacent to the upper boundary of the current block and a total of 2xnW samples adjacent to the upper right, and samples adjacent to the upper left of the current block. Alternatively, the neighboring reference samples of the current block may include multiple columns of upper neighboring samples and multiple rows of left neighboring samples. In addition, the neighboring reference samples of the current block may include a total of nH samples adjacent to the right boundary of the current block of size nWxnH, a total of nW samples adjacent to the lower boundary of the current block, and samples adjacent to the lower right of the current block.
[0130] On the other hand, when MRL is applied (i.e., when the value of the MRL index is greater than 0), the adjacent reference sample may be located in lines 1 to 2 instead of line 0 adjacent to the current block on the left / upper side, and in this case, the number of adjacent reference samples can be further increased. At the same time, when ISP is applied, the adjacent reference sample can be derived in units of sub-partitions.
[0131] The coding device derives prediction samples by performing intra prediction on the current block (S620). The coding device may derive the prediction samples based on the intra prediction mode / type and neighboring samples. The coding device may derive reference samples based on the intra prediction mode of the current block among neighboring reference samples of the current block, and may derive the prediction samples of the current block based on the reference samples.
[0132] Meanwhile, as described above, the quantizer of the encoding device can derive quantized transform coefficients by applying quantization to the transform coefficients. The dequantizer of the encoding device or the dequantizer of the decoding device can derive transform coefficients by applying dequantization to the quantized transform coefficients.
[0133] Generally, in video / image coding, the quantization ratio can be changed, and the compression rate can be adjusted using the changed quantization ratio. In terms of implementation, a quantization parameter (QP) can be used instead of directly using the quantization ratio by taking complexity into consideration. For example, a quantization parameter having an integer value of 0 to 63 can be used, and each quantization parameter value can correspond to an actual quantization ratio. In addition, for example, the quantization parameter QP for the luma component is Y and the quantization parameter QP for the chroma components C Can be configured differently.
[0134] In the quantization process, the transform coefficient C can be input, and the quantization ratio (Q step ) can be divided, and the quantized transform coefficient C' can be obtained based on the quantization ratio. In this case, by multiplying the quantization ratio by the scale in consideration of computational complexity, the quantization ratio can be generated in integer form, and the shift operation can be performed using a value corresponding to the scale value. The quantization scale can be derived based on the product of the quantization ratio and the scale value. In other words, the quantization scale can be derived based on the QP. For example, the quantization scale can be applied to the transform coefficient C', and the quantized transform coefficient C' can be derived based on the result of the application.
[0135] The dequantization process is the inverse process of the quantization process. In this process, the quantized transform coefficient C' can be multiplied by the quantization ratio (Q step), and a reconstructed transform coefficient C" can be obtained based on a result of the multiplication. In this case, a level scale can be derived based on the quantization parameter, the level scale can be applied to the quantized transform coefficient C', and the reconstructed transform coefficient C" can be derived. Due to losses in the transformation and / or quantization process, the reconstructed transform coefficient C" may be somewhat different from the first transform coefficient C. Therefore, as in the decoding device, dequantization is performed in the encoding device.
[0136] At the same time, adaptive frequency-weighted quantization techniques can be applied to adjust the quantization strength according to frequency. Adaptive frequency-weighted quantization techniques apply different quantization strengths to each frequency. In adaptive frequency-weighted quantization, a predefined quantization scaling matrix can be used to apply different quantization strengths to each frequency. That is, the quantization / dequantization process described above can be performed based on the quantization scaling matrix. For example, to generate the size of the current block and / or the residual signal of the current block, different quantization scaling matrices can be used depending on whether the prediction mode applied to the current block is inter-frame prediction or intra-frame prediction. The quantization scaling matrix can be referred to as a quantization matrix or a scaling matrix. The quantization scaling matrix can be predefined. In addition, for frequency-adaptive scaling, quantization scale information for each frequency of the quantization scaling matrix can be constructed / encoded in the encoding device and signaled to the decoding device. The quantization scale information for each frequency can be referred to as quantization scaling information. The quantization scale information for each frequency can include scaling list data (scaling_list_data). The (modified) quantization scaling matrix can be derived based on the scaling list data. Furthermore, the quantization scale information for each frequency can include presence flag information indicating whether the scaling list data exists. Alternatively, if the scaling list data is signaled in a higher level (e.g., SPS), information indicating whether the scaling list data is modified in a lower level in the higher level (e.g., PPS or tile group header, etc.) may also be included.
[0137] As in the foregoing, quantization / dequantization may be applied to luma and chroma components based on quantization parameters.
[0138] Meanwhile, for quantization groups in current video / image coding standards, information about luma QP can be signaled as delta QP relative to the previous QP, and transmission of the information can be delayed until the first transform unit has coded coefficients. Specifically, the syntax element cu_qp_delta indicating delta QP can be transmitted in the first transform unit of the quantization group with coded coefficients (i.e., tu_cbf = 1).
[0139] Figure 7 An example of sending cu_qp_delta for TUs within a CU having a size of 128×128 is shown. Figure 7 As shown in , in the case of large-sized CUs, delta QP may not be sent until the last TU in the coding order. However, the delta QP value sent for the last TU may apply to the entire CU.
[0140] In addition, the concept of a 64x64 virtual decoder pipeline unit (VDPU) can be used in current video / image coding standards. In particular, in current video / image coding standards, structures and syntax elements for maximum transform size, luma / chroma syntax interleaving, etc. can be designed so that the decoding device can process 64x64 blocks (i.e., VDPUs) at a time, even in large CUs with a maximum size of 128x128. Considering the buffering requirements of a 128x128 pipeline, using a 64x64 pipeline can significantly reduce the cost of the decoding device.
[0141] However, the incremental QP design in VVC draft 5 and earlier standards does not apply to the 64x64 pipeline concept. Because in-loop filtering requires a QP value, the absence of a QP value may mean that the processing of the previous TU of the CU cannot be completed.
[0142] Specifically, the deblocking filter may need QP to determine the filtering threshold. Therefore, in the VVC standard draft 6, conditions are added to the incremental QP signaling. Specifically, in the case of a CU with cbWidth[chType]>64 or cbHeight[chType]>64, a condition for signaling the incremental QP can be added, regardless of whether the first TU has non-zero coefficients (i.e., coded coefficients).
[0143] For example, the luma delta QP in VVC draft standard 6 may be signaled as shown in the following table.
[0144] [Table 1]
[0145]
[0146] In addition, for example, in VVC draft 5, chroma QP control is only available at the picture and slice levels. For example, chroma QP can be derived as follows.
[0147] [Equation 1]
[0148] qPi Cb =Clip3(-QpBdOffset C , 69, Qp Y +pps_cb_qp_offset+slice_cb_qp_offset),
[0149] qPi Cr =Clip3(-QpBdOffsetC , 69, Qp Y +pps_cr_qp_offset+slice_cr_qp_offset),
[0150] qPi CbCr =Clip3(-QpBdOffset C , 69, Qp Y +pps_joint_cbcr_qp_offset+slice_joint_cbcr_qp_offset)
[0151] where Qp Y Can represent brightness QP; QpBdOffset C It can represent the chroma QP range offset; pps_cb_qp_offset, pps_cr_qp_offset and pps_joint_cbcr_qp_offset can represent the PPS level QP offset of the corresponding chroma component; and slice_cb_qp_offset, slice_cr_qp_offset and slice_joint_cbcr_qp_offset can represent the slice level QP offset of the corresponding chroma component. In addition, Qp′ Cb It can represent the chromaticity quantization parameter for the chroma Cb component; Qp′ Cr It can represent the chrominance quantization parameter for the chrominance Cr component; and Qp′ CbCr It can represent the chrominance quantization parameters for joint Cb-Cr coding.
[0152] In addition, for example, in VVC standard draft 6, CU-level chroma QP control is also applied. For example, chroma QP can be derived as follows.
[0153] [Equation 2]
[0154] Qp′ Cb =Clip3(-QpBdOffset C ,63,qP Cb +pps_cb_qp_offset+slice_cb_qp_offset+CuQpOffset Cb
[0155] )+QpBdOffset C
[0156] Qp′ Cr =Clip3(-QpBdOffset C ,63,qP Cr+pps_cr_qp_offset+slice_cr_qp_offset+CuQpOffset Cr )
[0157] +QpBdOffset C
[0158] Qp′ CbCr =Clip3(-QpBdOffset C ,63,qP CbCr +pps_cbcr_qp_offset+slice_cbcr_qp_offset+CuQpOf
[0159] fset CbCr )+QpBdOffset C
[0160] Among them, CuQpOffset Cb 、CuQpOffset Cr and CuQpOffset CbCr It can represent the CU-level QP offset of the corresponding chroma component. In addition, Qp′ Cb It can represent the chromaticity quantization parameter for the chroma Cb component; Qp′ Cr It can represent the chrominance quantization parameter for the chrominance Cr component; and Qp′ CbCr It can represent the chrominance quantization parameters for joint Cb-Cr coding.
[0161] Figure 8 An example of a QP map for luma and chroma blocks when a single tree is used. The CU chroma QP can be derived as the sum of the luma QP and the signaled chroma QP offset. Figure 8 , a rectangle indicated by a solid line may indicate a quantization group, and a rectangle indicated by a dotted line may indicate a CU. In addition, for example, referring to Figure 8 ,CuQpOffset chroma It can be 2. At the same time, the tree type of the current block can be divided into single tree (SINGLE_TREE) or dual tree (DUAL_TREE) according to whether the current luma block and the corresponding current chroma block have their own separate partition structures. For example, if the current chroma block has the same partition structure as the current luma block, it can be represented as a single tree, and if the current chroma block has a different partition structure from the current luma block, it can be represented as a dual tree. The current block can be a CU or a TU.
[0162] Figure 9 An example of a QP map for a chroma block when a dual tree is used is shown. Figure 9 (a), CuQpOffsetchroma Can be -9, and refer to Figure 9 (b), CuQpOffset chroma Possibly 2. When using dual-tree, luma and chroma CU boundaries may not align. That is, chroma blocks may have a different partition structure than the corresponding luma blocks. Therefore, for each chroma CU, the chroma QP can be derived as the sum of the co-located luma QP (corresponding to the center of the chroma CU) and the signaled chroma QP offset. The correlation between luma QP and chroma QP is maintained to some extent, but the control of chroma QP may be difficult to predict.
[0163] In addition, in VVC standard draft 6, the joint CbCr residual coding mode is integrated into the offset table by extending it from 2 QPoffsets per entry to 3 QPoffsets per entry.
[0164] In addition, for example, the TU syntax of the VVC standard draft 6 may be as shown in the following table.
[0165] [Table 2]
[0166]
[0167]
[0168]
[0169] The transform coefficient level can be represented as an array TransCoeffLevel[x0][y0][cIdx][xC][yC]. Here, the array indexes x0 and y0 can represent the position (x0, y0) of the upper left luma sample of the corresponding transform block for the upper left luma sample of the picture. That is, when the position of the upper left luma sample of the picture is (0, 0), the array indexes x0 and y0 can represent the position (x0, y0) of the upper left luma sample of the corresponding transform block. In addition, the array index cIdx can represent the index of the color component. For example, the array index value of the luma component (Y component) may be equal to 0; the array index value of the chroma Cb component may be equal to 1; and the array index value of the chroma Cr component may be equal to 2. In addition, the array indexes xC and yC can represent the position (xC, yC) of the transform coefficient in the current transform block. At the same time, if the value of TransCoeffLevel[x0][y0][cIdx][xC][yC] is not specified, the value can be inferred to be equal to 0.
[0170] In addition, for example, if the syntax element tu_cbf_cb[x0][y0] is 1, it can indicate that one or more non-zero transform coefficient levels are included in the Cb transform block. Here, the array index x0 and y0 can represent the upper left position (x0, y0) of the transform block under consideration. When the syntax element tu_cbf_cb[x0][y0] does not exist in the current TU, the value of the syntax element tu_cbf_cb[x0][y0] can be inferred to be 0. In addition, tu_cbf_cb[x0][y0] can be expressed as tu_cb_coded_flag[x0][y0].
[0171] In addition, for example, if the syntax element tu_cbf_cr[x0][y0] is 1, it can indicate that one or more non-zero transform coefficient levels are included in the Cr transform block. Here, the array index x0 and y0 can represent the upper left position (x0, y0) of the transform block under consideration. When the syntax element tu_cbf_cr[x0][y0] does not exist in the current TU, the value of the syntax element tu_cbf_cr[x0][y0] can be inferred to be 0. In addition, tu_cbf_cr[x0][y0] can be expressed as tu_cr_coded_flag[x0][y0].
[0172] In addition, for example, if the syntax element tu_cbf_luma[x0][y0] is 1, it can indicate that one or more non-zero transform coefficient levels are included in the luma transform block. Here, the array indexes x0 and y0 can represent the position (x0, y0) of the upper left luma sample of the corresponding transform block of the upper left luma sample of the picture. That is, when the position of the upper left luma sample of the picture is (0, 0), the array indexes x0 and y0 can represent the position (x0, y0) of the upper left luma sample of the corresponding transform block. When the syntax element tu_cbf_luma[x0][y0] does not exist in the current TU, the value of the syntax element tu_cbf_luma[x0][y0] can be inferred as follows.
[0173] For example, when the value of cu_sbt_flag is 1 and one of the conditions to be described later is true, the value of the syntax element tu_cbf_luma[x0][y0] may be inferred to be 0.
[0174] -When the value of subTuIndex is 0 and the value of cu_sbt_pos_flag is 1
[0175] -When the value of subTuIndex is 1 and the value of cu_sbt_pos_flag is 0
[0176] Meanwhile, in other cases, the value of the syntax element tu_cbf_luma[x0][y0] may be inferred to be 1. In addition, tu_cbf_luma[x0][y0] may be expressed as tu_y_coded_flag[x0][y0].
[0177] In addition, for example, the syntax element tu_joint_cbcr_residual_flag[x0][y0] may indicate whether the residual samples of the chroma component Cb and the chroma component Cr are coded with a single transform block. Here, the array indexes x0 and y0 may represent the position (x0, y0) of the upper left luma sample of the corresponding transform block for the upper left luma sample of the picture. That is, when the position of the upper left luma sample of the picture is (0, 0), the array indexes x0 and y0 may represent the position (x0, y0) of the upper left luma sample of the corresponding transform block.
[0178] For example, if the syntax element tu_joint_cbcr_residual_flag[x0][y0] is 1, it may indicate that the transform unit syntax includes the transform coefficient levels for a single transform block, from which the residual samples for the chroma component Cb and the chroma component Cr are derived. In addition, for example, if the syntax element tu_joint_cbcr_residual_flag[x0][y0] is 0, it may indicate that the transform coefficient levels of the chroma components are coded, as indicated by the syntax elements tu_cbf_cb[x0][y0] and tu_cbf_cr[x0][y0]. When the syntax element tu_joint_cbcr_residual_flag[x0][y0] is not present, the value of the syntax element tu_joint_cbcr_residual_flag[x0][y0] may be inferred to be 0.
[0179] For example, from tu_joint_cbcr_residual_flag[x0][y0], tu_cbf_cb[x0][y0], and tu_cbf_cr[x0][y0], the variable TuCResMode[x0][y0] may be derived as follows.
[0180] -For example, when the value of tu_joint_cbcr_residual_flag[x0][y0] is 0, the variable TuCResMode[x0][y0] can be set to 0.
[0181] - If it does not correspond to the above situation and tu_cbf_cb[x0][y0] is 1 and tu_cbf_cr[x0][y0] is 0, the variable TuCResMode[x0][y0] can be set to 1.
[0182] -If it does not correspond to the above situation and tu_cbf_cb[x0][y0] is 1, the variable TuCResMode[x0][y0] can be set to 2.
[0183] - If it does not correspond to the above situation, the variable TuCResMode[x0][y0] can be set to 3.
[0184] In addition, for example, the syntax element cu_qp_delta_abs may represent the absolute value of the difference CuQpDeltaVal between the quantization parameter of the current coding unit and its prediction.
[0185] Furthermore, for example, the syntax element cu_qp_delta_sign_flag may indicate the sign of CuQpDeltaVal as follows.
[0186] - For example, when cu_qp_delta_sign_flag is 0, the corresponding CuQpDeltaVal may have a positive value.
[0187] - If it does not correspond to the above case (ie, when cu_qp_delta_sign_flag is 1), the corresponding CuQpDeltaVal may have a negative value.
[0188] Meanwhile, when the syntax element cu_qp_delta_sign_flag does not exist, the value of the syntax element cu_qp_delta_sign_flag may be inferred to be 0.
[0189] Furthermore, for example, when cu_qp_delta_abs exists, the variable IsCuQpDeltaCoded and the variable CuQpDeltaVal can be derived as the following equation.
[0190] [Equation 3]
[0191] IsCuQPDeltaCoded=l
[0192] CuQPDeltaVal=cu_qp_delta_abs*(1-2*cu_qp_delta_sign_flag)
[0193] The value of CuQpDeltaVal can be in the range of -(32+QpBdOffsetY / 2) to +(31+QpBdOffsetY / 2).
[0194] Furthermore, for example, if the syntax element cu_chroma_qp_offset_flag is present and equal to 1, the syntax element cu_chroma_qp_offset_flag may indicate that the entry of cb_qp_offset_list[] is used to determine CuQpOffset Cb The corresponding entry of cr_qp_offset_list[] is used to determine CuQpOffset Cr The value of , and the corresponding entry in joint_cbcr_qp_offset_list[] is used to determine CuQpOffset CbCr In addition, for example, if the syntax element cu_chroma_qp_offset_flag is 0, the syntax element cu_chroma_qp_offset_flag may indicate that cb_qp_offset_list[], cr_qp_offset_list[], and joint_cbcr_qp_offset_list[] are not used to determine CuQpOffset Cb 、CuQpOffset Cr and CuQpOffset CbCr The value of .
[0195] In addition, for example, when the syntax element cu_chroma_qp_offset_idx exists, the syntax element cu_chroma_qp_offset_idx may indicate the number of bits used to determine CuQpOffset Cb 、CuQpOffset Cr and CuQpOffsetCb CbCr _chroma_qp_offset_list_len_minus1. When the syntax element cu_chroma_qp_offset_idx is present, the value of the syntax element cu_chroma_qp_offset_idx may be in the range from 0 to chroma_qp_offset_list_len_minus1. When the syntax element cu_chroma_qp_offset_idx is not present, the syntax element cu_chroma_qp_offset_idx may be inferred to be 0.
[0196] Furthermore, for example, when the syntax element cu_chroma_qp_offset_flag is present, the following description may apply.
[0197] - If cu_chroma_qp_offset_flag is 1, CuQpOffset Cb 、CuQpOffset Cr and CuQpOffset CbCr The value of can be derived as shown in the following equation.
[0198] [Equation 4]
[0199] CuQpOffset Cb =cb_qp_offset_list[cu_chroma_qp_offset_idx]
[0200] CuQpOffset Cr =cr_qp_offset_list[cu_chroma_qp_offset_idx]
[0201] CuQpOffset CbCr =joint_cbcr_qp_offset_list[cu_chroma_qp_offset_idx]
[0202] - If it does not correspond to the above situation (ie, when cu_chroma_qp_offset_flag is 0), CuQpOffset Cb 、CuQpOffset Cr and CuQpOffset CbCr Set to 0.
[0203] In addition, for example, the syntax element transform_skip_flag[x0][y0] can indicate whether the transform is applied to the luma transform block. Here, the array indexes x0 and y0 can represent the position (x0, y0) of the upper left luma sample of the corresponding transform block of the upper left luma sample of the picture. That is, when the position of the upper left luma sample of the picture is (0, 0), the array indexes x0 and y0 can represent the position (x0, y0) of the upper left luma sample of the corresponding transform block. For example, if transform_skip_flag[x0][y0] is 1, it can indicate that no transform is applied to the luma transform block. In addition, for example, if transform_skip_flag[x0][y0] is 0, it can indicate that whether the transform is applied to the luma transform block can be determined based on another syntax element.
[0204] In addition, for example, when transform_skip_flag[x0][y0] does not exist, the value of transform_skip_flag[x0][y0] can be inferred as follows.
[0205] - For example, if BdpcmFlag[x0][y0] is 1, then transform_skip_flag[x0][y0] can be inferred to be 1.
[0206] - If it does not correspond to the above situation (ie, for example, when BdpcmFlag[x0][y0] is 0), transform_skip_flag[x0][y0] can be inferred to be 0.
[0207] In addition, for example, the syntax element tu_mts_idx[x0][y0] may represent the transform kernel applied to the residual sample in the horizontal and vertical directions of the associated luma transform block. Here, the array indexes x0 and y0 may represent the position (x0, y0) of the upper left luma sample of the corresponding transform block for the upper left luma sample of the picture. That is, when the position of the upper left luma sample of the picture is (0, 0), the array indexes x0 and y0 may represent the position (x0, y0) of the upper left luma sample of the corresponding transform block. In addition, for example, when the syntax element tu_mts_idx[x0][y0] does not exist, the syntax element tu_mts_idx[x0][y0] may be inferred to be 0.
[0208] Figure 10 The sample positions used for deblocking filtering are exemplarily represented.
[0209] At the same time, chroma QP can be used for deblocking filtering of chroma components. However, for example, for chroma QP used for deblocking filtering, slice-level and CU-level QP adjustments may not be considered. For example, the chroma QP used for deblocking filtering can be derived based on the corresponding luma QP and the picture-level chroma QP offset cQpPicOffset. Here, for example, if cIdx is 1, cQpPicOffset representing the picture-level chroma QP offset can be derived as pps_cb_qp_offset, and if cIdx is not 1, it can be derived as pps_cr_qp_offset.
[0210] In addition, for example, the variable Qp Q Can be set equal to the Qp of the coding unit including the coding block Y Value, the compilation block includes Figure 6 The sample q shown in 0,0 , and the variable Qp P Can be set equal to the Qp of the coding unit including the coding block Y Value, the compilation block includes Figure 6 The sample p shown in 0,0 .
[0211] After that, the chroma QP Qp used for deblocking filtering C It can be derived as the following equation.
[0212] [Equation 5]
[0213] qPi=Clip3(0,63,((Qp Q +Qp P +1)>>1)+cQpPicOffset)
[0214] Qp C =ChromaQpTable[cIdx-1][qPi]
[0215] At the same time, there may be some shortcomings in the chroma QP-related design of the deblocking filter of the existing VVC standard. Because VVC supports dual trees, there may be a large difference between the luma QP and chroma QP of the CU due to the different partitioning of the luma block and the chroma block. In addition, the VVC standard supports the YUV 4:2:2 format and the YUV 4:4:4 format as well as the YUV 4:2:0 format. Here, in the case of the YUV 4:4:4 format, if an inaccurate chroma QP is used for deblocking filtering, it may have a greater effect and visual artifacts may occur.
[0216] Therefore, this document proposes an efficient chroma QP signaling scheme, as described in the embodiments later.
[0217] In one embodiment, chroma QP offset signaling supporting VDPU-level processing is proposed. In this embodiment, for a chroma CU with a cbWidth or cbHeight greater than 64, the CU chroma QP offset (when a chroma QP offset for the chroma CU exists) can be signaled, regardless of whether a non-zero chroma CBF is included in the first TU. That is, according to this embodiment, when the cbWidth or cbHeight of the current chroma CU is greater than 64, the CU chroma QP offset (when a chroma QP offset for the chroma CU exists) can be signaled, regardless of whether the first TU has non-zero coefficients. Here, cbWidth and cbHeight can represent the CU width and CU height of the luma element or chroma element according to the channel type or tree type. For example, in the case of an image in YUV 4:4:4 format, since a chroma CU with a width or height greater than 64 may be generated, VDPU-level processing is possible through the method proposed in this embodiment, and QP can be enabled when parsing the VDPU.
[0218] For example, the transformation unit syntax according to this embodiment may be as shown in the following table.
[0219] [Table 3]
[0220]
[0221] Referring to Table 3, "CbWidth[chType][x0][y0]>64||CbHeight[chType][x0][y0]>64||" may be added to the signaling conditions of the CU chroma QP offset related information. That is, referring to Table 3, when CbWidth[chType][x0][y0] is greater than 64 or CbHeight[chType][x0][y0] is greater than 64, the CU chroma QP offset related information may be signaled. The CU chroma QP offset related information may include the syntax element cu_chroma_qp_offset_flag and / or the syntax element cu_chroma_qp_offset_idx.
[0222] For example, if the syntax element cu_chroma_qp_offset_flag is present and equal to 1, the syntax element cu_chroma_qp_offset_flag may indicate that the entry of cb_qp_offset_list[] is used to determine CuQpOffset Cb The corresponding entry of cr_qp_offset_list[] is used to determine CuQpOffset Cr The value of , and the corresponding entry in joint_cbcr_qp_offset_list[] is used to determine CuQpOffset CbCr In addition, for example, if the syntax element cu_chroma_qp_offset_flag is 0, the syntax element cu_chroma_qp_offset_flag may indicate that cb_qp_offset_list[], cr_qp_offset_list[], and joint_cbcr_qp_offset_list[] are not used to determine CuQpOffset Cb 、CuQpOffset Cr and CuQpOffset CbCr The value of .
[0223] In addition, for example, when the syntax element cu_chroma_qp_offset_idx exists, the syntax element cu_chroma_qp_offset_idx may indicate the number of bits used to determine CuQpOffset Cb 、CuQpOffset Cr and CuQpOffset CbCr_chroma_qp_offset_list_len_minus1. When the syntax element cu_chroma_qp_offset_idx is present, the value of the syntax element cu_chroma_qp_offset_idx may be in the range from 0 to chroma_qp_offset_list_len_minus1. When the syntax element cu_chroma_qp_offset_idx is not present, the syntax element cu_chroma_qp_offset_idx may be inferred to be 0.
[0224] In addition, as an embodiment, this document proposes a method for adding conditions to dual-tree CU-level chroma QP offset signaling. This embodiment proposes a method for modifying the availability conditions of the existing syntax of the CU chroma QP offset flag to avoid unnecessary signaling. For example, according to this embodiment, when the coding tree is dual-tree luma (DUAL_TREE_LUMA), that is, when the coding tree is neither single-tree (SINGLE_TREE) nor dual-tree chroma (DUAL_TREE_CHROMA), CU chroma QP offset related information may not be signaled.
[0225] For example, the transformation unit syntax according to this embodiment may be as shown in the following table.
[0226] [Table 4]
[0227]
[0228] Referring to Table 4, "&&treeType!=DUAL_TREE_LUMA" can be added to the signaling conditions for CU chroma QP offset related information. That is, referring to Table 4, CU chroma QP offset related information can be signaled only when the coding tree is not DUAL_TREE_LUMA. CU chroma QP offset related information may include the syntax element cu_chroma_qp_offset_flag and / or the syntax element cu_chroma_qp_offset_idx.
[0229] In addition, as an embodiment, this document proposes another method for adding conditions to CU-level chroma QP offset signaling. This embodiment proposes a method for modifying the availability conditions of the existing syntax for the CU chroma QP offset flag to avoid unnecessary signaling. For example, this embodiment proposes a method for modifying the availability conditions of the existing syntax by combining the signaling conditions of the above embodiment.
[0230] For example, the transformation unit syntax according to this embodiment may be as shown in the following table.
[0231] [Table 5]
[0232]
[0233] Referring to Table 5, "CbWidth[chType][x0][y0]>64||CbHeight[chType][x0][y0]>64||" and "&&treeType!=DUAL_TREE_LUMA" may be added to the signaling conditions of the CU chroma QP offset related information. That is, referring to Table 5, if the coding tree is not DUAL_TREE_LUMA and CbWidth[chType][x0][y0] is greater than 64, or CbHeight[chType][x0][y0] is greater than 64, the CU chroma QP offset related information may be signaled. Therefore, when the coding tree is DUAL_TREE_LUMA, the CU chroma QP offset related information may not be signaled. The CU chroma QP offset related information may include the syntax element cu_chroma_qp_offset_flag and / or the syntax element cu_chroma_qp_offset_idx.
[0234] In addition, this document proposes a method for using CU-level chroma QP for deblocking filtering. This embodiment proposes a method for integrating slice-level chroma QP and / or CU-level chroma QP into the chroma QP expressed as QpC and used for chroma deblocking processing. Deblocking parameters can be determined based on the derived QpC.
[0235] For example, the variable QpC may be derived based on the Qp of the neighboring CU, as shown in the following equation.
[0236] [Equation 6]
[0237] QpC=Clip3(0,63,((Qp Q’cIdx +Qp P’cIdx +1)>>l))
[0238] Here, Qp Q 'cIdx may represent the chroma QP of the CU P adjacent to the block boundary to be deblocked, and Qp P 'cIdx may represent the chroma QP of the CU Q adjacent to the block boundary to be deblocked. In addition, cIdx may be an index representing a chroma component. For example, cIdx may represent a chroma Cb component, a chroma Cr component, or a chroma CbCr component. Qp Q ′cIdx and Qp P'cIdx may be a value in which slice-level QP adjustment and CU-level QP adjustment have been considered.
[0239] Alternatively, for example, a variable QpC may be first derived based on the luma QP of neighboring CU P and neighboring CU Q, and then slice-level QP adjustment and CU-level QP adjustment may be added. For example, the variable QpC may be derived as follows.
[0240] [Equation 7]
[0241] qP i =Clip3(0, 63, ((Qp Q +Qp P +1)>>1)+cQpPicOffset)
[0242] QpC=ChromaQpTable[cIdx-1][qPi]+SliceQpOffset cIdx +((CuQpOffset PcIdx +CuQpOffset PcIdx +
[0243] 1)>>1)
[0244] Here, CuQpOffset PcIdx It can represent the CuQPOffset of the element cIdx of the adjacent CU P, and CuQpOffset QcIdx It can represent the CuQPOffset of the element cIdx of the adjacent CU Q.
[0245] Figure 11 An image encoding method according to the encoding device of this document is schematically shown. Figure 11 The method disclosed in Figure 2 Specifically, for example, Figure 11 S1100 to S1140 in the above process may be performed by the residual processor of the encoding device, and S1150 may be performed by the entropy encoder of the encoding device. In addition, although not shown, the process of deriving the prediction sample of the current chroma block may be performed by the predictor of the encoding device, and the process of generating the reconstructed sample and the reconstructed picture based on the residual sample and the prediction sample may be performed by the adder of the encoding device.
[0246] The encoding apparatus derives residual samples of the current chroma block ( S1100 ). The encoding apparatus may derive residual samples of the current chroma block.
[0247] For example, the encoding device may derive the prediction sample of the current chroma block based on the prediction mode. In this case, various prediction methods disclosed in this document, such as inter-frame prediction or intra-frame prediction, may be applied.
[0248] For example, the encoding device may determine whether to perform inter-frame prediction or intra-frame prediction on the current chroma block, and may determine a specific inter-frame prediction mode or a specific intra-frame prediction mode based on the RD cost. Based on the determined mode, the encoding device may derive prediction samples for the current chroma block. Then, for example, the encoding device may derive residual samples by subtracting the prediction samples of the current chroma block from the original samples.
[0249] The encoding apparatus generates coding unit (CU) chroma quantization parameter (QP) offset related information of the current chroma block based on the size and tree type of the current chroma block ( S1110 ).
[0250] The encoding device may generate CU chroma quantization parameter (QP) offset related information of the current chroma block based on the size and tree type of the current chroma block. The CU chroma QP offset related information may be referred to as CU-level chroma QP offset related information. Here, the tree type may be one of a single tree, a dual-tree luminance, and a dual-tree chroma. In addition, for example, the CU chroma QP offset related information may be signaled as a transform unit syntax for the first transform block among the transform blocks for the current chroma block. That is, for example, the transform unit syntax for the first transform block may include CU chroma QP offset related information. The first transform block may be a transform block that is first coded in decoding order among the transform blocks of the current chroma block. For example, the first transform block may be the upper left transform block among the transform blocks of the current chroma block.
[0251] Specifically, for example, when at least one of the width and height of the current chroma block is greater than a specific value, CU chroma QP offset-related information for the current chroma block may be signaled. That is, for example, when at least one of the width and height of the current chroma block is greater than a specific value, CU chroma QP offset-related information for the current chroma block may be generated. In this regard, the specific value may be 64, for example. Furthermore, for example, the transform unit syntax for a first transform block may include CU chroma QP offset-related information for the current chroma block. For example, when at least one of the width and height of the current chroma block is greater than a specific value, CU chroma QP offset-related information for the current chroma block may be signaled in the transform unit syntax of the first transform block, regardless of whether the first transform block includes at least one non-zero transform coefficient level. That is, when at least one of the width and height of the current chroma block is greater than a specific value, the transform unit syntax of the first transform block may include CU chroma QP offset-related information for the current chroma block, regardless of whether the first transform block includes at least one non-zero transform coefficient level.
[0252] Alternatively, for example, when the tree type is dual-tree luma, the CU chroma QP offset-related information of the current chroma block may not be signaled. That is, for example, when the tree type is dual-tree luma, the CU chroma QP offset-related information of the current chroma block may not be generated. Therefore, for example, when the tree type is not dual-tree luma (i.e., when the tree type is one of single-tree and dual-tree chroma), the CU chroma QP offset-related information of the current chroma block may be signaled. That is, for example, when the tree type is not dual-tree luma (i.e., when the tree type is one of single-tree and dual-tree chroma), the CU chroma QP offset-related information of the current chroma block may be generated. In this regard, for example, the transform unit syntax of the first transform block may include the CU chroma QP offset-related information of the current chroma block. For example, when the tree type is not dual-tree luma (i.e., when the tree type is one of single-tree and dual-tree chroma), the CU chroma QP offset-related information of the current chroma block may be signaled through the transform unit syntax for the first transform block, regardless of whether the first transform block includes at least one non-zero transform coefficient level. That is, for example, when the tree type is not dual-tree luma (i.e., when the tree type is one of single-tree and dual-tree chroma), the transform unit syntax for the first transform block may include the CU chroma QP offset-related information of the current chroma block, regardless of whether the first transform block includes at least one non-zero transform coefficient level.
[0253] Alternatively, for example, when at least one of the width and height of the current chroma block is greater than a specific value and when the tree type is not dual-tree luma (i.e., when the tree type is one of single-tree and dual-tree chroma), the CU chroma QP offset-related information of the current chroma block may be signaled. That is, for example, when at least one of the width and height of the current chroma block is greater than a specific value and when the tree type is not dual-tree luma (i.e., when the tree type is one of single-tree and dual-tree chroma), the CU chroma QP offset-related information of the current chroma block may be generated. In this regard, the specific value may be 64, for example. Therefore, for example, when the tree type is dual-tree luma, the CU chroma QP offset-related information of the current chroma block may not be signaled. Additionally, for example, the transform unit syntax of the first transform block may include the CU chroma QP offset-related information of the current chroma block. For example, when at least one of the width and height of the current chroma block is greater than a specific value and when the tree type is not dual-tree luma (i.e., when the tree type is one of single-tree and dual-tree chroma), the CU chroma QP offset-related information of the current chroma block may be signaled through the transform unit syntax of the first transform block, regardless of whether the first transform block includes at least one non-zero transform coefficient level. That is, for example, when at least one of the width and height of the current chroma block is greater than a specific value and when the tree type is not dual-tree luma (i.e., when the tree type is one of single-tree and dual-tree chroma), the transform unit syntax of the first transform block may include the CU chroma QP offset-related information of the current chroma block, regardless of whether the first transform block includes at least one non-zero transform coefficient level.
[0254] At the same time, for example, the CU chroma QP offset related information may include a CU chroma QP offset index and / or a CU chroma QP offset flag for the current chroma block. The CU chroma QP offset flag may also be referred to as a CU-level chroma QP offset flag, and the CU chroma QP offset index may also be referred to as a CU-level chroma QP offset index.
[0255] For example, the CU chroma QP offset flag may be a flag indicating whether entries in the CU QP offset list for chroma components are used to determine the value of the CU chroma QP offset. That is, for example, the CU chroma QP offset flag may indicate whether entries in the CU QP offset list for chroma components are used to determine the value of the CU chroma QP offset. For example, when the CU chroma QP offset flag is present and the value of the CU chroma QP offset flag is 1, the CU chroma QP offset flag may indicate that entries in the CU QP offset list for chroma components are used to determine the value of the CU chroma QP offset. Furthermore, for example, when the value of the CU chroma QP offset flag is 0, the CU chroma QP offset flag may indicate that the CU QP offset list for chroma components is not used to determine the value of the CU chroma QP offset. Here, for example, chroma components may include Cb components, Cr components, and / or joint CbCr components. Furthermore, for example, the syntax element of the CU chroma QP offset flag may be the aforementioned cu_chroma_qp_offset_flag.
[0256] Furthermore, for example, the CU chroma QP offset index may indicate the index of an entry in the CU QP offset list used to determine the value of the CU chroma QP offset. That is, for example, the CU chroma QP offset index may be information regarding the index of an entry in the CU QP offset list. Furthermore, for example, the syntax element of the CU chroma QP offset index may be the aforementioned cu_chroma_qp_offset_idx.
[0257] The encoding device derives the chroma QP of the current chroma block based on the CU chroma QP offset related information (S1120). The encoding device may derive the chroma QP of the current chroma block based on the CU chroma QP offset related information. For example, the encoding device may derive the CU chroma QP offset of the current chroma block based on the CU chroma QP offset related information, and may derive the chroma QP of the current chroma block based on the CU chroma QP offset. Specifically, for example, the encoding device may derive the chroma QP of the current chroma block by adding the CU chroma QP offset to the first chroma QP of the chroma component.
[0258] Specifically, for example, the encoding device may derive a first chroma QP for the chroma component of the current chroma block based on the luma QP and / or chroma QP mapping table, may derive a CU chroma QP offset for the current chroma block based on CU chroma QP offset-related information, and may derive a chroma QP for the current chroma block based on the first chroma QP and the CU chroma QP offset. Here, for example, the first chroma QP may be referred to as a sequence parameter set (SPS) chroma QP or an SPS-level chroma QP.
[0259] The encoding device derives the transform coefficients of the current chroma block by quantizing the residual samples based on the chroma QP (S1130). The encoding device may derive the transform coefficients of the current chroma block based on the chroma QP. For example, the encoding device may derive the transform coefficients by quantizing the residual samples of the current chroma block based on the chroma QP. Alternatively, for example, the decoding device may derive the transform coefficients that have been transformed by transforming the residual samples of the current chroma block, and may derive the transform coefficients by quantizing the transformed transform coefficients based on the chroma QP.
[0260] The encoding device generates residual information for the transform coefficient (S1140). For example, the encoding device may generate and encode residual information for the transform coefficient. For example, the residual information may include transform coefficient level information and sign flag information for the transform coefficient. For example, the transform coefficient level of the transform coefficient may be derived as a value represented by the transform coefficient level information included in the residual information, and the sign of the transform coefficient may be derived as a sign represented by the sign flag information. For example, the residual information may include syntax elements for the transform coefficient of the current chroma block. For example, the syntax elements may include syntax elements such as coded_sub_block_flag, sig_coeff_flag, coeff_sign_flag, abs_level_gt1_flag, par_level_flag, abs_level_gtX_flag, abs_remainder, coeff_sign_flag, etc.
[0261] The encoding apparatus encodes image information including CU chroma QP offset related information and residual information (S1150). The encoding apparatus may encode CU chroma QP offset related information and residual information. The image information may include CU chroma QP offset related information and residual information.
[0262] At the same time, for example, the encoding device can generate and encode prediction information for the current chroma block. In this case, various prediction methods disclosed in this document, such as inter-frame prediction or intra-frame prediction, can be applied. For example, the encoding device can determine whether to perform inter-frame prediction or intra-frame prediction on the current chroma block, and can determine a specific inter-frame prediction mode or a specific intra-frame prediction mode based on the RD cost. Based on the determined mode, the encoding device can derive prediction samples for the current chroma block. The prediction information may include prediction mode information for the current chroma block. The image information may include prediction information.
[0263] In addition, for example, the encoding device may encode image information and output it in the form of a bit stream.
[0264] Meanwhile, for example, the encoding apparatus may generate a reconstructed sample and / or a reconstructed picture by adding the predicted sample and the residual sample.
[0265] Thereafter, as described above, an in-loop filtering process such as an ALF process, SAO and / or deblocking filtering may be applied to the reconstructed samples as needed in order to improve the subjective / objective video quality.
[0266] At the same time, for example, deblocking filtering can be performed on the edge of the current chroma block. For example, a specific value can be derived based on the chroma QP of the current chroma block and the chroma QP of the neighboring blocks of the current chroma block adjacent to the edge, and the deblocking parameters for deblocking filtering can be derived based on the specific value. For example, the specific value can be derived as in Equation 6 above. The chroma QP of the current chroma block can be derived based on the CU chroma QP offset of the current chroma block as described above, and the chroma QP of the neighboring blocks can be derived based on the CU chroma QP offset of the neighboring blocks. Here, for example, the edge can represent the area of the current chroma block to which deblocking filtering is applied.
[0267] Alternatively, for example, a specific value may be derived based on the chroma QP of the current chroma block, the chroma QP of a neighboring block of the current chroma block adjacent to an edge, and the CU chroma QP offset, and deblocking parameters for deblocking filtering may be derived based on the specific value. For example, the specific value may be derived as in Equation 7 above. Here, for example, the edge may represent an area of the current chroma block to which deblocking filtering is applied.
[0268] At the same time, the bit stream including the image information can be sent to the decoding device via a network or a (digital) storage medium. Here, the network can include a broadcast network, a communication network, etc., and the digital storage medium can include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, SSD, etc.
[0269] Figure 12 A coding apparatus for executing the image coding method according to this document is schematically shown. Figure 11 The method disclosed in Figure 12 Specifically, for example, Figure 12 The residual processor of the encoding device may perform S1100 to S1140, and Figure 12 The entropy encoder of the encoding device may perform S1150. In addition, although not shown, the process of deriving the predicted sample of the current chroma block may be performed by the predictor of the encoding device, and the process of generating the reconstructed sample and the reconstructed picture based on the residual sample and the predicted sample may be performed by the adder of the encoding device.
[0270] Figure 13 The image decoding method of the decoding device according to this document is schematically shown. Figure 13 The method disclosed in Figure 3 Specifically, for example, Figure 13 S1300 and S1310 may be performed by an entropy decoder of a decoding device; Figure 13 S1320 to S1340 may be performed by a residual processor of the decoding device; and Figure 13 S1350 may be performed by an adder of the decoding device.
[0271] The decoding apparatus obtains residual information of the current chroma block (S1300). The decoding apparatus may obtain image information from a bitstream. For example, the image information may include residual information of the current chroma block. For example, the residual information may include syntax elements for transform coefficients of the current chroma block. For example, the syntax elements may include syntax elements such as coded_sub_block_flag, sig_coeff_flag, coeff_sign_flag, abs_level_gt1_flag, par_level_flag, abs_level_gtX_flag, abs_remainder, coeff_sign_flag, etc.
[0272] The decoding apparatus obtains coding unit (CU) chroma quantization parameter (QP) offset related information of the current chroma block based on the size and tree type of the current chroma block ( S1310 ).
[0273] The decoding device can obtain the CU chroma quantization parameter (QP) offset related information of the current chroma block based on the size and tree type of the current chroma block. For example, the image information may include the CU chroma QP offset related information. The CU chroma QP offset related information may be referred to as the CU level chroma QP offset related information. Here, the tree type may be one of a single tree, a dual tree luminance, and a dual tree chroma. In addition, for example, the CU chroma QP offset related information may be signaled as a transform unit syntax for the first transform block among the transform blocks of the current chroma block. That is, for example, the transform unit syntax of the first transform block may include the CU chroma QP offset related information. The first transform block may be the transform block that is decoded first in the decoding order among the transform blocks of the current chroma block. For example, the first transform block may be the upper left transform block among the transform blocks of the current chroma block.
[0274] Specifically, for example, when at least one of the width and height of the current chroma block is greater than a specific value, CU chroma QP offset-related information for the current chroma block may be signaled. That is, for example, when at least one of the width and height of the current chroma block is greater than a specific value, CU chroma QP offset-related information for the current chroma block may be obtained. In this regard, the specific value may be 64, for example. Furthermore, for example, the transform unit syntax of a first transform block may include CU chroma QP offset-related information for the current chroma block. For example, when at least one of the width and height of the current chroma block is greater than a specific value, CU chroma QP offset-related information for the current chroma block may be obtained as the transform unit syntax of the first transform block, regardless of whether the first transform block includes at least one non-zero transform coefficient level. That is, for example, when at least one of the width and height of the current chroma block is greater than a specific value, the transform unit syntax of the first transform block may include CU chroma QP offset-related information for the current chroma block, regardless of whether the first transform block includes at least one non-zero transform coefficient level.
[0275] Alternatively, for example, when the tree type is dual-tree luma, the CU chroma QP offset-related information of the current chroma block may not be signaled. That is, for example, when the tree type is dual-tree luma, the CU chroma QP offset-related information of the current chroma block may not be obtained. Therefore, for example, when the tree type is not dual-tree luma (that is, when the tree type is one of single-tree and dual-tree chroma), the CU chroma QP offset-related information of the current chroma block may be signaled. That is, for example, when the tree type is not dual-tree luma (that is, when the tree type is one of single-tree and dual-tree chroma), the CU chroma QP offset-related information of the current chroma block may be obtained. At this point, for example, the transform unit syntax of the first transform block may include the CU chroma QP offset-related information of the current chroma block. For example, when the tree type is not dual-tree luma (i.e., when the tree type is one of single-tree and dual-tree chroma), the CU chroma QP offset-related information for the current chroma block may be obtained through the transform unit syntax for the first transform block, regardless of whether the first transform block includes at least one non-zero transform coefficient level. That is, for example, when the tree type is not dual-tree luma (i.e., when the tree type is one of single-tree and dual-tree chroma), the transform unit syntax for the first transform block may include the CU chroma QP offset-related information for the current chroma block, regardless of whether the first transform block includes at least one non-zero transform coefficient level.
[0276] Alternatively, for example, when at least one of the width and height of the current chroma block is greater than a specific value and when the tree type is not dual-tree luma (i.e., when the tree type is one of single-tree and dual-tree chroma), the CU chroma QP offset-related information of the current chroma block may be signaled. That is, for example, when at least one of the width and height of the current chroma block is greater than a specific value and when the tree type is not dual-tree luma (i.e., when the tree type is one of single-tree and dual-tree chroma), the CU chroma QP offset-related information of the current chroma block may be obtained. In this regard, the specific value may be 64, for example. Therefore, for example, when the tree type is dual-tree luma, the CU chroma QP offset-related information of the current chroma block may not be signaled. Additionally, for example, the transform unit syntax of the first transform block may include the CU chroma QP offset-related information of the current chroma block. For example, when at least one of the width and height of the current chroma block is greater than a specific value, and when the tree type is not dual-tree luma (i.e., when the tree type is one of single-tree and dual-tree chroma), the CU chroma QP offset-related information of the current chroma block may be obtained through the transform unit syntax of the first transform block, regardless of whether the first transform block includes at least one non-zero transform coefficient level. That is, for example, when at least one of the width and height of the current chroma block is greater than a specific value, and when the tree type is not dual-tree luma (i.e., when the tree type is one of single-tree and dual-tree chroma), the transform unit syntax of the first transform block may include the CU chroma QP offset-related information of the current chroma block, regardless of whether the first transform block includes at least one non-zero transform coefficient level.
[0277] At the same time, for example, the CU chroma QP offset related information may include the CU chroma QP offset index and / or the CU chroma QP offset flag of the current chroma block. The CU chroma QP offset flag may also be referred to as the CU-level chroma QP offset flag, and the CU chroma QP offset index may also be referred to as the CU-level chroma QP offset index.
[0278] For example, the CU chroma QP offset flag may be a flag indicating whether entries in the CU QP offset list for chroma components are used to determine the value of the CU chroma QP offset. That is, for example, the CU chroma QP offset flag may indicate whether entries in the CU QP offset list for chroma components are used to determine the value of the CU chroma QP offset. For example, when the CU chroma QP offset flag is present and the value of the CU chroma QP offset flag is 1, the CU chroma QP offset flag may indicate that entries in the CU QP offset list for chroma components are used to determine the value of the CU chroma QP offset. Furthermore, for example, when the value of the CU chroma QP offset flag is 0, the CU chroma QP offset flag may indicate that the CU QP offset list for chroma components is not used to determine the value of the CU chroma QP offset. Here, for example, chroma components may include Cb components, Cr components, and / or joint CbCr components. Furthermore, for example, the syntax element of the CU chroma QP offset flag may be the aforementioned cu_chroma_qp_offset_flag.
[0279] Furthermore, for example, the CU chroma QP offset index may indicate the index of an entry in the CU QP offset list used to determine the value of the CU chroma QP offset. That is, for example, the CU chroma QP offset index may be information regarding the index of an entry in the CU QP offset list. Furthermore, for example, the syntax element of the CU chroma QP offset index may be the aforementioned cu_chroma_qp_offset_idx.
[0280] The decoding apparatus derives the transform coefficient of the current chroma block based on the residual information (S1320). The decoding apparatus may derive the transform coefficient of the current chroma block based on the residual information. The residual information may include sign flag information for the transform coefficient and transform coefficient level information.
[0281] For example, the transform coefficient level of the transform coefficient may be derived as a value represented by transform coefficient level information included in the residual information, and the sign of the transform coefficient may be derived as a sign represented by the sign flag information.
[0282] The decoding apparatus derives the chroma QP of the current chroma block based on the CU chroma QP offset-related information (S1330). The decoding apparatus may derive the chroma QP of the current chroma block based on the CU chroma QP offset-related information. For example, the decoding apparatus may derive the CU chroma QP offset of the current chroma block based on the CU chroma QP offset-related information, and may derive the chroma QP of the current chroma block based on the CU chroma QP offset. Specifically, for example, the decoding apparatus may derive the chroma QP of the current chroma block by adding the CU chroma QP offset to the first chroma QP of the chroma component.
[0283] Specifically, for example, the decoding apparatus may derive a first chroma QP for the chroma component of the current chroma block based on the luma QP and / or chroma QP mapping table, may derive a CU chroma QP offset for the current chroma block based on CU chroma QP offset-related information, and may derive a chroma QP for the current chroma block based on the first chroma QP and the CU chroma QP offset. Here, for example, the first chroma QP may be referred to as a sequence parameter set (SPS) chroma QP or an SPS-level chroma QP.
[0284] The decoding apparatus derives residual samples of the current chroma block by dequantizing the transform coefficients based on the chroma QP (S1340). The decoding apparatus may derive the residual samples of the current chroma block based on the chroma QP. For example, the decoding apparatus may derive the residual samples by dequantizing the transform coefficients of the current chroma block based on the chroma QP. Alternatively, for example, the decoding apparatus may derive inverse-transformed transform coefficients by inverse-transforming the transform coefficients of the current chroma block, and may derive the residual samples by dequantizing the inverse-transformed transform coefficients based on the chroma QP.
[0285] The decoding apparatus generates a reconstructed picture based on the residual samples (S1350). For example, the decoding apparatus may generate a reconstructed picture based on the residual samples.
[0286] At the same time, for example, the decoding device can derive prediction samples by performing an inter-frame prediction mode or an intra-frame prediction mode for the current chroma block based on the prediction information received through the bitstream, and can generate reconstructed samples and / or reconstructed pictures by adding the prediction samples and the residual samples.
[0287] Thereafter, as described above, an in-loop filtering process such as an ALF process, SAO and / or deblocking filtering may be applied to the reconstructed samples as needed in order to improve the subjective / objective video quality.
[0288] At the same time, for example, deblocking filtering can be performed on the edge of the current chroma block. For example, a specific value can be derived based on the chroma QP of the current chroma block and the chroma QP of the neighboring blocks of the current chroma block adjacent to the edge, and the deblocking parameters for deblocking filtering can be derived based on the specific value. For example, the specific value can be derived as in Equation 6 above. The chroma QP of the current chroma block can be derived based on the CU chroma QP offset of the current chroma block as described above, and the chroma QP of the neighboring blocks can be derived based on the CU chroma QP offset of the neighboring blocks. Here, for example, the edge can represent the area of the current chroma block to which deblocking filtering is applied.
[0289] Alternatively, for example, a specific value may be derived based on the chroma QP of the current chroma block, the chroma QP of a neighboring block of the current chroma block adjacent to an edge, and the CU chroma QP offset, and deblocking parameters for deblocking filtering may be derived based on the specific value. For example, the specific value may be derived as in Equation 7 above. Here, for example, the edge may represent an area of the current chroma block to which deblocking filtering is applied.
[0290] Figure 14 A decoding device for executing the image decoding method according to this document is schematically shown. Figure 13 The method disclosed in Figure 14 Specifically, Figure 14 The entropy decoder of the decoding device can perform Figure 13 S1300 and S1310; Figure 14 The residual processor of the decoding device can perform Figure 13 S1320 to S1340; and Figure 14 The adder of the decoding device can perform Figure 13 S1350.
[0291] According to the above-mentioned document, even if the first transform block in the current chroma block does not include a non-zero transform coefficient level, and when at least one of the width and height of the current chroma block is greater than a specific size, information about the CU chroma QP offset can be sent by signal, thereby reducing the cost of configuring the decoding device.
[0292] In addition, according to this document, even if the first transform block in the current chroma block does not include a non-zero transform coefficient level, information about the CU chroma QP offset can be signaled in the transform unit syntax of the first transform block based on the size and tree type of the current chroma block, thereby reducing the cache requirements of the decoding device and reducing the cost of configuring the decoding device.
[0293] In the above embodiments, the method is described based on a flow chart with a series of steps or boxes. The present disclosure is not limited to the order of the above steps or boxes. Some steps or boxes can be performed in an order different from the above-mentioned other steps or boxes or performed simultaneously. In addition, it will be understood by those skilled in the art that the steps shown in the flow chart are not exclusive and may also include other steps, or one or more steps in the flow chart may be deleted without affecting the scope of the present disclosure.
[0294] The embodiments described in this specification can be implemented on a processor, microprocessor, controller, or chip. For example, the functional units shown in each figure can be implemented on a computer, processor, microprocessor, controller, or chip. In this case, information (e.g., information about instructions) or algorithms used for implementation can be stored in a digital storage medium.
[0295] In addition, the decoding device and encoding device to which the present disclosure is applied may be included in the following devices: multimedia broadcast transmission / reception devices, mobile communication terminals, home theater video devices, digital theater video devices, surveillance cameras, video chat devices, real-time communication devices such as video communication, mobile streaming devices, storage media, portable cameras, VoD service providers, over-the-top (OTT) video devices, Internet streaming service providers, three-dimensional (3D) video devices, teleconferencing video devices, transportation user devices (e.g., vehicle user devices, aircraft user devices, and ship user devices), and medical video equipment; and the decoding device and encoding device to which the present disclosure is applied may be used to process video signals or data signals. For example, over-the-top (OTT) video devices may include game consoles, Blu-ray players, Internet-connected televisions, home theater systems, smartphones, tablet computers, digital video recorders (DVRs), and the like.
[0296] In addition, the processing method of the present invention can be generated in the form of a program executed by a computer and can be stored in a computer-readable recording medium. The multimedia data with 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 types of storage devices in which computer-readable data is stored. The computer-readable recording medium may include, for example, BD, universal serial bus (USB), ROM, PROM, EPROM, EEPROM, RAM, CD-ROM, magnetic tape, floppy disk and optical data storage device. In addition, the computer-readable recording medium includes a medium implemented in the form of a carrier wave (for example, transmission via the Internet). In addition, the bit stream generated by the encoding method can be stored in a computer-readable recording medium or transmitted through a wired / wireless communication network.
[0297] In addition, the embodiments of the present disclosure may be implemented using a computer program product according to a program code, and the program code may be executed in a computer through the embodiments of the present disclosure. The program code may be stored on a computer-readable carrier.
[0298] Figure 15 A structural diagram of a content streaming system to which the present disclosure is applied is illustrated.
[0299] A content streaming system to which the embodiments of the present disclosure are applied may mainly include an encoding server, a streaming server, a web server, a media storage, a user device, and a multimedia input device.
[0300] The encoding server compresses content input from a multimedia input device such as a smartphone, camera, or camcorder into digital data to generate a bitstream and transmits the bitstream to the streaming server. As another example, when the multimedia input device such as a smartphone, camera, or camcorder directly generates the bitstream, the encoding server can be omitted.
[0301] A bitstream may be generated by an encoding method or a bitstream generating method to which an embodiment of the present disclosure is applied, and a streaming server may temporarily store the bitstream in the process of transmitting or receiving the bitstream.
[0302] The streaming server transmits multimedia data to user devices via a network server based on user requests, and the network server serves as an intermediary for notifying users of services. When a user requests a desired service from the network server, the network server delivers the request to the streaming server, which then transmits the multimedia data to the user. In this case, the content streaming system may include a separate control server. In this case, the control server is used to control commands and responses between devices within the content streaming system.
[0303] The streaming server can receive content from a media storage and / or encoding server. For example, when receiving content from an encoding server, the content can be received in real time. In this case, in order to provide a stable streaming service, the streaming server can store the bitstream for a predetermined period of time.
[0304] Examples of user devices may include mobile phones, smart phones, laptop computers, digital broadcast terminals, personal digital assistants (PDAs), portable multimedia players (PMPs), navigators, touch-screen PCs, tablet PCs, ultrabooks, wearable devices (e.g., smart watches, smart glasses, and head-mounted displays), digital TVs, desktop computers, and digital signage, etc. Each server within the content streaming system may operate as a distributed server, in which case data received from each server may be distributed.
[0305] The claims described in this disclosure can be combined in various ways. For example, the technical features of the method claims of this disclosure can be combined to implement an apparatus, and the technical features of the apparatus claims of this disclosure can be combined to implement a method. Furthermore, the technical features of the method claims of this disclosure can be combined with the technical features of the apparatus claims of this disclosure to implement an apparatus, and the technical features of the method claims of this disclosure can be combined with the technical features of the apparatus claims of this disclosure to implement a method.
Claims
1. A method for decoding an image performed by a decoding device, the method comprising: Obtaining residual information for chroma components of a current coding unit; Obtaining, based on a tree type and a size of the current coding unit, coding unit (CU) chrominance quantization parameter (QP) offset related information for the current coding unit; deriving transform coefficients for the current coding unit based on the residual information; deriving a chroma QP for the current coding unit based on the CU chroma QP offset related information; deriving residual samples for the current coding unit by dequantizing the transform coefficients based on the chroma QP; as well as Based on the residual samples, a reconstructed picture is generated, wherein the CU chroma QP offset related information is signaled in a transform unit syntax of a first transform block among the transform blocks for the current coding unit, and The CU chroma QP offset related information includes a CU chroma QP offset index and a CU chroma QP offset flag for the current coding unit.
2. A method for encoding an image performed by an encoding device, the method comprising: deriving residual samples for chroma components of the current coding unit; deriving a chroma quantization parameter (QP) for the current coding unit; deriving transform coefficients for the current coding unit by quantizing the residual samples based on the chroma QP; generating residual information for the transform coefficients; generating coding unit (CU) chroma QP offset related information for the chroma QP based on a tree type and a size of the current coding unit; as well as encoding image information including the CU chroma QP offset related information and the residual information, wherein the CU chroma QP offset related information is signaled in a transform unit syntax of a first transform block among the transform blocks for the current coding unit, and The CU chroma QP offset related information includes a CU chroma QP offset index and a CU chroma QP offset flag for the current coding unit.
3. A method for transmitting image data, the method comprising: Obtaining a bitstream of image information, the image information comprising coding unit (CU) chroma quantization parameter (QP) offset related information for a chroma component of a current coding unit and residual information for a transform coefficient of the current coding unit; as well as Sending data of the bitstream including the image information, wherein the image information includes the CU chroma QP offset related information and the residual information, wherein, based on the tree type and size of the current coding unit, the CU chroma QP offset related information for chroma QP is generated, wherein the transform coefficients for the current coding unit are derived by quantizing the residual samples of the current coding unit based on the chroma QP, wherein the CU chroma QP offset related information is signaled in a transform unit syntax of a first transform block among the transform blocks for the current coding unit, and The CU chroma QP offset related information includes a CU chroma QP offset index and a CU chroma QP offset flag for the current coding unit.
