Image encoding and decoding method and image data transmission method

The image decoding method improves encoding efficiency by deriving quantization parameters for chrominance components, addressing the high data volume of high-resolution images and reducing transmission and storage costs.

CN119071479APending Publication Date: 2024-12-03LG ELECTRONICS INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411371797.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2019-06-11
Filing Date
2020-06-11
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

The increasing demand for high-resolution and high-quality images leads to a significant increase in transmission and storage costs due to the large amount of information required, necessitating efficient image compression technologies.

Method used

An image decoding method and apparatus that improves encoding efficiency by deriving quantization parameters for chrominance components based on a chroma type, using a flag to determine the presence of quantization parameter data, and generating a reconstructed picture from prediction and residual samples.

Benefits of technology

The method enhances encoding efficiency by determining quantization parameter tables based on image characteristics, reducing the amount of data needed for transmission and storage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119071479A_ABST
    Figure CN119071479A_ABST
Patent Text Reader

Abstract

The invention discloses an image encoding and decoding method and an image data sending method. An image decoding method performed by a decoding device according to the present document comprises the steps of: deriving a chroma quantization parameter table on the basis of quantization parameter data; deriving a quantization parameter for combined chroma coding based on a chroma quantization parameter table; deriving a prediction sample of the current chroma block based on the prediction information; deriving a transform coefficient of the current chroma block based on the residual information; deriving a residual sample by dequantizing the transform coefficient based on the quantization parameter; and generating a reconstructed picture based on the prediction sample and the residual sample.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application of the invention patent application with the original application number 202080056453.X (international application number: PCT / KR2020 / 007559, application date: June 11, 2020, invention name: Image decoding method and device for chrominance components). Technical Field

[0002] The present document relates to an image coding technology, and more particularly, to an image decoding method and apparatus thereof for encoding image information based on chrominance quantization parameter data signaled through a high-level syntax in an image coding system. Background Art

[0003] Recently, in various fields, the demand for high-resolution, high-quality images such as HD (high definition) images and UHD (ultra high definition) images is growing. Because image data has high resolution and high quality, the amount of information or bits to be transmitted increases relative to conventional image data. Therefore, when image data is transmitted using a medium such as a conventional wired / wireless broadband line or stored using an existing storage medium, its transmission cost and storage cost increase.

[0004] 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

[0005] Technical issues

[0006] The technical purpose of the present disclosure is to provide a method and device for improving image encoding efficiency.

[0007] Another object of this document is to provide a method and apparatus for improving the efficiency of data encoding for quantization parameter derivation of chrominance components.

[0008] Technical Solution

[0009] According to an embodiment of the present document, a method for image decoding performed by a decoding device is provided. The method comprises the following steps: obtaining image information based on a chroma type, the image information including prediction information and residual information of a current chroma block and a flag indicating whether there is quantization parameter data for combined chroma coding; obtaining quantization parameter data for combined chroma coding based on the flag; deriving a chroma quantization parameter table based on the quantization parameter data; deriving quantization parameters for combined chroma coding based on the chroma quantization parameter table; deriving prediction samples of the current chroma block based on prediction information; deriving transform coefficients of the current chroma block based on residual information; deriving residual samples by dequantizing transform coefficients based on quantization parameters; and generating a reconstructed picture based on the prediction samples and the residual samples, wherein the quantization parameter data comprises a syntax element indicating a starting index of the chroma quantization parameter table and a syntax element indicating a difference between the starting index and the last index.

[0010] According to another embodiment of the present document, a decoding device for performing image decoding is provided. The decoding device includes: an entropy decoder configured to obtain image information including prediction information and residual information of a current chroma block and a flag indicating whether there is quantization parameter data for combined chroma coding based on the chroma type, and obtain quantization parameter data for combined chroma coding based on the flag; a predictor configured to derive prediction samples of the current chroma block based on the prediction information; a residual processor configured to derive a chroma quantization parameter table based on the quantization parameter data, derive quantization parameters for combined chroma coding based on the chroma quantization parameter table, derive transform coefficients of the current chroma block based on the residual information, and derive residual samples by dequantizing the transform coefficients based on the quantization parameter; and an adder configured to generate a reconstructed picture based on the prediction samples and the residual samples, wherein the quantization parameter data includes a syntax element indicating a start index of the chroma quantization parameter table and a syntax element indicating a difference between the start index and the last index.

[0011] According to another embodiment of the present document, a video encoding method performed by an encoding device is provided. The method includes the following steps: deriving a prediction sample of a current chroma block based on inter-frame prediction or intra-frame prediction; deriving a residual sample of the current chroma block based on the prediction sample; generating quantization parameter data for combined chroma encoding of the residual sample based on the chroma type of the current chroma block; generating a flag indicating whether there is quantization parameter data for combined chroma encoding; and encoding image information including prediction information and residual information of the current chroma block, quantization parameter data and the flag, wherein the quantization parameter data includes a syntax element indicating a starting index of a quantization parameter table for combined chroma encoding and a syntax element indicating a difference between a starting index and a last index of the quantization parameter table.

[0012] According to another embodiment of the present document, a video encoding device is provided. The encoding device includes: a predictor configured to derive a prediction sample of a current chroma block based on inter-frame prediction or intra-frame prediction; a subtractor configured to derive a residual sample of the current chroma block based on the prediction sample; a residual processor configured to generate quantization parameter data for combined chroma encoding of the residual sample based on the chroma type of the current chroma block, and generate a flag indicating whether there is quantization parameter data for combined chroma encoding; and an entropy encoder configured to encode image information including prediction information and residual information of the current chroma block, quantization parameter data and a flag, wherein the quantization parameter data includes a syntax element indicating a starting index of a quantization parameter table for combined chroma encoding and a syntax element indicating a difference between a starting index and a last index of the quantization parameter table.

[0013] Beneficial Effects

[0014] According to the present disclosure, a quantization parameter table for quantization parameter derivation can be determined based on a flag indicating whether quantization parameter data for deriving quantization parameters of chrominance components has been transmitted, and encoding efficiency can be improved by performing encoding based on quantization parameters according to characteristics of an image.

[0015] According to the present disclosure, a quantization parameter table of a chroma component may be determined based on signaled chroma quantization data, and encoding efficiency may be improved by performing encoding based on a quantization parameter according to characteristics of an image. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 An example of a video / image encoding device to which an embodiment of the present disclosure can be applied is briefly illustrated.

[0017] Figure 2 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 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 inter-frame prediction is illustrated.

[0020] Figure 5 An example of a video / image decoding method based on inter-frame prediction is illustrated.

[0021] Figure 6 The inter-frame prediction process is schematically illustrated.

[0022] Figure 7 The image encoding method of the encoding device according to this document is schematically shown.

[0023] Figure 8 A coding device for performing the image coding method according to the present document is schematically shown.

[0024] Fig. 9 The image decoding method of the decoding device according to the present document is schematically shown.

[0025] Fig.10 A decoding device for performing the image decoding method according to the present document is schematically shown.

[0026] Fig.11 A structural diagram of a content streaming system to which the present disclosure is applied is illustrated. DETAILED DESCRIPTION

[0027] The present disclosure can be modified in various forms, and its specific embodiments 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, the expression of the singular includes the expression of the plural. Terms such as "including" and "having" are intended to indicate the presence of features, quantities, steps, operations, elements, components, or combinations thereof used in the following description, so it should be understood that the possibility of the presence or addition of one or more different features, quantities, steps, operations, elements, components, or combinations thereof is not excluded.

[0028] In addition, the elements in the drawings described in the present disclosure are drawn independently for the convenience of explaining different specific functions, and do not mean that these elements are specifically implemented by independent hardware or independent software. For example, two or more elements in the elements can be combined to form a single element, or an element can be divided into multiple elements. The implementation of combining and / or dividing elements belongs to the present disclosure without departing from the concept of the present disclosure.

[0029] Hereinafter, embodiments of the present disclosure will be described in detail with reference to the accompanying drawings. In addition, throughout the accompanying drawings, like reference numerals are used to indicate like elements, and the same description of the like elements will be omitted.

[0030] Figure 1 An example of a video / image encoding device to which an embodiment of the present disclosure can be applied is briefly illustrated.

[0031] 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 transmit 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.

[0032] 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.

[0033] The video source can obtain the video / image by capturing, synthesizing or generating the 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.

[0034] 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.

[0035] The transmitter may transmit the encoded video / image information or data output in the form of a bit stream to the receiver of the receiving device in the form of a file or stream through a digital storage medium or a network. The digital storage medium may include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, SSD, etc. The transmitter may include an element for generating a media file in a predetermined file format, and may include an element for transmitting through a broadcast / communication network. The receiver may receive / extract a bit stream and transmit the received bit stream to a decoding device.

[0036] The decoding device may decode a video / image by performing a series of processes such as dequantization, inverse transformation, and prediction corresponding to the operations of the encoding device.

[0037] The renderer may render the decoded video / image. The rendered video / image may be displayed by a display.

[0038] The present disclosure relates to video / image coding. For example, the methods / implementations disclosed in the present disclosure may be applied to methods disclosed in Versatile Video Coding (VVC), EVC (Basic Video Coding) standard, AOMedia Video 1 (AV1) standard, 2nd generation Audio Video Coding standard (AVS2) or next generation video / image coding standard (e.g., H.267, or H.268, etc.).

[0039] The present disclosure presents various embodiments of video / image encoding, and unless otherwise mentioned, the embodiments may be performed in combination with each other.

[0040] 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 region, 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 tile may represent a rectangular area of ​​a CTU row within a tile in a picture. A tile may be divided into a plurality of tiles, each tile consisting of one or more CTU rows within a tile. Tiles that are not divided into a plurality of tiles may also be referred to as tiles. Tile scanning is a specific sequential ordering of CTUs that divide a picture, wherein CTUs are continuously ordered in tiles by CTU raster scanning, tiles within tiles are continuously ordered by raster scanning of tiles of tiles, and tiles in a picture are continuously ordered by raster scanning of tiles of tiles of a picture. In addition, a sub-picture may represent a rectangular area of ​​one or more slices within a picture. That is, a sub-picture contains one or more slices that cover a rectangular area of ​​the picture together. A patch is a rectangular area of ​​a CTU within a specific patch column and a specific patch row in a picture. A patch column is a rectangular area of ​​a CTU whose height is equal to the height of the picture and whose width is specified by a syntax element in a picture parameter set. A patch row is a rectangular area of ​​a CTU whose height is specified by a syntax element in a picture parameter set and whose width is equal to the width of the picture. Patch scanning is a specific sequential ordering of CTUs that partition a picture, wherein CTUs may be continuously ordered in a patch by a CTU raster scan, and patches in a picture may be continuously ordered by a raster scan of patches of a picture. A slice includes an integer number of tiles of a picture that may be exclusively contained in a single NAL unit. A slice may consist of a plurality of complete tiles or only of a continuous sequence of complete tiles of a patch. In the present disclosure, patch groups and slices may be used interchangeably. For example, in this disclosure, a tile group / tile group header may be referred to as a slice / slice header.

[0041] A pixel or a picture element (pel) may represent the smallest unit constituting a picture (or image). In addition, a "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 luminance component or only a pixel / pixel value of a chrominance component.

[0042] 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 a block or an area. In general, an M×N block may include a set (or array) of samples (or sample arrays) or transform coefficients of M columns and N rows.

[0043] 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".

[0044] A slash ( / ) or a comma used in this specification 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".

[0045] In the present specification, "at least one of A and B" may mean "only A", "only B", or "both A and B". In addition, in the present specification, the expression "at least one of A or B" or "at least one of A and / or B" may be interpreted as being the same as "at least one of A and B".

[0046] In addition, in the present 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".

[0047] In addition, brackets used in this specification may refer to "for example". Specifically, when "prediction (intra-frame prediction)" is indicated, "intra-frame prediction" may be proposed 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 proposed as an example of "prediction". In addition, even when "prediction (i.e., intra-frame prediction)" is indicated, "intra-frame prediction" may be proposed as an example of "prediction".

[0048] In this specification, technical features described separately in one figure may be implemented separately or may be implemented simultaneously.

[0049] 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.

[0050] Figure 2 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.

[0051] 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 called 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 component may also include a memory 270 as an internal / external component.

[0052] The image divider 210 may divide the input image (or picture or frame) input to the encoding device 200 into one or more processors. For example, a processor may be referred to as a coding unit (CU). In this case, the coding unit may be recursively divided from a coding tree unit (CTU) or a maximum coding unit (LCU) according to a quadtree binary tree ternary tree (QTBTTT) structure. For example, a coding unit may be divided into a plurality of coding units with a deeper depth based on a quadtree structure, a binary tree structure, and / or a ternary structure. In this case, for example, a quadtree structure may be applied first, and then a binary tree structure and / or a ternary structure may be applied. Alternatively, a binary tree structure may be applied first. The encoding process according to the present disclosure may be performed based on a final coding unit that is no longer divided. In this case, the maximum coding unit may be used as the final coding unit based on coding efficiency according to image characteristics, or if necessary, the coding unit may be recursively divided into coding units with a deeper depth and a coding unit with an optimal size may be used as the final coding unit. Here, the encoding process may include a process of prediction, transformation, and reconstruction, 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 separated or partitioned from the above-mentioned 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.

[0053] In some cases, a unit may be used interchangeably with terms such as a 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 a pixel value, may represent a pixel / pixel value of a luminance component only, or may represent a pixel / pixel value of a chrominance component only. A sample may be used as a term corresponding to a picture (or image) of a pixel or a picture element.

[0054] 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 for subtracting the prediction signal (prediction block, prediction sample array) from the input image signal (original block, original sample array) in the encoding device 200 can be called 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 the prediction sample of the current block. The predictor can determine whether to apply intra-frame prediction or inter-frame prediction in units of the current block or CU. 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 bit stream.

[0055] The intra-frame predictor 222 can predict the current block by referring to the 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 may include multiple non-directional modes and multiple directional modes. The non-directional mode may include, for example, a DC mode and a plane mode. Depending on the level of detail of the prediction direction, the directional mode may 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 may be used depending on the setting. The intra-frame predictor 222 may determine the prediction mode applied to the current block by using the prediction mode applied to the adjacent blocks.

[0056] The inter-frame predictor 221 may derive a prediction block of the current block based on a reference block (reference sample array) specified by a motion vector on a reference picture. Here, in order to reduce the amount of motion information sent in the inter-frame prediction mode, the motion information may be predicted in units of blocks, sub-blocks, or samples based on the correlation of motion information between adjacent blocks and the current block. The motion information may include a motion vector and a reference picture index. The motion information may also include inter-frame prediction direction (L0 prediction, L1 prediction, Bi prediction, etc.) information. In the case of inter-frame prediction, the adjacent blocks may include spatial adjacent blocks present in the current picture and temporal adjacent blocks present in the reference picture. The reference picture including the reference block and the reference picture including the temporal adjacent block may be the same or different. The temporal adjacent block may be referred to as a collocated reference block, a co-located CU (colCU), etc., and the reference picture including the temporal adjacent block may be referred to as a collocated picture (colPic). For example, the inter-frame predictor 221 may configure a motion information candidate list based on adjacent blocks, and generate information indicating which candidate is used to derive the motion vector and / or reference picture index of the current block. Inter-frame prediction may be performed based on various prediction modes. For example, in the case of skip mode and merge mode, the inter-frame predictor 221 may use the motion information of the neighboring block as the motion information of the current block. In skip mode, unlike merge mode, a residual signal may not be transmitted. In the case of motion vector prediction (MVP) mode, the motion vector of the neighboring block may be used as a motion vector predictor, and the motion vector of the current block may be indicated by signaling a motion vector difference.

[0057] The predictor 220 may generate a prediction signal based on various prediction methods described below. For example, the predictor may not only apply intra prediction or inter prediction to predict a block, but may also apply both intra prediction and inter prediction at the same time. This may be referred to as inter-frame intra combined prediction (CIIP). In addition, the predictor may predict a block based on an intra-block copy (IBC) prediction mode or a palette mode. The IBC prediction mode or the palette mode may be used for content image / video encoding of games, etc., such as screen content coding (SCC). IBC basically performs prediction in the current picture, but may be performed similarly to inter prediction because the reference block is derived in the current picture. That is, IBC may use at least one of the inter prediction techniques described in the present disclosure. The palette mode may be considered as an example of intra coding or intra prediction. When the palette mode is applied, the sample values ​​within the picture may be signaled based on information about the palette table and the palette index.

[0058] 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 represents 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 rather than square.

[0059] The quantizer 233 may quantize the transform coefficients and send them to the entropy encoder 240, and the entropy encoder 240 may encode the quantized signal (information about the quantized transform coefficients) and output a bitstream. Information about the quantized transform coefficients may be referred to as residual information. The quantizer 233 may 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 may be generated. The entropy encoder 240 may 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 may encode information required for video / image reconstruction (e.g., values ​​of syntax elements, etc.) other than the quantized transform coefficients together or separately. Encoded information (e.g., encoded video / image information) may be transmitted or stored in units of NAL (network abstraction layer) in the form of a bitstream. 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. In the present disclosure, information and / or syntax elements sent / signaled from an encoding device to a decoding device may be included in the video / picture information. The video / image information may be encoded and included in a bitstream through the above-mentioned encoding process. The bitstream may be sent through a network, or may be 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 sends a signal output from the entropy encoder 240 and / or a storage unit (not shown) that stores the signal may be included as an internal / external element of the encoding device 200, alternatively, the transmitter may be included in the entropy encoder 240.

[0060] 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 transformation 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 the case where the 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 by filtering as described below.

[0061] Furthermore, during picture encoding and / or reconstruction, luma mapping and chroma scaling (LMCS) may be applied.

[0062] 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.

[0063] The modified reconstructed picture sent to the memory 270 may be used as a reference picture in the inter predictor 221. When inter prediction is applied by the encoding apparatus, prediction mismatch between the encoding apparatus 200 and the decoding apparatus may be avoided, and encoding efficiency may be improved.

[0064] 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 is 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 a spatial neighboring block or motion information of a temporal neighboring block. 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.

[0065] Figure 3 is a schematic diagram illustrating a configuration of a video / image decoding device to which an embodiment of the present disclosure can be applied.

[0066] 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 a processor). In addition, the memory 360 may include a decoded picture buffer (DPB), or may be composed of a digital storage medium. The hardware component may also include a memory 360 as an internal / external component.

[0067] When a bit stream including video / image information is input, the decoding device 300 can be used with Figure 2 The image is reconstructed correspondingly 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 a processor applied in the encoding device. Therefore, the decoding processor can be, for example, a coding unit, and the coding unit can be segmented from the coding tree unit or the maximum coding unit according to a quadtree structure, a binary tree structure and / or a 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.

[0068] The decoding device 300 may receive the bit stream from Figure 2The signal output by the encoding device of the present invention can be decoded by the entropy decoder 310. For example, the entropy decoder 310 can parse the bitstream to derive the information (e.g., video / image information) required for image reconstruction (or picture reconstruction). 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 may be decoded by 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 the syntax elements required for image reconstruction and the quantized values ​​of the transform coefficients of the residual. More specifically, the CABAC entropy decoding method can receive a bin 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 according to 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 decoded symbol / bin information for the context model of the next symbol / bin. 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) for 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, 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 the dequantizer 321, the inverse transformer 322, the adder 340, the filter 350, the memory 360, the inter-frame predictor 332, and the intra-frame predictor 331.

[0069] The dequantizer 321 may dequantize the quantized transform coefficients and output the transform coefficients. The dequantizer 321 may rearrange the quantized transform coefficients in the form of two-dimensional blocks. In this case, the rearrangement may be performed based on the coefficient scanning order performed in the encoding device. The dequantizer 321 may perform dequantization on the quantized transform coefficients by using a quantization parameter (e.g., quantization step size information) and obtain the transform coefficients.

[0070] The inverse transformer 322 inversely transforms the transform coefficients to obtain a residual signal (residual block, residual sample array).

[0071] 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 information on prediction output from the entropy decoder 310, and may determine a specific intra / inter prediction mode.

[0072] The predictor 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-frame intra combined prediction (CIIP). In addition, the predictor can predict the block based on the intra block copy (IBC) prediction mode or the palette mode. The IBC prediction mode or the palette mode can be used for content image / video encoding of games, etc., for example, screen content coding (SCC). IBC basically performs prediction in the current picture, but IBC 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 the present 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.

[0073] The intra-frame predictor 331 can predict the current block by referring to samples in the current picture. Depending on the prediction mode, the referenced sample 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 intra-frame predictor 331 can determine the prediction mode applied to the current block by using the prediction mode applied to the adjacent block.

[0074] The inter-frame predictor 332 may derive a prediction block of the current block based on a reference block (reference sample array) specified by a motion vector on a reference picture. In this case, in order to reduce the amount of motion information sent in the inter-frame prediction mode, the motion information may be predicted in units of blocks, sub-blocks, or samples based on the correlation of the motion information between the adjacent blocks and the current block. The motion information may include a motion vector and a reference picture index. The motion information may also include inter-frame prediction direction (L0 prediction, L1 prediction, Bi prediction, etc.) information. In the case of inter-frame prediction, the adjacent blocks may include spatial adjacent blocks present in the current picture and temporal adjacent blocks present in the reference picture. For example, the inter-frame predictor 332 may configure a motion information candidate list based on the adjacent blocks, and derive a motion vector and / or a reference picture index of the current block based on the received candidate selection information. Inter-frame prediction may be performed based on various prediction modes, and information about the prediction may include information indicating a mode of inter-frame prediction for the current block.

[0075] 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 the skip mode is applied), the prediction block can be used as the reconstructed block.

[0076] 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.

[0077] In addition, luma mapping and chroma scaling (LMCS) can be applied during picture decoding.

[0078] 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 picture by applying various filtering methods to the reconstructed picture, and store the modified reconstructed picture in the memory 360 (specifically, the DPB of the memory 360). The various filtering methods may include, for example, deblocking filtering, sample adaptive offset, adaptive loop filter, bilateral filter, etc.

[0079] 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 is 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 332 to be used as the motion information of the spatial neighboring block or the motion information of the temporal 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.

[0080] 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 respectively applied to correspond to the filter 350, the inter-frame predictor 332, and the intra-frame predictor 331 of the decoding device 300. The same contents may also be applied to the inter-frame predictor 332 and the intra-frame predictor 331.

[0081] 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 may still be referred to as a transform coefficient for the sake of uniformity of expression.

[0082] In the present disclosure, the quantized transform coefficient and the transform coefficient may be referred to as a transform coefficient and a scaled transform coefficient, respectively. In this case, the residual information may include information about the transform coefficient, and the information about the transform coefficient may be signaled by a residual coding syntax. The transform coefficient may be derived based on the residual information (or information about the transform coefficient), and the scaled transform coefficient may be derived by inversely transforming (scaling) the transform coefficient. The residual sample may be derived based on inversely transforming (transforming) the scaled transform coefficient. This may also be applied / expressed in other parts of the present disclosure.

[0083] As described above, when performing video encoding, prediction is performed to improve compression efficiency. In this way, a prediction block including a prediction sample of a current block can be generated as a block to be encoded (i.e., an encoding target block). Here, the prediction block includes prediction samples in a spatial domain (or a 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 value 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.

[0084] The residual information may be generated by a transformation and quantization process. For example, the encoding device may derive a residual block between the original block and the prediction block, may perform a transformation process on the residual samples (residual sample array) included in the residual block to derive the transformation coefficients, may perform a quantization process on the transformation coefficients to derive the quantized transformation coefficients, and may signal the relevant residual information (through a bitstream) to the decoding device. Here, the residual information may include value information, position information, transformation technology, transformation core, and value information of quantization parameters, etc. of the quantized transformation coefficients. The decoding device may perform a dequantization / inverse transformation process based on the residual information and derive residual samples (or residual blocks). The decoding device may generate a reconstructed picture based on the prediction block and the residual block. In addition, for reference to inter-frame prediction of a reference picture later, the encoding device may dequantize / inverse transform the quantized transformation coefficients to derive the residual block, and generate a reconstructed picture based on this.

[0085] Intra-frame prediction may refer to generating a prediction of a prediction sample for a current block based on a reference sample in a picture to which the current block belongs (hereinafter referred to as the current picture). When intra-frame prediction is applied to the current block, the 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 of size nW×nH and a total of 2×nH samples adjacent to the lower left of the current block, samples adjacent to the upper boundary of the current block and a total of 2×nW 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 nW×nH, 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.

[0086] However, some neighboring reference samples of the current block have not been decoded or may not be available. 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.

[0087] When deriving the neighboring reference samples, (i) the prediction samples may be derived based on an average or interpolation of the neighboring reference samples of the current block, or (ii) the prediction samples may be derived based on reference samples present in a specific (prediction) direction relative to the prediction samples in the neighboring reference samples of the current block. Case (i) may be referred to as a non-directional mode or a non-angular mode, and case (ii) may be referred to as a directional mode or an angular mode.

[0088] In addition, the prediction sample can 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 among the adjacent reference samples and the second neighboring sample located in the direction opposite to the prediction direction. The above situation can be called linear interpolation intra prediction (LIP). In addition, a linear model (LM) can be used to generate chroma prediction samples based on luma samples. This situation can be called LM mode or chroma component LM (CCLM) mode.

[0089] In addition, the temporary prediction sample of the current block is derived based on the filtered adjacent reference sample, 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 in the existing adjacent reference sample (i.e., the unfiltered adjacent reference sample). The above situation can be called position-dependent intra prediction (PDPC).

[0090] In addition, a reference sample line with the highest prediction accuracy among multiple adjacent reference sample lines of the current block is selected, and a prediction sample is derived using a reference sample located in the prediction direction in the selected line. In this case, intra-frame prediction coding can be performed by indicating (notifying with a signal) the reference sample line used to the decoding device. The above situation can be referred to as multi-reference line intra-frame prediction or MRL-based intra-frame prediction.

[0091] In addition, the current block is divided into vertical sub-divisions or horizontal sub-divisions 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-divisions. That is, in this case, the intra prediction mode of the current block is also applicable to sub-divisions, but in some cases, the intra prediction performance can be improved by deriving and using adjacent reference samples in units of sub-divisions. This prediction method can be called intra prediction based on intra sub-division (ISP).

[0092] The above-mentioned intra-frame prediction method may be referred to as an intra-frame prediction type to distinguish it from an intra-frame prediction mode. The intra-frame prediction type may be referred to by various terms, such as an intra-frame prediction technique or an 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 excluding 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, a normal intra-frame prediction type may generally be applied, and prediction may be performed based on the above-mentioned intra-frame prediction mode. In addition, if necessary, post-processing filtering may be performed on the derived prediction samples.

[0093] 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.

[0094] When intra prediction is applied, the intra prediction mode of the neighboring blocks may be used to determine the intra prediction mode applied to the current block. For example, the decoding device may select one of the most likely mode (MPM) candidates in the MPM list derived based on the additional candidate mode and the intra prediction mode of the neighboring blocks (e.g., left and / or upper neighboring blocks) of the current block, or select one of the remaining intra prediction modes not included in the MPM candidates (and the plane mode) based on the remaining intra prediction mode information. The MPM list may be configured to include or exclude the plane mode as a candidate. For example, when the MPM list includes the plane mode as a candidate, the MPM list may have 6 candidates, and when the MPM list does not include the plane mode as a candidate, the MPM list may have 5 candidates. When the MPM list does not include the plane 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 plane mode may be signaled. For example, the MPM flag may be first signaled, and when the value of the MPM flag is 1, the MPM index and the non-planar flag may be signaled. In addition, the MPM index may be signaled when the value of the non-planar flag is 1. 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 the MPM rather than that the planar mode is not the MPM, and therefore, the flag (non-planar flag) is first signaled to check whether it is the planar mode.

[0095] 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 a 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 a 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. When a MIP is applied to a current block, a separate MPM flag (eg, intra_mip_mpm_flag), an MPM index (eg, intra_mip_mpm_idx), and remaining intra prediction mode information (eg, intra_mip_mpm_remainder) for the MIP may be signaled, and a non-planar flag may not be signaled.

[0096] In other words, in general, when performing block segmentation of an image, the current block to be encoded and the adjacent blocks have similar image characteristics. Therefore, there is a high probability that the current block and the adjacent blocks have the same or similar intra-frame prediction mode. Therefore, the encoder can use the intra-frame prediction mode of the adjacent block to encode the intra-frame prediction mode of the current block.

[0097] For example, the decoding device / encoding device may construct a most probable mode (MPM) list for the current block. The MPM list may be referred to as an MPM candidate list. Here, MPM may refer to a mode for improving coding efficiency by considering the similarity between the current block and the adjacent blocks during intra-frame prediction mode encoding. As described above, the MPM list may be constructed to include a plane mode, or may be constructed to exclude a plane mode. For example, when the MPM list includes a plane mode, the number of candidates in the MPM list may be 6. And, when the MPM list does not include a plane mode, the number of candidates in the MPM list may be 5.

[0098] The encoder / decoder can construct an MPM list including five or six MPMs.

[0099] To construct the MPM list, three types of modes may be considered, such as default intra mode, neighbor intra mode, and derived intra mode.

[0100] For the neighbor intra mode, two neighbor blocks may be considered, ie, a left neighbor block and an upper neighbor block.

[0101] As described above, if the MPM list is constructed not to include the planar mode, the planar mode may be excluded from the list, and the number of MPM list candidates may be set to five.

[0102] Furthermore, the non-directional mode (or non-angular mode) among the intra prediction modes may include a DC mode based on an average of neighbor reference samples of the current block or a planar mode based on interpolation.

[0103] In addition, when inter-frame prediction is applied, the predictor of the encoding device / decoding device can derive prediction samples by performing inter-frame prediction in units of blocks. When prediction is performed on the current block, inter-frame prediction can be applied. That is, the predictor of the encoding / decoding device (more specifically, the inter-frame predictor) can derive prediction samples by performing inter-frame prediction in units of blocks. Inter-frame prediction can represent a prediction derived by a method that depends on data elements (e.g., sample values ​​or motion information) of (one or more) pictures other than the current picture. When inter-frame prediction is applied to the current block, a prediction block (prediction sample array) for the current block can be derived based on a reference block (reference sample array) specified by a motion vector on a reference picture indicated by a reference picture index. In this case, in order to reduce the amount of motion information sent in the inter-frame prediction mode, the motion information of the current block can be predicted in units of blocks, sub-blocks or samples based on the correlation of motion information between adjacent blocks and the current block. The motion information may include a motion vector and a reference picture index. The motion information may further include inter-frame prediction type (L0 prediction, L1 prediction, Bi prediction, etc.) information. In the case of applying inter-frame prediction, the neighboring blocks may include spatial neighboring blocks present in the current picture and temporal neighboring blocks present in the reference picture. The reference picture including the reference block and the reference picture including the temporal neighboring block may be the same as or different from each other. The temporal neighboring block may be referred to as a name such as a collocated reference block, a collocated CU (ColCU), etc., and the reference picture including the temporal neighboring block may be referred to as a collocated picture (ColPic). For example, a motion information candidate list may be configured based on the neighboring blocks of the current block, and a flag or index information indicating which candidate is selected (used) may be signaled to derive the motion vector and / or reference picture index of the current block. Inter-frame prediction may be performed based on various prediction modes, and for example, in the case of a skip mode and a merge mode, the motion information of the current block may be the same as the motion information of the selected neighboring block. In the case of the skip mode, unlike the merge mode, a residual signal may not be sent. In the case of a motion vector prediction (MVP) mode, the motion vector of the selected neighboring block may be used as a motion vector predictor, and the motion vector difference may be signaled. In this case, the motion vector of the current block may be derived by using the sum of the motion vector predictor and the motion vector difference.

[0104] According to the inter-frame prediction type (L0 prediction, L1 prediction, Bi prediction, etc.), the motion information may further include L0 motion information and / or L1 motion information. The L0 direction motion vector may be referred to as the L0 motion vector or MVL0, and the L1 direction motion vector may be referred to as the L1 motion vector or MVL1. Prediction based on the L0 motion vector may be referred to as the L0 prediction, prediction based on the L1 motion vector may be referred to as the L1 prediction, and prediction based on both the L0 motion vector and the L1 motion vector may be referred to as bi-prediction. Here, the L0 motion vector may indicate a motion vector associated with the reference picture list L0, and the L1 motion vector may indicate a motion vector associated with the reference picture list L1. The reference picture list L0 may include a picture before the current picture in output order, and the reference picture list L1 may include a picture after the current picture in output order as a reference picture. The previous picture may be referred to as a forward (reference) picture, and the subsequent picture may be referred to as a backward (reference) picture. The reference picture list L0 may further include a picture after the current picture in output order as a reference picture. In this case, the previous picture may be indexed first in the reference picture list L0, and then the subsequent picture may be indexed. The reference picture list L1 may further include a picture preceding the current picture in the output order as a reference picture. In this case, the subsequent picture may be indexed first in the reference picture list L1, and then the previous picture may be indexed. Here, the output order may correspond to a picture sequence count (POC) order.

[0105] The video / image encoding process based on inter-frame prediction may schematically include, for example, the following contents.

[0106] Figure 4 An example of a video / image encoding method based on inter-frame prediction is illustrated.

[0107] The encoding device performs inter prediction on the current block (S400). The encoding device may derive the inter prediction mode and motion information of the current block, and generate a prediction sample of the current block. Here, the inter prediction mode determination process, the motion information derivation process, and the prediction sample generation process may be performed simultaneously, and any one process may be performed earlier than the other processes. For example, the inter prediction unit of the encoding device may include a prediction mode determination unit, a motion information derivation unit, and a prediction sample derivation unit, and the prediction mode determination unit may determine the prediction mode of the current block, the motion information derivation unit may derive the motion information of the current block, and the prediction sample derivation unit may derive the prediction sample of the current block. For example, the inter prediction unit of the encoding device may search for a block similar to the current block in a predetermined area (search area) of the reference picture through motion estimation, and derive a reference block with the smallest difference from the current block or equal to or less than a predetermined standard. A reference picture index indicating the reference picture where the reference block is located may be derived based on this, and a motion vector may be derived based on the position difference between the reference block and the current block. The encoding device may determine the mode applied to the current block among various prediction modes. The encoding apparatus may compare RD costs of various prediction modes and determine an optimal prediction mode for the current block.

[0108] For example, when the skip mode or merge mode is applied to the current block, the encoding device may configure a merge candidate list to be described below, and derive a reference block whose difference with the current block is the smallest or equal to or less than a predetermined standard among the reference blocks indicated by the merge candidates included in the merge candidate list. In this case, a merge candidate associated with the derived reference block may be selected, and merge index information indicating the selected merge candidate may be generated and signaled to the decoding device. The motion information of the current block may be derived by using the motion information of the selected merge candidate.

[0109] As another example, when the (A)MVP mode is applied to the current block, the encoding device may configure the (A)MVP candidate list to be described below, and use the motion vector of the selected MVP candidate among the motion vector predictor (MVP) candidates included in the (A)MVP candidate list as the MVP of the current block. In this case, for example, the motion vector indicating the reference block derived by motion estimation may be used as the motion vector of the current block, and the MVP candidate having the motion vector with the minimum difference from the motion vector of the current block among the MVP candidates may become the selected MVP candidate. A motion vector difference (MVD) may be derived, which is the difference obtained by subtracting the MVP from the motion vector of the current block. In this case, information about the MVD may be signaled to the decoding device. In addition, when the (A)MVP mode is applied, the value of the reference picture index may be configured as reference picture index information and signaled to the decoding device separately.

[0110] The encoding apparatus may induce residual samples based on the prediction samples (S410). The encoding apparatus may induce residual samples by comparing original samples and prediction samples of the current block.

[0111] The encoding device encodes the image information including prediction information and residual information (S420). The encoding device can output the encoded image information in the form of a bitstream. The prediction information may include information about prediction mode information (e.g., a skip flag, a merge flag, or a mode index, etc.) and information about motion information as information related to the prediction process. The information about the motion information may include candidate selection information (e.g., a merge index, an mvp flag, or an mvp index), which is information for deriving a motion vector. In addition, the information about the motion information may include information about the MVD and / or reference picture index information. In addition, the information about the motion information may include information indicating whether L0 prediction, L1 prediction, or dual prediction is applied. The residual information is information about the residual sample. The residual information may include information about the quantized transform coefficients used for the residual sample.

[0112] The output bitstream may be stored in a (digital) storage medium and transmitted to a decoding device, or transmitted to a decoding device via a network.

[0113] In addition, as described above, the encoding device can generate a reconstructed picture (including a reconstructed sample and a reconstructed block) based on the reference sample and the residual sample. This is to derive a prediction result that is the same as the prediction result performed by the decoding device, and as a result, the coding efficiency can be increased. Therefore, the encoding device can store the reconstructed picture (or reconstructed sample or reconstructed block) in a memory and use the reconstructed picture as a reference picture. As described above, the in-loop filtering process can be further applied to the reconstructed picture.

[0114] The video / image decoding process based on inter-frame prediction may schematically include, for example, the following contents.

[0115] Figure 5 An example of a video / image decoding method based on inter-frame prediction is illustrated.

[0116] Reference Figure 5 The decoding device may perform an operation corresponding to the operation performed by the encoding device. The decoding device may perform prediction on the current block based on the received prediction information and derive a prediction sample.

[0117] Specifically, the decoding device may determine a prediction mode of the current block based on the received prediction information (S500). The decoding device may determine which inter prediction mode to apply to the current block based on prediction mode information in the prediction information.

[0118] For example, it may be determined whether to apply the merge mode or (A)MVP mode to the current block based on the merge flag. Alternatively, one of various inter-prediction mode candidates may be selected based on the mode index. The inter-prediction mode candidate may include a skip mode, a merge mode, and / or an (A)MVP mode, or may include various inter-prediction modes described below.

[0119] The decoding device derives motion information of the current block based on the determined inter-frame prediction mode (S510). For example, when the skip mode or merge mode is applied to the current block, the decoding device may configure a merge candidate list to be described below, and select a merge candidate from among the merge candidates included in the merge candidate list. Here, the selection may be performed based on the selection information (merge index). The motion information of the current block may be derived by using the motion information of the selected merge candidate. The motion information of the selected merge candidate may be used as the motion information of the current block.

[0120] As another example, when the (A)MVP mode is applied to the current block, the decoding device may configure the (A)MVP candidate list to be described below, and use the motion vector of the selected MVP candidate among the motion vector predictor (MVP) candidates included in the (A)MVP candidate list as the MVP of the current block. Here, the selection may be performed based on the selection information (MVP flag or MVP index). In this case, the MVD of the current block may be derived based on the information about the MVD, and the motion vector of the current block may be derived based on the MVP and MVD of the current block. In addition, the reference picture index of the current block may be derived based on the reference picture index information. The picture indicated by the reference picture index in the reference picture list of the current block may be derived as the reference picture referenced by the inter-frame prediction of the current block.

[0121] In addition, as described below, the motion information of the current block can be derived without the candidate list configuration, and in this case, the motion information of the current block can be derived according to the process disclosed in the prediction mode. In this case, the candidate list configuration can be omitted.

[0122] The decoding device may generate a prediction sample for the current block based on the motion information of the current block (S520). In this case, a reference picture may be derived based on a reference picture index of the current block, and a prediction sample of the current block may be derived by using a sample of the reference block indicated by a motion vector of the current block on the reference picture. In this case, in some cases, a prediction sample filtering process for all or some prediction samples of the current block may be further performed.

[0123] For example, the inter-frame prediction unit of the decoding device may include a prediction mode determination unit, a motion information derivation unit and a prediction sample derivation unit, and the prediction mode determination unit may determine the prediction mode of the current block based on the received prediction mode information, the motion information derivation unit may derive the motion information (motion vector and / or reference picture index) of the current block based on the information about the received motion information, and the prediction sample derivation unit may derive the prediction sample of the current block.

[0124] The decoding device generates a residual sample of the current block based on the received residual information (S530). The decoding device can generate a reconstructed sample of the current block based on the predicted sample and the residual sample, and generate a reconstructed picture based on the generated reconstructed sample (S540). Thereafter, as described above, the in-loop filtering process can be further applied to the reconstructed picture.

[0125] Figure 6 The inter-frame prediction process is schematically illustrated.

[0126] Reference Figure 6 As described above, the inter-frame prediction process may include an inter-frame prediction mode determination step, a motion information derivation step according to the determined prediction mode, and a prediction processing (prediction sample generation) step based on the derived motion information. The inter-frame prediction process may be performed by the encoding device and the decoding device as described above. In this article, the encoding device may include an encoding device and / or a decoding device.

[0127] Reference Figure 6 , the encoding device determines the inter prediction mode of the current block (S600). Various inter prediction modes can be used for the prediction of the current block in the picture. For example, various modes such as merge mode, skip mode, motion vector prediction (MVP) mode, affine mode, sub-block merge mode, merge with MVD (MMVD) mode and historical motion vector prediction (HMVP) mode can be used. Decoder-side motion vector refinement (DMVR) mode, adaptive motion vector resolution (AMVR) mode, dual prediction with CU-level weights (BCW) and bidirectional optical flow (BDOF) can be further used as additional modes. Affine mode can also be referred to as affine motion prediction mode. MVP mode can also be referred to as advanced motion vector prediction (AMVP) mode. In this article, some modes and / or motion information candidates derived from some modes can also be included in one of the motion information-related candidates in other modes. For example, an HMVP candidate can be added to the merge candidate of the merge / skip mode, or to the MVP candidate of the MVP mode. If the HMVP candidate is used as a motion information candidate for a merge mode or a skip mode, the HMVP candidate may be referred to as an HMVP merge candidate.

[0128] Prediction mode information indicating the inter prediction mode of the current block may be signaled to the decoding device from the encoding device. In this case, the prediction mode information may be included in the bitstream and received by the decoding device. The prediction mode information may include index information indicating one of a plurality of candidate modes. Alternatively, the inter prediction mode may be indicated by hierarchical signaling of flag information. In this case, the prediction mode information may include one or more flags. For example, whether the skip mode is applied may be indicated by signaling a skip flag, and when the skip mode is not applied, whether the merge mode is applied may be indicated by signaling a merge flag, and when the merge mode is not applied, the MVP mode may be indicated or a flag for additional distinction may be further signaled. The affine mode may be signaled as an independent mode, or as a subordinate mode with respect to the merge mode or the MVP mode. For example, the affine mode may include an affine merge mode and an affine MVP mode.

[0129] The encoding apparatus derives motion information of a current block (S610). The motion information may be derived based on an inter prediction mode.

[0130] The encoding device may use the motion information of the current block to perform inter-frame prediction. The encoding device may derive the optimal motion information of the current block through a motion estimation process. For example, the encoding device may search for a similar reference block with high correlation in units of fractional pixels within a predetermined search range in a reference picture by using the original block in the original picture of the current block, and derive motion information through the searched reference block. The similarity of the blocks may be derived based on the difference in sample values ​​based on the phase. For example, the similarity of the blocks may be calculated based on the sum of absolute differences (SAD) between the current block (or the template of the current block) and the reference block (or the template of the reference block). In this case, the motion information may be derived based on the reference block with the minimum SAD in the search area. The derived motion information may be signaled to the decoding device according to various methods based on the inter-frame prediction mode.

[0131] The encoding device performs inter prediction based on the motion information of the current block (S620). The encoding device may derive (one or more) prediction samples of the current block based on the motion information. The current block including the prediction samples may be referred to as a prediction block.

[0132] In addition, as described above, the quantizer of the encoding device may derive quantized transform coefficients by applying quantization to the transform coefficients. The dequantizer of the encoding device or the dequantizer of the decoding device may derive transform coefficients by applying dequantization to the quantized transform coefficients.

[0133] Generally, in video / image encoding, the quantization ratio can be changed, and the compression rate can be adjusted using the changed quantization ratio. In terms of implementation, in consideration of complexity, a quantization parameter (QP) can be used instead of directly using the quantization ratio. 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 of the luminance component Y and the quantization parameter QP of the chrominance component 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, the quantization ratio can be generated in an integer form by multiplying the quantization ratio by the scale in consideration of computational complexity, and the shift operation can be performed by 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. That is, 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 coefficients C' can be compared with the quantization ratio (Q step ) are multiplied, and a reconstructed transform coefficient C`` can be derived based on the result of the multiplication. In this case, a level scale can be derived based on a 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 have some differences from the first transform coefficient C. Therefore, dequantization is performed in the encoding device as in the decoding device.

[0136] In addition, an adaptive frequency weighted quantization technique for adjusting the quantization strength according to the frequency can be applied. The adaptive frequency weighted quantization technique is a method for applying quantization strength differently for each frequency. In the adaptive frequency weighted quantization, the quantization strength of each frequency can be applied differently using a predefined quantization scaling matrix. That is, the above-mentioned quantization / dequantization process can be performed based on the quantization scaling matrix. For example, in order 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 may be referred to as a quantization matrix or a scaling matrix. The quantization scaling matrix may be predefined. In addition, for frequency adaptive scaling, the quantization scale information of each frequency of the quantization scaling matrix may be constructed / encoded in the encoding device and notified to the decoding device with a signal. The quantization scale information of each frequency may be referred to as quantization scaling information. The quantization scale information of each frequency may include scaling list data (scaling_list_data). The (modified) quantization scaling matrix may be derived based on the scaling list data. In addition, the quantization scale information of each frequency may include a presence flag information indicating whether there is scaling list data. Alternatively, if the scaling list data is signaled at a higher level (eg, SPS), information indicating whether the scaling list data is modified at a lower level of the higher level (eg, PPS or tile group header, etc.) may also be included.

[0137] As in the above, quantization / dequantization may be applied to the luma component and the chroma component based on the quantization parameters.

[0138] The quantization parameter of the coding unit may be determined based on information signaled at the picture and / or slice level. For example, the quantization parameter may be derived as described later.

[0139] For example, information related to the derivation of the quantization parameter may be signaled through a sequence parameter set (SPS) as in the following table.

[0140] [Table 1]

[0141]

[0142] The semantics of the syntax elements in Table 1 may be the same as in the following table.

[0143] [Table 2]

[0144]

[0145]

[0146] For example, the syntax element bit_depth_luma_minus8 can represent BitDepth Y(i.e., the bit depth of samples of the luma array) and QpBdOffset Y (ie, the luma quantization parameter range offset). That is, for example, the BitDepth can be derived based on the syntax element bit_depth_luma_minus8 Y and QpBdOffset Y For example, BitDepth Y It can be derived as the value obtained by adding 8 to the value of the syntax element bit_depth_luma_minus8. Y It may be derived as a value obtained by multiplying the value of the syntax element bit_depth_luma_minus8 by 6. Also, bit_depth_luma_minus8 may be in the range of 0 to 8.

[0147] In addition, for example, the syntax element bit_depth_chroma_minus8 can indicate BitDepth c (i.e., the bit depth of samples of the chroma array) and QpBdOffset c (ie, chroma quantization parameter range offset). That is, for example, BitDepth can be derived based on the syntax element bit_depth_chroma_minus8 c and QpBdOffset c For example, BitDepth c It can be derived as the value obtained by adding 8 to the value of the syntax element bit_depth_chroma_minus8. c It may be derived as a value obtained by multiplying the value of the syntax element bit_depth_chroma_minus8 by 6. Also, bit_depth_chroma_minus8 may be in the range of 0 to 8.

[0148] In addition, information related to the derivation of the quantization parameter may be signaled, for example, through a picture parameter set (PPS) as shown in the following table. The information may include chroma Cb offset, chroma Cr offset, joint chroma offset, and initial quantization parameter. That is, the information may include syntax elements for chroma Cb offset, chroma Cr offset, joint chroma offset, and initial quantization parameter.

[0149] [Table 3]

[0150]

[0151] The semantics of the syntax elements in Table 3 may be the same as in the following table.

[0152] [Table 4]

[0153]

[0154]

[0155] For example, a value obtained by adding 26 to the syntax element init_qp_minus26 may represent the SliceQp of each slice of the reference PPS. Y If a non-zero value of slice_qp_delta is decoded, the initial value of SliceQpY can be modified in the slice layer. init_qp_minus26 0 can be in -(26+QpBdOffset Y ) to +37.

[0156] In addition, for example, the syntax elements pps_cb_qp_offset and pps_cr_qp_offset can respectively represent the syntax elements for deriving Qp′ Cb and Qp′ Cr The brightness quantization parameter Qp' Y pps_cb_qp_offset and pps_cr_qp_offset may be in the range of -12 to +12. In addition, when ChromaArrayType is 0, pps_cb_qp_offset and pps_cr_qp_offset may not be used during decoding, and the decoding device may ignore the value of the syntax element.

[0157] In addition, for example, the syntax element pps_joint_cbcr_qp_offset may indicate the value used to derive Qp′. CbCr The brightness quantization parameter Qp' Y pps_joint_cbcr_qp_offset may be in the range of -12 to +12. In addition, when ChromaArrayType is 0, pps_joint_cbcr_qp_offset may not be used during decoding, and the decoding device may ignore the value of the syntax element.

[0158] In addition, for example, the syntax element pps_slice_chroma_qp_offsets_present_flag may indicate whether the syntax elements slice_cb_qp_offset and slice_cr_qp_offset are present in the slice header associated with the syntax elements slice_cb_qp_offset and slice_cr_qp_offset. For example, a pps_slice_chroma_qp_offsets_present_flag with a value of 1 may indicate that the syntax elements slice_cb_qp_offset and slice_cr_qp_offset are present in the slice header associated with the syntax elements slice_cb_qp_offset and slice_cr_qp_offset. In addition, for example, a pps_slice_chroma_qp_offsets_present_flag with a value of 0 may indicate that the syntax elements slice_cb_qp_offset and slice_cr_qp_offset are not present in the slice header associated with the syntax elements slice_cb_qp_offset and slice_cr_qp_offset. In addition, when ChromaArrayType is 0, pps_slice_chroma_qp_offsets_present_flag may be the same as 0 during decoding.

[0159] As in the above content, the syntax elements parsed in the PPS may be init_qp_minus26, pps_cb_qp_offset_pps_cr_qp_offset, pps_joint_cbcr_qp_offset, and pps_slice_chroma_qp_offsets_present_flag. The syntax element init_qp_minus26 may indicate the SliceQp of each slice of the reference PPS. Y In addition, the syntax elements pps_cb_qp_offset, pps_cr_qp_offset, and pps_joint_cbcr_qp_offset can represent the brightness quantization parameter Qp' Y In addition, the syntax element pps_slice_chroma_qp_offsets_present_flag may indicate whether an offset parameter is present in the slice header.

[0160] Furthermore, for example, information related to the derivation of the quantization parameter may be signaled through the slice header as in the following table.

[0161] [Table 5]

[0162]

[0163] The semantics of the syntax elements in Table 5 may be the same as in the following table.

[0164] [Table 6]

[0165]

[0166]

[0167] For example, slice_qp_delta may indicate the Qp to be used in the coding blocks within the slice. Y The initial value of Qp until it is modified by the value of CuQpDeltaVal at the coding unit level. Y The initial value of SliceQp Y It can be derived as 26+init_qp_minus26+slice_qp_delta. Y The value can be set in -QpBdOffset Y to +63 range.

[0168] In addition, for example, slice_cb_qp_offset may indicate when determining the quantization parameter Qp' Cb The value of slice_cb_qp_offset is the difference to be added to the value of pps_cb_qp_offset. The value of slice_cb_qp_offset may be in the range of -12 to +12. Furthermore, for example, if slice_cb_qp_offset does not exist, slice_cb_qp_offset may be inferred to be 0. The value of pps_cb_qp_offset+slice_cb_qp_offset may be in the range of 12 to +12.

[0169] In addition, for example, slice_cr_qp_offset may indicate when determining the quantization parameter Qp' Cr The value of slice_cr_qp_offset is the difference to be added to the value of pps_cr_qp_offset. The value of slice_cr_qp_offset may be in the range of -12 to +12. Furthermore, for example, if slice_cr_qp_offset does not exist, slice_cr_qp_offset may be inferred to be 0. The value of pps_cr_qp_offset+slice_cr_qp_offset may be in the range of 12 to +12.

[0170] In addition, for example, slice_cbcr_qp_offset may indicate when determining the quantization parameter Qp'CbCr The value of slice_cbcr_qp_offset is the difference to be added to the value of pps_cbcr_qp_offset. The value of slice_cbcr_qp_offset may be in the range of -12 to +12. Furthermore, for example, if slice_cbcr_qp_offset does not exist, slice_cbcr_qp_offset may be inferred to be 0. The value of pps_cbcr_qp_offset+slice_cbcr_qp_offset may be in the range of 12 to +12.

[0171] The derivation process of the luma quantization parameter and the chroma quantization parameter can be started based on the fact that the input of the process is the luma position, the parameters specifying the width and height of the current coding block, and the parameters specifying a single tree or a dual tree. In addition, as in the above content, the luma quantization parameter, the chroma quantization parameter, and the joint chroma quantization parameter can be denoted as Qp' Y , Qp' Cb , Qp' Cr and Qp' CbCr .

[0172] In addition, for example, the syntax element cu_qp_delta_sign_flag indicating the sign of CuQpDeltaVal may be parsed. For example, cu_qp_delta_sign_flag may indicate the sign of CuQpDeltaVal as follows.

[0173] For example, when cu_qp_delta_sign_flag is 0, CuQpDeltaVal corresponding to cu_qp_delta_sign_flag may have a positive value. Alternatively, for example, when cu_qp_delta_sign_flag is 1, CuQpDeltaVal corresponding to cu_qp_delta_sign_flag may have a negative value. Furthermore, if cu_qp_delta_sign_flag is not present, cu_qp_delta_sign_flag may be inferred to be 0.

[0174] Furthermore, for example, if cu_qp_delta_abs is present, the parameter IsCuQpDeltaCoded may be derived as 1. The parameter CuQpDeltaVal may be derived as cu_qp_delta_abs*(1-2*cu_qp_delta_sign_flag). CuQpDeltaVal may be in the range of -(32+QpBdOffsetY / 2) to +(31+QpBdOffsetY / 2).

[0175] Thereafter, for example, the luminance quantization parameter Qp′Y It can be derived as follows.

[0176] [Formula 1]

[0177] Q Y =((qP Y_PRED +CUQpDeltaVal+64+2*QpBdOffset Y )%(64+QpBdOffset Y ))-QpBdOffset Y

[0178] Additionally, if ChromaArrayType is not 0, and treeType is SINGLE_TREE or DUAL_TREE_CHROMA, the following may apply.

[0179] -When treeType is equal to DUAL_TREE_CHROMA, parameter Qp Y The luma quantization parameter Qp of the luma coding unit including the luma position (xCb+cbWidth / 2, yCb+cbHeight / 2) may be Y Set the same.

[0180] -Parameter qP Cb ,qP Cr and qP CbCr It can be derived as follows.

[0181] [Formula 2]

[0182] Q Cb =Clip3(-QpBdOffset C , 69, Qp Y +pps_cb_qp_offset+slice_cb_qp_offset)

[0183] Q Cr =Clip3(-QpBdOffset C , 69, Qp Y +pps_cr_qp_offset+slice_cr_qp_offset)

[0184] Q CbCr =Clip3(-QpBdOffsct C , 69, Qp Y +pps_joint_cbcr_qp_oflsct+slice_joint_cbcr_qp_offset)

[0185] For example, when ChromaArrayType is 1, the parameter qP Cb ,qP Cr and qP CbCr Can be based on qPi Cb ,qPi Cr and qPi CbCr The same index qPi is set identically to the QpC value specified in Table 7.

[0186] [Table 7]

[0187] Q <30 30 31 32 33 34 35 36 37 38 39 40 41 42 43 >43 <![CDATA[QP C ]]> =qPi 29 30 31 32 33 33 34 34 35 35 36 36 37 37 =qPi-6

[0188] Alternatively, when ChromaArrayType is not 1, the parameter qP Cb ,qP Cr and qP CbCr Can be based on qPi Cb ,qPi Cr and qPi CbC The same index qPi is set the same as Min(qPi, 63).

[0189] - Chroma quantization parameter Qp′ of Cb component and Cr component Cb and Qp′ Cr And the chrominance quantization parameter Qp′ for joint Cb-Cr coding CbCr It can be derived as follows.

[0190] [Formula 3]

[0191] QP′ Cb =qP Cb +QpBdOffset C

[0192] Qp′ Cr =qP Cr +QpBdOffset C

[0193] QP′ cbCr =qP Cbcr +QpBdOffset C

[0194] In addition, this document proposes a scheme to improve coding efficiency during the quantization / dequantization process.

[0195] In an embodiment, the present document proposes a method of defining and using a user-defined chrominance quantization mapping table when ChromaArrayType is not 0 (for example, when ChromaArrayType is 1), rather than a method of obtaining a chrominance quantization parameter value from a luma quantization parameter value through a chrominance quantization mapping table predefined in the existing VVCDraft5 v.7. In the VVC specification text (for example, VVC Draft5 v.7), when qPi (luminance quantization parameter value) is given, Qpc (chrominance quantization parameter value) is derived through a predefined chrominance quantization table (for example, Table 7), but the present document proposes a method of deriving Qpc from qPi based on a chrominance quantization mapping table newly defined by a user. According to an embodiment of the present document, a method is proposed in which a Qpc value can be derived through a functional relationship of a qPi value, and the function can be signaled as a syntax such as APS, SPS, or PPS through a user-defined functional method, which includes sending values ​​through a functional relationship of a predefined syntax element, and the user defines a chrominance quantization table mapping based on the sent values. For example, since the Qpc value can be derived through a functional relationship of the qPi value, if a syntax element value representing the corresponding function is sent, the user-defined chrominance quantization mapping table can be derived in a form such as Table 7.

[0196] In an embodiment, a scheme of signaling information on a syntax element (Qpc_data) representing a chrominance quantization mapping related function as in the following table to be described later in an adaptive parameter set (APS) is proposed.

[0197] [Table 8]

[0198]

[0199] Referring to Table 8, if aps_params_type indicates Qpc_APS, for example, when the value of aps_params_type is 2, Qpc_data() may be signaled.

[0200] The semantics of the syntax elements in Table 8 may be the same as in the following table.

[0201] [Table 9]

[0202]

[0203] For example, the syntax element adaptation_parameter_set_id may provide an identifier of an APS referenced by other syntax elements.

[0204] In addition, for example, the syntax element aps_extension_flag may indicate whether the aps_extension_data_flag syntax element exists in the APS RBSP syntax structure. For example, the syntax element aps_extension_flag with a value of 1 may indicate that the aps_extension_data_flag syntax element exists in the APS RBSP syntax structure. The syntax element aps_extension_flag with a value of 0 may indicate that the aps_extension_data_flag syntax element does not exist in the APS RBSP syntax structure.

[0205] Furthermore, for example, the syntax element aps_extension_data_flag may have any value. The presence (presence and value) of aps_extension_data_flag does not affect the decoding suitability of the profile specified in this standard version. For example, a decoding device conforming to this standard version may ignore all syntax elements aps_extension_data_flag.

[0206] In addition, for example, the syntax element aps_params_type may indicate the type of APS parameters included in the APS, as shown in Table 10.

[0207] [Table 10]

[0208]

[0209]

[0210] For example, referring to Table 10, when the value of the syntax element aps_params_type is 0, the syntax element aps_params_type may indicate that the type of the APS parameter is an ALF parameter. When the value of the syntax element aps_params_type is 1, the syntax element aps_params_type may indicate that the type of the APS parameter is an LMCS parameter. When the value of the syntax element aps_params_type is 2, the syntax element aps_params_type may indicate that the type of the APS parameter is a Qpc data parameter. The Qpc data parameter may indicate a chroma quantization data parameter.

[0211] Furthermore, this document proposes another embodiment of signaling information of a quantization parameter.

[0212] For example, this embodiment proposes a method of signaling a user-defined Qp in a picture parameter set (PPS). CAs an example of executing the scheme proposed in this embodiment, a flag indicating whether the PPS includes user-defined data can be introduced into the SPS. That is, a flag indicating whether the PPS includes user-defined data in the SPS can be signaled. In addition, according to this embodiment, the user-defined data can be signaled in the PPS. Alternatively, the user-defined data can be signaled in the slice header and / or another header set.

[0213] A flag indicating whether the PPS includes user-defined data may be signaled as shown in the following table.

[0214] [Table 11]

[0215]

[0216] For example, the syntax element Qpc_data_default_flag may be a syntax element of the above-mentioned flag. The syntax element Qpc_data_default_flag may indicate whether a Qpc_data() parameter exists in the PPS RBSP syntax structure. For example, Qpc_data_default_flag being 0 may indicate that there is no Qpc_data() parameter in the PPS RBSP syntax structure and a default table is used to help determine the chrominance quantization. In this case, the default table may be the same as Table 7. In addition, for example, Qpc_data_default_flag being 1 may indicate that there may be a Qpc_data() parameter in the PPS RBSP syntax structure.

[0217] In addition, the user-defined data signaled in the PPS according to the present embodiment may be the same as the following table.

[0218] [Table 12]

[0219]

[0220] In addition, for example, when ChromaArrayType is 1, Qpc_data() may include information required for chroma quantization derivation.

[0221] Furthermore, this document proposes another embodiment of signaling information of a quantization parameter.

[0222] For example, the present embodiment proposes a flexible structure for chroma quantization parameter (QP) derivation and combined chroma QP derivation. The present embodiment proposes a scheme for signaling an initial flag indicating whether there is a user-defined mode, in which the parameters of the function used to derive the chroma quantization parameter (QP) in the SPS and / or PPS can be used.

[0223] For example, the flag information signaled in the high-level syntax proposed in this embodiment may be the same as a table described later.

[0224] [Table 13]

[0225]

[0226] For example, Qpc_data_present_flag may indicate whether there are parameters for deriving chroma quantization parameters in the high-level syntax RBSP syntax structure. For example, a Qpc_data_present_flag with a value of 0 may indicate that there are no chroma quantization parameters in the high-level syntax RBSP syntax structure. In addition, for example, a Qpc_data_present_flag with a value of 1 may indicate that there are chroma quantization parameters in the high-level syntax RBSP syntax structure.

[0227] Alternatively, the syntax element Qpc_data_present_flag may be used to indicate the scheme of using chrominance quantization derivation in the bitstream.For example, the syntax element Qpc_data_present_flag may indicate the use of a tool or user-defined mode for chrominance quantization derivation as follows.

[0228] For example, Qpc_data_present_flag may indicate whether a user-defined chroma quantization is used in the bitstream. For example, a Qpc_data_present_flag with a value of 0 may indicate that a user-defined chroma quantization is not used in the bitstream. In addition, for example, a Qpc_data_present_flag with a value of 1 may indicate that a user-defined chroma quantization is used alone or in conjunction with another flag.

[0229] Furthermore, this document proposes another embodiment of signaling information of a quantization parameter.

[0230] For example, this embodiment proposes how the chrominance quantization parameter (QP), i.e., Qp, can be derived using user-defined information signaled in a function. Cb , Qp` Cr and Qp` CbCr For example, according to the present embodiment, data representing a function for deriving a chromaticity quantization parameter (QP) may be signaled, and the chromaticity quantization parameter may be derived based on the chromaticity quantization data. Data for chromaticity quantization parameter derivation (or a user-defined QP mapping table) may be signaled as shown in the following table.

[0231] [Table 14]

[0232]

[0233] The semantics of the syntax elements in Table 14 can be the same as those in the following table.

[0234] [Table 15]

[0235]

[0236]

[0237] For example, the syntax element qPi_min_idx can represent the minimum qPi index used in chrominance quantization.

[0238] In addition, for example, the syntax element qPi_delta_max_idx can represent the incremental value between Qpi_min_idx and the maximum qPi index used in chrominance Qp c derivation. The value of qPiMaxIdx can be greater than or equal to qPi_min_idx. For example, the maximum index qPiMaxIdx used for Qp c derivation can be derived as follows.

[0239] [Equation 4]

[0240] qPiMaxIdx = qPi_min_idx + qPi_delta_max_idx

[0241] In addition, for example, the syntax element Qp C _qPi_val[i] can represent the Qp value at the i-th index. C

[0242] In addition, for example, the syntax element QpOffset C can represent the offset value used for deriving Qp C .

[0243] In addition, for example, the parameter Qp of qPi C Idx[qPi] can be derived as follows. In this case, qPi can be from 0 to qPiMaxIdx.

[0244] - When qPi < qPi_min_idx, Qp C Idx[qPi] can be set the same as qPi.

[0245] - When qPi = qPi_min_idx... qPiMaxIdx, Qp C Idx[qPi] can be set the same as Qp C _qPi_val[qPi].

[0246] - When qPi > qPiMaxIdx, Qp C ​Idx[qPi] can be set to qPi-QpOffset C .

[0247] After that, Qp C The value of Qp can be derived as C Idx[qPi].

[0248] For example, according to this embodiment, if the process of deriving the quantization parameter is described in a standard format, the process can be represented as in the following table.

[0249] [Table 16]

[0250]

[0251]

[0252]

[0253]

[0254] Referring to Table 16, the derivation process of the luma quantization parameter and the chroma quantization parameter can be started based on the fact that the input of the process is the luma position (xCb, yCb), the parameters cbWidth and cbHeight specifying the width and height of the current coding block, and the parameter treeType specifying a single tree or a double tree. In addition, as in the above content, the luma quantization parameter and the chroma quantization parameter can be expressed as Qp' Y , Qp' Cb and Qp' Cr .

[0255] Furthermore, this document proposes another embodiment of signaling information of a quantization parameter.

[0256] For example, this embodiment proposes an example in which a flag in an SPS has a user-defined mode or a default mode, and uses a syntax element that can be used to control the derivation of a quantization parameter. An example of a syntax element that can be used to derive a quantization parameter can be the same as the following table. In addition, for example, the structure of the syntax element is not limited to the structure shown in the following table.

[0257] [Table 17]

[0258]

[0259] [Table 18]

[0260]

[0261] [Table 19]

[0262]

[0263] For example, the syntax element Qpc_data_default_flag may indicate whether the user-defined mode is used for the derivation of the quantization parameter. For example, a Qpc_data_default_flag with a value of 0 may indicate that the user-defined mode is used for the derivation of the quantization parameter. In addition, for example, a Qpc_data_default_flag with a value of 1 may indicate that the default table is used for the derivation of the chrominance quantization parameter. In this case, the default table may be the same as Table 7. In addition, if the syntax element Qpc_data_default_flag does not exist, the syntax element Qpc_data_default_flag may be inferred to be 1.

[0264] In addition, if the user-defined mode is used, the corresponding slice header, tile group / header, or another appropriate header may be used to signal the APS ID. For example, as in Table 18, the syntax element representing the APS ID through the slice header may be signaled.

[0265] For example, the syntax element slice_Qp c _aps_id can indicate the Qp referenced by the slice c APS adaptation_parameter_set_id. c _aps_id) c The TemporalId of the APS NAL unit can be less than or equal to the TemporalId of the coded slice NAL unit. c If an APS is referenced by two or more slices of the same picture, then adaptation_parameter_set_id has multiple QPS with the same value. c APS can have the same content.

[0266] In addition, the APS structure for transmitting chromaticity quantization data proposed in this embodiment can be the same as Table 19.

[0267] For example, the syntax element adaptation_parameter_set_id may provide an identifier of an APS referenced by other syntax elements.

[0268] In addition, for example, the syntax element aps_extension_flag may indicate whether the aps_extension_data_flag syntax element exists in the APS RBSP syntax structure. For example, a syntax element aps_extension_flag with a value of 1 may indicate that the aps_extension_data_flag syntax element exists in the APS RBSP syntax structure. A syntax element aps_extension_flag with a value of 0 may indicate that the aps_extension_data_flag syntax element does not exist in the APS RBSP syntax structure.

[0269] Furthermore, for example, the syntax element aps_extension_data_flag may have any value. The presence (presence and value) of aps_extension_data_flag does not affect the decoding suitability of the profile specified in this standard version. For example, a decoding device conforming to this standard version may ignore all syntax elements aps_extension_data_flag.

[0270] In addition, for example, the syntax element aps_params_type may indicate the type of APS parameters included in the APS, as shown in Table 10.

[0271] The Qpc_data() disclosed in Table 19 may be signaled as shown in the following table.

[0272] [Table 20]

[0273]

[0274] For example, the syntax element qPi_min_idx may represent the minimum qPi index used in chroma quantization.

[0275] In addition, for example, the syntax element qPi_delta_max_idx may indicate the difference between Qpi_min_idx and Qpi_delta_max_idx for chroma. c The incremental value between the derived maximum qPi indices. The value of qPiMaxIdx can be greater than or equal to qPi_min_idx. For example, for Qp c The derived maximum index qPiMaxIdx can be derived similarly to Formula 4.

[0276] Furthermore, for example, by combining 1 with the syntax element Qp c The value obtained by adding Qp_prec_minus1 can represent the number of bits used to represent the syntax lmcs_delta_abs_cw[i]. c _prec_minus1 can have a value between 0 and BitDepthY within the range of -2.

[0277] In addition, for example, the syntax element Qp c _init_val can represent Qp corresponding to qPi_min_idx C value.

[0278] In addition, for example, the syntax element Qp C _qPi_delta_val[i] can represent the increment of the Qp value at the i-th index C value.

[0279] In addition, for example, the syntax element QpOffset C can represent the offset value used to derive Qp c value.

[0280] For example, the parameter Qp of qPi C Idx[qPi] can be derived as follows. In this case, qPi can be from 0 to qPiMaxIdx.

[0281] - When qPi < qPi_min_idx, Qp C Idx[qPi] can be set the same as qPi.

[0282] - When qPi = qPi_min_idx…qPiMaxIdx, Qp C Idx[qPi] can be set to Qp c _qPi_delta_val[qPi] + Qp C Idx[qPi - 1].

[0283] - When qPi > qPiMaxIdx, Qp C Idx[qPi] can be set to qPi - QpOffset C .

[0284] Thereafter, the value of Qp C can be derived as Qp C Idx[qPi].

[0285] Similar to the above embodiments, the chrominance quantization parameters, i.e., Qp`Cb, Qp`Cr, and Qp`CbCr, can be derived using the user-defined information signaled or the default values shown in the default table (e.g., Table 7).

[0286] For example, in this embodiment, if the process of deriving the quantization parameters is written in a standard format, the process can be represented as in the following table.

[0287] [Table 21]

[0288]

[0289]

[0290]

[0291]

[0292] Referring to Table 21, when ChromaArrayType is 1 and Qp c _data_default_flag indicates false (i.e., for example, when Qp c _data_default_flag is 0), parameter qP Cb ,qP Cr and qP CbCr It can be derived based on the user-defined information signaled as proposed in this embodiment. c _data_default_flag indicates true (i.e., for example, when Qp c _data_default_flag is 1), parameter qP Cb ,qP Cr and qP CbCr Based on the same index qPi Cb ,qPi Cr and qPi CbCr Deduced via the defaults table.

[0293] Furthermore, this document proposes another embodiment of signaling information of a quantization parameter.

[0294] For example, the present embodiment proposes a syntax element that can be used to control the derivation of a quantization parameter by indicating a user-defined mode or a default mode via a flag of an SPS. Specifically, the present embodiment proposes a scheme for signaling a syntax element of the following syntax structure. In addition, the structure of the syntax element is an example and is not limited to the structure shown in the following table.

[0295] [Table 22]

[0296]

[0297] For example, the syntax element qPi_min_idx may represent the minimum qPi index used in chroma quantization.

[0298] In addition, for example, the syntax element qPi_delta_max_idx may indicate the difference between Qpi_min_idx and Qpi_delta_max_idx for chroma. cThe value of qPiMaxIdx can be greater than or equal to qPi_min_idx. For example, for Qp c The derived maximum index qPiMaxIdx can be derived similarly to Formula 4.

[0299] Furthermore, for example, the syntax element Qp C _qPi_delta_val[i] can represent the Qp of the i-th index C The increment of the value.

[0300] Furthermore, for example, the syntax element QpOffset C It can be expressed as used to derive Qp c The offset value (such as the above)

[0301] As in the above-described embodiments, the chromaticity quantization parameters, ie, Qp`Cb, Qp`Cr, and Qp`CbCr, may be derived using signaled user-defined information or default values ​​used in a default table such as Table 7.

[0302] For example, in this embodiment, if the process of deriving the quantization parameter is written in a standard format, the process can be represented as in the following table.

[0303] [Table 23]

[0304]

[0305]

[0306]

[0307]

[0308] Referring to Table 23, when ChromaArrayType is 1 and Qp c _data_default_flag indicates false (i.e., for example, when Qp c _data_default_flag is 0), parameter qP Cb ,qP Cr and qP CbCr It can be derived based on the user-defined information signaled as proposed in this embodiment. For example, when ChromaArrayType is 1 and Qp c _data_default_flag indicates false (i.e., for example, when Qp c _data_default_flag is 0), parameter qP Cb ,qP Cr and qPCbCr It can be derived as follows based on qPi respectively Cb 、qPi Cr and qPi CbCr with the same index qPi as Qp C in the same way.

[0309] For example, the parameter Qp C Idx[i] can be derived as follows.

[0310] - When i < qPi_min_idx, Qp C Idx[qPi] can be set the same as qPi.

[0311] - When i = qPi_min_idx…qPiMaxIdx, Qp C Idx[i] can be set to Qp C _qPi_delta_val[i] + Qp C Idx[i - 1].

[0312] - When i > qPiMaxIdx, Qp C Idx[i] can be set to qPi - QpOffset C .

[0313] After that, Qp C can be set to Qp C Idx[i].

[0314] In addition, referring to Table 23, when ChromaArrayType is 1 and Qp c _data_default_flag indicates true (i.e., for example, when Qp c _data_default_flag is 1), the parameters qP Cb 、qP Cr and qP CbCr can be derived from the default table based on qPi Cb 、qPi Cr and qPi CbCr with the same index qPi respectively.

[0315] In addition, this document proposes another implementation for signaling information of quantization parameters.

[0316] For example, this implementation proposes chroma quantization (Qp C) syntax elements for deriving parameters. For example, the APS ID may be signaled in the slice header. In addition, for example, a flag may be proposed within the picture parameter set (PPS) to indicate whether to use a default table or a table derived from information signaled in the APS. In addition, for example, if the default table is not used, a flag may be provided to support access to the Qp C Additional control schemes for the APS of data may be added to the slice header.

[0317] Furthermore, according to existing video / image standards, the chroma QP can be derived from the luma QP and can be updated by an additionally signaled chroma QP offset. C The table may be a default table (eg, Table 7).

[0318] This embodiment proposes to add a function for signaling the chrominance quantization parameter Qp as a function of the index qPi C APS can be used to integrate Qp C The signaling scheme of the value.

[0319] For example, the APS according to the present embodiment may be the same as the following table.

[0320] [Table 24]

[0321]

[0322] For example, the syntax element adaptation_parameter_set_id may provide an identifier of an APS referenced by other syntax elements.

[0323] In addition, for example, the syntax element aps_params_type may indicate the type of APS parameters included in the APS, as shown in Table 10.

[0324] In addition, for example, the syntax element aps_extension_flag may indicate whether the aps_extension_data_flag syntax element exists in the APS RBSP syntax structure. For example, the syntax element aps_extension_flag with a value of 1 may indicate that the aps_extension_data_flag syntax element exists in the APS RBSP syntax structure. The syntax element aps_extension_flag with a value of 0 may indicate that the aps_extension_data_flag syntax element does not exist in the APS RBSP syntax structure.

[0325] Furthermore, for example, the syntax element aps_extension_data_flag may have any value. The presence (presence and value) of aps_extension_data_flag does not affect the decoding suitability of the profile specified in this standard version. For example, a decoding device conforming to this standard version may ignore all syntax elements aps_extension_data_flag.

[0326] Qp disclosed in Table 24 c _data() can be signaled as shown in the following table.

[0327] [Table 25]

[0328]

[0329] For example, the syntax element qPi_min_idx may represent the minimum qPi index used in chroma quantization. The value of qPi_min_idx may be in the range of 0 to 63.

[0330] In addition, for example, the syntax element qPi_delta_max_idx may indicate the difference between Qpi_min_idx and Qpi_delta_max_idx for chroma. c The delta value between the derived maximum qPi indices. The value of qPiMaxIdx may be greater than or equal to qPi_min_idx. In addition, for example, the value of qPi_delta_max_idx may be in the range of 0 to 63. For example, for Qp c The derived maximum index qPiMaxIdx can be derived similarly to Formula 4.

[0331] Furthermore, for example, the syntax element Qp C _qPi_delta_val[i] can represent the Qp of the i-th index C The difference between the values. This difference can also be called the delta.

[0332] Furthermore, for example, the syntax element Qp C Offset C _present_flag can indicate whether QpOffset exists in the bitstream C For example, a Qp value of 1 C Offset C _present_flag can indicate the presence of QpOffset in the bitstream C In addition, for example, a Qp value of 0 C Offset C _present_flag can indicate that QpOffset does not exist in the bitstream C When QpC Offset C When _present_flag does not exist, Qp C Offset C _present_flag can be inferred as 0.

[0333] In addition, for example, the syntax element QpOffset C can represent an offset value used to derive Qp c

[0334] For example, the parameter Qp of qPi C Idx[qPi] can be derived as follows. In this case, qPi can be 0 to 63.

[0335] - When qPi < qPi_min_idx, Qp C Idx[qPi] can be set the same as qPi.

[0336] - When qPi = qPi_min_idx…qPiMaxIdx, Qp C Idx[qPi] can be set to Qp C _qPi_delta_val[qPi] + Qp C Idx[qPi - 1].

[0337] - If qPi > qPiMaxIdx, then when Qp C Offset C _present_flag is 1, Qp C Idx[qPi] can be set to qPi - QpOffset C . If Qp C Offset C _present_flag is not 1, that is, if Qp C Offset C _present_flag is 0, then Qp C Idx[qPi] can be set to qPi - (qPiMaxIdx - Qp C Idx[qPiMaxIdx]).

[0338] Thereafter, the value of Qp C can be derived as Qp C Idx[qPi].

[0339] In addition, this embodiment proposes the flags notified as PPS signals in the following table.

[0340] [Table 26] ​

[0341]

[0342] For example, the syntax element Qp c _data_default_flag can indicate whether the user-defined mode is used for quantization parameter derivation. For example, a Qp value of 0 c _data_default_flag can indicate that a user-defined mode is used for quantization parameter derivation. In addition, for example, a Qp value of 1 c _data_default_flag may indicate that the above default table is used for quantization parameter derivation. The default table may be the same as Table 7. c _data_default_flag does not exist, then Qp c _data_default_flag may be inferred to be 1.

[0343] In addition, this embodiment proposes the syntax elements shown in the following table to be signaled as a slice header.

[0344] [Table 27]

[0345]

[0346] For example, the syntax element slice_Qp c _aps_id can indicate the Qp referenced by the slice c APS adaptation_parameter_set_id. c _aps_id) c The TemporalId of the APS NAL unit can be less than or equal to the TemporalId of the coded slice NAL unit. c If an APS is referenced by two or more slices of the same picture, then adaptation_parameter_set_id has multiple QPS with the same value. c APS can have the same content.

[0347] For example, in this embodiment, if the process of deriving the quantization parameter is written in a standard format, the process can be represented as in the following table.

[0348] [Table 28]

[0349]

[0350]

[0351]

[0352] Referring to Table 28, when ChromaArrayType is 1 and Qp c _data_default_flag indicates false (i.e., for example, when Qp c _data_default_flag is 0), parameter qP Cb ,qP Cr and qP CbCr It can be derived based on the user-defined information signaled as proposed in this embodiment. In addition, for example, when ChromaArrayType is 1 and Qp c _data_default_flag indicates true (i.e., for example, when Qp c _data_default_flag is 1), parameter qP Cb ,qP Cr and qP CbCr Can be based on qPi Cb ,qPi Cr and qPi CbCr The same index qPi is derived from the defaults table.

[0353] Furthermore, this document proposes another embodiment of signaling information of a quantization parameter.

[0354] For example, in this embodiment, a user-defined derivation of the chromaticity quantization (Qp) is proposed to be signaled in the SPS as follows. C ). For example, a flag of the SPS may indicate whether a default table is used for chromaticity quantization derivation or whether the contents of the table used for chromaticity quantization derivation are derived from information signaled in the SPS.

[0355] For example, this embodiment proposes a scheme for performing chrominance quantization using the syntax elements shown in the following table as a function of the index qPi.

[0356] [Table 29]

[0357]

[0358] For example, the syntax element qPi_min_idx may represent the minimum qPi index used in chroma quantization. The value of qPi_min_idx may be in the range of 0 to 63.

[0359] In addition, for example, the syntax element qPi_delta_max_idx can represent the incremental value between Qpi_min_idx and the maximum qPi index used for chrominance Qp c The value of qPiMaxIdx can be greater than or equal to qPi_min_idx. The value of qPi_delta_max_idx can be in the range of 0 to 63. For example, the maximum index qPiMaxIdx used for Qp c derivation can be derived similar to Equation 4.

[0360] In addition, for example, the syntax element Qp C _qPi_delta_val[i] can represent the increment of the Qp value at the i-th index. C

[0361] For example, the parameter Qp C Idx[qPi] can be derived as follows.

[0362] - When qPi < qPi_min_idx, Qp C Idx[qPi] can be set the same as qPi.

[0363] - When qPi = qPi_min_idx... qPiMaxIdx, Qp C Idx[qPi] can be set to Qp C _qPi_delta_val[qPi] + Qp C Idx[qPi - 1].

[0364] - When qPi > qPiMaxIdx, Qp C Idx[qPi] can be set to qPi - (qPiMaxIdx - Qp C Idx[qPiMaxIdx]).

[0365] Thereafter, Qp C can be set to Qp C Idx[qPi].

[0366] In addition, the flag of the SPS that represents whether the default table is used for chrominance quantization derivation or whether the information signaled is used for chrominance quantization derivation proposed in this embodiment can be the same as the following table.

[0367] [Table 30]

[0368]

[0369] For example, the syntax element Qp c ​_data_default_flag can indicate whether the user-defined mode is used for the derivation of the quantization parameter. For example, a Qp value of 0 c _data_default_flag can indicate that a user-defined mode is used for the derivation of quantization parameters. In addition, for example, a Qp value of 1 c _data_default_flag may indicate that the default table is used for the derivation of the quantization parameters. The default table may be the same as Table 7. In addition, if Qp c _data_default_flag does not exist, then Qp c _data_default_flag may be inferred to be 1.

[0370] For example, according to this embodiment, if the process of deriving the quantization parameter is written in a standard format, the process can be represented as in the following table.

[0371] [Table 31]

[0372]

[0373]

[0374]

[0375] Referring to Table 31, when ChromaArrayType is 1 and Qp c _data_default_flag indicates false (i.e., for example, when Qp c _data_default_flag is 0), parameter qP Cb ,qP Cr and qP CbCr It can be derived based on the user-defined information signaled as proposed in this embodiment. In addition, for example, when ChromaArrayType is 1 and Qp c _data_default_flag indicates true (i.e., for example, when Qp c _data_default_flag is 1), parameter qP Cb ,qP Cr and qP CbCr Can be based on qPi Cb ,qPi Cr and qPi CbCr The same index qPi is derived from the defaults table.

[0376] Furthermore, this document proposes another embodiment of signaling information of a quantization parameter.

[0377] For example, the present embodiment proposes to signal the chrominance quantization parameter Qp as a function of the index qPi C function. For example, a scheme can be proposed to signal a syntax element of a user-defined table for quantization parameter derivation in the PPS. Therefore, flexibility regarding changing the user-defined table and the default table in each picture referring to the PPS can be provided.

[0378] The syntax element of the user-defined table signaled in the PPS proposed in the present embodiment may be the same as the following table.

[0379] [Table 32]

[0380]

[0381] For example, the syntax element qPi_min_idx may represent the minimum qPi index used in chrominance quantization. The value of qPi_min_idx may be in the range of 0 to 63.

[0382] In addition, for example, the syntax element qPi_delta_max_idx may represent the incremental value between Qpi_min_idx and the maximum qPi index used for chrominance Qp c derivation. The value of qPiMaxIdx may be greater than or equal to qPi_min_idx. The value of qPi_delta_max_idx may be in the range of 0 to 63. For example, the maximum index qPiMaxIdx used for Qp c derivation may be derived similarly to Equation 4.

[0383] In addition, for example, the syntax element Qp C _qPi_delta_val[i] may represent the increment of the Qp value at the i-th index C value.

[0384] For example, the parameter Qp C Idx[qPi] may be derived as follows.

[0385] - When qPi < qPi_min_idx, Qp C Idx[qPi] may be set the same as qPi.

[0386] - When qPi = qPi_min_idx…qPiMaxIdx, Qp C Idx[qPi] may be set to Qp C _qPi_delta_val[qPi] + Qp C Idx[qPi - 1].

[0387] - When qPi > qPiMaxIdx, QpC Idx[qPi] can be set to qPi-(qPiMaxIdx-Qp C Idx[qPiMaxIdx]).

[0388] After that, Qp C Can be set to Qp C Idx[qPi].

[0389] In addition, the flag of the SPS proposed in this embodiment indicating whether the default table is used for chromaticity quantization derivation or whether the information notified by the signal is used for chromaticity quantization derivation can be the same as the following table.

[0390] [Table 33]

[0391]

[0392] For example, the syntax element Qp c _data_default_flag can indicate whether the user-defined mode is used for the derivation of the quantization parameter. For example, a Qp value of 0 c _data_default_flag may indicate that a user-defined mode is used for the derivation of the quantization parameter. That is, for example, a Qp value of 0 c _data_default_flag can indicate the use of chrominance quantization parameter data Qp c _data(). When Qp c When _data_default_flag is 0, the chrominance quantization parameter data Qp can be signaled c _data(). In addition, for example, a Qp value of 1 c _data_default_flag may indicate that the default table is used for the derivation of the quantization parameters. The default table may be the same as Table 7. In addition, if Qp c _data_default_flag does not exist, then Qp c _data_default_flag may be inferred to be 1.

[0393] For example, in this embodiment, if the process of deriving the quantization parameter is written in a standard format, the process can be represented as in the following table.

[0394] [Table 34]

[0395]

[0396]

[0397]

[0398]

[0399] Referring to Table 34, when ChromaArrayType is 1 and Qp c _data_default_flag indicates false (i.e., for example, when Qp c _data_default_flag is 0), parameter qP Cb ,qP Cr and qP CbCr It can be derived based on the user-defined information signaled as proposed in this embodiment. In addition, for example, ChromaArrayType is 1 and Qp c _data_default_flag indicates true (i.e., for example, when Qp c _data_default_flag is 1), parameter qP Cb ,qP Cr and qP CbCr Can be based on qPi Cb ,qPi Cr and qPi CbCr The same index qPi is derived from the defaults table.

[0400] Furthermore, this document proposes another embodiment of signaling information of a quantization parameter.

[0401] For example, this embodiment proposes to derive and signal the chrominance quantization parameter Qp C public mode.

[0402] The chromaticity quantization parameter data Qp of the chromaticity quantization parameter proposed in this embodiment is c _data() can be signaled as shown in the following table.

[0403] [Table 35]

[0404]

[0405] For example, the syntax element qPi_min_idx may represent the minimum qPi index used in chroma quantization. The value of qPi_min_idx may be in the range of 0 to 63.

[0406] In addition, for example, the syntax element qPi_delta_max_idx may indicate the difference between Qpi_min_idx and Qpi_delta_max_idx for chroma. c The delta value between the derived maximum qPi indices. The value of qPiMaxIdx can be greater than or equal to qPi_min_idx. The value of qPi_delta_max_idx can be in the range of 0 to 63. For example, for Qpc The derived maximum index qPiMaxIdx can be derived similarly to Equation 4.

[0407] In addition, for example, the syntax element Qp C _qPi_delta_val[i] can represent the increment of the Qp value at the i-th index. C The increment of the value.

[0408] For example, the parameter Qp C Idx[qPi] can be derived as follows.

[0409] - When qPi < qPi_min_idx, Qp C Idx[qPi] can be set the same as qPi.

[0410] - When qPi = qPi_min_idx... qPiMaxIdx, Qp C Idx[qPi] can be set to Qp C _qPi_delta_val[qPi] + Qp C Idx[qPi - 1].

[0411] - When qPi > qPiMaxIdx, Qp C Idx[qPi] can be set to qPi - (qPiMaxIdx - Qp C Idx[qPiMaxIdx]).

[0412] Thereafter, Qp C can be set to Qp C Idx[qPi].

[0413] In addition, this embodiment proposes a scheme for signaling a flag indicating whether a default table is used for chrominance quantization derivation or whether the signaled information is used for chrominance quantization derivation. This flag can be signaled through high-level syntax such as a Sequence Parameter Set (SPS) or a Picture Parameter Set (PPS). The flag signaled through high-level syntax can be the same as the following table.

[0414] [Table 36]

[0415]

[0416] For example, the syntax element Qp c _data_default_flag can represent whether the user-defined mode is used for the derivation of quantization parameters. For example, Qp c _data_default_flag with a value of 0 can represent that the user-defined mode is used for the derivation of quantization parameters. That is, for example, Qp c_data_default_flag can indicate the use of chrominance quantization parameter data Qp c _data(). When Qp c When _data_default_flag is 0, the chrominance quantization parameter data Qp can be signaled c _data(). In addition, for example, a Qp value of 1 c _data_default_flag may indicate that the default table is used for the derivation of the quantization parameters. The default table may be the same as Table 7. In addition, if Qp c _data_default_flag does not exist, then Qp c _data_default_flag may be inferred to be 1.

[0417] For example, in this embodiment, if the process of deriving the quantization parameter is written in a standard format, the process can be represented as in the following table.

[0418] [Table 37]

[0419]

[0420]

[0421]

[0422]

[0423] Referring to Table 37, when ChromaArrayType is 1 and Qp c _data_default_flag indicates false (i.e., for example, when Qp c _data_default_flag is 0), parameter qP Cb ,qP Cr and qP CbCr It can be derived based on the user-defined information signaled as proposed in this embodiment. In addition, for example, when ChromaArrayType is 1 and Qp c _data_default_flag indicates true (i.e., for example, when Qp c _data_default_flag is 1), parameter qP Cb ,qP Cr and qP CbCr Can be based on qPi Cb ,qPi Cr and qPi CbCr The same index qPi is derived from the defaults table.

[0424] In addition, this document presents another implementation for signaling information of quantization parameters.

[0425] For example, this implementation proposes a scheme for deriving the chrominance quantization parameter Qp without an offset. C This implementation can be proposed for use together with APS or independently. For example, the syntax structure of APS integrated with chrominance quantization data can be the same as the following table.

[0426] [Table 38]

[0427]

[0428] For example, the syntax element qPi_min_idx can represent the minimum qPi index used in chrominance quantization. The value of qPi_min_idx can be in the range of 0 to 63.

[0429] In addition, for example, the syntax element qPi_delta_max_idx can represent the incremental value between Qpi_min_idx and the maximum qPi index used for chrominance Qp c derivation. The value of qPiMaxIdx can be greater than or equal to qPi_min_idx. The value of qPi_delta_max_idx can be in the range of 0 to 63. For example, the maximum index qPiMaxIdx used for Qp c derivation can be derived similar to Equation 4.

[0430] In addition, for example, the syntax element Qp C _qPi_delta_val[i] can represent the difference between the Qp C values at the i-th index. This difference can also be referred to as an increment.

[0431] For example, the parameter Qp C Idx[qPi] can be derived as follows. In this case, qPi can be from 0 to 63.

[0432] - When qPi < qPi_min_idx, Qp C Idx[qPi] can be set the same as qPi.

[0433] - When qPi = qPi_min_idx... qPiMaxIdx, Qp C Idx[qPi] can be set to Qp C _qPi_delta_val[qPi] + Qp C Idx[qPi - 1].

[0434] - When qPi > qPiMaxIdx, QpC Idx[qPi] can be set to qPi-(qPiMaxIdx-Qp C Idx[qPiMaxIdx]).

[0435] After that, Qp C Can be set to Qp C Idx[qPi].

[0436] Furthermore, this document proposes another embodiment of signaling information of a quantization parameter.

[0437] For example, this embodiment proposes a continuous Qp C A scheme in which the increment (or difference) between values ​​is constrained to 1.

[0438] For example, this embodiment proposes a method to further include user-defined chromaticity quantization (Qp C ) scheme. For example, a flag of a sequence parameter set (SPS) proposed in this embodiment may indicate whether an existing default table is used for chroma quantization parameter derivation or whether the contents of the table are derived based on information signaled in the SPS. A scheme suitable for an encoded image may be selected by adapting to user-defined chroma quantization according to this embodiment, and encoding efficiency may be improved.

[0439] For example, this embodiment proposes to use the syntax elements in the following table to add as a function of the index qPi to signal the chrominance quantization Qp C function.

[0440] [Table 39]

[0441]

[0442] For example, the syntax element qPi_min_idx may represent the minimum qPi index used in chroma quantization. The value of qPi_min_idx may be in the range of 1 to 63.

[0443] In addition, for example, the syntax element qPi_delta_max_idx may indicate the difference between Qpi_min_idx and Qpi_delta_max_idx for chroma. c The delta value between the derived maximum qPi indices. The value of qPiMaxIdx can be greater than or equal to qPi_min_idx. The value of qPi_delta_max_idx can be in the range of 1 to 63. For example, for Qp c The derived maximum index qPiMaxIdx can be derived similarly to Formula 4.

[0444] In addition, for example, the syntax element QpC_qPi_flag[i] may indicate QpC whether the value is incremented by 1. That is, for example, the syntax element QpC_qPi_flag[i] can represent the i-th Qp C value compared to the (i - 1)-th Qp C value has been incremented by 1. For example, QpC_qPi_flag[i] with a value of 1 can represent Qp C value has been incremented by 1. QpC_qPi_flag[i] with a value of 0 can represent Qp C value has not been incremented.

[0445] For example, the parameter Qp C Idx[qPi] can be derived as follows. In this case, qPi can be from 0 to 63.

[0446] - When qPi < qPi_min_idx, Qp C Idx[qPi] can be set the same as qPi.

[0447] - When qPi = qPi_min_idx...qPiMaxIdx, Qp C Idx[qPi] can be set to Qp C _qPi_flag[qPi] + Qp C Idx[qPi - 1].

[0448] - When qPi > qPiMaxIdx, Qp C Idx[qPi] can be set to qPi - (qPiMaxIdx - Qp C Idx[qPiMaxIdx]).

[0449] Thereafter, Qp C can be set to Qp C Idx[qPi].

[0450] In addition, this embodiment proposes a scheme for signaling a flag indicating whether a default table is used for chrominance quantization derivation or whether the signaled information is used for chrominance quantization derivation. This flag can be signaled through an advanced syntax such as a sequence parameter set (SPS) or a picture parameter set (PPS). The flag signaled through the advanced syntax can be the same as the following table.

[0451] [Table 40]

[0452]

[0453] For example, the syntax element Qp c _data_default_flag can represent whether a user-defined mode is used for the derivation of quantization parameters. For example, Qp with a value of 0 c_data_default_flag may indicate that a user-defined mode is used for the derivation of the quantization parameter. That is, for example, a Qp value of 0 c _data_default_flag can indicate the use of chrominance quantization parameter data Qp c _data(). When Qp c When _data_default_flag is 0, the chrominance quantization parameter data Qp can be signaled c _data(). In addition, for example, a Qp value of 1 c _data_default_flag may indicate that the default table is used for the derivation of the quantization parameters. The default table may be the same as Table 7. In addition, if Qp c _data_default_flag does not exist, then Qp c _data_default_flag may be inferred to be 1.

[0454] For example, in this embodiment, if the process of deriving the quantization parameter is written in a standard format, the process can be represented as in the following table.

[0455] [Table 41]

[0456]

[0457]

[0458]

[0459] Referring to Table 41, when ChromaArrayType is 1 and Qp c _data_default_flag indicates false (i.e., for example, when Qp c _data_default_flag is 0), parameter qP Cb ,qP Cr and qP CbCr It can be derived based on the user-defined information signaled as proposed in this embodiment. In addition, for example, when ChromaArrayType is 1 and Qp c _data_default_flag indicates true (i.e., for example, when Qp c _data_default_flag is 1), parameter qP Cb ,qP Cr and qP CbCr Can be based on qPi Cb ,qPi Cr and qPi CbCrThe same index qPi is derived from the defaults table.

[0460] Figure 7 The image encoding method of the encoding device according to this document is schematically shown. Figure 7 The method disclosed in can be Figure 2 Specifically, for example, Figure 7 S700 in may be performed by a predictor of the encoding device. Figure 7 S710 in may be performed by a subtractor of the encoding device. Figure 7 S720 in the above may be performed by a residual processor of the encoding device. S730 to S740 may be performed by an entropy encoder of the encoding device. In addition, although not shown, the process of generating a reconstructed sample and a reconstructed picture based on the residual sample and the prediction sample may be performed by an adder of the encoding device.

[0461] The encoding device derives a prediction sample of the current chrominance block based on inter prediction or intra prediction (S700). The encoding device may derive a prediction sample of the current chrominance block based on a prediction mode. In this case, various prediction methods disclosed in this document, such as inter prediction or intra prediction, may be used.

[0462] For example, the encoding device may determine whether to perform inter prediction or intra prediction on the current chroma block, and may determine a detailed inter prediction mode or a detailed intra prediction mode based on the RD cost. The encoding device may derive a prediction sample of the current chroma block based on the determined mode.

[0463] The encoding apparatus derives residual samples of the current chroma block based on the prediction samples (S710). For example, the encoding apparatus may derive residual samples by subtracting original samples and prediction samples of the current chroma block.

[0464] The encoding device generates quantization parameter data for combined chroma encoding of residual samples based on the chroma type of the current chroma block (S720). The encoding device may generate quantization parameter data for combined chroma encoding of residual samples based on the chroma type. In this case, the chroma type may refer to the above-mentioned ChromaArrayType. For example, if the value of the chroma type is not 0, the encoding device may generate quantization parameter data for combined chroma encoding. For example, when the value of the chroma type is 1, the decoding device may generate quantization parameter data for combined chroma encoding. In this case, when the value of the chroma type is 0, the chroma type may be a monochrome format. When the value of the chroma type is 1, the chroma type may be a 4:2:0 format. When the value of the chroma type is 2, the chroma type may be a 4:2:2 format. When the value of the chroma type is 3, the chroma type may be a 4:4:4 format. In addition, combined chroma encoding may also be referred to as joint encoding of chroma components. The chroma component may include a Cb component and / or a Cr component.

[0465] In addition, for example, the encoding device may determine whether to perform combined chroma encoding on the residual samples of the chroma components based on the chroma type (for example, when the value of the chroma type is not 0). If combined chroma encoding is performed on the residual samples, quantization parameter data for combined chroma encoding of the residual samples may be generated. For example, the quantization parameter data may be signaled through a high-level syntax. For example, the quantization parameter data may be signaled through a sequence parameter set (SPS), a picture parameter set (PPS), a slice header, or an adaptive parameter set (APS).

[0466] For example, the quantization parameter data may include a syntax element indicating a starting index of a chroma quantization parameter table for combined chroma coding and / or a syntax element indicating a difference between a starting index and a last index of the chroma quantization parameter table. The syntax element indicating the starting index may be the above-mentioned qPi_min_idx. In addition, the syntax element indicating the difference between the starting index and the last index may be qPi_delta_max_idx. In addition, the chroma quantization parameter table may also be referred to as a chroma quantization parameter mapping table or a user-defined quantization parameter mapping table. In addition, the starting index may also be referred to as a minimum index. In addition, for example, the syntax element indicating the starting index and / or the syntax element indicating the difference between the starting index and the last index may be signaled by a high-level syntax. For example, the syntax element indicating the starting index and / or the syntax element indicating the difference between the starting index and the last index may be signaled by a sequence parameter set (SPS), a picture parameter set (PPS), a slice header, or an adaptive parameter set (APS).

[0467] In addition, for example, the quantization parameter data may include a syntax element of a quantization parameter value of an index of a chrominance quantization parameter table. That is, for example, the quantization parameter data may include a syntax element of a quantization parameter value of each index of a chrominance quantization parameter table. The syntax element of the quantization parameter value of the index may be the above-mentioned Qp C _qPi_val[i]. In addition, for example, the syntax elements of the indexed quantization parameter value may be signaled via a high-level syntax. For example, the syntax elements of the indexed quantization parameter value may be signaled via a sequence parameter set (SPS), a picture parameter set (PPS), a slice header, or an adaptation parameter set (APS).

[0468] In addition, for example, the quantization parameter data may include a syntax element indicating an offset for deriving a quantization parameter for combined chrominance coding. The syntax element indicating the offset may be the QpOffset C In addition, for example, a syntax element indicating an offset may be signaled through a high-level syntax. For example, a syntax element indicating an offset may be signaled through a sequence parameter set (SPS), a picture parameter set (PPS), a slice header, or an adaptation parameter set (APS).

[0469] In addition, for example, the encoding device can derive a quantization parameter for combined chrominance encoding based on the quantization parameter data. The quantization parameter for combined chrominance encoding can represent the above-mentioned QP` CbCr .

[0470] For example, as in the above content, the chrominance quantization parameter table can be derived based on a syntax element indicating the starting index of the chrominance quantization parameter table, a syntax element indicating the difference between the starting index and the last index of the chrominance quantization parameter table, and / or a syntax element of the quantization parameter value of the index of the chrominance quantization parameter table. That is, for example, the chrominance quantization parameter table for combined chrominance coding can be derived based on the quantization parameter data. Thereafter, the index for combined chrominance coding can be derived based on the quantization parameter of the luminance component. The quantization parameter for combined chrominance coding can be derived based on the quantization parameter of the index of the chrominance quantization parameter table. That is, for example, the quantization parameter for combined chrominance coding can be derived based on the quantization parameter of the index in the chrominance quantization parameter table that is the same as the quantization parameter of the luminance component.

[0471] For example, the quantization parameter (e.g., QP`) used for combined chroma coding CbCr ) can be obtained by combining the offset with the quantization parameter (e.g., QP CbCr The offset may be derived based on a syntax element representing an offset for deriving a quantization parameter for combined chroma coding.

[0472] The encoding device generates a flag indicating whether there is quantization parameter data for combined chroma encoding (S730). For example, the encoding device may generate a flag indicating whether there is quantization parameter data for combined chroma encoding based on the chroma type. For example, when the value of the chroma type is not 0, the encoding device may generate a flag indicating whether there is quantization parameter data for combined chroma encoding. For example, when the value of the chroma type is 1, the encoding device may generate a flag indicating whether there is quantization parameter data for combined chroma encoding. For example, the syntax element of the flag may be the above-mentioned Qp C _data_present_flag.

[0473] For example, when the value of the flag is 0, the flag may indicate that the quantization parameter data for combined chroma coding does not exist. When the value of the flag is 1, the flag may indicate that the quantization parameter data for combined chroma coding exists.

[0474] In addition, for example, the flag may be signaled via a high-level syntax. For example, the flag may be signaled via a sequence parameter set (SPS), a picture parameter set (PPS), a slice header, or an adaptation parameter set (APS).

[0475] The encoding device encodes the image information including the prediction information and residual information of the current chrominance block, the quantization parameter data and the flag (S740). The encoding device may encode the image information. The image information may include the prediction information and residual information of the current chrominance block, the quantization parameter data and the flag.

[0476] For example, the encoding device may generate and encode prediction information of the current block. The prediction information may include prediction mode information indicating a prediction mode of the current block. The image information may include the prediction information.

[0477] In addition, for example, the encoding device may encode residual information of the residual sample. For example, the encoding device may derive a transform coefficient based on the residual sample, and may generate residual information based on the transform coefficient. The image information may include residual information. For example, the residual information may include syntax elements of the transform coefficient of the current chrominance 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 and / or coeff_sign_flag.

[0478] In addition, for example, the encoding device may encode the image information including the quantization parameter data and the flag. In addition, for example, the encoding device may output the image information in the form of a bit stream by encoding the image information.

[0479] In addition, the bit stream including the image information can be sent to the decoding device via a network or a (digital) storage medium. In this case, the network can include a broadcast network and / or a communication network. The digital storage medium can include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD and SSD.

[0480] Figure 8 A coding device for performing an image coding method according to the present document is schematically shown. Figure 7 The method disclosed in can be Figure 8 Specifically, for example, Figure 8 The predictor of the encoding device in may perform S700. The subtractor of the encoding device may perform S710. The residual processor of the encoding device may perform S720. The entropy encoder of the encoding device may perform S730 to S740. In addition, although not shown, the process of generating a reconstructed sample and a reconstructed picture based on the residual sample and the prediction sample may be performed by an adder of the encoding device.

[0481] Fig. 9 The image decoding method of the decoding device according to this document is schematically shown. Fig. 9 The method disclosed in can be Figure 3 Specifically, for example, Fig. 9 S900 to S910 in the above-mentioned embodiment may be performed by an entropy decoder of a decoding device. Fig. 9 S920 and S940 to S960 in the above process may be performed by a residual processor of the decoding device. Fig. 9 S930 in may be performed by a predictor of a decoding device. Fig. 9 S970 in the above step may be executed by an adder of the decoding device.

[0482] The decoding device obtains image information based on the chroma type, and the image information includes a flag indicating whether there is quantization parameter data for combined chroma coding and prediction information and residual information of the current chroma block (S900). The decoding device can obtain image information through a bitstream. For example, the image information may include information of chroma quantization parameters. For example, the image information may include a flag indicating whether there is quantization parameter data for combined chroma coding. For example, the decoding device can obtain a flag indicating whether there is quantization parameter data for combined chroma coding based on the chroma type. In this case, the chroma type may mean the above-mentioned ChromaArrayType. For example, when the value of the chroma type is not 0, the decoding device may obtain a flag indicating whether there is quantization parameter data for combined chroma coding. For example, when the value of the chroma type is 1, the decoding device may obtain a flag indicating whether there is quantization parameter data for combined chroma coding. In this case, when the value of the chroma type is 0, the chroma type may be a monochrome format. When the value of the chroma type is 1, the chroma type may be a 4:2:0 format. When the value of the chroma type is 2, the chroma type may be a 4:2:2 format. When the value of the chroma type is 3, the chroma type can be in 4:4:4 format. In addition, combined chroma coding can also be called joint coding of chroma components. The chroma components can include Cb components and / or Cr components. For example, the syntax element of the flag can be the above-mentioned Qp C _data_present_flag.

[0483] For example, when the value of the flag is 0, the flag may indicate that the quantization parameter data for combined chroma coding does not exist. When the value of the flag is 1, the flag may indicate that the quantization parameter data for combined chroma coding exists.

[0484] In addition, for example, the flag may be signaled via a high-level syntax. For example, the flag may be signaled via a sequence parameter set (SPS), a picture parameter set (PPS), a slice header, or an adaptation parameter set (APS).

[0485] In addition, for example, the image information may include prediction information and / or residual information of the current chroma block. For example, the image information may include prediction related information of the current block. The prediction related information may include prediction mode information. The prediction mode information may indicate whether inter prediction or intra prediction is applied to the current block. In addition, for example, the residual information may include syntax elements of the 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 and / or coeff_sign_flag.

[0486] The decoding device obtains quantization parameter data for combined chroma encoding based on the flag (S910). The decoding device can obtain quantization parameter data for combined chroma encoding based on the flag. For example, the decoding device can obtain quantization parameter data for combined chroma encoding based on a flag indicating the presence of quantization parameter data for combined chroma encoding. That is, for example, when the value of the flag is 1, the decoding device can obtain quantization parameter data for combined chroma encoding. In addition, for example, the quantization parameter data can be signaled through a high-level syntax. For example, the quantization parameter data can be signaled through a sequence parameter set (SPS), a picture parameter set (PPS), a slice header, or an adaptive parameter set (APS).

[0487] For example, the quantization parameter data may include a syntax element indicating a starting index of a chroma quantization parameter table for combined chroma coding and / or a syntax element indicating a difference between a starting index and a last index of the chroma quantization parameter table. The syntax element indicating the starting index may be the above-mentioned qPi_min_idx. In addition, the syntax element indicating the difference between the starting index and the last index may be qPi_delta_max_idx. In addition, the chroma quantization parameter table may also be referred to as a chroma quantization parameter mapping table or a user-defined quantization parameter mapping table. In addition, the starting index may also be referred to as a minimum index. In addition, for example, the syntax element indicating the starting index and / or the syntax element indicating the difference between the starting index and the last index may be signaled by a high-level syntax. For example, the syntax element indicating the starting index and / or the syntax element indicating the difference between the starting index and the last index may be signaled by a sequence parameter set (SPS), a picture parameter set (PPS), a slice header, or an adaptive parameter set (APS).

[0488] In addition, for example, the quantization parameter data may include a syntax element of a quantization parameter value of an index of a chrominance quantization parameter table. That is, for example, the quantization parameter data may include a syntax element of a quantization parameter value of each index of a chrominance quantization parameter table. The syntax element of the quantization parameter value of the index may be the above-mentioned Qp C _qPi_val[i]. In addition, for example, the syntax elements of the indexed quantization parameter value may be signaled via a high-level syntax. For example, the syntax elements of the indexed quantization parameter value may be signaled via a sequence parameter set (SPS), a picture parameter set (PPS), a slice header, or an adaptation parameter set (APS).

[0489] In addition, for example, the quantization parameter data may include a syntax element indicating an offset for deriving a quantization parameter for combined chrominance coding. The syntax element indicating the offset may be the QpOffset C In addition, for example, a syntax element indicating an offset may be signaled through a high-level syntax. For example, a syntax element indicating an offset may be signaled through a sequence parameter set (SPS), a picture parameter set (PPS), a slice header, or an adaptation parameter set (APS).

[0490] The decoding device derives a chroma quantization parameter table based on the quantization parameter data (S920). The decoding device may derive a chroma quantization parameter table for combined chroma encoding based on the quantization parameter data. The chroma quantization parameter table may be referred to as a chroma quantization parameter mapping table or a user-defined quantization parameter mapping table.

[0491] For example, as in the above content, the chrominance quantization parameter table can be derived based on a syntax element indicating a start index of the chrominance quantization parameter table, a syntax element indicating a difference between a start index and a last index of the chrominance quantization parameter table, and / or a syntax element of a quantization parameter value of an index of the chrominance quantization parameter table. That is, for example, a chrominance quantization parameter table for combined chrominance coding can be derived based on quantization parameter data.

[0492] The decoding device derives a quantization parameter for combined chrominance coding based on the chrominance quantization parameter table (S930). The quantization parameter for combined chrominance coding can represent the above QP` CbCr .

[0493] For example, the index of the combined chroma coding can be derived based on the quantization parameter of the luma component. The quantization parameter of the combined chroma coding can be derived based on the quantization parameter of the index of the chroma quantization parameter table. That is, for example, the quantization parameter for the combined chroma coding can be derived based on the quantization parameter of the same index as the quantization parameter of the luma component in the chroma quantization parameter table.

[0494] In addition, for example, the quantization parameter (e.g., QP`) used for combined chroma coding CbCr) can be obtained by combining the offset with the quantization parameter (e.g., QP CbCr The offset may be derived based on a syntax element representing an offset for deriving a quantization parameter for combined chroma coding.

[0495] The decoding apparatus derives a prediction sample of the current chroma block based on the prediction information (S940). The decoding apparatus may determine whether to apply inter prediction or intra prediction to the current chroma block based on the prediction information, and may perform prediction based on the prediction sample.

[0496] For example, the decoding device may derive a prediction mode applied to the current chroma block based on the prediction information, and may derive a prediction sample of the current chroma block based on the prediction mode. For example, if inter-frame prediction is applied to the current block, the decoding device may derive motion information of the current chroma block based on prediction-related information included in the image information, and may derive a prediction sample of the current chroma block based on the motion information. In addition, for example, if intra-frame prediction is applied to the current chroma block, the decoding device may derive a reference sample based on a neighboring sample of the current chroma block, and may derive a prediction sample of the current chroma block based on the reference sample and the intra-frame prediction mode of the current chroma block. The reference sample may include an upper reference sample and a left reference sample of the current chroma block. For example, when the size of the current chroma block is N×N, the x component of the upper left sample position of the current chroma block is 0, its y component is 0, the left reference sample may be p[-1][0] to p[-1][2N-1], and the upper reference sample may be p[0][-1] to p[2N-1][-1].

[0497] The decoding device derives the transform coefficient of the current chrominance block based on the residual information (S950). The decoding device may derive the transform coefficient of the current chrominance block based on the residual information. The residual information may include coefficient level information and sign flag information of the transform coefficient.

[0498] For example, the absolute level of the transform coefficient may be derived as a value indicated by the coefficient level information included in the residual information. The sign of the transform coefficient may be derived as a sign indicated by the sign flag information.

[0499] The decoding device derives residual samples by dequantizing the transform coefficients based on the quantization parameter (S960). The decoding device may derive residual samples based on the quantization parameter. For example, the decoding device may derive residual samples by dequantizing the transform coefficients based on the quantization parameter. Alternatively, for example, the decoding device may derive inversely transformed transform coefficients by inversely transforming the transform coefficients, and may derive residual samples by dequantizing the inversely transformed transform coefficients based on the quantization parameter.

[0500] The decoding apparatus generates a reconstructed picture based on the prediction sample and the residual sample (S970). For example, the decoding apparatus may generate a reconstructed picture based on the prediction sample and the residual sample.

[0501] Furthermore, for example, the decoding device may generate a reconstructed sample and a reconstructed picture by adding the prediction sample and the residual sample.

[0502] Thereafter, if necessary, in order to improve subjective / objective picture quality, a loop filtering process such as a deblocking filter, SAO and / or ALF process may be applied to the reconstructed samples as described above.

[0503] Fig.10 A decoding device for performing the image decoding method according to the present document is schematically illustrated. Fig. 9 The method disclosed in can be Fig.10 Specifically, for example, Fig.10 The entropy decoder of the decoding device can perform Fig. 9 S900 to S910 in. Fig.10 The residual processor of the decoding device can perform Fig. 9 S920 and S940 to S960. Fig.10 The predictor of the decoding device can perform Fig. 9 The S930 in the series. Fig.10 The adder of the decoding device can perform Fig. 9 The S970 in the.

[0504] According to the present disclosure, a chroma quantization parameter table for quantization parameter derivation can be determined based on a flag indicating whether quantization parameter data for quantization parameter derivation of a chroma component is transmitted. By performing encoding based on quantization parameters according to characteristics of an image, encoding efficiency can be improved.

[0505] In addition, according to the present disclosure, a chroma quantization parameter table of a chroma component may be determined based on signaled chroma quantization data. By performing encoding based on quantization parameters according to characteristics of an image, encoding efficiency may be improved.

[0506] In the above-mentioned embodiment, method is described based on the flow chart with a series of steps or square frames. The present disclosure is not limited to the order of the above steps or square frames. Some steps or square frames can be performed in an order different from other steps or square frames mentioned above or performed simultaneously. In addition, it will be appreciated by those skilled in the art that the steps shown in the flow chart are not exclusive, and other steps may also be included, or one or more steps in the flow chart may be deleted without affecting the scope of the present disclosure.

[0507] The embodiments described in this specification may be implemented on a processor, a microprocessor, a controller or a chip. For example, the functional units shown in each figure may be implemented on a computer, a processor, a microprocessor, a controller or a chip. In this case, information (e.g., information about instructions) or algorithms for implementation may be stored in a digital storage medium.

[0508] In addition, the decoding device and encoding device of the present disclosure can be included in the following devices: multimedia broadcast sending / receiving 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 providing devices, over-the-top (OTT) video devices, Internet streaming service providing devices, 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 devices; and the decoding device and encoding device of the present disclosure can be used to process video signals or data signals. For example, over-the-top (OTT) video devices can include game consoles, Blu-ray players, Internet access televisions, home theater systems, smart phones, tablet computers, digital video recorders (DVRs), etc.

[0509] 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, a BD, a universal serial bus (USB), a ROM, a PROM, an EPROM, an EEPROM, a RAM, a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device. In addition, the computer-readable recording medium includes a medium implemented in the form of a carrier wave (e.g., 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 via a wired / wireless communication network.

[0510] 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.

[0511] Fig.11 A structural diagram of a content streaming system to which the present disclosure is applied is illustrated.

[0512] The content streaming system to which the embodiments of the present disclosure are applied may mainly include an encoding server, a streaming server, a network server, a media storage device, a user device, and a multimedia input device.

[0513] The encoding server compresses the content input from the 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.

[0514] 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.

[0515] The streaming server sends multimedia data to the user device through the network server based on the user request, and the network server is used as a medium to notify the user of the service. When the user requests the required service from the network server, the network server transmits the request to the streaming server, and the streaming server sends 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 the command / response between the devices within the content streaming system.

[0516] The streaming server can receive content from a media storage device and / or an 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 time.

[0517] 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.

[0518] The claims described in this disclosure may be combined in various ways. For example, the technical features of the method claims of this disclosure may be combined to be implemented as a device, and the technical features of the device claims of this disclosure may be combined to be implemented as a method. In addition, the technical features of the method claims of this disclosure and the technical features of the device claims may be combined to be implemented as a device, and the technical features of the method claims of this disclosure and the technical features of the device claims may be combined to be implemented as a method.

Claims

1. An image decoding method performed by a decoding device, the image decoding method comprising the following steps: Based on the chroma type, obtaining image information including prediction information and residual information for a current chroma block and a flag indicating whether quantization parameter data for combined chroma encoding exists; Based on the flag, obtaining the quantization parameter data for the combined chroma encoding; Obtaining quantization parameter data for a chroma Cb component and quantization parameter data for a chroma Cr component; deriving a chroma quantization parameter mapping table for the combined chroma encoding based on the quantization parameter data for the combined chroma encoding; deriving a chroma quantization parameter mapping table for the chroma Cb component and a chroma quantization parameter mapping table for the chroma Cr component based on the quantization parameter data for the chroma Cb component and the quantization parameter data for the chroma Cr component; deriving a quantization parameter for the combined chroma encoding based on the chroma quantization parameter mapping table for the combined chroma encoding; deriving a quantization parameter for the chroma Cb component and a quantization parameter for the chroma Cr component based on the chroma quantization parameter mapping table for the chroma Cb component and the chroma quantization parameter mapping table for the chroma Cr component; Based on the prediction information, deriving a prediction sample of the current chrominance block; Based on the residual information, deriving a transform coefficient of the current chrominance block; Deriving residual samples by dequantizing the transform coefficient based on a quantization parameter related to the current chroma block among the quantization parameter for the combined chroma encoding, the quantization parameter for the chroma Cb component, and the quantization parameter for the chroma Cr component; as well as Generate a reconstructed picture based on the prediction samples and the residual samples, wherein the quantization parameter data for the combined chroma encoding comprises a syntax element for a starting quantization parameter of the chroma quantization parameter mapping table for the combined chroma encoding and a syntax element for the number of quantization parameters in the chroma quantization parameter mapping table for the combined chroma encoding, The quantization parameter for the combined chroma coding is derived based on the quantization parameter corresponding to the quantization parameter of the luminance component in the chroma quantization parameter mapping table for the combined chroma coding, wherein the flag is included in a sequence parameter set SPS, and The parsing order of the syntax element for the starting quantization parameter of the chroma quantization parameter mapping table for the combined chroma coding is before the parsing order of the syntax element for the number of quantization parameters in the chroma quantization parameter mapping table for the combined chroma coding.

2. An image encoding method performed by an encoding device, the image encoding method comprising the following steps: Derivation of prediction samples of the current chrominance block based on inter-frame prediction or intra-frame prediction; Derives residual samples of the current chroma block based on the prediction samples; generating quantization parameter data for combined chroma encoding of the residual samples based on the chroma type of the current chroma block; generating a flag indicating whether the quantization parameter data for the combined chroma encoding exists; generating quantization parameter data for a chroma Cb component and quantization parameter data for a chroma Cr component; as well as encoding image information, the image information comprising prediction information and residual information for the current chroma block, the quantization parameter data for the combined chroma coding, the quantization parameter data for the chroma Cb component, the quantization parameter data for the chroma Cr component, and the flag, wherein the quantization parameter data for the combined chroma encoding comprises a syntax element for a starting quantization parameter of a chroma quantization parameter mapping table for the combined chroma encoding and a syntax element for the number of quantization parameters in the chroma quantization parameter mapping table for the combined chroma encoding, The quantization parameter used for the combined chroma coding is derived based on the quantization parameter corresponding to the quantization parameter of the luminance component in the chroma quantization parameter mapping table used for the combined chroma coding, wherein the flag is included in a sequence parameter set SPS, and The parsing order of the syntax element for the starting quantization parameter of the chroma quantization parameter mapping table for the combined chroma coding is before the parsing order of the syntax element for the number of quantization parameters in the chroma quantization parameter mapping table for the combined chroma coding.

3. A method for transmitting image data, the method comprising the following steps: Obtaining a bitstream, wherein the bitstream is generated based on the following steps: deriving a prediction sample of a current chroma block based on inter-frame prediction or intra-frame prediction; deriving a residual sample of the current chroma block based on the prediction sample; generating quantization parameter data for combined chroma coding of the residual sample based on the chroma type of the current chroma block; generating a flag indicating whether the quantization parameter data for the combined chroma coding exists; generating quantization parameter data for a chroma Cb component and quantization parameter data for a chroma Cr component; encoding image information, the image information including prediction information and residual information for the current chroma block, the quantization parameter data for the combined chroma coding, the quantization parameter data for the chroma Cb component, the quantization parameter data for the chroma Cr component, and the flag; and generating the bitstream including the image information; and sending said data comprising said bit stream, wherein the quantization parameter data for the combined chroma encoding comprises a syntax element for a starting quantization parameter of a chroma quantization parameter mapping table for the combined chroma encoding and a syntax element for the number of quantization parameters in the chroma quantization parameter mapping table for the combined chroma encoding, The quantization parameter used for the combined chroma coding is derived based on the quantization parameter corresponding to the quantization parameter of the luminance component in the chroma quantization parameter mapping table used for the combined chroma coding, wherein the flag is included in a sequence parameter set SPS, and The parsing order of the syntax element for the starting quantization parameter of the chroma quantization parameter mapping table for the combined chroma coding is before the parsing order of the syntax element for the number of quantization parameters in the chroma quantization parameter mapping table for the combined chroma coding.