Image decoding method and device
Patent Information
- Application Number
- JP2024071806
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2019-06-28
- Filing Date
- 2024-04-25
- Publication Date
- 2025-03-05
- Estimated Expiration
- 2040-06-24
AI Technical Summary
【0010】 本文書によれば、クロマ成分に対する量子化パラメータ導出のために、同じクロマ量子化パラメータテーブルが使用されるか否かを表すフラグに基づいてクロマ成分に対するクロマ量子化パラメータテーブルが決定され得るし、画像の特性による量子化パラメータに基づいてコーディングを行ってコーディング効率を向上させることができる。
Smart Images

Figure 0007640783000140 
Figure 0007640783000141 
Figure 0007640783000142
Abstract
Description
[Technical field]
[0001] This document relates to image coding techniques, and more particularly to an image decoding method and apparatus for coding image information including chroma quantization parameter data for deriving a chroma quantization parameter table for a chroma component in an image coding system. [Background technology]
[0002] Recently, the demand for high-resolution, high-quality images such as HD (High Definition) images and UHD (Ultra High Definition) images is increasing in various fields. As the image data has higher resolution and quality, the amount of information or bits to be transmitted increases relatively compared to existing image data, so that when the image data is transmitted using a medium such as an existing wired or wireless broadband line or when the image data is stored using an existing storage medium, the transmission cost and storage cost increase.
[0003] Thereby, in order to effectively transmit, store and reproduce high resolution, high quality image information, highly efficient image compression techniques are required. Summary of the Invention [Problem to be solved by the invention]
[0004] The technical problem of this document is to provide a method and apparatus for increasing image coding efficiency.
[0005] Another technical problem of this document is to provide a method and apparatus for improving the efficiency of data coding for the derivation of quantization parameters for chroma components. [Means for solving the problem]
[0006] According to an embodiment of the present document, there is provided an image decoding method performed by a decoding device, the method comprising the steps of: obtaining image information; and generating a reconstructed picture based on the image information; obtaining a flag indicating whether one chroma quantization parameter table is applied to a chroma component; and obtaining chroma quantization parameter data based on the flag, wherein if the flag has a value of 0, the chroma quantization parameter data comprises first chroma quantization parameter data for a Cb component and second chroma quantization parameter data for a Cr component.
[0007] According to another embodiment of the present document, there is provided a decoding device for performing image decoding, comprising: an entropy decoding unit for acquiring image information; and a residual processing unit for generating a reconstructed picture based on the image information, wherein the entropy decoding unit acquires a flag indicating whether one chroma quantization parameter table is applied to a chroma component, and acquires chroma quantization parameter data based on the flag, and when the flag has a value of 0, the chroma quantization parameter data includes first chroma quantization parameter data for a Cb component and second chroma quantization parameter data for a Cr component.
[0008] According to yet another embodiment of the present document, there is provided a video encoding method performed by an encoding device, the method comprising the steps of: encoding image information; and generating a bitstream including the image information, the step of encoding the image information comprising the steps of: generating a flag indicating whether a chroma quantization parameter table is applied to a chroma component; generating chroma quantization parameter data for the chroma component based on the flag; and encoding the chroma quantization parameter data and the flag, wherein if a value of the flag is 0, the chroma quantization parameter data includes first chroma quantization parameter data for a Cb component and second chroma quantization parameter data for a Cr component.
[0009] According to yet another embodiment of the present document, there is provided a video encoding device, comprising: an entropy encoding unit for encoding image information and generating a bitstream including the image information, the entropy encoding unit generating a flag indicating whether one chroma quantization parameter table is applied to a chroma component, generating chroma quantization parameter data for the chroma component based on the flag, encoding the chroma quantization parameter data and the flag, and if the flag has a value of 0, the chroma quantization parameter data includes first chroma quantization parameter data for a Cb component and second chroma quantization parameter data for a Cr component. Effect of the Invention
[0010] According to this document, a chroma quantization parameter table for a chroma component can be determined based on a flag indicating whether the same chroma quantization parameter table is used to derive a quantization parameter for the chroma component, and coding can be performed based on a quantization parameter according to image characteristics to improve coding efficiency.
[0011] According to this document, a chroma quantization parameter table for a chroma component can be determined based on chroma quantization data signaled individually or commonly for the chroma component, and coding can be performed based on quantization parameters according to image characteristics to improve coding efficiency. [Brief description of the drawings]
[0012] [Figure 1] 1 illustrates generally an example of a video / image coding system in which embodiments of the present document may be applied; [Diagram 2] FIG. 1 is a diagram illustrating the configuration of a video / image encoding device to which the embodiments of this document can be applied. [Diagram 3] FIG. 1 is a diagram illustrating the configuration of a video / image decoding device to which an embodiment of the present document can be applied. [Figure 4] 1 illustrates an example of an intra-prediction based video / image encoding method. [Diagram 5] 1 illustrates an example of an intra-prediction based video / image encoding method. [Figure 6] 1 illustrates an exemplary intra prediction procedure. [Figure 7] 1 shows an example of an inter-prediction based video / image encoding method. [Figure 8] 1 illustrates an example of an inter-prediction based video / image decoding method. [Figure 9] 1 illustrates an exemplary inter-prediction procedure. [Figure 10] 1 illustrates a schematic diagram of an image encoding method using an encoding device according to the present document. [Figure 11]1 shows a schematic diagram of an encoding device for performing an image encoding method according to the present document; [Figure 12] 1 illustrates an image decoding method using a decoding device according to the present document. [Figure 13] 1 shows a schematic diagram of a decoding device for performing an image decoding method according to the present document; [Figure 14] 1 exemplarily illustrates a structural diagram of a content streaming system to which an embodiment of the present document is applied. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0013] This document may have various modifications and may have various embodiments, and a specific embodiment will be illustrated in the drawings and described in detail. However, this is not intended to limit this document to a specific embodiment. Commonly used terms in this specification are used merely to describe a specific embodiment, and are not intended to limit the technical ideas of this document. A singular expression includes a plural expression unless the context clearly indicates otherwise. In this specification, terms such as "include" or "have" are intended to specify the presence of features, numbers, steps, operations, components, parts, or combinations thereof described in the specification, and should be understood not to preclude the presence or addition of one or more other features, numbers, steps, operations, components, parts, or combinations thereof.
[0014] Meanwhile, each configuration in the drawings described in this document is illustrated independently for the convenience of explaining the different characteristic functions, and does not mean that each configuration is realized by separate hardware or software. For example, two or more of each configuration may be combined to form one configuration, and one configuration may be divided into multiple configurations. An embodiment in which each configuration is integrated and / or separated is also included in the scope of this document as long as it does not deviate from the essence of this document.
[0015] Hereinafter, preferred embodiments of the present invention will be described in more detail with reference to the accompanying drawings. Hereinafter, the same reference numerals will be used for the same components in the drawings, and duplicated descriptions of the same components may be omitted.
[0016] FIG. 1 illustrates a schematic diagram of an example of a video / image coding system in which embodiments of the present document may be applied.
[0017] As shown in 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 encoded video / image information or data to the receiving device in a file or streaming form via a digital storage medium or a network.
[0018] The source device may comprise a video source, an encoding device, and a sending unit. The receiving device may comprise a receiving unit, 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 comprise a display unit, which may be a separate device or an external component.
[0019] A video source may acquire video / images through a video / image capture, synthesis, or generation process, etc. A video source may include a video / image capture device and / or a video / image generation device. A video / image capture device may include, for example, one or more cameras, a video / image archive containing previously captured video / images, etc. A video / image generation device may include, for example, a computer, a tablet, a smartphone, etc., and may (electronically) generate video / images. For example, a virtual video / image may be generated through a computer, etc., in which case the video / image capture process may be replaced by a process in which the associated data is generated.
[0020] An encoding device can encode an input video / image. The encoding device can perform a series of steps such as prediction, transformation, quantization, etc. for compression and coding efficiency. The encoded data (encoded video / image information) can be output in the form of a bitstream.
[0021] The transmitting unit may transmit the encoded video / image information or data output in the form of a bitstream to a receiving unit of a receiving device via a digital storage medium or a network in the form of a file or streaming. The digital storage medium may include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, SSD, etc. The transmitting unit may include elements for generating a media file through a predetermined file format and may include elements for transmission via a broadcasting / communication network. The receiving unit may receive / extract the bitstream and transmit it to a decoding device.
[0022] The decoding device can decode the video / image by performing a series of steps such as inverse quantization, inverse transformation, prediction, etc., which correspond to the operations of the encoding device.
[0023] The renderer can render the decoded video / images, and the rendered video / images can be displayed via a display unit.
[0024] This document relates to video / image coding. For example, the methods / embodiments disclosed in this document can be applied to methods disclosed in the versatile video coding (VVC) standard, the essential video coding (EVC) standard, the AOMedia Video 1 (AV1) standard, the 2nd generation of audio video coding standard (AVS2), or the next generation video / image coding standard (e.g., H.267 or H.268, etc.).
[0025] In this document, various embodiments relating to video / image coding are presented, which, unless otherwise stated, may also be implemented in combination with each other.
[0026] In this document, a video may mean a collection of a series of images over time. A picture generally means a unit showing one image at a particular time, and a subpicture / slice / tile is a unit constituting a part of a picture in coding. A subpicture / slice / tile may include one or more coding tree units (CTUs). A picture may consist of one or more subpictures / slices / tiles. A picture may consist of one or more groups of tiles. A tile group may include one or more tiles. A brick may represent a rectangular region of CTU rows within a tile in a picture. A tile may be partitioned into multiple bricks, each of which consisting of one or more CTU rows within the tile. A tile that is not partitioned into multiple bricks may also be referred to as a brick.A brick scan is a specific sequential ordering of CTUs partitioning a picture in which the CTUs are ordered consecutively in CTU raster scan in a brick, bricks within a tile are ordered consecutively in a raster scan of the bricks of the tile, and tiles in a picture are ordered consecutively in a raster scan of the tiles of the picture. Additionally, a subpicture may represent a rectangular region of one or more slices within a picture. That is, a subpicture contains one or more slices that collectively cover a rectangular region of a picture. A tile is a rectangular region of CTUs within a particular tile column and a particular tile row in a picture.The tile column is a rectangular region of CTUs having a height equal to the height of the picture and a width specified by syntax elements in the picture parameter set. The tile row is a rectangular region of CTUs having a height specified by syntax elements in the picture parameter set and a width equal to the width of the picture. A tile scan is a specific sequential ordering of CTUs partitioning a picture in which the CTUs are ordered consecutively in CTU raster scan in a tile whereas tiles in a picture are ordered consecutively in a raster scan of the tiles of the picture.A slice includes an integer number of bricks of a picture that maybe exclusively contained in a single NAL unit. A slice may consist of either a number of complete tiles or only a consecutive sequence of complete bricks of one tile. In this document, the terms tile group and slice may be used interchangeably. For example, tile group / tile group header may be referred to as slice / slice header in this document.
[0027] A pixel or a pel may refer to the smallest unit that constitutes one picture (or image). A term corresponding to a pixel may be "sample." A sample may generally indicate a pixel or a pixel value, may indicate only a pixel / pixel value of a luma component, or may indicate only a pixel / pixel value of a chroma component.
[0028] A unit may indicate a basic unit of image processing. A unit may include at least one of a specific region of a picture and information related to the region. A unit may include one luma block and two chroma (e.g., cb, cr) blocks. A unit may be used in combination with terms such as block or area, depending on the case. In a general case, an M×N block may include a sample (or sample array) consisting of M columns and N rows, or a set (or array) of transform coefficients.
[0029] In this specification, "A or B" may mean "A only," "B only," or "both A and B." In other words, in this specification, "A or B" may be interpreted as "A and / or B." For example, in this specification, "A, B or C" may mean "A only," "B only," "C only," or "any combination of A, B and C."
[0030] As used herein, a slash ( / ) or a comma may mean "and / or." For example, "A / B" may mean "A and / or B." Thus, "A / B" may mean "A only," "B only," or "both A and B." For example, "A, B, C" may mean "A, B, or C."
[0031] In this specification, "at least one of A and B" may mean "A only," "B only," or "both A and B." In addition, in this specification, the expressions "at least one of A or B" and "at least one of A and / or B" may be interpreted similarly to "at least one of A and B."
[0032] In addition, in this specification, "at least one of A, B and C" may mean "A only," "B only," "C only," or "any combination of A, B and C." Furthermore, "at least one of A, B or C" and "at least one of A, B and / or C" may mean "at least one of A, B and C."
[0033] In addition, parentheses used in this specification may mean "for example." Specifically, when "prediction (intra prediction)" is displayed, "intra prediction" may be proposed as an example of "prediction." In other words, "prediction" in this specification is not limited to "intra prediction," and "intra prediction" may be proposed as an example of "prediction." In addition, even when "prediction (i.e., intra prediction)" is displayed, "intra prediction" may be proposed as an example of "prediction."
[0034] Technical features described separately in one drawing in this specification may be realized separately or simultaneously.
[0035] The following drawings are created to explain a specific example of the present specification. The names of specific devices and names of specific signals / messages / fields described in the drawings are presented for illustrative purposes only, and the technical features of the present specification are not limited to the specific names used in the following drawings.
[0036] 2 is a diagram for explaining the configuration of a video / image encoding device to which the embodiments of this document can be applied. Hereinafter, the video encoding device may include an image encoding device.
[0037] As shown in FIG. 2, the encoding device 200 may be configured to include an image partitioner 210, a predictor 220, a residual processor 230, an entropy encoder 240, an adder 250, a filter 260, and a memory 270. The predictor 220 may include an inter predictor 221 and an intra 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 further include a subtractor 231. The adder 250 may be referred to as a reconstructor or a reconstructed block generator. The image division unit 210, the prediction unit 220, the residual processing unit 230, the entropy encoding unit 240, the addition unit 250, and the filtering unit 260 may be configured by one or more hardware components (e.g., an encoder chip set or a processor) according to an embodiment. In addition, the memory 270 may include a decoded picture buffer (DPB) and may be configured by a digital storage medium. The hardware components may further include the memory 270 as an internal / external component.
[0038] The image division unit 210 may divide an input image (or picture, frame) input to the encoding device 200 into one or more processing units. As an example, the processing units may be called coding units (CUs). In this case, the coding units may be recursively divided from a coding tree unit (CTU) or a largest coding unit (LCU) according to a quad-tree binary-tree ternary-tree (QTBTTT) structure. For example, one coding unit may be divided into a plurality of coding units of a deeper depth based on a quad-tree structure, a binary tree structure, and / or a ternary structure. In this case, for example, a quad-tree structure may be applied first, and a binary tree structure and / or a ternary structure may be applied later. Alternatively, a binary tree structure may be applied first. The coding procedure according to this document may be performed based on a final coding unit that is not further divided. In this case, the largest coding unit may be used as the final coding unit immediately based on coding efficiency according to image characteristics, or the coding unit may be recursively divided into coding units of lower depths as necessary, and a coding unit of an optimal size may be used as the final coding unit. Here, the coding procedure may include procedures such as prediction, transformation, and restoration, which will be described later. As another example, the processing unit may further include a prediction unit (PU) or a transform unit (TU). In this case, the prediction unit and the transform unit may each be divided or partitioned from the final coding unit described above.The prediction unit is a unit of sample prediction, and the transform unit is a unit for deriving transform coefficients and / or a unit for deriving a residual signal from the transform coefficients.
[0039] The unit may be used interchangeably with terms such as block or area. In the general case, an M×N block may refer to a set of samples or transform coefficients consisting of M columns and N rows. A sample may generally refer to a pixel or pixel value, may refer to only a pixel / pixel value of a luma component, or may refer to only a pixel / pixel value of a chroma component. A sample may be used as a term corresponding to a pixel or pel of one picture (or image).
[0040] The encoding device 200 may generate a residual signal (residual block, residual sample array) by subtracting a prediction signal (predicted block, prediction sample array) output from the inter prediction unit 221 or the intra prediction unit 222 from an input image signal (original block, original sample array), and the generated residual signal is transmitted to the conversion unit 232. In this case, as illustrated, a unit that subtracts a prediction signal (prediction block, prediction sample array) from an input image signal (original block, original sample array) in the encoder 200 may be called a subtraction unit 231. The prediction unit may perform prediction on a block to be processed (hereinafter, referred to as a current block) and generate a predicted block including a prediction sample for the current block. The prediction unit may determine whether intra prediction or inter prediction is applied in units of the current block or CU. The prediction unit may generate various information related to prediction, such as prediction mode information, and transmit the information to the entropy encoding unit 240, as will be described later in the description of each prediction mode. The prediction information can be encoded by the entropy encoding unit 240 and output in the form of a bitstream.
[0041] The intra prediction unit 222 may predict the current block by referring to samples in the current picture. The referenced samples may be located in the neighborhood of the current block or may be located away from the current block depending on the prediction mode. In the intra prediction, the prediction mode may include a plurality of non-directional modes and a plurality of directional modes. The non-directional mode may include, for example, a DC mode and a planar mode. The directional mode may include, for example, 33 directional prediction modes or 65 directional prediction modes depending on the fineness of the prediction direction. However, this is merely an example, and more or less directional prediction modes may be used depending on the setting. The intra prediction unit 222 may also determine the prediction mode to be applied to the current block using the prediction mode applied to the neighboring block.
[0042] The inter prediction unit 221 may derive a predicted block for a current block based on a reference block (reference sample array) identified by a motion vector on a reference picture. In this case, in order to reduce the amount of motion information transmitted in the inter prediction mode, the motion information may be predicted in units of blocks, sub-blocks, or samples based on the correlation of motion information between a neighboring block and the current block. The motion information may include a motion vector and a reference picture index. The motion information may further include inter prediction direction (L0 prediction, L1 prediction, Bi prediction, etc.) information. In the case of inter prediction, the neighboring block may include a spatial neighboring block present in the current picture and a temporal neighboring block 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 or different. The temporal neighboring block may be called a collocated reference block, a collocated CU (colCU), etc., and the reference picture including the temporal neighboring block may be called a collocated picture (colPic). For example, the inter prediction unit 221 may generate information indicating which candidate is used to derive a motion vector and / or a reference picture index of the current block by forming a motion information candidate list based on neighboring blocks. Inter prediction may be performed based on various prediction modes, and for example, in the case of a skip mode and a merge mode, the inter prediction unit 221 may use motion information of a neighboring block as motion information of the current block. In the case of the skip mode, unlike the merge mode, a residual signal may not be transmitted.In the case of a motion vector prediction (MVP) mode, the motion vector of a neighboring block can be used as a motion vector predictor, and the motion vector of the current block can be indicated by signaling the motion vector difference.
[0043] The prediction unit 220 may generate a prediction signal based on various prediction methods described later. For example, the prediction unit may apply intra prediction or inter prediction for prediction of one block, or may simultaneously apply intra prediction and inter prediction. This may be called combined inter and intra prediction (CIIP). The prediction unit may also be based on an intra block copy (IBC) prediction mode or a palette mode for prediction of a block. The IBC prediction mode or palette mode may be used for content image / video coding such as games, for example, screen content coding (SCC). IBC basically performs prediction within a current picture, but may be performed similarly to inter prediction in deriving a reference block within the current picture. That is, IBC may utilize at least one of the inter prediction techniques described in this document. The palette mode may be seen as an example of intra coding or intra prediction. When the palette mode is applied, a sample value within a picture may be signaled based on information regarding a palette table and a palette index.
[0044] The prediction signal generated through the prediction unit (including the inter prediction unit 221 and / or the intra prediction unit 222) may be used to generate a restored signal or may be used to generate a residual signal. The transform unit 232 may generate transform coefficients 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-Loeve transform (KLT), a graph-based transform (GBT), or a conditionally non-linear transform (CNT). Here, the GBT refers to a transform obtained from a graph when the relationship information between pixels is expressed as a graph. The CNT refers to a transform obtained based on a prediction signal generated using all previously reconstructed pixels. In addition, the transform process may be applied to pixel blocks having the same square size, or may be applied to non-square, variable-sized blocks.
[0045] The quantizer 233 quantizes the transform coefficients and transmits the quantized transform coefficients to the entropy encoder 240, which may encode the quantized signal (information on the quantized transform coefficients) and output the quantized signal as a bitstream. The information on the quantized transform coefficients may be referred to as residual information. The quantizer 233 may rearrange the quantized transform coefficients in a block form into a one-dimensional vector form based on a coefficient scan order, and may generate information on the quantized transform coefficients based on the quantized transform coefficients in the one-dimensional vector form. The entropy encoder 240 may perform various encoding methods, such as exponential Golomb, context-adaptive variable length coding (CAVLC), and context-adaptive binary arithmetic coding (CABAC). The entropy encoder 240 may encode information required for video / image restoration (e.g., values of syntax elements, etc.) together with or separately from the quantized transform coefficients. The encoded information (e.g., encoded video / image information) may be transmitted or stored in the form of a bitstream in units of network abstraction layer (NAL) units. The video / image information may further include information on various parameter sets, such as an adaptation parameter set (APS), a picture parameter set (PPS), a sequence parameter set (SPS), or a video parameter set (VPS). The video / image information may further include general constraint information. Information and / or syntax elements transmitted / signaled from an encoding device to a decoding device in this document may be included in the video / image information. The video / image information may be encoded through the above-mentioned encoding procedure and included in the bitstream.The bitstream may be transmitted via a network or may be stored in a digital storage medium, where the network may include a broadcasting network and / or a communication network, and the digital storage medium may include various storage media such as a USB, SD, CD, DVD, Blu-ray, HDD, SSD, etc. A transmitter (not shown) for transmitting the signal output from the entropy encoding unit 240 and / or a storage unit (not shown) for storing the signal may be configured as an internal / external element of the encoding device 200, or the transmitter may be included in the entropy encoding unit 240.
[0046] The quantized transform coefficients output from the quantizer 233 may be used to generate a prediction signal. For example, a residual signal (residual block or residual sample) may be restored by applying inverse quantization and inverse transform to the quantized transform coefficients via the inverse quantizer 234 and the inverse transformer 235. The adder 250 may generate a reconstructed signal (reconstructed picture, reconstructed block, reconstructed sample array) by adding the reconstructed residual signal to the prediction signal output from the inter prediction unit 221 or the intra prediction unit 222. When there is no residual for the current block, such as when a skip mode is applied, a predicted block may be used as a reconstructed block. The adder 250 may be referred to as a reconstruction unit or a reconstructed block generator. The generated reconstructed signal may be used for intra prediction of the next current block in the current picture, and may also be used for inter prediction of the next picture after filtering, as described below.
[0047] Meanwhile, luma mapping with chroma scaling (LMCS) may be applied during picture encoding and / or reconstruction.
[0048] The filtering unit 260 may apply filtering to the reconstructed signal to improve subjective / objective image quality. For example, the filtering unit 260 may apply various filtering methods to the reconstructed picture to generate a modified reconstructed picture, and may store the modified reconstructed picture in the memory 270, specifically, in the DPB of the memory 270. The various filtering methods may include, for example, deblocking filtering, sample adaptive offset, an adaptive loop filter, a bilateral filter, etc. The filtering unit 260 may generate various information related to filtering and transmit it to the entropy encoding unit 240, as will be described later in relation to each filtering method. The information related to filtering may be encoded by the entropy encoding unit 240 and output in the form of a bitstream.
[0049] The modified reconstructed picture transmitted to the memory 270 may be used as a reference picture in the inter prediction unit 221. When inter prediction is applied through this, the encoding apparatus may avoid prediction mismatch between the encoding apparatus 200 and the decoding apparatus 300, and may also improve encoding efficiency.
[0050] The memory 270DPB may store the modified reconstructed picture to be used as a reference picture in the inter prediction unit 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 block in an already reconstructed picture. The stored motion information may be transmitted to the inter prediction unit 221 to be 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 reconstructed blocks in the current picture and transmit them to the intra prediction unit 222.
[0051] FIG. 3 is a diagram illustrating a schematic configuration of a video / image decoding device to which the embodiments of this document can be applied.
[0052] As shown in FIG. 3, the decoding device 300 may be configured to 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 predictor 331 and an intra predictor 332. The residual processor 320 may include a dequantizer 321 and an inverse transformer 322. The entropy decoder 310, the residual processor 320, the predictor 330, the adder 340, and the filter 350 may be configured as one hardware component (e.g., a decoder chipset or processor) according to an embodiment. Also, the memory 360 may include a decoded picture buffer (DPB) and may be configured as a digital storage medium. The hardware components may further include a memory 360 as an internal / external component.
[0053] When a bitstream including video / image information is input, the decoding apparatus 300 can restore an image corresponding to a process in which the video / image information is processed by the encoding apparatus of FIG. 2. For example, the decoding apparatus 300 can derive a unit / block based on block division related information obtained from the bitstream. The decoding apparatus 300 can perform decoding using a processing unit applied in the encoding apparatus. Thus, the processing unit of the decoding is, for example, a coding unit, and the coding unit can be divided from a coding tree unit or a maximum coding unit according to a quad tree structure, a binary tree structure, and / or a ternary tree structure. One or more transform units can be derived from the coding unit. Then, the restored image signal decoded and output by the decoding apparatus 300 can be reproduced by a reproduction device.
[0054] The decoding device 300 may receive a signal output from the encoding device of FIG. 2 in the form of a bitstream, and the received signal may be decoded via the entropy decoding unit 310. For example, the entropy decoding unit 310 may derive information (e.g., video / image information) required for image restoration (or picture restoration) by parsing the bitstream. The video / image information may further include information on various parameter sets, such as an adaptation 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 further include general constraint information. The decoding device may further decode pictures based on information on the parameter set and / or the general constraint information. Signaling / received information and / or syntax elements described later in this document may be decoded via the decoding procedure and obtained from the bitstream. For example, the entropy decoding unit 310 may decode information in a bitstream based on a coding method such as exponential Golomb coding, CAVLC, or CABAC, and output values of syntax elements required for image restoration, quantized values of transform coefficients related to residuals, etc. More specifically, the CABAC entropy decoding method may receive bins corresponding to each syntax element in the bitstream, determine a context model using information on the syntax element to be decoded and decode information on the neighboring and blocks to be decoded, or information on symbols / bins decoded in a previous step, predict the occurrence probability of bins according to the determined context model, and perform arithmetic decoding of the bins to generate symbols corresponding to the values of each syntax element. In this case, the CABAC entropy decoding method may update the context model using information on the decoded symbols / bins for the context model of the next symbol / bin after determining the context model.Among the information decoded by the entropy decoding unit 310, information related to prediction is provided to a prediction unit (inter prediction unit 332 and intra prediction unit 331), and residual values entropy decoded by the entropy decoding unit 310, i.e., quantized transform coefficients and related parameter information, may be input to the residual processing unit 320. The residual processing unit 320 may derive a residual signal (residual block, residual sample, residual sample array). Also, among the information decoded by the entropy decoding unit 310, information related to filtering may be provided to the filtering unit 350. Meanwhile, a receiving unit (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 receiving unit may be a component of the entropy decoding unit 310. Meanwhile, the decoding device according to this document may be called a video / image / picture decoding device, and the decoding device may be divided 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 decoding unit 310, and the sample decoder may include at least one of the inverse quantization unit 321, the inverse transform unit 322, the addition unit 340, the filtering unit 350, the memory 360, the inter prediction unit 332, and the intra prediction unit 331.
[0055] The inverse quantization unit 321 may inverse quantize the quantized transform coefficients to output transform coefficients. The inverse quantization unit 321 may rearrange the quantized transform coefficients in a two-dimensional block form. In this case, the rearrangement may be performed based on a coefficient scan order performed in the encoding device. The inverse quantization unit 321 may perform inverse quantization on the quantized transform coefficients using a quantization parameter (e.g., quantization step size information) to obtain transform coefficients.
[0056] The inverse transform unit 322 inversely transforms the transform coefficients to obtain a residual signal (residual block, residual sample array).
[0057] The prediction unit may perform prediction on a current block and generate a predicted block including prediction samples for the current block. The prediction unit may determine whether intra prediction or inter prediction is applied to the current block based on information on the prediction output from the entropy decoding unit 310, and may determine a specific intra / inter prediction mode.
[0058] The prediction unit 320 may generate a prediction signal based on various prediction methods described later. For example, the prediction unit may apply intra prediction or inter prediction for prediction of one block, and may simultaneously apply intra prediction and inter prediction. This may be called combined inter and intra prediction (CIIP). In addition, the prediction unit may be based on an intra block copy (IBC) prediction mode or a palette mode for prediction of a block. The IBC prediction mode or palette mode may be used for content image / video coding such as games, for example, screen content coding (SCC). IBC basically performs prediction within a current picture, but may be performed similarly to inter prediction in deriving a reference block within the current picture. That is, IBC may use at least one of the inter prediction techniques described in this document. The palette mode may be seen as an example of intra coding or intra prediction. When the palette mode is applied, information regarding a palette table and a palette index may be included in the video / image information and signaled.
[0059] The intra prediction unit 331 may predict a current block by referring to samples in a current picture. The referenced samples may be located in the neighborhood of the current block or may be located away from the current block depending on a prediction mode. In intra prediction, prediction modes may include a plurality of non-directional modes and a plurality of directional modes. The intra prediction unit 331 may also determine a prediction mode to be applied to the current block using a prediction mode applied to a neighboring block.
[0060] The inter prediction unit 332 may derive a predicted block for the current block based on a reference block (reference sample array) identified by a motion vector on a reference picture. In this case, in order to reduce the amount of motion information transmitted from an inter prediction mode, the motion information may be predicted in units of blocks, sub-blocks, or samples based on correlation of motion information between neighboring 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 prediction direction (L0 prediction, L1 prediction, Bi prediction, etc.) information. In the case of inter prediction, the neighboring blocks may include spatial neighboring blocks present in the current picture and temporal neighboring blocks present in the reference picture. For example, the inter prediction unit 332 may configure a motion information candidate list based on the neighboring blocks and derive a motion vector and / or a reference picture index for the current block based on the received candidate selection information. Inter prediction may be performed based on various prediction modes, and the information regarding the prediction may include information indicating a mode of inter prediction for the current block.
[0061] The adder 340 may generate a reconstructed signal (reconstructed picture, reconstructed block, reconstructed sample array) by adding the acquired residual signal to a prediction signal (predicted block, predicted sample array) output from a prediction unit (including the inter prediction unit 332 and / or the intra prediction unit 331). When there is no residual for a current block, such as when a skip mode is applied, the predicted block may be used as a reconstructed block.
[0062] The adder 340 may be referred to as a reconstruction unit or a reconstruction block generator. The generated reconstruction signal may be used for intra prediction of a next block to be processed in a current picture, and may be output after filtering as described below, or may be used for inter prediction of a next picture.
[0063] Meanwhile, LMCS (luma mapping with chroma scaling) can be applied during the picture decoding process.
[0064] The filtering unit 350 may apply filtering to the reconstructed signal to improve subjective / objective image quality. For example, the filtering unit 350 may apply various filtering methods to the reconstructed picture to generate a modified reconstructed picture, and may transmit the modified reconstructed picture to the memory 360, specifically, to the DPB of the memory 360. The various filtering methods may include, for example, deblocking filtering, sample adaptive offset, an adaptive loop filter, a bilateral filter, etc.
[0065] The (modified) reconstructed picture stored in the DPB of the memory 360 may be used as a reference picture in the inter prediction unit 332. The memory 360 may store motion information of a block from which motion information in the current picture is derived (or decoded) and / or motion information of a block in an already reconstructed picture. The stored motion information may be transmitted to the inter prediction unit 260 to be used as motion information of a spatial neighboring block or motion information of a temporal neighboring block. The memory 360 may store reconstructed samples of reconstructed blocks in the current picture and transmit them to the intra prediction unit 331.
[0066] In this specification, the embodiments described for the filtering unit 260, inter prediction unit 221, and intra prediction unit 222 of the encoding device 200 can also be applied identically or correspondingly to the filtering unit 350, inter prediction unit 332, and intra prediction unit 331 of the decoding device 300, respectively.
[0067] In this document, at least one of quantization / dequantization and / or transform / inverse transform may be omitted. When the quantization / dequantization is omitted, the quantized transform coefficients may be referred to as transform coefficients. When the transform / inverse transform is omitted, the transform coefficients may be referred to as coefficients or residual coefficients, or may still be referred to as transform coefficients for uniformity of expression.
[0068] In this document, the quantized transform coefficients and the transform coefficients may be referred to as transform coefficients and scaled transform coefficients, respectively. In this case, the residual information may include information on the transform coefficient(s), and the information on the transform coefficient(s) may be signaled via a residual coding syntax. A transform coefficient may be derived based on the residual information (or information on the transform coefficient(s)), and a scaled transform coefficient may be derived through an inverse transform (scaling) on the transform coefficient. A residual sample may be derived based on an inverse transform (transform) on the scaled transform coefficient. This may be similarly applied / expressed in other parts of this document.
[0069] As described above, in performing video coding, prediction is performed to improve compression efficiency. Through this, a predicted block including predicted samples for a current block, which is a block to be coded, can be generated. Here, the predicted block includes predicted samples in a spatial domain (or a pixel domain). The predicted block is derived in the same way by an encoding device and a decoding device, and the encoding device can improve image coding efficiency by signaling information (residual information) about the residual between the original block and the predicted block, which is not the original sample value of the original block itself, to the decoding device. The decoding device can derive a residual block including residual samples based on the residual information, combine the residual block and the predicted block to generate a reconstructed block including reconstructed samples, and generate a reconstructed picture including the reconstructed block.
[0070] The residual information may be generated through a transform and quantization procedure. For example, the encoding apparatus may derive a residual block between the original block and the predicted block, perform a transform procedure on the residual samples (residual sample array) included in the residual block to derive transform coefficients, perform a quantization procedure on the transform coefficients to derive quantized transform coefficients, and signal related residual information (through a bitstream) to a decoding apparatus. Here, the residual information may include information such as value information, position information, transform technique, transform kernel, and quantization parameter of the quantized transform coefficients. The decoding apparatus may derive a residual sample (or a residual block) by performing an inverse quantization / inverse transform procedure based on the residual information. The decoding apparatus may generate a reconstructed picture based on the predicted block and the residual block. The encoding apparatus may further derive a residual block by inverse quantizing / inverse transforming the quantized transform coefficients for reference for inter-prediction of a future picture, and generate a reconstructed picture based on the residual block.
[0071] Intra prediction may represent a prediction that generates a prediction sample for a current block based on a reference sample in a picture to which the current block belongs (hereinafter, the current picture). When intra prediction is applied to the current block, neighboring reference samples used for intra prediction of the current block may be derived. The neighboring reference samples of the current block may include a total of 2×nH samples adjacent to the left boundary and bottom-left of the current block having a size of nW×nH, a total of 2×nW samples adjacent to the top boundary and top-right of the current block, and one sample adjacent to the top-left of the current block. Alternatively, the neighboring reference samples of the current block may include upper neighboring samples of multiple columns and left neighboring samples of multiple rows. 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 bottom boundary of the current block, and one sample adjacent to the bottom-right of the current block.
[0072] However, some of the neighboring reference samples of the current block may not yet be decoded or may not be available. In this case, the decoder may substitute the unavailable samples for the available samples to construct the neighboring reference samples used for prediction. Alternatively, the decoder may construct the neighboring reference samples used for prediction through interpolation of the available samples.
[0073] When neighboring reference samples are derived, (i) a predicted sample can be derived based on an average or an interpolation of neighboring reference samples of the current block, or (ii) the predicted sample can be derived based on a reference sample that exists in a specific (prediction) direction with respect to the predicted sample among the neighboring reference samples of the current block. (i) can be called a non-directional mode or a non-angular mode, and (ii) can be called a directional mode or an angular mode.
[0074] In addition, the prediction sample may be generated by interpolating a first neighboring sample located in a prediction direction of an intra prediction mode of the current block and a second neighboring sample located in an opposite direction to the prediction direction based on the prediction sample of the current block among the neighboring reference samples. The above case may be called a linear interpolation intra prediction (LIP). Also, a chroma prediction sample may be generated based on a luma sample using a linear model (LM). In this case, it may be called an LM mode or a CCLM (chroma component LM) mode.
[0075] Also, a provisional prediction sample of the current block may be derived based on the filtered neighboring reference samples, and a prediction sample of the current block may be derived by weighting the provisional prediction sample and at least one reference sample derived according to the intra prediction mode among the existing neighboring reference samples, i.e., non-filtered neighboring reference samples. The above case may be called Position Dependent Intra Prediction (PDPC).
[0076] Also, the reference sample line with the highest prediction accuracy is selected from among multiple reference sample lines surrounding the current block, a prediction sample is derived using a reference sample located in a prediction direction on the selected line, and the used reference sample line is signaled to a decoding device, thereby performing intra prediction encoding. The above-mentioned case can be called multi-reference line intra prediction or MRL-based intra prediction.
[0077] In addition, the current block may be divided into vertical or horizontal sub-partitions and intra prediction may be performed based on the same intra prediction mode, but neighboring reference samples may be derived and used in units of the sub-partitions. That is, in this case, the intra prediction mode for the current block is similarly applied to the sub-partitions, but neighboring reference samples may be derived and used in units of the sub-partitions, thereby improving intra prediction performance in some cases. Such a prediction method may be called ISP (intra sub-partitions) based intra prediction.
[0078] The above-mentioned intra prediction methods, etc., may be called intra prediction types, distinguished from intra prediction modes. The intra prediction types may be called various terms, such as intra prediction techniques or additional intra prediction modes. For example, the intra prediction types (or additional intra prediction modes, etc.) may include at least one of the above-mentioned LIP, PDPC, MRL, and ISP. A general intra prediction method other than the specific intra prediction types, such as the LIP, PDPC, MRL, and ISP, may be called a normal intra prediction type. The normal intra prediction type may be generally applied when the above-mentioned specific intra prediction types are not applied, and prediction may be performed based on the above-mentioned intra prediction modes. Meanwhile, post-processing filtering may be performed on the derived prediction samples, if necessary.
[0079] Specifically, the intra prediction procedure may include an intra prediction mode / type determination step, a neighboring reference sample derivation step, and a prediction sample derivation step based on the intra prediction mode / type. In addition, a post-processing filtering step may be performed on the derived prediction sample, if necessary.
[0080] FIG. 4 illustrates an example of an intra-prediction based video / image encoding method.
[0081] As shown in FIG. 4, the encoding apparatus performs intra prediction on a current block (S400). The encoding apparatus may derive an intra prediction mode / type for the current block, derive neighboring reference samples for the current block, and generate a prediction sample in the current block based on the intra prediction mode / type and the neighboring reference samples. Here, the intra prediction mode / type determination, neighboring reference sample derivation, and prediction sample generation procedures may be performed simultaneously, or any one procedure may be performed prior to the other procedures. The encoding apparatus may determine a mode / type to be applied to the current block from among a plurality of intra prediction modes / types. The encoding apparatus may compare RD costs for the intra prediction modes / types to determine an optimal intra prediction mode / type for the current block.
[0082] Meanwhile, the encoding apparatus may also perform a prediction sample filtering procedure. The prediction sample filtering may be called post-filtering. Some or all of the prediction samples may be filtered by the prediction sample filtering procedure. In some cases, the prediction sample filtering procedure may be omitted.
[0083] The encoding apparatus generates residual samples for the current block based on the (filtered) predicted samples (S410). The encoding apparatus may derive the residual samples by comparing the predicted samples with the original samples of the current block based on a phase.
[0084] The encoding device may encode image information including information on the intra prediction (prediction information) and residual information on the residual sample (S420). The prediction information may include the intra prediction mode information and the intra prediction type information. The encoding device may output the encoded image information in the form of a bitstream. The output bitstream may be transmitted to a decoding device via a storage medium or a network.
[0085] The residual information may include a residual coding syntax, which will be described later. An encoding apparatus may transform / quantize the residual samples to derive quantized transform coefficients. The residual information may include information regarding the quantized transform coefficients.
[0086] Meanwhile, as described above, the encoding apparatus may generate a reconstructed picture (including reconstructed samples and reconstructed blocks). To this end, the encoding apparatus may again inverse quantize / inverse transform the quantized transform coefficients to derive (modified) residual samples. The reason for again performing inverse quantization / inverse transform after transforming / quantizing the residual samples is to derive the same residual samples as the residual samples derived from the decoding apparatus, as described above. The encoding apparatus may generate a reconstructed block including reconstructed samples for the current block based on the predicted samples and the (modified) residual samples. A reconstructed picture for the current picture may be generated based on the reconstructed block. As described above, an in-loop filtering procedure, etc. may further be applied to the reconstructed picture.
[0087] FIG. 5 illustrates an example of an intra-prediction based video / image encoding method.
[0088] The decoding device may perform operations corresponding to those performed by the encoding device.
[0089] Prediction information and residual information may be obtained from a bitstream. A residual sample for a current block may be derived based on the residual information. Specifically, a transform coefficient may be derived by performing inverse quantization based on a quantized transform coefficient derived based on the residual information, and a residual sample for the current block may be derived by performing inverse transform on the transform coefficient.
[0090] Specifically, the decoding apparatus may derive an intra prediction mode / type for a current block based on received prediction information (intra prediction mode / type information) (S500). The decoding apparatus may derive neighboring reference samples for the current block (S510). The decoding apparatus generates prediction samples in the current block based on the intra prediction mode / type and the neighboring reference samples (S520). In this case, the decoding apparatus may perform a prediction sample filtering procedure. The prediction sample filtering may be referred to as post filtering. Some or all of the prediction samples may be filtered by the prediction sample filtering procedure. In some cases, the prediction sample filtering procedure may be omitted.
[0091] The decoding apparatus generates a residual sample for the current block based on the received residual information (S530). The decoding apparatus generates a reconstructed sample for the current block based on the predicted sample and the residual sample, and may derive a reconstructed block including the reconstructed sample (S540). A reconstructed picture for the current picture may be generated based on the reconstructed block. As described above, an in-loop filtering procedure or the like may be further applied to the reconstructed picture.
[0092] The intra prediction mode information may include, for example, flag information (ex.intra_luma_mpm_flag) indicating whether a most probable mode (MPM) or a remaining mode is applied to the current block. If the MPM is applied to the current block, the prediction mode information may further include index information (ex.intra_luma_mpm_idx) indicating one of the intra prediction mode candidates (MPM candidates). The intra prediction mode candidates (MPM candidates) may be configured as an MPM candidate list or an MPM list. Also, if the MPM is not applied to the current block, the intra prediction mode information may further include remaining mode information (ex.intra_luma_mpm_remainder) indicating one of the remaining intra prediction modes excluding the intra prediction mode candidates (MPM candidates). A decoding apparatus may determine an intra prediction mode of the current block based on the intra prediction mode information.
[0093] Also, the intra prediction type information may be realized in various forms. As an example, the intra prediction type information includes intra prediction type index information indicating one of the intra prediction types. As another example, the intra prediction type information includes at least one of reference sample line information (ex. intra_luma_ref_idx) indicating whether the MRL is applied to the current block and, if so, which reference sample line is used, ISP flag information (ex. intra_subpartitions_mode_flag) indicating whether the ISP is applied to the block, ISP type information (ex. intra_subpartitions_split_flag) indicating a subpartition split type if the ISP is applied, flag information indicating whether PDCP is applied, or flag information indicating whether LIP is applied. Also, the intra prediction type information includes an MIP flag indicating whether MIP (matrix-based intra prediction) is applied to the current block.
[0094] The intra prediction mode information and / or the intra prediction type information may be encoded / decoded by a coding method described in this document. For example, the intra prediction mode information and / or the intra prediction type information may be encoded / decoded via entropy coding (e.g., CABAC, CAVLC).
[0095] FIG. 6 exemplarily illustrates an intra prediction procedure.
[0096] 6, as described above, the intra prediction procedure may include an intra prediction mode / type determination step, a neighboring reference sample derivation step, and an intra prediction execution (prediction sample generation) step. The intra prediction procedure may be performed in an encoding device and a decoding device as described above. In this document, a coding device may include an encoding device and / or a decoding device.
[0097] As shown in FIG. 6, the coding device determines an intra-prediction mode / type (S600).
[0098] The encoding apparatus may determine an intra prediction mode / type to be applied to the current block from among the various intra prediction modes / types described above, and may generate prediction-related information. The prediction-related information may include intra prediction mode information indicating an intra prediction mode to be applied to the current block and / or intra prediction type information indicating an intra prediction type to be applied to the current block. The decoding apparatus may determine an intra prediction mode / type to be applied to the current block based on the prediction-related information.
[0099] The intra prediction mode information may include, for example, flag information (ex.intra_luma_mpm_flag) indicating whether a most probable mode (MPM) or a remaining mode is applied to the current block. If the MPM is applied to the current block, the prediction mode information may further include index information (ex.intra_luma_mpm_idx) indicating one of the intra prediction mode candidates (MPM candidates). The intra prediction mode candidates (MPM candidates) may be configured as an MPM candidate list or an MPM list. Also, if the MPM is not applied to the current block, the intra prediction mode information may further include remaining mode information (ex.intra_luma_mpm_remainder) indicating one of the remaining intra prediction modes excluding the intra prediction mode candidates (MPM candidates). A decoding apparatus may determine an intra prediction mode of the current block based on the intra prediction mode information.
[0100] Also, the intra prediction type information may be realized in various forms. As an example, the intra prediction type information includes intra prediction type index information indicating one of the intra prediction types. As another example, the intra prediction type information includes at least one of reference sample line information (ex. intra_luma_ref_idx) indicating whether the MRL is applied to the current block and, if so, which reference sample line is used, ISP flag information (ex. intra_subpartitions_mode_flag) indicating whether the ISP is applied to the current block, ISP type information (ex. intra_subpartitions_split_flag) indicating a subpartition split type if the ISP is applied, flag information indicating whether PDCP is applied, or flag information indicating whether LIP is applied. Also, the intra prediction type information includes an MIP flag indicating whether MIP (matrix-based intra prediction) is applied to the current block.
[0101] For example, when intra prediction is applied, the intra prediction mode applied to the current block may be determined using the intra prediction mode of the neighboring blocks. For example, the coding apparatus may select one of the MPM candidates in the MPM (most probable mode) list derived based on the intra prediction modes of the neighboring blocks (ex. left and / or upper neighboring blocks) of the current block and / or additional candidate modes based on the received MPM index, or may select one of the remaining intra prediction modes not included in the MPM candidates (and the planar mode) based on MPM remainder information (remaining intra prediction mode information). The MPM list may be configured to include or not include the planar mode as a candidate. For example, if the MPM list includes the planar mode as a candidate, the MPM list may have six candidates, and if the MPM list does not include the planar mode as a candidate, the MPM list may have five candidates. If the MPM list does not include a planar mode as a candidate, a not planar flag (ex. intra_luma_not_planar_flag) indicating that the intra prediction mode of the current block is not a planar mode may be signaled. For example, the MPM flag may be signaled first, and the MPM index and the not planar flag may be signaled when the value of the MPM flag is 1. Also, the MPM index may be signaled when the value of the not planar flag is 1. Here, the reason why the MPM list is configured not to include a planar mode as a candidate is that the planar mode is always considered as an MPM, rather than the planar mode being not an MPM, and therefore a flag (not planar flag) is signaled first to first check whether the mode is a planar mode.
[0102] For example, whether the intra prediction mode applied to the current block is among the MPM candidates (and planar mode) or among the remaining mode may be indicated based on an MPM flag (ex.intra_luma_mpm_flag). A value of 1 of the MPM flag may indicate that the intra prediction mode for the current block is among the MPM candidates (and planar mode), and a value of 0 of the MPM flag may indicate that the intra prediction mode for the current block is not among the MPM candidates (and planar mode). A value of 0 of the not planar flag (ex.intra_luma_not_planar_flag) may indicate that the intra prediction mode for the current block is the planar mode, and a value of 1 of the not planar flag may indicate that the intra prediction mode for the current block is not the planar mode. The MPM index may be signaled in the form of an mpm_idx or intra_luma_mpm_idx syntax element, and the remaining intra prediction mode information may 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 index the remaining intra prediction modes not included in the MPM candidates (and planar modes) among all intra prediction modes in order of prediction mode numbers, and may indicate one of them. The intra prediction mode may be an intra prediction mode for a luma component (sample). Hereinafter, the intra prediction mode information may include at least one of the MPM flag (ex.intra_luma_mpm_flag), the not planar flag (ex.intra_luma_not_planar_flag), the MPM index (ex.mpm_idx or intra_luma_mpm_idx), and the remaining intra prediction mode information (rem_intra_luma_pred_mode or intra_luma_mpm_remainder).In this document, an MPM list may be referred to by various terms, such as an MPM candidate list, a candModeList, etc.
[0103] When MIP is applied to the current block, a separate MPM flag (ex.intra_mip_mpm_flag), MPM index (ex.intra_mip_mpm_idx), and remaining intra-prediction mode information (ex.intra_mip_mpm_remainder) for MIP may be signaled, and the not planar flag may not be signaled.
[0104] In other words, when an image is generally divided into blocks, the current block to be coded and neighboring blocks have similar image characteristics. Therefore, the current block and neighboring blocks are highly likely to have the same or similar intra-prediction modes. Therefore, the encoder can use the intra-prediction modes of the neighboring blocks to encode the intra-prediction mode of the current block.
[0105] A coding apparatus may configure a most probable modes (MPM) list for a current block. The MPM list may also be referred to as an MPM candidate list. Here, MPM may refer to a mode used to improve coding efficiency in consideration of similarity between a current block and a neighboring block when performing intra prediction mode coding. As described above, the MPM list may be configured to include a planar mode or may be configured to exclude a planar mode. For example, if the MPM list includes a planar mode, the number of candidates in the MPM list may be six. And, if the MPM list does not include a planar mode, the number of candidates in the MPM list may be five.
[0106] The encoding apparatus may perform prediction based on various intra prediction modes and may determine an optimal intra prediction mode based on rate-distortion optimization (RDO) based on the prediction. In this case, the encoding apparatus may determine the optimal intra prediction mode using only the MPM candidates and planar modes configured in the MPM list, or may determine the optimal intra prediction mode using not only the MPM candidates and planar modes configured in the MPM list but also the remaining intra prediction modes. Specifically, for example, if the intra prediction type of the current block is a specific type other than a normal intra prediction type (e.g., LIP, MRL, or ISP), the encoding apparatus may determine the optimal intra prediction mode by considering only the MPM candidates and planar modes as intra prediction mode candidates for the current block. That is, in this case, the intra prediction mode for the current block may be determined from the MPM candidates and planar modes, and in this case, the MPM flag may not be encoded / signaled. In this case, the decoding device can infer that the MPM flag is 1 even if the MPM flag is not separately signaled.
[0107] Meanwhile, in general, if the intra prediction mode of the current block is not a planar mode but is one of the MPM candidates in the MPM list, the encoding device generates an MPM index (mpm idx) that points to one of the MPM candidates. If the intra prediction mode of the current block is not in the MPM list, the encoding device generates MPM remainder information (remaining intra prediction mode information) that points to the same mode as the intra prediction mode of the current block among the remaining intra prediction modes not included in the MPM list (and planar modes). The MPM remainder information may include, for example, an intra_luma_mpm_remainder syntax element.
[0108] The decoding device obtains intra prediction mode information from a bitstream. As described above, the intra prediction mode information may include at least one of an MPM flag, a not planar flag, an MPM index, and MPM remainder information (remaining intra prediction mode information). The decoding device may configure an MPM list. The MPM list is configured in the same manner as the MPM list configured in the encoding device. That is, the MPM list may include intra prediction modes of neighboring blocks, and may further include a specific intra prediction mode according to a predetermined method.
[0109] The decoding apparatus may determine an intra prediction mode of the current block based on the MPM list and the intra prediction mode information. For example, when the value of the MPM flag is 1, the decoding apparatus may derive a planar mode as the intra prediction mode of the current block (based on a not planar flag), or may derive a candidate indicated by the MPM index among MPM candidates in the MPM list as the intra prediction mode of the current block. Here, the MPM candidate may represent only candidates included in the MPM list, or may include not only candidates included in the MPM list but also planar modes that can be applied when the value of the MPM flag is 1.
[0110] As another example, when the value of the MPM flag is 0, the decoding device may derive the intra prediction mode pointed to by the remaining intra prediction mode information (which may be referred to as mpm remainder information) from among the remaining intra prediction modes not included in the MPM list and planar mode as the intra prediction mode of the current block. Meanwhile, as yet another example, when the intra prediction type of the current block is a specific type (e.g., LIP, MRL, or ISP, etc.), the decoding device may derive the planar mode or a candidate pointed to by the MPM flag in the MPM list as the intra prediction mode of the current block without parsing / decoding / checking the MPM flag.
[0111] The coding apparatus derives neighboring reference samples of the current block (S610). When intra prediction is applied to the current block, neighboring reference samples used for intra prediction of the current block may be derived. The neighboring reference samples of the current block may include a total of 2×nH samples adjacent to the left boundary and bottom-left of the current block having a size of nW×nH, a total of 2×nW samples adjacent to the top boundary and top-right of the current block, and one sample adjacent to the top-left of the current block. Alternatively, the neighboring reference samples of the current block may include upper neighboring samples of multiple columns and left neighboring samples of multiple rows. 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 bottom boundary of the current block, and one sample adjacent to the bottom-right of the current block.
[0112] On the other hand, when MRL is applied (i.e., when the value of the MRL index is greater than 0), the neighboring reference samples may be located on the 1st or 2nd line, not the 0th line, adjacent to the current block on the left / top side, and in this case, the number of neighboring reference samples may be further increased.On the other hand, when ISP is applied, the neighboring reference samples may be derived in sub-partition units.
[0113] The coding apparatus performs intra prediction on the current block to derive a prediction sample (S620). The coding apparatus may derive the prediction sample based on the intra prediction mode / type and the surrounding samples. The coding apparatus may derive a reference sample according to the intra prediction mode of the current block from among surrounding reference samples of the current block, and may derive a prediction sample of the current block based on the reference sample.
[0114] Meanwhile, when inter prediction is applied, a prediction unit of an encoding device / decoding device may perform inter prediction in units of blocks to derive a prediction sample. Inter prediction may represent a prediction derived in a manner that is dependent on data elements (ex. sample values or motion information) of picture(s) other than the current picture. When inter prediction is applied to a current block, a predicted block (prediction sample array) for the current block may be derived based on a reference block (reference sample array) identified by a motion vector on a reference picture pointed to by a reference picture index. In this case, in order to reduce the amount of motion information transmitted in the inter prediction mode, motion information of the current block may be predicted in units of blocks, sub-blocks, or samples based on correlation of motion information between a neighboring block and the current block. The motion information may include a motion vector and a reference picture index. The motion information may further include inter prediction type (L0 prediction, L1 prediction, Bi prediction, etc.) information. When inter prediction is applied, the neighboring blocks may include spatial neighboring blocks existing in the current picture and temporal neighboring blocks existing in the reference picture. The reference picture including the reference block and the reference picture including the temporal neighboring blocks may be the same or different. The temporal neighboring blocks may be called collocated reference blocks, collocated CUs (colCUs), etc., and the reference picture including the temporal neighboring blocks may be called collocated pictures (colPic).For example, a motion information candidate list may be constructed based on neighboring blocks of the current block, and flag or index information indicating which candidate is selected (used) to derive a motion vector and / or a reference picture index of the current block may be signaled. Inter prediction may be performed based on various prediction modes, and for example, in the case of skip mode and 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 skip mode, unlike the merge mode, a residual signal may not be transmitted. 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 a motion vector difference may be signaled. In this case, the motion vector of the current block may be derived using the sum of the motion vector predictor and the motion vector difference.
[0115] The motion information may include L0 motion information and / or L1 motion information depending on an inter prediction type (L0 prediction, L1 prediction, Bi prediction, etc.). A motion vector in the L0 direction may be referred to as an L0 motion vector or MVL0, and a motion vector in the L1 direction may be referred to as an L1 motion vector or MVL1. Prediction based on an L0 motion vector may be referred to as an L0 prediction, prediction based on an L1 motion vector may be referred to as an L1 prediction, and prediction based on both the L0 motion vector and the L1 motion vector may be referred to as a pairwise (Bi) prediction. Here, the L0 motion vector may represent a motion vector associated with a reference picture list L0 (L0), and the L1 motion vector may represent a motion vector associated with a reference picture list L1 (L1). The reference picture list L0 may include pictures that are earlier than the current picture in output order as reference pictures, and the reference picture list L1 may include pictures that are later than the current picture in output order. 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 subsequent pictures as reference pictures in output order from the current picture. In this case, the previous picture may be indexed first in the reference picture list L0, and the subsequent picture may be indexed next. The reference picture list L1 may further include previous pictures as reference pictures in output order from the current picture. In this case, the subsequent picture may be indexed first in the reference picture list 1, and the previous picture may be indexed next. Here, the output order may correspond to a picture order count (POC) order.
[0116] A video / image encoding procedure based on inter prediction may generally include, for example:
[0117] FIG. 7 illustrates an example of an inter-prediction based video / image encoding method.
[0118] The encoding apparatus performs inter prediction on a current block (S700). The encoding apparatus may derive an 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, motion information derivation, and prediction sample generation procedures may be performed simultaneously, or any one procedure may be performed prior to the other procedures. For example, the inter prediction unit of the encoding apparatus 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 a prediction mode for the current block, the motion information derivation unit may derive motion information of the current block, and the prediction sample derivation unit may derive a prediction sample of the current block. For example, the inter prediction unit of the encoding apparatus may search for a block similar to the current block within a certain area (search area) of a reference picture through motion estimation, and derive a reference block whose difference with the current block is minimum or equal to or less than a certain criterion. Based on this, a reference picture index indicating a reference picture in which the reference block is located may be derived, and a motion vector may be derived based on a position difference between the reference block and the current block. The encoding apparatus may determine a mode to be applied to the current block from among various prediction modes. The encoding apparatus may compare RD costs for the various prediction modes to determine an optimal prediction mode for the current block.
[0119] For example, when a skip mode or a merge mode is applied to the current block, the encoding apparatus may construct a merge candidate list (to be described later) and derive a reference block whose difference between the current block and the current block is minimum or equal to or less than a certain criterion among reference blocks indicated by 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 apparatus. Motion information of the current block may be derived using motion information of the selected merge candidate.
[0120] As another example, when the (A)MVP mode is applied to the current block, the encoding apparatus may construct an (A)MVP candidate list described below, and may use a motion vector of a selected MVP candidate among the MVP (motion vector predictor) candidates included in the (A)MVP candidate list as the MVP of the current block. In this case, for example, a motion vector indicating a reference block derived by the above-mentioned motion estimation may be used as the motion vector of the current block, and an MVP candidate having a motion vector with the smallest difference from the motion vector of the current block among the MVP candidates may become the selected MVP candidate. A motion vector difference (MVD), which is a difference obtained by subtracting the MVP from the motion vector of the current block, may be derived. In this case, information regarding the MVD may be signaled to the decoding apparatus. 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 separately signaled to the decoding apparatus.
[0121] The encoding apparatus may derive a residual sample based on the predicted sample (S710). The encoding apparatus may derive the residual sample through a comparison between an original sample of the current block and the predicted sample.
[0122] The encoding apparatus encodes image information including prediction information and residual information (S720). The encoding apparatus may output the encoded image information in a bitstream form. The prediction information may include prediction mode information (ex. skip flag, merge flag or mode index, etc.) and information on motion information as information related to the prediction procedure. The information on the motion information may include candidate selection information (ex. merge index, mvp flag or mvp index) which is information for deriving a motion vector. In addition, the information on the motion information may include the above-mentioned information on MVD and / or reference picture index information. In addition, the information on the motion information may include information indicating whether L0 prediction, L1 prediction, or bi-prediction is applied. The residual information is information on the residual sample. The residual information may include information on quantized transform coefficients for the residual sample.
[0123] The output bitstream can be stored on a (digital) storage medium and transmitted to the decoding device, or can be transmitted to the decoding device via a network.
[0124] Meanwhile, as described above, the encoding apparatus can generate a reconstructed picture (including reconstructed samples and reconstructed blocks) based on the reference samples and the residual samples. This is because the encoding apparatus derives the same prediction result as that performed by the decoding apparatus, thereby improving coding efficiency. Therefore, the encoding apparatus can store the reconstructed picture (or reconstructed samples, reconstructed blocks) in a memory and use it as a reference picture for inter prediction. As described above, an in-loop filtering procedure, etc. can be further applied to the reconstructed picture.
[0125] A video / image decoding procedure based on inter prediction may generally include, for example:
[0126] FIG. 8 illustrates an example of an inter-prediction based video / image decoding method.
[0127] As shown in Fig. 8, the decoding apparatus may perform operations corresponding to those performed by the encoding apparatus, such as performing prediction for a current block based on received prediction information, and deriving a prediction sample.
[0128] Specifically, the decoding device may determine a prediction mode for the current block based on received prediction information (S800). The decoding device may determine which inter prediction mode is applied to the current block based on prediction mode information in the prediction information.
[0129] For example, it may be determined whether the merge mode or (A)MVP mode is applied to the current block based on the merge flag, or one of various inter prediction mode candidates may be selected based on the mode index. The inter prediction mode candidates may include skip mode, merge mode, and / or (A)MVP mode, or may include various inter prediction modes described below.
[0130] The decoding apparatus derives motion information of the current block based on the determined inter prediction mode (S810). For example, when a skip mode or a merge mode is applied to the current block, the decoding apparatus may form a merge candidate list (described later) and select one merge candidate from among the merge candidates included in the merge candidate list. The selection may be made based on the above-mentioned selection information (merge index). The motion information of the selected merge candidate may be used to derive motion information of the current block. The motion information of the selected merge candidate may be used as motion information of the current block.
[0131] As another example, when the (A)MVP mode is applied to the current block, the decoding apparatus may construct an (A)MVP candidate list described below, and may use a motion vector of a selected MVP candidate among the MVP (motion vector predictor) candidates included in the (A)MVP candidate list as the MVP of the current block. The selection may be performed based on the selection information (mvp flag or mvp index) described above. In this case, the MVD of the current block may be derived based on information on the MVD, and the motion vector of the current block may be derived based on the MVP of the current block and the MVD. Also, the reference picture index of the current block may be derived based on the reference picture index information. A picture pointed to by the reference picture index in a reference picture list for the current block may be derived as a reference picture referenced for inter prediction of the current block.
[0132] On the other hand, as described below, the motion information of the current block may be derived without constructing a candidate list, and in this case, the motion information of the current block may be derived according to a procedure disclosed in a prediction mode described below. In this case, the candidate list construction as described above may be omitted.
[0133] The decoding apparatus may generate a prediction sample for the current block based on the motion information of the current block (S820). In this case, the reference picture may be derived based on a reference picture index of the current block, and the prediction sample for the current block may be derived using a sample of a reference block to which the motion vector of the current block points on the reference picture. In this case, as described below, a prediction sample filtering procedure may be further performed on all or some of the prediction samples of the current block, depending on the circumstances.
[0134] For example, the inter 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 may determine a prediction mode for the current block based on prediction mode information received by the prediction mode determination unit, derive motion information (motion vector and / or reference picture index) of the current block based on information regarding the motion information received by the motion information derivation unit, and derive a prediction sample of the current block by the prediction sample derivation unit.
[0135] The decoding apparatus generates a residual sample for the current block based on the received residual information (S830). The decoding apparatus generates a reconstructed sample for the current block based on the predicted sample and the residual sample, and can generate a reconstructed picture based on the reconstructed sample (S840). Then, an in-loop filtering procedure, etc. can be further applied to the reconstructed picture, as described above.
[0136] FIG. 9 exemplarily illustrates an inter prediction procedure.
[0137] 9, as described above, the inter prediction procedure may include an inter prediction mode determination step, a motion information derivation step according to the determined prediction mode, and a prediction (prediction sample generation) step based on the derived motion information. The inter prediction procedure may be performed by an encoding device and a decoding device as described above. In this document, a coding device may include an encoding device and / or a decoding device.
[0138] As shown in FIG. 9, the coding apparatus determines an inter prediction mode for a current block (S900). Various inter prediction modes may be used for prediction of a current block in a picture. For example, various modes such as merge mode, skip mode, motion vector prediction mode (MVP), affine mode, sub-block merge mode, and merge with MVD mode (MMVD) may be used. Decoder side motion vector refinement mode (DMVR), adaptive motion vector resolution mode (AMVR), Bi-prediction with CU-level weight (BCW), Bi-directional optical flow (BDOF), etc. may be used in addition to or instead as an additional mode. The affine mode may also be referred to as an affine motion prediction mode. The MVP mode may also be referred to as an advanced motion vector prediction mode (AMVP). In this document, some modes and / or motion information candidates derived by some modes may be included as one of the motion information related candidates of other modes. For example, an HMVP candidate can be added as a merge candidate of the merge / skip mode, or can be added as an MVP candidate of the MVP mode. When the HMVP candidate is used as a motion information candidate of the merge mode or skip mode, the HMVP candidate can be referred to as an HMVP merge candidate.
[0139] Prediction mode information indicating an inter prediction mode of a current block may be signaled from an encoding apparatus to a decoding apparatus. The prediction mode information may be included in a bitstream and received by the decoding apparatus. The prediction mode information may include index information indicating one of a plurality of candidate modes. Alternatively, the inter prediction mode may be indicated through hierarchical signaling of flag information. In this case, the prediction mode information may include one or more flags. For example, a skip flag may be signaled to indicate whether a skip mode is applied, and if the skip mode is not applied, a merge flag may be signaled to indicate whether a merge mode is applied, and if the merge mode is not applied, an MVP mode may be indicated to be applied, or a flag for additional classification may be further signaled. The affine mode may be signaled in an independent mode, or may be signaled in a mode dependent on the merge mode or MVP mode. For example, the affine mode may include an affine merge mode and an affine MVP mode.
[0140] The coding apparatus derives motion information for the current block (S910). The motion information may be derived based on the inter prediction mode.
[0141] The coding apparatus may perform inter prediction using motion information of the current block. The encoding apparatus may derive optimal motion information for the current block through a motion estimation procedure. For example, the encoding apparatus may search for a similar reference block with high correlation using an original block in an original picture for the current block in a fractional pixel unit within a determined search range in the reference picture, and may derive motion information through this. The similarity of the blocks may be derived based on a difference in sample values based on phase. For example, the similarity of the blocks may be calculated based on the SAD between the current block (or a template of the current block) and the reference block (or a template of the reference block). In this case, the motion information may be derived based on the reference block with the smallest SAD in the search range. The derived motion information may be signaled to the decoding apparatus by various methods based on the inter prediction mode.
[0142] The coding apparatus performs inter prediction based on motion information for the current block (S920). The coding apparatus may derive a predictive sample (or samples) for the current block based on the motion information. The current block including the predictive sample may be referred to as a predicted block.
[0143] Meanwhile, as described above, the quantization unit of the encoding device can apply quantization to the transform coefficients to derive the quantized transform coefficients, and the inverse quantization unit of the encoding device or the inverse quantization unit of the decoding device can apply inverse quantization to the quantized transform coefficients to derive the transform coefficients.
[0144] Generally, in video / image coding, the quantization rate can be changed, and the compression rate can be adjusted using the changed quantization rate. From an implementation point of view, a quantization parameter (QP) is used instead of directly using the quantization rate due to complexity considerations. For example, an integer value quantization parameter from 0 to 63 is used, and each quantization parameter value corresponds to an actual quantization rate. Also, for example, the quantization parameter (QP) for a luma component (luma sample) can be expressed as Y ) and the quantization parameter (QP C ) can be set differently.
[0145] The quantization process takes the transform coefficients (C) as input and the quantization rate (Q step ) to obtain a quantized transform coefficient C' based on the quantization ratio. In this case, taking into consideration the computational complexity, the quantization ratio can be multiplied by a scale to convert it into an integer form, and a shift operation can be performed by the amount of a value corresponding to the scale value. A 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 according to a QP. For example, the quantization scale can be applied to the transform coefficient C, and a quantized transform coefficient C' can be derived based on the quantization scale.
[0146] The inverse quantization process is the inverse process of the quantization process, and applies the quantization rate (Q step ), and based on this, a reconstructed transform coefficient (C'') can be obtained. In this case, a level scale is derived according to the quantization parameter, and the level scale is applied to the quantized transform coefficient (C') to derive the reconstructed transform coefficient (C''). The reconstructed transform coefficient (C'') may differ slightly from the original transform coefficient (C) due to losses in the conversion and / or quantization process. Therefore, in the encoding device, in the same way as in the decoding device, dequantization is performed.
[0147] Meanwhile, an adaptive frequency weighting quantization technique that adjusts a quantization strength according to a frequency may be applied. The adaptive frequency weighting technique is a method of applying different quantization strengths to different frequencies. The adaptive frequency weighting may apply different quantization strengths to different frequencies using predefined quantization scaling metrics. That is, the quantization / dequantization process may be performed based on the quantization scaling metrics. For example, different quantization scaling metrics are used depending on whether a prediction mode applied to the current block is inter prediction or intra prediction to generate a size of the current block and / or a residual signal of the current block. The quantization scaling metrics may be referred to as quantization metrics or scaling metrics. The quantization scaling metrics may be predefined. In addition, for frequency adaptive scaling, frequency-specific quantization scale information for the quantization scaling metrics is constructed / encoded in an encoding device and signaled to a decoding device. The frequency-specific quantization scale information may be referred to as quantization scaling information. The frequency-specific quantization scale information includes scaling list data (scaling_list_data). The quantization scaling metrics (modified) are derived based on the scaling list data. The frequency-specific quantization scale information also includes present flag information indicating whether the scaling list data is present. Alternatively, when the scaling list data is signaled at a higher level (e.g., SPS), the frequency-specific quantization scale information further includes information indicating whether the scaling list data is modified at a lower level (e.g., PPS or tile group header, etc.) of the higher level.
[0148] As mentioned above, quantization / dequantization is applied to the luma and chroma components based on the quantization parameters.
[0149] The quantization parameter for a coding unit is determined based on information signaled at the picture and / or slice level, for example, the quantization parameter may be derived as described below.
[0150] For example, information regarding the derivation of quantization parameters is signaled via a sequence parameter set (SPS) as shown in the following table.
[0151] [Table 1]
[0152] The semantics for the syntax elements in Table 1 above are as follows:
[0153] [Table 2]
[0154] For example, the syntax element bit_depth_luma_minus8 specifies the BitDepth value, which is the bit depth of the samples in the luma array. Y and QpBdOffset, the luma quantization parameter range offset Y That is, for example, the BitDepth based on the syntax element bit_depth_luma_minus8. Y and the QpBdOffset Y For example, the BitDepth Y is derived as a value obtained by adding 8 to the value of the syntax element bit_depth_luma_minus8, and the QpBdOffset Yis derived as a value obtained by multiplying the value of the syntax element bit_depth_luma_minus8 by 6. Also, the bit_depth_luma_minus8 may range from 0 to 8.
[0155] Also, for example, the syntax element bit_depth_chroma_minus8 specifies BitDepth, which is the bit depth of the samples of the chroma array. c and QpBdOffset, the chroma quantization parameter range offset c That is, for example, the BitDepth c and the QpBdOffset c For example, the BitDepth c is derived as a value obtained by adding 8 to the value of the syntax element bit_depth_chroma_minus8, and c is derived as the value of the syntax element bit_depth_chroma_minus8 multiplied by 6. Also, the bit_depth_chroma_minus8 may range from 0 to 8.
[0156] Also, for example, information on derivation of quantization parameters is signaled via a picture parameter set (PPS) as shown in the following table. The information includes a chroma Cb offset, a chroma Cr offset, a joint chroma offset, and an initial quantization parameter. That is, the information includes syntax elements for a chroma Cb offset, a chroma Cr offset, a joint chroma offset, and an initial quantization parameter.
[0157] [Table 3]
[0158] The semantics for the syntax elements in Table 3 above are as follows:
[0159] [Table 4]
[0160] For example, the syntax element init_qp_minus26 plus 26 is the SliceQp for each slice that references a PPS. Y If a non-zero value of slice_qp_delta is decoded, the SliceQp Y The initial value of can be modified in the slice layer. Y ) to +37.
[0161] For example, the syntax elements pps_cb_qp_offset and pps_cr_qp_offset are respectively Qp' Cb and Qp' Cr The luma quantization parameter Qp' used to derive Y The pps_cb_qp_offset and pps_cr_qp_offset may be in the range of −12 to +12. Also, if ChromaArrayType is 0, pps_cb_qp_offset and pps_cr_qp_offset may not be used in the decoding process, and the decoding device may ignore the values of the syntax elements.
[0162] For example, the syntax element pps_joint_cbcr_qp_offset is Qp' CbCr The luma quantization parameter Qp' used to derive Y The pps_joint_cbcr_qp_offset may be in the range of -12 to +12. Also, if ChromaArrayType is 0, pps_joint_cbcr_qp_offset may not be used in the decoding process, and the decoding device may ignore the value of the syntax element.
[0163] Also, for example, the syntax element pps_slice_chroma_qp_offsets_present_flag indicates whether the syntax elements slice_cb_qp_offset and slice_cr_qp_offset are present in the associated slice header. For example, a value of 1 for pps_slice_chroma_qp_offsets_present_flag indicates that slice_cb_qp_offset and slice_cr_qp_offset are present in the associated slice header. For example, a value of 0 for pps_slice_chroma_qp_offsets_present_flag indicates that slice_cb_qp_offset and slice_cr_qp_offset are not present in the associated slice header. Also, when ChromaArrayType is 0, pps_slice_chroma_qp_offsets_present_flag is 0 in the decoding process.
[0164] As mentioned above, 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 indicates the initial value of SliceQpY for each slice referring to the PPS. Also, the syntax elements pps_cb_qp_offset, pps_cr_qp_offset, and pps_joint_cbcr_qp_offset indicate the initial value of the luma quantization parameter Qp' Y In addition, the syntax element pps_slice_chroma_qp_offsets_present_flag indicates whether the offset parameter is present in the slice header.
[0165] Also, for example, information regarding derivation of the quantization parameter may be signaled via a slice header as shown in the following table.
[0166] [Table 5]
[0167] The semantics for the syntax elements in Table 5 above are as follows:
[0168] [Table 6-1]
[0169] [Table 6-2]
[0170] For example, slice_qp_delta is the Qp used for coding blocks in a slice until it is modified by the value of CuQpDeltaVal in the coding unit layer. Y For example, the initial value of Qp Y The initial value of SliceQp Y is derived as 26+init_qp_minus26+slice_qp_delta. Y The value of -QpBdOffset Y or +63.
[0171] Also, for example, slice_cb_qp_offset is the quantization parameter Qp' Cb The slice_cb_qp_offset value may range from -12 to +12. For example, if slice_cb_qp_offset does not exist, slice_cb_qp_offset is inferred to be 0. The pps_cb_qp_offset+slice_cb_qp_offset value may range from 12 to +12.
[0172] Also, for example, slice_cr_qp_offset is the quantization parameter Qp' Cr slice_cr_qp_offset indicates the difference to be added to the value of pps_cr_qp_offset when determining the value of slice_cr_qp_offset. The value of slice_cr_qp_offset may be in the range of -12 to +12. Also, for example, if slice_cr_qp_offset does not exist, slice_cr_qp_offset is inferred to be 0. The value of pps_cr_qp_offset+slice_cr_qp_offset may be in the range of 12 to +12.
[0173] Also, for example, slice_cbcr_qp_offset is the quantization parameter Qp' CbCrThe slice_cbcr_qp_offset value may range from -12 to +12. For example, if slice_cbcr_qp_offset does not exist, slice_cbcr_qp_offset is inferred to be 0. The pps_cbcr_qp_offset+slice_cbcr_qp_offset value may range from 12 to +12.
[0174] The derivation process for the luma and chroma quantization parameters begins with the inputs to the process being variables specifying the luma location, the width and height of the current coding block, and a variable specifying whether it is a single tree or a dual tree. Meanwhile, as mentioned above, the luma quantization parameter, chroma quantization parameter, and joint chroma quantization parameter are Qp' Y , Qp' Cb , Qp' Cr and Qp' CbCr It can be shown that:
[0175] Meanwhile, for example, a syntax element cu_qp_delta_sign_flag indicating the sign of CuQpDeltaVal is parsed. For example, the cu_qp_delta_sign_flag may indicate the sign of CuQpDeltaVal as follows:
[0176] For example, when the cu_qp_delta_sign_flag is 0, the CuQpDeltaVal corresponding to the cu_qp_delta_sign_flag has a positive value. Or, for example, when the cu_qp_delta_sign_flag is 1, the CuQpDeltaVal corresponding to the cu_qp_delta_sign_flag has a negative value. Also, when the cu_qp_delta_sign_flag does not exist, the cu_qp_delta_sign_flag is regarded as 0.
[0177] Also, for example, if cu_qp_delta_abs is present, then the variable IsCuQpDeltaCoded is derived as 1, and the variable CuQpDeltaVal is derived as cu_qp_delta_abs*(1-2*cu_qp_delta_sign_flag), where CuQpDeltaVal may range from -(32+QpBdOffsetY / 2) to +(31+QpBdOffsetY / 2).
[0178] Then, for example, the luma quantization parameter Qp′ Y is derived as follows:
[0179]
number
[0180] Additionally, if ChromaArrayType is not 0 and treeType is SINGLE_TREE or DUAL_TREE_CHROMA, the following applies:
[0181] -If treeType is DUAL_TREE_CHROMA, the variable Qp Y is the luma quantization parameter Qp of the luma coding unit that contains the luma position (xCb+cbWidth / 2, yCb+cbHeight / 2). Y can be set equal to
[0182] - variable qP Cb , qP Cr and qP CbCr is derived as follows:
[0183]
number
[0184] For example, if ChromaArrayType is 1, then the variable qP Cb , qP Cr and qP CbCr are qPi Cb , qPi Cr and qPi CbCr Based on the same index qPi as above, the QpC value can be set to the same as the QpC value specified in Table 7 below.
[0185] [Table 7]
[0186] Or, if ChromaArrayType is not 1, the variable qP Cb , qP Cr and qP CbCr are qPi Cb , qPi Cr and qPi CbCr It can be set equal to Min(qPi, 63) based on the same index qPi.
[0187] - chroma quantization parameter Qp' for the Cb and Cr components Cb and Qp' Cr ,The chroma quantization parameter Qp'CbCr for joint Cb-Cr coding is derived as follows:
[0188]
number
[0189] Meanwhile, this document proposes a method for improving coding efficiency in the quantization / dequantization process.
[0190] In one embodiment, this document proposes a method in which a user defines a chroma quantization mapping table (user defined Chroma Quantization Table) and uses it, instead of a method of obtaining a chroma quantization parameter value from a luma quantization parameter value through a chroma quantization mapping table predefined in the existing VVC draft 5v.7 when ChromaArrayType is not 0 (for example, when ChromaArrayType is 1). In the VVC specification text (for example, VVC draft 5v.7), when qPi (luma quantization parameter value) is given, Qpc (chroma quantization parameter value) is derived through a predefined chroma quantization table (for example, the above-mentioned Table 7), but this document proposes a method of deriving Qpc from qPi based on a chroma quantization mapping table newly defined by the user. According to an embodiment of this document, a method is proposed in which the Qpc value is derived from a function relationship of the qPi values, and the function can be signaled in a syntax such as APS, SPS, or PPS by a user defined functionality method, and the function relationship transmits a value of a predefined syntax element, and a user defines a chroma quantization table mapping based on the transmitted value. As an example, since the Qpc value can be derived from a function relationship of the qPi values, when a syntax element value indicating the function is transmitted, a user defined chroma quantization mapping table can be derived in the form of Table 7.
[0191] As an embodiment, a method is proposed in which information regarding a syntax element (Qpc_data) indicating a chroma quantization mapping related function is signaled in an adaptation parameter set (APS) as shown in the table below.
[0192] [Table 8]
[0193] Referring to Table 8 above, when the aps_params_type indicates Qpc_APS, for example, when the value of the aps_params_type is 2, Qpc_data() is signaled.
[0194] The semantics for the syntax elements in Table 8 above are as follows:
[0195] [Table 9]
[0196] For example, the syntax element adaptation_parameter_set_id provides an identifier for an APS that is referenced by other syntax elements.
[0197] For example, the syntax element aps_extension_flag indicates whether the aps_extension_data_flag syntax element is present in the APS RBSP syntax structure. For example, the syntax element aps_extension_flag with a value of 1 indicates that the aps_extension_data_flag syntax element is present in the APS RBSP syntax structure, and the syntax element aps_extension_flag with a value of 0 indicates that the aps_extension_data_flag syntax element is not present in the APS RBSP syntax structure.
[0198] Also, for example, the syntax element aps_extension_data_flag may have any value. The presence and value of the aps_extension_data_flag may not affect decoder conformance to a profile specified in a version of this standard. For example, a decoding device conforming to a version of this standard may ignore all syntax elements aps_extension_data_flag.
[0199] Also, for example, the syntax element aps_params_type indicates the type of APS parameters included in the APS, as shown in Table 10 below.
[0200] [Table 10]
[0201] For example, referring to Table 10, when the value of the syntax element aps_params_type is 0, the syntax element aps_params_type indicates 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 indicates that the type of the APS parameter is an LMCS parameter, and when the value of the syntax element aps_params_type is 2, the syntax element aps_params_type indicates that the type of the APS parameter is a Qpc parameter. The Qpc data parameter may indicate a chroma quantization data parameter.
[0202] This document also proposes another embodiment for signaling information about the quantization parameters.
[0203] For example, in this embodiment, a user-defined Qp C Data (user defined Qp C In this embodiment, a scheme for signaling user-defined data (PPS) is proposed. As an example for implementing the scheme proposed in this embodiment, a flag indicating whether the PPS includes user-defined data may be introduced in the SPS. That is, a flag indicating whether the PPS includes user-defined data is signaled in the SPS. Also, according to this embodiment, the user-defined data may be signaled in the PPS. Alternatively, the user-defined data may be signaled in a slice header and / or other header set.
[0204] The flag indicating whether the PPS contains user defined data is signaled as shown in the following table.
[0205] [Table 11]
[0206] For example, the syntax element Qpc_data_default_flag may be a syntax element of the flag mentioned above. The syntax element Qpc_data_default_flag indicates whether or not the Qpc_data() parameter is present in the PPS RBSP syntax structure. For example, a Qpc_data_default_flag of 0 indicates that the Qpc_data() parameter is not present in the PPS RBSP syntax structure and a default table is used to help determine chroma quantization. Here, the default table is as shown in Table 7 above. Also, for example, a Qpc_data_default_flag of 1 indicates that the Qpc_data() parameter is present in the PPS RBSP syntax structure.
[0207] Moreover, the user-defined data signaled in the PPS according to this embodiment is as shown in the following table.
[0208] [Table 12]
[0209] On the other hand, for example, Qpc_data() contains the information required for chroma quantization derivation when ChromaArrayType is 1.
[0210] This document also proposes another embodiment for signaling information about the quantization parameters.
[0211] For example, this embodiment proposes a flexible structure for chroma quantization parameter (QP) derivation and combined chroma QP derivation. This embodiment proposes a scheme for signaling an initial flag indicating the presence or absence of a user defined mode in which parameters indicating a function used to derive a chroma quantization parameter (QP) in an SPS and / or a PPS can be used.
[0212] For example, flag information signaled in the high level syntax proposed in this embodiment is as shown in the table below.
[0213] [Table 13]
[0214] For example, Qpc_data_present_flag indicates whether or not a parameter for deriving a chroma quantization coefficient is present in the high level syntax RBSP syntax structure. For example, a Qpc_data_present_flag of 0 indicates that a chroma quantization parameter is not present in the high level syntax RBSP syntax structure. Also, for example, a Qpc_data_present_flag of 1 indicates that a chroma quantization parameter is present in the high level syntax RBSP syntax structure.
[0215] Alternatively, the syntax element Qpc_data_present_flag may be used to indicate the use of a chroma quantization derivation method in a bitstream. For example, Qpc_data_present_flag may indicate the use of a tool or a user-defined mode used for chroma quantization derivation as follows:
[0216] For example, Qpc_data_present_flag indicates whether user defined chroma quantization is used in the bitstream. For example, a Qpc_data_present_flag of 0 indicates that user defined chroma quantization is not used in the bitstream. Also, for example, a Qpc_data_present_flag of 1 indicates that user defined chroma quantization is used alone or together with other flags.
[0217] This document also proposes another embodiment for signaling information about the quantization parameters.
[0218] For example, in this embodiment, the chroma quantization parameter (QP), i.e., Qp', is determined using user defined information signaled in one function. Cb , Qp' Cr and Qp' CbCr Hereinafter, an embodiment of how the chroma quantization parameter (QP) is derived is proposed. For example, according to this embodiment, data indicating a function for deriving a chroma quantization parameter (QP) is signaled, and the chroma quantization parameter is derived based on the chroma quantization data. The data for deriving the chroma quantization coefficient (or a user defined QP mapping table) is signaled as shown in the following table.
[0219] [Table 14]
[0220] The semantics for the syntax elements in Table 14 above are as follows:
[0221] [Table 15]
[0222] For example, the syntax element qPi_min_idx indicates the minimum qPi index used for chroma quantization.
[0223] Also, for example, the syntax element qPi_delta_max_idx indicates the delta value between Qpi_min_idx and the maximum qPi index used for Qp C derivation. The value of qPiMaxIdx is greater than or equal to qPi_min_idx. For example, Qp C The maximum index qPiMaxIdx used for derivation can be derived as follows.
[0224]
Equation
[0225] Also, for example, the syntax element QpC_qPi_val[i] indicates the Qp value for the i-th index. C value.
[0226] Also, for example, the syntax element QpOffset C indicates the offset value used for the derivation of Qp C value.
[0227] Also, for example, the variable Qp for qPi C Idx[qPi] can be derived as follows. Here, the qPi can be from 0 to qPiMaxIdx.
[0228] If -qPi < qPi_min_idx, Qp C Idx[qPi] is set to be the same as qPi.
[0229] If -qPi = qPi_min_idx ··· qPiMaxIdx, Qp CIdx[qPi] is set equal to QpC_qPi_val[qPi].
[0230] -If qPi>qPiMaxIdx, then Qp C Idx[qPi] is qPi-QpOffset C is set to.
[0231] Then, Qp C The value of Qp C It is derived as Idx[qPi].
[0232] For example, the process of deriving the quantization parameter according to this embodiment is described in a standard format as shown in the following table.
[0233] [Table 16-1]
[0234] [Table 16-2]
[0235] [Table 16-3]
[0236] [Table 16-4]
[0237] Referring to Table 16 above, the derivation process for the luma and chroma quantization parameters begins with the inputs to the process being the luma position (xCb, yCb), variables cbWidth and cbHeight that specify the width and height of the current coding block, and a variable treeType that specifies whether the tree is a single tree or a dual tree. Meanwhile, as described above, the luma quantization parameter and the chroma quantization parameter are derivation parameters Qp' Y , Qp'Cb and Qp' Cr It is shown that:
[0238] This document also proposes another embodiment for signaling information about the quantization parameters.
[0239] For example, this embodiment proposes an example of using syntax elements that can be used to control the derivation of quantization parameters by having a flag in the SPS have a user defined mode or a default mode. An example of a syntax element that can be used to derive a quantization parameter is shown in the following table. Meanwhile, the structure of the syntax element is an example, and the structure is not limited to the structure shown in the table below.
[0240] [Table 17]
[0241] [Table 18]
[0242] [Table 19]
[0243] For example, the syntax element Qpc_data_default_flag indicates whether a user-defined mode is used for deriving the quantization parameters. For example, a Qpc_data_default_flag of 0 indicates that a user-defined mode is used for deriving the quantization parameters. Also, for example, a Qpc_data_default_flag of 1 indicates that a default table is used to derive the chroma quantization parameters. Here, the default table is as shown in Table 7 above. Also, if the syntax element Qpc_data_default_flag does not exist, the syntax element Qpc_data_default_flag is regarded as 1.
[0244] On the other hand, when the user-defined mode is used, the corresponding slice header, tile group / header, or other appropriate header is used to signal the APS ID. For example, a syntax element indicating the APS ID may be signaled via a slice header as shown in Table 18.
[0245] For example, the syntax element slice_Qp C _aps_id is the Qp for which the slice is referenced C Indicates the adaptation_parameter_set_id of the APS. slice_Qp C Qp with adaptation_parameter_set_id like _aps_id C The TemporalId of the APS NAL unit is less than or equal to the TemporalId of the coded slice NAL unit. C If an APS is referenced by more than one slice of the same picture, multiple Qp C The APSs can have the same content.
[0246] In addition, the APS structure for transmitting chroma quantization data proposed in this embodiment is as shown in Table 19 above.
[0247] For example, the syntax element adaptation_parameter_set_id may provide an identifier for an APS that is referenced by other syntax elements.
[0248] For example, the syntax element aps_extension_flag indicates whether the aps_extension_data_flag syntax element is present in the APS RBSP syntax structure. For example, the syntax element aps_extension_flag having a value of 1 indicates that the aps_extension_data_flag syntax element is present in the APS RBSP syntax structure, and the syntax element aps_extension_flag having a value of 0 indicates that the aps_extension_data_flag syntax element is not present in the APS RBSP syntax structure.
[0249] Also, for example, the syntax element aps_extension_data_flag may have any value. The presence and value of the aps_extension_data_flag may not affect decoder conformance to a profile specified in a version of this standard. For example, a decoding device conforming to a version of this standard may ignore all syntax elements aps_extension_data_flag.
[0250] Also, for example, the syntax element aps_params_type indicates the type of APS parameters included in the APS, as shown in Table 10 above.
[0251] Qp disclosed in Table 19 above C_data() is signaled as shown in the following table.
[0252] [Table 20]
[0253] For example, the syntax element qPi_min_idx indicates the minimum qPi index used for chroma quantization.
[0254] For example, the syntax element qPi_delta_max_idx is a combination of Qpi_min_idx and chroma Qp C It indicates the delta value between the maximum qPi indices used in the derivation. The value of qPiMaxIdx is greater than or equal to qPi_min_idx. For example, Qp C The maximum index qPiMaxIdx used in the derivation can be derived as shown in Equation 4 above.
[0255] Also, for example, the syntax element Qp C The value of _prec_minus1 plus 1 indicates the number of bits used for the representation of the syntax lmcs_delta_abs_cw[i]. C The value of _prec_minus1 can range from 0 to BitDepthY-2.
[0256] Also, for example, the syntax element Qp C _init_val is the Qp corresponding to qPi_min_idx C Indicates the value.
[0257] Also, for example, the syntax element Qp C _qPi_delta_val[i] is the Qp for the i-th index C Indicates the delta of a value.
[0258] Also, for example, the syntax element QpOffsetC represents the offset value used for the derivation of Qp C . For example, the variable Qp
[0259] for qPi C Idx[qPi] is derived as follows. Here, the said qPi can be from 0 to qPiMaxIdx.
[0260] When -qPi < qPi_min_idx, Qp C Idx[qPi] is set to be the same as qPi.
[0261] When -qPi = qPi_min_idx ··· qPiMaxIdx, Qp C Idx[qPi] is Qp C _qPi_delta_val[qPi] + Qp C Idx[qPi - 1].
[0262] When -qPi > qPiMaxIdx, Qp C Idx[qPi] is set to qPi - QpOffset C .
[0263] After that, the value of Qp C can be derived from Qp C Idx[qPi].
[0264] Similar to the foregoing embodiments, the chroma quantization parameters, namely, Qp‘Cb, Qp‘Cr, and Qp‘CbCr, can be derived using user - defined information that is signaled or using default values shown in a default table such as Table 7 above.
[0265] For example, when describing the process of deriving quantization parameters according to this embodiment in a standard format, it is as shown in the following table.
[0266]
Table 21 - 1
[0267] [Table 21-2]
[0268] [Table 21-3]
[0269] [Table 21-4]
[0270] [Table 21-5]
[0271] Referring to Table 21 above, if ChromaArrayType is 1 and Qp C If _data_default_flag indicates negation (FALSE) (i.e., for example, Qp C _data_default_flag is 0), variable qP Cb , qP Cr and qP CbCr is derived based on user-defined information signaled as proposed in this embodiment, ChromaArrayType is 1, and Qp C If _data_default_flag is TRUE (i.e., for example, Qp C _data_default_flag is 1), variable qP Cb , qP Cr and qP CbCr are qPi Cb , qPi Cr and qPi CbCr It is derived by the default table based on the same index qPi as
[0272] This document also proposes another embodiment for signaling information about the quantization parameters.
[0273] For example, this embodiment proposes a syntax element that can be used to control derivation of a quantization parameter by indicating a user-defined mode or a default mode in a flag of an SPS. Specifically, this embodiment proposes a scheme for signaling a syntax element having the following syntax structure. Meanwhile, the structure of the syntax element is an example, and the structure is not limited to the structure shown in the table below.
[0274] [Table 22]
[0275] For example, the syntax element qPi_min_idx indicates the minimum qPi index used for chroma quantization.
[0276] For example, the syntax element qPi_delta_max_idx is a combination of Qpi_min_idx and chroma Qp C It indicates the delta value between the maximum qPi indices used in the derivation. The value of qPiMaxIdx is greater than or equal to qPi_min_idx. For example, Qp C The maximum index qPiMaxIdx used in the derivation can be derived as shown in Equation 4 above.
[0277] Also, for example, the syntax element Qp C _qPi_delta_val[i] is the Qp for the i-th index C Indicates the delta of a value.
[0278] Also, for example, the syntax element QpOffset C is the Qp C Indicates the offset value used in the derivation of
[0279] As in the previous embodiment, the chroma quantization parameters, i.e., Qp'Cb, Qp'Cr and Qp'CbCr, can be derived using signaled user-defined information or using default values shown in a default table such as Table 7 above.
[0280] For example, the process of deriving the quantization parameter according to this embodiment is described in a standard format as shown in the following table.
[0281] [Table 23-1]
[0282] [Table 23-2]
[0283] [Table 23-3]
[0284] [Table 23-4]
[0285] [Table 23-5]
[0286] Referring to Table 23 above, if ChromaArrayType is 1 and Qp C If _data_default_flag indicates negation (FALSE) (i.e., for example, Qp C _data_default_flag is 0), variable qP Cb , qP Cr and qP CbCrcan be derived based on user - defined information signaled as proposed in this embodiment. For example, when ChromaArrayType is 1 and Qp C _data_default_flag indicates negative (FALSE) (i.e., for example, when Qp C _data_default_flag is 0), the variables qP Cb qP Cr and qP CbCr can be derived to be the same as the values of qPi Cb qPi Cr and qPi CbCr respectively, based on the same index qPi as that of Qp C .
[0287] For example, the variable Qp C Idx[i] is derived as follows.
[0288] - If i < qPi_min_idx, Qp C Idx[qPi] is set to be the same as qPi.
[0289] - If i = qPi_min_idx ··· qPiMaxIdx, Qp C Idx[i] is set to Qp C _qPi_delta_val[i]+Qp C Idx[i - 1].[[]END]
[0290] - If i > qPiMaxIdx, Qp C Idx[i] is set to qPi - QpOffset C .
[0291] After that, the said Qp C can be set to the said Qp C Idx[i].[[]END]
[0292] Also, referring to Table 23, when ChromaArrayType is 1 and Qp CIf _data_default_flag is TRUE (i.e., for example, Qp C _data_default_flag is 1), variable qP Cb , qP Cr and qP CbCr are qPi Cb , qPi Cr , qPi CbCr It is derived by the default table based on the same index qPi as
[0293] This document also proposes another embodiment for signaling information about the quantization parameters.
[0294] For example, in this embodiment, chroma quantization (Qp C A syntax element for the Qp (picture parameter set) derivation parameter is proposed. For example, the APS ID can be signaled in the slice header. Also, for example, a flag in the picture parameter set (PPS) is proposed to indicate whether a default table is used or a table derived from information signaled in the APS is used. Also, for example, if the default table is not used, a syntax element for the Qp (picture parameter set) derivation parameter is proposed in the slice header. C Additional control schemes are added to support access to the APS containing the data.
[0295] On the other hand, according to existing video / image standards, the chroma QP is derived from the luma QP and can be additionally updated by a signaled chroma QP offset. The existing chroma quantization parameter QpC table can be a default table such as Table 7 above.
[0296] This embodiment calculates the chroma quantization parameter Qp as a function of the index qPi. C It is proposed to add a function to signal the Qp C Used to integrate value signaling schemes.
[0297] For example, the APS according to this embodiment is as shown in the following table.
[0298] [Table 24]
[0299] For example, the syntax element adaptation_parameter_set_id provides an identifier for an APS that is referenced by other syntax elements.
[0300] Also, for example, the syntax element aps_params_type indicates the type of APS parameters included in the APS, as shown in Table 10 above.
[0301] For example, the syntax element aps_extension_flag indicates whether the aps_extension_data_flag syntax element is present in the APS RBSP syntax structure. For example, the syntax element aps_extension_flag having a value of 1 indicates that the aps_extension_data_flag syntax element is present in the APS RBSP syntax structure, and the syntax element aps_extension_flag having a value of 0 indicates that the aps_extension_data_flag syntax element is not present in the APS RBSP syntax structure.
[0302] Also, for example, the syntax element aps_extension_data_flag may have any value. The presence and value of the aps_extension_data_flag may not affect the decoder conformance to the profile specified in the version of this standard. For example, a decoding device conforming to the version of this standard may ignore all syntax elements aps_extension_data_flag.
[0303] Qp disclosed in Table 24 above C _data() is signaled as shown in the following table.
[0304] [Table 25]
[0305] For example, the syntax element qPi_min_idx indicates the minimum qPi index used for chroma quantization. The value of qPi_min_idx can range from 0 to 63.
[0306] For example, the syntax element qPi_delta_max_idx is a combination of Qpi_min_idx and chroma Qp C It indicates the delta value between the maximum qPi indexes used in the derivation. The value of qPiMaxIdx is greater than or equal to qPi_min_idx. Also, for example, the value of qPi_delta_max_idx can be in the range of 0 to 63. For example, Qp C The maximum index qPiMaxIdx used in the derivation is derived as shown in Equation 4 above.
[0307] Also, for example, the syntax element Qp C _qPi_delta_val[i] is the Qp for the i-th index C Indicates the difference in values, which may also be called delta.
[0308] Also, for example, the syntax element Qp C Offset C _present_flag indicates whether QpOffset C exists in the bit stream. For example, a Qp of 1 C Offset C _present_flag indicates that QpOffset C exists in the bit stream. Also, for example, a Qp of 0 C Offset C _present_flag indicates that QpOffset C does not exist in the bit stream. If the Qp C Offset C _present_flag does not exist, the Qp C Offset C _present_flag is considered to be 0.
[0309] Also, for example, the syntax element QpOffset C indicates the offset value used for the derivation of Qp C .
[0310] For example, the variable Qp for qPi C Idx[qPi] is derived as follows. Here, the qPi can be from 0 to 63.
[0311] - If -qPi < qPi_min_Idx, Qp C Idx[qPi] is set to be the same as qPi.
[0312] - If -qPi = qPi_min_idx ··· qPiMaxIdx, Qp C Idx[qPi] is set to Qp C _qPi_delta_val[qPi] + Qp C Idx[qPi - 1].
[0313] - If -qPi > qPiMaxIdx, Qp COffset C If _present_flag is 1, then Qp C Idx[qPi] is qPi-QpOffset C and Qp C Offset C If _present_flag is not 1, i.e., Qp C Offset C If _present_flag is 0, Qp C Idx[qPi] is qPi-(qPiMaxIdx-Qp C The value of the qPiMaxIdx attribute is set to qPiMaxIdx[qPiMaxIdx].
[0314] Then, Qp C The value of Qp C It is derived as Idx[qPi].
[0315] Furthermore, this embodiment proposes flags to be signaled in the PPS as shown in the following table.
[0316] [Table 26]
[0317] For example, the syntax element Qp C _data_default_flag indicates whether a user defined mode is used for derivation of the quantization parameters. For example, a Qp of 0 C _data_default_flag indicates that a user-defined mode is used to derive the quantization parameters. For example, a Qp of 1 C _data_default_flag indicates that the default table described above is used to derive the quantization parameter. The default table is as shown in Table 7 above. Qp C If _data_default_flag does not exist, Qp C _data_default_flag is considered to be 1.
[0318] This embodiment also proposes syntax elements to be signaled in the slice header as shown in the following table.
[0319] [Table 27]
[0320] For example, the syntax element slice_Qp C _aps_id is the Qp that the slice refers to. C Indicates the adaptation_parameter_set_id of the APS. slice_Qp C Qp with adaptation_parameter_set_id like _aps_id C The TemporalId of the APS NAL unit is less than or equal to the TemporalId of the coded slice NAL unit. C If an APS is referenced by more than one slice of the same picture, multiple Qp C The APSs can have the same content.
[0321] For example, if the process of deriving the quantization parameter according to this embodiment is written in a standard format, it can be shown as in the following table.
[0322] [Table 28-1]
[0323] [Table 28-2]
[0324] [Table 28-3]
[0325] [Table 28-4]
[0326] Referring to Table 28 above, if ChromaArrayType is 1 and Qp C If _data_default_flag indicates negation (FALSE) (i.e., for example, Qp C _data_default_flag is 0), variable qP Cb , qP Cr and qP CbCr is derived based on user-defined information signaled as proposed in this embodiment. C If _data_default_flag is TRUE (i.e., for example, Qp C _data_default_flag is 1), variable qP Cb , qP Cr and qP CbCr are qPi Cb , qPi Cr and qPi CbCr can be derived by a default table based on the same index qPi as
[0327] This document also proposes another embodiment for signaling information about the quantization parameters.
[0328] For example, in this embodiment, it is proposed to signal the user-defined guidance of chroma quantization in SPS as follows. For example, this embodiment proposes to signal the user-defined chroma quantization (Qp C For example, a flag in the SPS can indicate whether to use a default table for chroma quantization derivation or to derive the contents of the table for chroma quantization derivation from information signaled in the SPS.
[0329] For example, this embodiment proposes a scheme for performing chroma quantization as a function of index qPi using the syntax elements shown in the following table.
[0330]
Table 29
[0331] For example, the syntax element qPi_min_idx indicates the minimum qPi index used for chroma quantization. The value of qPi_min_idx can be in the range of 0 to 63.
[0332] Also, for example, the syntax element qPi_delta_max_idx indicates the delta value between Qpi_min_idx and the maximum qPi index used for Qp C derivation. The value of qPiMaxIdx is 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, Qp C The maximum index qPiMaxIdx used for derivation can be derived as shown in Equation 4 above.
[0333] Also, for example, the syntax element Qp C _qPi_delta_val[i] indicates the delta of the Qp value for the i-th index. C
[0334] For example, the variable Qp C Idx[qPi] is derived as follows.
[0335] - When -qPi < qPi_min_Idx, Qp C Idx[qPi] is set to be the same as qPi.
[0336] - When -qPi = qPi_min_idx ··· qPiMaxIdx, Qp C Idx[qPi] is Qp C_qPi_delta_val[qPi]+Qp C It is set to Idx[qPi-1].
[0337] -If qPi>qPiMaxIdx, then Qp C Idx[qPi] is qPi-(qPiMaxIdx-Qp C The value of the qPiMaxIdx attribute is set to qPiMaxIdx[qPiMaxIdx].
[0338] Then, the Qp C is the Qp C Set to Idx[qPi].
[0339] In addition, the flag of the SPS indicating whether to use a default table for chroma quantization derivation proposed in this embodiment or to use the signaled information for chroma quantization derivation is as shown in the following table.
[0340] [Table 30]
[0341] For example, the syntax element Qp C _data_default_flag indicates whether a user-defined mode is used for the derivation of the quantization parameters. For example, a Qp of 0 C _data_default_flag indicates that a user-defined mode is used for derivation of the quantization parameters. C _data_default_flag indicates that a default table is used to derive the quantization parameter. The default table is as shown in Table 7 above. Qp C If _data_default_flag is not present, the Qp C _data_default_flag is considered to be 1.
[0342] For example, the process of deriving the quantization parameter according to this embodiment is described in a standard format as shown in the following table.
[0343] [Table 31-1]
[0344] [Table 31-2]
[0345] [Table 31-3]
[0346] [Table 31-4]
[0347] [Table 31-5]
[0348] Referring to Table 31 above, if ChromaArrayType is 1 and Qp C If _data_default_flag indicates negation (FALSE) (i.e., for example, Qp C _data_default_flag is 0), variable qP Cb , qP Cr and qP CbCr can be derived based on user-defined information signaled as proposed in this embodiment. Also, for example, ChromaArrayType is 1 and Qp C If _data_default_flag is TRUE (i.e., for example, Qp C _data_default_flag is 1), variable qP Cb , qP Cr and qP CbCr are qPi Cb , qPi Cr , qPi CbCrcan be derived by a default table based on the same index qPi as
[0349] This document also proposes another embodiment for signaling information about the quantization parameters.
[0350] For example, the present embodiment calculates the chroma quantization parameter Qp as a function of the index qPi. C For example, a method is proposed to signal a syntax element for a user defined table for deriving a quantization parameter in a PPS, thereby providing the flexibility to switch between a user defined table and a default table for each picture that references the PPS.
[0351] The syntax elements for the user defined table signaled in the PPS proposed in this embodiment are as follows:
[0352] [Table 32]
[0353] For example, the syntax element qPi_min_idx indicates the minimum qPi index used for chroma quantization. The value of qPi_min_idx can range from 0 to 63.
[0354] For example, the syntax element qPi_delta_max_idx is a combination of Qpi_min_idx and chroma Qp C It indicates the delta value between the maximum qPi indices used in the derivation. The value of qPiMaxIdx is 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, Qp CThe maximum index qPiMaxIdx used in the derivation can be derived as in the above-described Equation 4.
[0355] Also, for example, the syntax element QpC_qPi_delta_val[i] represents the delta of the Qp value for the i-th index. C indicates the delta of the Qp value for the i-th index.
[0356] For example, the variable Qp C Idx[qPi] can be derived as follows.
[0357] When -qPi < qPi_min_Idx, Qp C Idx[qPi] is set to be the same as qPi.
[0358] When -qPi = qPi_min_idx ··· qPiMaxIdx, Qp C Idx[qPi] is Qp C _qPi_delta_val[qPi] + Qp C Idx[qPi - 1].
[0359] When -qPi > qPiMaxIdx, Qp C Idx[qPi] is set to qPi - (qPiMaxIdx - Qp C Idx[qPiMaxIdx]).
[0360] After that, the said Qp C is set to the said Qp C Idx[qPi].
[0361] Also, the SPS flag indicating whether to use the default table for the chroma quantization derivation proposed in this embodiment or the information signaled for the chroma quantization derivation is as shown in the following table.
[0362]
Table 33
[0363] For example, the syntax element Qp C _data_default_flag indicates whether a user-defined mode is used for the derivation of the quantization parameters. For example, a Qp of 0 C _data_default_flag indicates that a user-defined mode is used for derivation of the quantization parameters, i.e., a Qp of 0 C _data_default_flag is the chroma quantization parameter data Qp C _data() is used. C When _data_default_flag is 0, the chroma quantization parameter data Qp C _data() can be signaled. For example, a Qp of 1 C _data_default_flag indicates that a default table is used to derive the quantization parameter. The default table is as shown in Table 7 above. Qp C If _data_default_flag is not present, the Qp C _data_default_flag is considered to be 1.
[0364] For example, the process of deriving the quantization parameter according to this embodiment is described in a standard format as shown in the following table.
[0365] [Table 34-1]
[0366] [Table 34-2]
[0367] [Table 34-3]
[0368] [Table 34-4]
[0369] [Table 34-5]
[0370] Referring to Table 34 above, if ChromaArrayType is 1 and Qp C If _data_default_flag indicates negation (FALSE) (i.e., for example, Qp C _data_default_flag is 0), variable qP Cb , qP Cr and qP CbCr can be derived based on user-defined information signaled as proposed in this embodiment. Also, for example, ChromaArrayType is 1 and Qp C If _data_default_flag is TRUE (i.e., for example, Qp C _data_default_flag is 1), variable qP Cb , qP Cr and qP CbCr are qPi Cb , qPi Cr , qPi CbCr can be derived by a default table based on the same index qPi as
[0371] This document also proposes another embodiment for signaling information about the quantization parameters.
[0372] For example, in this embodiment, the chroma quantization parameter Qp C We propose a general mode for deriving and signaling
[0373] Chroma quantization parameter data, Qp C_data() is signaled as shown in the following table.
[0374]
Table 35
[0375] For example, the syntax element qPi_min_idx indicates the minimum qPi index used for chroma quantization. The value of qPi_min_idx can be in the range of 0 to 63.
[0376] Also, for example, the syntax element qPi_delta_max_idx indicates the delta value between Qpi_min_idx and the maximum qPi index used for Qp C derivation. The value of qPiMaxIdx is 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, Qp C The maximum index qPiMaxIdx used for derivation can be derived as shown in the above formula 4.
[0377] Also, for example, the syntax element QpC_qPi_delta_val[i] indicates the delta of the Qp value for the i-th index. C
[0378] For example, the variable Qp C Idx[qPi] can be derived as follows.
[0379] - When -qPi < qPi_min_Idx, Qp C Idx[qPi] is set to be the same as qPi.
[0380] - When -qPi = qPi_min_idx ··· qPiMaxIdx, Qp C Idx[qPi] is Qp C _qPi_delta_val[qPi]+Qp C Idx[qPi - 1] is set.
[0381] -If qPi>qPiMaxIdx, then Qp C Idx[qPi] is qPi-(qPiMaxIdx-Qp C The value of the qPiMaxIdx attribute is set to qPiMaxIdx[qPiMaxIdx].
[0382] Then, the Qp C is the Qp C Set to Idx[qPi].
[0383] In addition, the present embodiment proposes a scheme for signaling a flag indicating whether a default table is used for chroma quantization derivation or information signaled for chroma quantization derivation is used. The flag can be signaled via a high level syntax such as a sequence parameter set (SPS) or a picture parameter set (PPS). The flags signaled via a high level syntax are as follows:
[0384] [Table 36]
[0385] For example, the syntax element Qp C _data_default_flag indicates whether a user-defined mode is used for the derivation of the quantization parameters. For example, a Qp of 0 C _data_default_flag indicates that a user-defined mode is used for derivation of the quantization parameters, i.e., a Qp of 0 C _data_default_flag is the chroma quantization parameter data Qp C _data() is used. C When _data_default_flag is 0, the chroma quantization parameter data Qp C_data() can be signaled. For example, a Qp of 1 C _data_default_flag indicates that a default table is used to derive the quantization parameter. The default table is as shown in Table 7 above. Qp C If _data_default_flag is not present, the Qp C _data_default_flag is considered to be 1.
[0386] For example, the process of deriving the quantization parameter according to this embodiment is described in a standard format as shown in the following table.
[0387] [Table 37-1]
[0388] [Table 37-2]
[0389] [Table 37-3]
[0390] [Table 37-4]
[0391] [Table 37-5]
[0392] Referring to Table 37 above, if ChromaArrayType is 1 and Qp C If _data_default_flag indicates negation (FALSE) (i.e., for example, Qp C _data_default_flag is 0), variable qP Cb , qPCr and qP CbCr is derived based on user-defined information signaled as proposed in this embodiment. Also, for example, ChromaArrayType is 1 and Qp C If _data_default_flag is TRUE (i.e., for example, Qp C _data_default_flag is 1), variable qP Cb , qP Cr and qP CbCr are qPi Cb , qPi Cr and qPi CbCr can be derived by a default table based on the same index qPi as
[0393] This document also proposes another embodiment for signaling information about the quantization parameters.
[0394] For example, in this embodiment, the chroma quantization parameter Qp C A method for deriving the table is proposed. This embodiment can be used together with the APS or can be proposed to be used independently. For example, the syntax structure of the APS integrated with the chroma quantization data is as follows:
[0395] [Table 38]
[0396] For example, the syntax element qPi_min_idx indicates the minimum qPi index used for chroma quantization. The value of qPi_min_idx can range from 0 to 63.
[0397] For example, the syntax element qPi_delta_max_idx is a combination of Qpi_min_idx and chroma Qp CIndicates the delta value between the maximum qPi indices used for derivation. The value of qPiMaxIdx is 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, Qp C The maximum index qPiMaxIdx used for derivation can be derived as shown in the above formula 4.
[0398] Also, for example, the syntax element QpC_qPi_delta_val[i] indicates the difference in the Qp value for the i-th index. The said difference may be called delta. C Indicates the difference in value. The said difference may be called delta.
[0399] For example, the variable Qp C Idx[qPi] is derived as follows. Here, the said qPi can be from 0 to 63.
[0400] When -qPi < qPi_min_Idx, Qp C Idx[qPi] is set to be the same as qPi.
[0401] When -qPi = qPi_min_idx ··· qPiMaxIdx, Qp C Idx[qPi] is Qp C _qPi_delta_val[qPi] + Qp C Idx[qPi - 1].
[0402] When -qPi > qPiMaxIdx, Qp C Idx[qPi] is set to qPi - (qPiMaxIdx - Qp C Idx[qPiMaxIdx]).
[0403] After that, the said Qp C is set to the said Qp C Idx[qPi].
[0404] This document also proposes another embodiment for signaling information about the quantization parameters.
[0405] For example, the present embodiment uses continuous Qp C A scheme in which the delta (or difference) between values is limited to 1 is presented as an example.
[0406] For example, the present embodiment adds user-defined chroma quantization (Qp C For example, a flag in a sequence parameter set (SPS) proposed in this embodiment indicates whether to use an existing default table for chroma quantization parameter derivation or to derive the table contents based on information signaled in the SPS. According to this embodiment, a method suitable for an image to be coded by accepting user-defined chroma quantization can be selected, thereby improving coding efficiency.
[0407] For example, the present embodiment uses syntax elements such as the following table to calculate chroma quantization Qp as a function of index qPi: C We propose to add a function to signal the following:
[0408] [Table 39]
[0409] For example, the syntax element qPi_min_idx indicates the minimum qPi index used for chroma quantization. The value of qPi_min_idx can range from 1 to 63.
[0410] For example, the syntax element qPi_delta_max_idx is a combination of Qpi_min_idx and chroma Qp CIndicates the delta value between the maximum qPi indices used for derivation. The value of qPiMaxIdx is 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, Qp C The maximum index qPiMaxIdx used for derivation can be derived as shown in Equation 4 above.
[0411] Also, for example, the syntax element Qp C _qPi_flag[i] indicates whether the Qp C value increases by 1. That is, for example, the syntax element Qp C _qPi_flag[i] can indicate whether the i-th Qp C value increases by 1 compared to the (i - 1)-th Qp C value. For example, a Qp C _qPi_flag[i] of 1 indicates that the Qp C value increases by 1, and a Qp C _qPi_flag[i] of 0 indicates that the Qp C value does not increase.
[0412] For example, the variable Qp C Idx[qPi] can be derived as follows. Here, the qPi can be from 0 to 63.
[0413] - When qPi < qPi_min_Idx, Qp C Idx[qPi] is set to be the same as qPi.
[0414] - When -qPi = qPi_min_idx ··· qPiMaxIdx, Qp C Idx[qPi] is set to Qp C _qPi_flag[qPi] + Qp C Idx[qPi - 1].
[0415] - When -qPi > qPiMaxIdx, Qp C Idx[qPi] is qPi - (qPiMaxIdx - QpC The value of the qPiMaxIdx attribute is set to qPiMaxIdx[qPiMaxIdx].
[0416] Then, the Qp C is the Qp C Set to Idx[qPi].
[0417] In addition, the present embodiment proposes a scheme for signaling a flag indicating whether a default table is used for chroma quantization derivation or information signaled for chroma quantization derivation is used. The flag can be signaled via a high level syntax such as a sequence parameter set (SPS) or a picture parameter set (PPS). The flags signaled via a high level syntax are as follows:
[0418] [Table 40]
[0419] For example, the syntax element Qp C _data_default_flag indicates whether a user-defined mode is used for the derivation of the quantization parameters. For example, a Qp of 0 C _data_default_flag indicates that a user-defined mode is used for derivation of the quantization parameters, i.e., a Qp of 0 C _data_default_flag is the chroma quantization parameter data Qp C _data() is used. C When _data_default_flag is 0, the chroma quantization parameter data Qp C _data() can be signaled. For example, a Qp of 1 C_data_default_flag indicates that a default table is used to derive the quantization parameter. The default table is as shown in Table 7 above. Qp C If _data_default_flag is not present, the Qp C _data_default_flag is considered to be 1.
[0420] For example, the process of deriving the quantization parameter according to this embodiment is described in a standard format as shown in the following table.
[0421] [Table 41-1]
[0422] [Table 41-2]
[0423] [Table 41-3]
[0424] [Table 41-4]
[0425] [Table 41-5]
[0426] Referring to Table 41 above, if ChromaArrayType is 1 and Qp C If _data_default_flag indicates negation (FALSE) (i.e., for example, Qp C _data_default_flag is 0), qP Cb , the variable qP Cr and qP CbCrcan be derived based on user-defined information signaled as proposed in this embodiment. Also, for example, ChromaArrayType is 1 and Qp C If _data_default_flag is TRUE (i.e., for example, Qp C _data_default_flag is 1), variable qP Cb , qP Cr and qP CbCr are qPi Cb , qPi Cr , qPi CbCr can be derived by a default table based on the same index qPi as
[0427] This document also proposes another embodiment for signaling information about the quantization parameters.
[0428] For example, this embodiment proposes an example of a data signaling structure for deriving a chroma QP. Specifically, this embodiment proposes a method of adding a new syntax element, chroma_qp_mapping_flag, in an SPS. For example, if the value of the chroma_qp_mapping_flag is 0, a default chroma QP mapping table may be used to derive a chroma quantization parameter. Also, for example, if the value of the chroma_qp_mapping_flag is 1, a syntax element used to derive a chroma QP mapping table may be signaled as shown in the following table.
[0429] [Table 42]
[0430] For example, the syntax element Qp C_data_default_flag indicates whether a user-defined mode is used for the derivation of the quantization parameters. For example, a Qp of 0 C _data_default_flag indicates that a user-defined mode is used for derivation of the quantization parameters, i.e., a Qp of 0 C _data_default_flag indicates that the chroma QP mapping table derived based on the chroma quantization parameter data shown in Table 42 above is used to derive the chroma quantization parameters. C If _data_default_flag is 0, the chroma quantization parameter data shown in Table 42 above may be signaled. C _data_default_flag indicates that a default table is used to derive the quantization parameter. The default table is as shown in Table 7 above. Qp C If _data_default_flag is not present, the Qp C _data_default_flag is considered to be 1.
[0431] Also, for example, a value obtained by adding 1 to the syntax element qPi_delta_max_idx_minus1 indicates the number of points at which the mapping function does not increase.
[0432] Also for example, the syntax element qPi_min_idx_minus1 indicates the first element of the set of points at which the mapping function does not increase.
[0433] Also, for example, the syntax element Qp C _qPi_flag[i] indicates the delta value between the i-th and (i-1)-th elements of the set of points at which the mapping function is non-increasing.
[0434] Based on the chroma quantization parameter data shown in Table 42, the chroma QP mapping table can be derived as follows.
[0435] For example, the variable cQpFlatSize can be derived as follows:
[0436]
number
[0437] Also, for example, the variable cQpFlat[ ] can be derived as shown in the following table.
[0438] [Table 43]
[0439] Then, based on the variables cQpFlatSize and cQpFlat[ ], a chroma QP mapping table can be derived as shown in the following table.
[0440] [Table 44]
[0441] This document also proposes another embodiment for signaling information about the quantization parameters.
[0442] For example, this embodiment proposes to add a new syntax element, chroma_qp_mapping_flag, in the SPS. For example, if the value of the chroma_qp_mapping_flag is 0, a default chroma QP mapping table is used to derive a chroma quantization parameter. Also, for example, if the value of the chroma_qp_mapping_flag is 1, the syntax elements used to derive a chroma QP mapping table are signaled as shown in the following table.
[0443] [Table 45]
[0444] For example, the syntax element Qp C _data_default_flag indicates whether a user-defined mode is used for the derivation of the quantization parameters. For example, a Qp of 0 C _data_default_flag indicates that a user-defined mode is used for derivation of the quantization parameters, i.e., a Qp of 0 C _data_default_flag indicates that the chroma QP mapping table derived based on the chroma quantization parameter data shown in Table 42 above is used to derive the chroma quantization parameters. C If _data_default_flag is 0, the chroma quantization parameter data shown in Table 42 above is signaled. C _data_default_flag indicates that a default table is used to derive the quantization parameter. The default table is as shown in Table 7 above. Qp C If _data_default_flag is not present, the Qp C _data_default_flag is considered to be 1.
[0445] Also, for example, a value obtained by adding 1 to the syntax element qPi_delta_max_idx_minus1 indicates the number of points at which the mapping function does not increase.
[0446] Also, for example, the value of the syntax element qPi_min_idx_minus1 plus 1 indicates the first element of the set of points at which the mapping function does not increase.
[0447] Also, for example, the syntax element Qp C The value of _qPi_idx_minus1[i] plus 1 indicates the delta value between the i-th and (i-1)-th elements of the set of points where the mapping function does not increase.
[0448] Based on the chroma quantization parameter data shown in Table 45, the chroma QP mapping table can be derived as follows.
[0449] For example, the variable cQpFlatSize can be derived as shown in Equation 5 above.
[0450] Also, for example, the variable cQpFlat[ ] can be derived as shown in the following table.
[0451] [Table 46]
[0452] Then, a chroma QP mapping table can be derived based on the variable cQpFlatSize and the variable cQpFlat[ ]. For example, the chroma QP mapping table is derived as shown in Table 44 above.
[0453] This document also proposes another embodiment for signaling information about the quantization parameters.
[0454] For example, the present embodiment proposes a scheme for signaling an individual table for each chroma component, i.e., for example, the present embodiment proposes a scheme for signaling syntax elements used to derive a chroma QP mapping table for each chroma component.
[0455] For example, a chroma QP mapping table for each chroma component may be derived, and the syntax elements for each chroma component may be signaled as shown in the following table.
[0456] [Table 47]
[0457] For example, the syntax element qp_luma_to_chroma_joint_map_flag indicates whether a common luma-chroma quantization parameter mapping table is used for the chroma components Cb, Cr, and CbCr. That is, for example, the syntax element qp_luma_to_chroma_joint_map_flag indicates whether one luma-chroma quantization parameter mapping table is applied to the Cb residual, the Cr residual, and the CbCr residual. For example, when the value of qp_luma_to_chroma_joint_map_flag is 1, the common luma-chroma quantization parameter mapping table is used for the chroma components Cb, Cr, and CbCr, and when the value of qp_luma_to_chroma_joint_map_flag is 0, individual luma-chroma quantization parameter mapping tables are used for each of the chroma components Cb, Cr, and CbCr.
[0458] Also, for example, the value of syntax element qPi_min_idx_minus1 plus 1 indicates the minimum qPi index used for chroma quantization. The value of qPi_min_idx_minus1 can range from 1 to 63.
[0459] For example, adding 1 to the syntax element qPi_delta_max_idx_minus1 results in the Qpi_min_idx and chroma Qp CIndicates the delta value between the maximum qPi indices used in the derivation. The value of qPiMaxIdx is greater than or equal to qPi_min_idx. For example, the value of qPi_delta_max_idx_minus1 can be in the range of 1 to 63. Qp C The maximum index qPiMaxIdx used in the derivation is derived as follows by the following formula.
[0460] [Number]
[0461] Also, for example, the syntax element Qp C _qPi_flag[j] indicates whether the Qp C value increases by 1. That is, for example, the syntax element Qp C _qPi_flag[i][j] indicates whether the j-th Qp C value of the i-th chroma component is 1 greater than the (j - 1)-th Qp C value. For example, QpC_qPi_flag[j] of 1 indicates that the Qp C value increases by 1, and QpC_qPi_flag[j] of 0 indicates that the Qp C value does not increase.
[0462] For example, the variable Qp C Idx[i][qPi] can be derived as follows. Here, the qPi can be from 0 to maxQp.
[0463] When -qPi < qPi_min_idx_minus1 + 1, Qp C Idx[qPi] is set to be the same as qPi.
[0464] When -qPi = qPi_min_idx_minus1 + 1 ··· qPiMaxIdx, Qp C Idx[qPi] is set to QpC_qPi_flag[qPi] + Qp C Idx[qPi - 1].
[0465] -If qPi>qPiMaxIdx, then Qp C Idx[qPi] is qPi-(qPiMaxIdx-Qp C The value of the qPiMaxIdx attribute is set to qPiMaxIdx[qPiMaxIdx].
[0466] Then, the Qp C The value of Qp C It can be derived as Idx[i][qPi].
[0467] Meanwhile, according to the present embodiment, a flag indicating whether a syntax element used to derive a chroma QP mapping table in the SPS is signaled or a default table is used may be signaled. For example, the flag may be signaled as shown in the following table.
[0468] [Table 48]
[0469] Syntax element Qp C _data_default_flag indicates whether a user-defined mode is used for the derivation of the quantization parameters. For example, a Qp of 0 C _data_default_flag indicates that a user-defined mode is used for derivation of the quantization parameters, i.e., a Qp of 0 C _data_default_flag indicates that the chroma QP mapping table derived based on the chroma quantization parameter data shown in Table 47 above is used to derive the chroma quantization parameters. C If _data_default_flag is 0, the chroma quantization parameter data shown in Table 47 above is signaled. C_data_default_flag indicates that a default table is used to derive the quantization parameter. The default table is as shown in Table 7 above. Qp C If _data_default_flag is not present, the Qp C _data_default_flag is considered to be 1.
[0470] For example, if the process of deriving the quantization parameter according to this embodiment is written in a standard format, it can be shown as in the following table.
[0471] [Table 49-1]
[0472] [Table 49-2]
[0473] [Table 49-3]
[0474] [Table 49-4]
[0475] [Table 49-5]
[0476] Referring to Table 49 above, if ChromaArrayType is 1 and Qp C If _data_default_flag indicates negation (FALSE) (i.e., for example, Qp C _data_default_flag is 0), variable qP Cb , qP Cr and qP CbCris derived based on user-defined information signaled as proposed in this embodiment. Also, for example, ChromaArrayType is 1 and Qp C If _data_default_flag is TRUE (i.e., for example, Qp C _data_default_flag is 1), variable qP Cb , qP Cr and qP CbCr are qPi Cb , qPi Cr , qPi CbCr It is derived by the default table based on the same index qPi as
[0477] This document also proposes another embodiment for signaling information related to quantization parameters. This embodiment proposes a method for signaling the maximum difference between a starting point and an end point by signaling the end point as a delta with respect to the maximum QP. That is, for example, according to this embodiment, a syntax element indicating a delta value between maxQp and maximum qPi index used in chroma QpC derivation is signaled.
[0478] Chroma quantization parameter data, Qp C _data() is signaled as shown in the following table.
[0479] [Table 50]
[0480] For example, the syntax element qPi_min_idx indicates the minimum qPi index used for chroma quantization. The value of qPi_min_idx can range from 0 to 63.
[0481] Also, for example, the syntax element qPi_delta_max_idx indicates the delta value between the maximum qPi index used for deriving maxQp and the chroma Qp. The value of qPiMaxIdx is 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, the maximum index qPiMaxIdx used for deriving Qp can be derived as follows. C The value of qPiMaxIdx is 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, the maximum index qPiMaxIdx used for deriving Qp can be derived as follows. C Also, for example, the syntax element Qp_qPi_flag[i] indicates whether the Qp value increases by 1. That is, for example, the syntax element Qp_qPi_flag[i] indicates whether the i-th Qp value increases by 1 compared to the (i - 1)-th Qp value. For example, a Qp_qPi_flag[i] of 1 indicates that the Qp value increases by 1, and a Qp_qPi_flag[i] of 0 indicates that the Qp value does not increase.
[0482]
Equation
[0483] Also, for example, the syntax element Qp C _qPi_flag[i] indicates whether the Qp C value increases by 1. That is, for example, the syntax element Qp C _qPi_flag[i] indicates whether the i-th Qp C value is 1 greater than the (i - 1)-th Qp C value. For example, a Qp C _qPi_flag[i] of 1 indicates that the Qp C value increases by 1, and a Qp C _qPi_flag[i] of 0 indicates that the Qp C value does not increase.
[0484] For example, the variable Qp C Idx[qPi] can be derived as follows. Here, the qPi can be from 0 to 63.
[0485] - When -qPi < qPi_min_Idx, Qp C Idx[qPi] is set to be the same as qPi.
[0486] - When -qPi = qPi_min_idx ··· qPiMaxIdx, Qp C Idx[qPi] is QpC_qPi_flag[qPi] + QpC It is set to Idx[qPi-1].
[0487] -If qPi>qPiMaxIdx, then Qp C Idx[qPi] is qPi-(qPiMaxIdx-Qp C The value of the qPiMaxIdx attribute is set to qPiMaxIdx[qPiMaxIdx].
[0488] Then, the Qp C is the Qp C Set to Idx[qPi].
[0489] In addition, the present embodiment proposes a scheme for signaling a flag indicating whether a default table is used for chroma quantization derivation or information signaled for chroma quantization derivation is used. The flag can be signaled via a high level syntax such as a sequence parameter set (SPS) or a picture parameter set (PPS). The flags signaled via a high level syntax are as follows:
[0490] [Table 51]
[0491] For example, the syntax element Qp C _data_default_flag indicates whether a user-defined mode is used for the derivation of the quantization parameters. For example, a Qp of 0 C _data_default_flag indicates that a user-defined mode is used for derivation of the quantization parameters, i.e., a Qp of 0 C _data_default_flag is the chroma quantization parameter data Qp C _data() is used. C When _data_default_flag is 0, the chroma quantization parameter data QpC _data() can be signaled. For example, a Qp of 1 C _data_default_flag indicates that a default table is used to derive the quantization parameter. The default table is as shown in Table 7 above. Qp C If _data_default_flag is not present, the Qp C _data_default_flag is considered to be 1.
[0492] For example, if the process of deriving the quantization parameter according to this embodiment is written in a standard format, it can be shown as in the following table.
[0493] [Table 52-1]
[0494] [Table 52-2]
[0495] [Table 52-3]
[0496] [Table 52-4]
[0497] [Table 52-5]
[0498] Referring to Table 52 above, if ChromaArrayType is 1 and Qp C If _data_default_flag indicates negation (FALSE) (i.e., for example, Qp C _data_default_flag is 0), variable qPCb , qP Cr and qP CbCr can be derived based on user-defined information signaled as proposed in this embodiment. Also, for example, ChromaArrayType is 1 and Qp C If _data_default_flag is TRUE (i.e., for example, Qp C _data_default_flag is 1), variable qP Cb , qP Cr and qP CbCr are qPi Cb , qPi Cr and qPi CbCr can be derived by a default table based on the same index qPi as
[0499] This document also proposes another embodiment for signaling information about quantization parameters, which proposes signaling the maximum difference between a starting point and an end point by signaling the end point as a delta to the maximum QP or the difference between the starting point and the starting point plus a delta.
[0500] Chroma quantization parameter data, Qp C _data() is signaled as shown in the following table.
[0501] [Table 53]
[0502] For example, the syntax element qPi_min_idx_minus1 plus 1 indicates the minimum qPi index used for chroma quantization. The value of qPi_min_idx can range from 1 to maxQp.
[0503] Also, for example, the syntax element is_delta_maxQp indicates whether the maximum index qPiMaxIdx is derived from the maxQp value. For example, is_delta_maxQp of 1 indicates that qPiMaxIdx is derived from the maxQp value. Also, for example, is_delta_maxQp of 0 indicates that qPiMaxIdx is derived from the syntax element qPi_min_idx_minus1.
[0504] For example, adding 1 to the syntax element qPi_delta_max_idx_minus1 results in maxQp and chroma Qp C It indicates the delta value between the maximum qPi indices used in the derivation. The value of qPiMaxIdx is greater than or equal to qPi_min_idx. For example, the value of qPi_delta_max_idx_minus1 can be in the range of 1 to 63. Qp C The maximum index qPiMaxIdx used in the derivation can be derived as shown in the following table.
[0505] [Table 54]
[0506] Also, for example, the syntax element Qp C _qPi_flag[i] is the Qp C Indicates whether the value is incremented by 1. That is, for example, the syntax element Qp C _qPi_flag[i] is the i-th Qp C The value is the (i-1)th Qp C Indicates whether the value is increased by 1. For example, a Qp of 1 C _qPi_flag[i] is Qp C indicates a value increase of 1, and a Qp of 0 C _qPi_flag[i] is Qp C Indicates that the value is not increasing.
[0507] For example, the variable Qp CIdx[qPi] is derived as follows. Here, the qPi can be from 0 to maxQp.
[0508] - When -qPi < qPi_min_idx_minus1 + 1, Qp C Idx[qPi] is set to be the same as qPi.
[0509] - When -qPi = qPi_min_idx_minus1 ··· qPiMaxIdx, Qp C Idx[qPi] is Qp C _qPi_flag[qPi] + Qp C and is set to Idx[qPi - 1].
[0510] - When -qPi > qPiMaxIdx, Qp C Idx[qPi] is qPi - (qPiMaxIdx - Qp C and is set to Idx[qPiMaxIdx]).
[0511] After that, the Qp C is the Qp C and is set to Idx[qPi].
[0512] Also, this embodiment proposes a scheme of signaling a flag indicating whether to use a default table for chroma quantization derivation or whether information signaled for chroma quantization derivation is used. The flag can be signaled via a high level syntax such as SPS (sequence parameter set) or PPS (picture parameter set). The flag signaled via the high level syntax is as follows in the following table.
[0513]
Table 55
[0514] For example, the syntax element Qp C_data_default_flag indicates whether a user-defined mode is used for the derivation of the quantization parameters. For example, a Qp of 0 C _data_default_flag indicates that a user-defined mode is used for derivation of the quantization parameters, i.e., a Qp of 0 C _data_default_flag is the chroma quantization parameter data Qp C _data() is used. C When _data_default_flag is 0, the chroma quantization parameter data Qp C _data() is signaled. Also, for example, a Qp of 1 C _data_default_flag indicates that a default table is used to derive the quantization parameter. The default table is as shown in Table 7 above. Qp C If _data_default_flag is not present, the Qp C _data_default_flag is considered to be 1.
[0515] For example, the process of deriving the quantization parameters according to the present embodiment is described in standard format as follows:
[0516] [Table 56-1]
[0517] [Table 56-2]
[0518] [Table 56-3]
[0519] [Table 56-4]
[0520] [Table 56-5]
[0521] Referring to Table 56 above, if ChromaArrayType is 1 and Qp C If _data_default_flag indicates negation (FALSE) (i.e., for example, Qp C _data_default_flag is 0), variable qP Cb , qP Cr and qP CbCr can be derived based on user-defined information signaled as proposed in this embodiment. Also, for example, ChromaArrayType is 1 and Qp C If _data_default_flag is TRUE (i.e., for example, Qp C _data_default_flag is 1), variable qP Cb , qP Cr and qP CbCr are qPi Cb , qPi Cr and qPi CbCr can be derived by a default table based on the same index qPi as
[0522] This document also proposes another embodiment for signaling information about quantization parameters, which proposes signaling the maximum difference between a starting point and an end point by signaling the end point as a delta to the maximum QP or the difference between the starting point and the starting point plus a delta.
[0523] Chroma quantization parameter data, Qp C _data() is signaled as shown in the following table.
[0524] [Table 57]
[0525] For example, the syntax element qPi_min_idx_minus1 plus 1 indicates the minimum qPi index used for chroma quantization. The value of qPi_min_idx can range from 1 to maxQp.
[0526] Also, for example, the syntax element is_delta_maxQp indicates whether the maximum index qPiMaxIdx is derived from the maxQp value. For example, is_delta_maxQp of 1 indicates that qPiMaxIdx is derived from the maxQp value. Also, for example, is_delta_maxQp of 0 indicates that qPiMaxIdx is derived from the syntax element qPi_min_idx_minus1.
[0527] For example, adding 1 to the syntax element qPi_delta_max_idx_minus1 results in maxQp and chroma Qp C It indicates the delta value between the maximum qPi indices used in the derivation. The value of qPiMaxIdx is greater than or equal to qPi_min_idx. For example, the value of qPi_delta_max_idx_minus1 can be in the range of 1 to 63. Qp C The maximum index qPiMaxIdx used in the derivation can be derived as shown in Table 54 above.
[0528] Also, for example, the syntax element Qp C _qPi_flag[i] is the Qp C Indicates whether the value is incremented by 1. That is, for example, the syntax element Qp C _qPi_flag[i] is the i-th Qp C The value is the (i-1)th Qp CIndicates whether it increases by 1 from the value. For example, QpC_qPi_flag[i] of 1 indicates that Qp C increases by 1, and QpC_qPi_flag[i] of 0 indicates that Qp C does not increase in value.
[0529] For example, the variable Qp C Idx[qPi] is derived as follows. Here, the qPi can be from 0 to maxQp.
[0530] When -qPi < qPi_min_idx_minus1 + 1, Qp C Idx[qPi] is set to be the same as qPi.
[0531] When -qPi = qPi_min_idx_minus1 ··· qPiMaxIdx, Qp C Idx[qPi] is QpC_qPi_flag[qPi] + Qp C set to Idx[qPi - 1].
[0532] When -qPi > qPiMaxIdx, Qp C Idx[qPi] is qPi - (qPiMaxIdx - Qp C Idx[qPiMaxIdx]).
[0533] After that, the Qp C can be set to the Qp C Idx[qPi].
[0534] In addition, this embodiment proposes a scheme for signaling a flag indicating whether to use a default table for chroma quantization derivation or information signaled for chroma quantization derivation. The flag is signaled via a high level syntax such as SPS (sequence parameter set) or PPS (picture parameter set). The flag signaled via the high level syntax is as follows in the following table.
[0535] [Table 58]
[0536] For example, the syntax element Qp C _data_default_flag indicates whether a user-defined mode is used for the derivation of the quantization parameters. For example, a Qp of 0 C _data_default_flag indicates that a user-defined mode is used for derivation of the quantization parameters, i.e., a Qp of 0 C _data_default_flag is the chroma quantization parameter data Qp C _data() is used. C When _data_default_flag is 0, the chroma quantization parameter data Qp C _data() is signaled. Also, for example, a Qp of 1 C _data_default_flag indicates that a default table is used to derive the quantization parameter. The default table is as shown in Table 7 above. Qp C If _data_default_flag is not present, the Qp C _data_default_flag is considered to be 1.
[0537] For example, if the process of deriving the quantization parameter according to this embodiment is written in a standard format, it can be shown as in the following table.
[0538] [Table 59-1]
[0539] [Table 59-2]
[0540] [Table 59-3]
[0541] [Table 59-4]
[0542] [Table 59-5]
[0543] Referring to Table 59 above, if ChromaArrayType is 1 and Qp C If _data_default_flag indicates negation (FALSE) (i.e., for example, Qp C _data_default_flag is 0), variable qP Cb , qP Cr and qP CbCr is derived based on user-defined information signaled as proposed in this embodiment. Also, for example, ChromaArrayType is 1 and Qp C If _data_default_flag is TRUE (i.e., for example, Qp C _data_default_flag is 1), variable qP Cb , qP Cr and qP CbCr are qPi Cb , qPi Cr and qPi CbCr can be derived by a default table based on the same index qPi as
[0544] This document also proposes another embodiment for signaling information about a quantization parameter, which proposes a scheme for signaling an index to a chroma QP mapping table using a minus1 nomenclature instead of an actual value.
[0545] Chroma quantization parameter data, Qp C _data() is signaled as shown in the following table.
[0546] [Table 60]
[0547] For example, the value of the syntax element qPi_min_idx_minus1 plus 1 indicates the minimum qPi index used for chroma quantization. The value of qPi_min_idx can range from 1 to 63.
[0548] For example, adding 1 to the syntax element qPi_delta_max_idx_minus1 results in the sum of qPi_min_idx and chroma Qp C It indicates the delta value between the maximum qPi indices used in the derivation. The value of qPiMaxIdx is 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, Qp C The maximum index qPiMaxIdx used in the derivation can be derived as follows:
[0549]
number
[0550] Also, for example, the syntax element Qp C _qPi_flag[i] is the Qp C Indicates whether the value is incremented by 1. That is, for example, the syntax element Qp C _qPi_flag[i] is the i-th Qp C The value is the (i-1)th Qp C Indicates whether the value is increased by 1. For example, a Qp of 1 C _qPi_flag[i] is Qp CIndicates that the value increases by 1, and Qp of 0 C _qPi_flag[i] is Qp C Indicates that the value has not increased.
[0551] For example, the variable Qp C Idx[qPi] can be derived as follows. Here, the qPi can be from 0 to 63.
[0552] When -qPi < qPi_min_idx_minus1 + 1, Qp C Idx[qPi] is set to be the same as qPi.
[0553] When -qPi = qPi_min_idx_minus1 + 1 ··· qPiMaxIdx, Qp C Idx[qPi] is Qp C _qPi_flag[qPi] + Qp C Set to Idx[qPi - 1].
[0554] When -qPi > qPiMaxIdx, Qp C Idx[qPi] is qPi - (qPiMaxIdx - Qp C Set to Idx[qPiMaxIdx]).
[0555] Then, the QpC can be set to the Qp C Set to Idx[qPi].
[0556] In addition, this embodiment proposes a scheme for signaling a flag indicating whether to use a default table for chroma quantization derivation or whether information signaled for chroma quantization derivation is used. The flag can be signaled via a high level syntax such as an SPS (sequence parameter set) or a PPS (picture parameter set). The flag signaled via the high level syntax is as shown in the following table.
[0557] [Table 61]
[0558] For example, the syntax element Qp C _data_default_flag indicates whether a user-defined mode is used for the derivation of the quantization parameters. For example, a Qp of 0 C _data_default_flag indicates that a user-defined mode is used for derivation of the quantization parameters, i.e., a Qp of 0 C _data_default_flag is the chroma quantization parameter data Qp C _data() is used. C When _data_default_flag is 0, the chroma quantization parameter data Qp C _data() can be signaled. For example, a Qp of 1 C _data_default_flag indicates that a default table is used to derive the quantization parameter. The default table is as shown in Table 7 above. Qp C If _data_default_flag is not present, the Qp C _data_default_flag is considered to be 1.
[0559] For example, if the process of deriving the quantization parameter according to this embodiment is written in a standard format, it can be shown as in the following table.
[0560] [Table 62-1]
[0561] [Table 62-2]
[0562] [Table 62-3]
[0563] [Table 62-4]
[0564] [Table 62-5]
[0565] Referring to Table 62 above, if ChromaArrayType is 1 and Qp C If _data_default_flag indicates negation (FALSE) (i.e., for example, Qp C _data_default_flag is 0), variable qP Cb , qP Cr and qP CbCr can be derived based on user-defined information signaled as proposed in this embodiment. Also, for example, ChromaArrayType is 1 and Qp C If _data_default_flag is TRUE (i.e., for example, Qp C _data_default_flag is 1), variable qP Cb , qP Cr and qP CbCr are qPi Cb , qPi Cr , qPi CbCr can be derived by a default table based on the same index qPi as
[0566] This document also proposes another embodiment for signaling information about the quantization parameters, in which a separate chroma quantization table is used for each chroma component.
[0567] The chroma quantization parameter data for the chroma quantization parameters proposed in this embodiment can be signaled as shown in the following table.
[0568] [Table 63]
[0569] For example, the syntax element Qp C _data_default_flag indicates whether the default chroma quantization parameter table is used. For example, a Qp of 1 C _data_default_flag indicates that a default chroma quantization parameter table is used to derive the chroma quantization parameters. The default table is as shown in Table 7 above. Also, for example, a Qp C _data_default_flag indicates that the default chroma quantization parameter table is not used to derive the chroma quantization parameters, i.e., a Qp of 0 is not used. C _data_default_flag indicates that a chroma quantization parameter table derived based on the chroma quantization parameter data signaled for the derivation of the chroma quantization parameters is used.
[0570] For example, the syntax element sps_separate_qpc_table_flag specifies two separate Qp C The syntax element sps_separate_qpc_table_flag indicates whether separate luma-chroma quantization parameter mapping tables are used for Cb residuals and Cr residuals. For example, a syntax element sps_separate_qpc_table_flag of 1 indicates whether separate Qp CA sps_separate_qpc_table_flag of 0 indicates that one Qp table is used for the Cb and Cr samples. C Indicates that a table is to be used.
[0571] On the other hand, for example, the variable Qp Cb [i] is the Qp used for the Cb sample C For example, the variable Qp Cr [i] is the Qp used for the Cr sample C For example, if the value of sps_separate_qpc_table_flag is 0, the Qp Cr [i] is Qp Cb [i], where i can range from 0 to 69.
[0572] Also, for example, the value of syntax element qPi_cb_min_idx_minus1 plus 1 indicates the minimum qPi index used for the Cb chroma component. The value of qPi_cb_min_idx_minus1 can range from 1 to 69.
[0573] For example, adding 1 to the syntax element qPi_cb_delta_max_idx_minus1 equals qPi_cb_min_idx_minus1 and Cb chroma Qp C It indicates the delta value between qPi_cb_delta_idx_minus1 and maximum used in the derivation. The value of qPiMaxIdx is greater than or equal to qPi_min_idx. The value of qPi_cb_delta_max_idx_minus1 can be in the range of 1 to 69. For example, Qp C The maximum index qPiMaxIdxcb used in the derivation can be derived as follows:
[0574]
number
[0575] Also, for example, the syntax element Qp C _cb_qPi_flag[i] is the i-th Qp for the Cb component C Value Qp Cb [i] and (i-1)th Qp C Value Qp Cb [i-1]. C The value of _cb_qPi_flag[i] can range from 0 to 1.
[0576] For example, the variable Qp Cb [i] is derived as follows: where i can range from 0 to 69.
[0577] - For i=0..qPiMaxIdxCb, qP Cb [i] is set equal to i.
[0578] -Qp for i=qPi_cb_min_idx_minus1+1+1..qPiMaxIdxCb Cb [i] is Qp Cb [i-1]+Qp C It is set to _cb_qPi_flag[i].
[0579] - Qp for i=qPiMaxIdxCb+1...69 Cb [i] is set to i-deltaEnd, and deltaEnd is qPiMaxIdxCb-qP Cb [qPiMaxIdxCb] can be derived.
[0580] For example, syntax elements qPi_cr_min_idx_minus1, qPiMaxIdxCr, and Qp C _cr_qPi_flag[i] has the same meaning as the syntax element for the Cb component.
[0581] This document also proposes another embodiment for signaling information related to quantization parameters. For example, this embodiment proposes a method for signaling parameters for multiple chroma QP tables. This embodiment may also be combined with at least one of the above-described embodiments. That is, for example, the embodiments of this document may be commonly applied.
[0582] Specifically, for example, in this embodiment, a user-defined chroma quantization parameter (Qp C ) is included. For example, according to the present embodiment, a flag in a sequence parameter set (SPS) indicates whether to use a default table for deriving a chroma quantization parameter or to derive a chroma QP mapping table based on information signaled in the SPS. This allows a user-defined chroma quantization parameter to be used in consideration of content characteristics of an image in image coding, thereby improving coding efficiency. In addition, the present embodiment may provide flexibility by providing an option in which one user-defined table is used for chroma components and an option in which separate user-defined tables are used for the Cb and Cr components.
[0583] For example, the chroma quantization parameter data Qp C _data() is signaled as shown in the following table.
[0584] [Table 64]
[0585] For example, the value of the syntax element qPi_min_idx_minus1 plus 1 indicates the minimum qPi index used for chroma quantization. The value of qPi_min_idx can range from 1 to 69.
[0586] Also, for example, the syntax element qPi_delta_max_idx indicates the delta value between the minimum qPi index qPi_min_idx and the maximum qPi index used in the derivation of chroma Qp C The value of qPiMaxIdx is greater than or equal to qPi_min_idx. The value of qPi_delta_max_idx can be in the range of 0 to 69. For example, the maximum index qPiMaxIdx used in the derivation of Qp C can be derived as shown in Equation 4 above.
[0587] Also, for example, the syntax element Qp C _qPi_flag[i] can indicate whether the Qp C value increases by 1. That is, for example, the syntax element Qp C _qPi_flag[i] indicates whether the value of the i-th Qp C is 1 greater than the value of the (i - 1)-th Qp C value. For example, a Qp C _qPi_flag[i] of 1 indicates that the Qp C value increases by 1, and a Qp C _qPi_flag[i] of 0 indicates that the Qp C value does not increase.
[0588] For example, the variable Qp C Idx[qPi] can be derived as follows. Here, the qPi can be from 0 to 69.
[0589] - If qPi < qPi_min_Idx, Qp C Idx[qPi] is set to be the same as qPi.
[0590] - If qPi = qPi_min_idx ··· qPiMaxIdx, Qp C Idx[qPi] is set to Qp C _qPi_flag[qPi] + Qp C Idx[qPi - 1].
[0591] -If qPi>qPiMaxIdx, then Qp C Idx[qPi] is qPi-(qPiMaxIdx-Qp C The value of the qPiMaxIdx attribute is set to qPiMaxIdx[qPiMaxIdx].
[0592] Then, the Qp C is the Qp C Set to Idx[qPi].
[0593] In addition, the present embodiment proposes a scheme for signaling a flag indicating whether a default table is used for chroma quantization derivation or a chroma QP mapping table derived based on signaled information is used. The flag can be signaled via a high level syntax such as a sequence parameter set (SPS) or a picture parameter set (PPS). The flags signaled via a high level syntax are as follows:
[0594] [Table 65]
[0595] For example, the syntax element Qp C _data_default_flag indicates whether a user-defined mode is used for the derivation of the quantization parameters. For example, a Qp of 0 C _data_default_flag indicates that a user-defined mode is used for derivation of the quantization parameters, i.e., a Qp of 0 C _data_default_flag is the chroma quantization parameter data Qp C _data() is used. C When _data_default_flag is 0, the chroma quantization parameter data Qp C_data() can be signaled. For example, a Qp of 1 C _data_default_flag indicates that a default table is used to derive the quantization parameter. The default table is as shown in Table 7 above. Qp C If _data_default_flag is not present, the Qp C _data_default_flag is considered to be 1.
[0596] For example, if the process of deriving the quantization parameter according to this embodiment is written in a standard format, it can be shown as in the following table.
[0597] [Table 66-1]
[0598] [Table 66-2]
[0599] [Table 66-3]
[0600] [Table 66-4]
[0601] [Table 66-5]
[0602] Referring to Table 66 above, if ChromaArrayType is 1 and Qp C If _data_default_flag indicates negation (FALSE) (i.e., for example, Qp C _data_default_flag is 0), variable qP Cb , qPCr and qP CbCr can be derived based on user-defined information signaled as proposed in this embodiment. Also, for example, ChromaArrayType is 1 and Qp C If _data_default_flag is TRUE (i.e., for example, Qp C _data_default_flag is 1), variable qP Cb , qP Cr and qP CbCr are qPi Cb , qPi Cr , qPi CbCr can be derived by a default table based on the same index qPi as
[0603] In addition, for example, when a separate user-defined table is used for each chroma component proposed in this embodiment, the chroma quantization parameter data Qp C _data() can be signaled as shown in the following table.
[0604] [Table 67]
[0605] For example, the syntax element is_separate_chroma_table indicates whether separate chroma quantization table related parameters are signaled for the Cb component and the Cr component. That is, for example, the syntax element is_separate_chroma_table may indicate whether two separate chroma quantization parameter mapping tables are used for the Cb component and the Cr component. For example, the syntax element is_separate_chroma_table may indicate whether separate luma-chroma quantization parameter mapping tables are used for each of the Cb residual (Cb residual) and the Cr residual (Cr residual). For example, is_separate_chroma_table of 1 indicates that separate chroma quantization parameter mapping tables are signaled for the Cb component and the Cr component, and is_separate_chroma_table of 0 indicates that one chroma quantization parameter mapping table is used for the Cb component, the Cr component, and the joint CbCr component. For example, if the value of is_separate_chroma_table is 1, qPi_min_idx_minus1[i], qPi_delta_max_Idx[i], and Qp C _qPi_flag[i][j] and qPi_min_idx_minus1[i], qPi_delta_max_Idx[i] and Qp for the Cr component C For example, when the value of is_separate_chroma_table is 0, qPi_min_idx_minus1[i], qPi_delta_max_Idx[i], and Qp C _qPi_flag[i][j] can be signaled.
[0606] Also, for example, the value of syntax element qPi_min_idx_minus1[i] plus 1 indicates the minimum qPi index used for chroma quantization. The value of qPi_min_idx can range from 1 to 69. The variable qPi_min_Idx[i] is set equal to the value of qPi_min_idx_minus1[i] plus 1.
[0607] For example, the syntax element qPi_delta_max_idx is the sum of qPi_min_Idx[i] and chroma Qp C It indicates the delta value between the maximum qPi indices used in the derivation. The value of qPiMaxIdx[i] is greater than or equal to qPi_min_Idx[i]. The value of qPi_delta_max_idx can be in the range of 0 to 69. For example, Qp C The maximum index qPiMaxIdx[i] used in the derivation can be derived as follows:
[0608]
number
[0609] The value of qPiMaxIdx[i] is greater than or equal to qPi_min_idx_minus1[i].
[0610] Also, for example, the syntax element Qp C _qPi_flag[i][j] is the jth Qp of the i-th chroma component C Indicates whether the value is incremented by 1. That is, for example, the syntax element Qp C _qPi_flag[i][j] is the jth Qp of the i-th chroma component C The value is the (j-1)th Qp C For example, a QpC_qPi_flag[j] of 1 indicates whether the jth QpC_qPi_flag[j] of the i-th chroma component is increased by 1. C A QpC_qPi_flag[j] of 0 indicates that the jth QpC_qPi_flag[j] of the i-th chroma component is CIndicates that the value does not increase.
[0611] For example, the variable Qp C Idx[i][qPi] can be derived as shown in the following table. Here, the said qPi can be from 0 to 69.
[0612]
Table 68
[0613] Referring to Table 68, when the value of is_separate_chroma_table is 1, the 0th (i = 0) chroma quantization parameter data and the 1st (i = 1) chroma quantization parameter data can be signaled. Here, for example, the 0th (i = 0) chroma quantization parameter data is the chroma quantization parameter data for deriving the chroma quantization parameter mapping table for the Cb component, and the 1st (i = 0) chroma quantization parameter data can be the chroma quantization parameter data for deriving the chroma quantization parameter mapping table for the Cr component.
[0614] Also, referring to Table 68, when the value of is_separate_chroma_table is 0, only the 0th (i = 0) chroma quantization parameter data can be signaled. Here, for example, the 0th (i = 0) chroma quantization parameter data can be the chroma quantization parameter data for deriving the chroma quantization parameter mapping tables for the Cb component, the Cr component, and the joint CbCr component. That is, one chroma quantization parameter mapping table is used for the chroma components.
[0615] Also, referring to Table 68, Qp C Idx[i][qPi] is derived as follows.
[0616] When -qPi < qPi_min_Idx[i], Qp CIdx[i][qPi] is set equal to qPi.
[0617] - If qPi = qPi_min_Idx[i] · · · qPiMaxIdx[i], then Qp C Idx[qPi] is Qp C _qPi_flag[i][qPi]+Qp C It is set to Idx[i][qPi-1].
[0618] -If qPi>qPiMaxIdx, then Qp C Idx[i][qPi] is qPi-(qPiMaxIdx[i]-Qp C The Idx[i][qPiMaxIdx] is set to
[0619] Then, the Qp C The value of Qp C It can be derived as Idx[i][qPi].
[0620] In addition, the present embodiment proposes a scheme for signaling a flag indicating whether a default table is used for chroma quantization derivation or information signaled for chroma quantization derivation is used. The flag can be signaled via a high level syntax such as a sequence parameter set (SPS) or a picture parameter set (PPS). The flags signaled via a high level syntax are as follows:
[0621] [Table 69]
[0622] For example, the syntax element Qp C _data_default_flag indicates whether a user-defined mode is used for the derivation of the quantization parameters. For example, a Qp of 0 C_data_default_flag indicates that a user-defined mode is used for derivation of the quantization parameters, i.e., a Qp of 0 C _data_default_flag is the chroma quantization parameter data Qp C _data() is used. C When _data_default_flag is 0, the chroma quantization parameter data Qp C _data() can be signaled. For example, a Qp of 1 C _data_default_flag indicates that a default table is used to derive the quantization parameter. The default table is as shown in Table 7 above. Qp C If _data_default_flag is not present, the Qp C _data_default_flag is considered to be 1.
[0623] For example, if the process of deriving the quantization parameter according to this embodiment is written in a standard format, it can be shown as in the following table.
[0624] [Table 70-1]
[0625] [Table 70-2]
[0626] [Table 70-3]
[0627] [Table 70-4]
[0628] [Table 70-5]
[0629] Referring to Table 70 above, if ChromaArrayType is 1 and Qp C If _data_default_flag indicates negation (FALSE) (i.e., for example, Qp C _data_default_flag is 0), variable qP Cb , qP Cr and qP CbCr can be derived based on user-defined information signaled as proposed in this embodiment. Also, for example, ChromaArrayType is 1 and Qp C If _data_default_flag is TRUE (i.e., for example, Qp C _data_default_flag is 1), variable qP Cb , qP Cr and qP CbCr are qPi Cb , qPi Cr and qPi CbCr can be derived by a default table based on the same index qPi as
[0630] Fig. 10 is a schematic diagram of an image encoding method by an encoding device according to the present document. The method disclosed in Fig. 10 is performed by the encoding device disclosed in Fig. 2. Specifically, for example, S1000 to S1010 in Fig. 10 are performed by an entropy encoding unit of the encoding device. Although not shown, a process of deriving a predicted sample for a chroma component is performed by a prediction unit of the encoding device, and a process of generating a reconstructed sample and a reconstructed picture based on a residual sample and a predicted sample for a chroma component is performed by an adder of the encoding device.
[0631] The encoding device encodes image information (S1000).
[0632] The encoding device may encode the image information. For example, the image information may include prediction information for a chroma component, residual information for the chroma component, chroma quantization parameter data for the chroma component, and / or a flag indicating whether a chroma quantization parameter table is applied to the chroma component. The chroma components may include a Cb component, a Cr component, and / or a joint CbCr component.
[0633] For example, the encoding device derives prediction samples for the chroma components based on a prediction mode, i.e., the encoding device derives prediction samples of the current block for the chroma components based on a prediction mode, in which various prediction methods disclosed in this document, such as inter prediction or intra prediction, are applied.
[0634] For example, the encoding apparatus may determine whether to perform inter prediction or intra prediction on the current block for the chroma components, and may determine a specific inter prediction mode or a specific intra prediction mode based on the RD cost. Depending on the determined mode, the encoding apparatus may derive a prediction sample for the current block.
[0635] Then, for example, the encoding device may generate and encode prediction information for the current block, the prediction information including prediction mode information indicating a prediction mode of the current block for the chroma components, and the image information including the prediction information.
[0636] Also, for example, the encoding apparatus may derive residual samples for the chroma components based on the predicted samples, for example, by subtracting original samples of a current block for the chroma components in a current picture from predicted samples.
[0637] Then, for example, the encoding apparatus encodes residual information for the residual sample. For example, the encoding apparatus may derive a transform coefficient based on the residual sample, and generate the residual information based on the transform coefficient. For example, the encoding apparatus may quantize the residual sample based on a chroma quantization parameter to derive a quantized residual sample, derive a transform coefficient based on the quantized residual sample, and generate and encode the residual information based on the transform coefficient. Alternatively, for example, the encoding apparatus may quantize the residual sample based on a chroma quantization parameter to derive a quantized residual sample, transform the quantized residual sample to derive a transform coefficient, and generate and encode the residual information based on the transform coefficient.
[0638] For example, the residual information may include syntax elements for transform coefficients of a current chroma block, 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.
[0639] Also, for example, the encoding device may generate and encode a flag indicating whether one chroma quantization parameter table is applied to the chroma component. The encoding device may determine whether one chroma quantization parameter table is applied to the chroma component, and may generate and encode the flag.
[0640] For example, the encoding apparatus may generate and encode a flag indicating whether one chroma quantization parameter table is applied to the chroma component based on a chroma type. Here, the chroma type may mean the above-mentioned ChromaArrayType. For example, if the value of the chroma type is not 0, the encoding apparatus may generate a flag indicating whether one chroma quantization parameter table is applied to the chroma component. For example, if the value of the chroma type is 1, the encoding apparatus may generate a flag indicating whether one chroma quantization parameter table is applied to the chroma component. Here, if the value of the chroma type is 0, the chroma type may be a Monochrome format, if the value of the chroma type is 1, the chroma type may be a 4:2:0 format, if the value of the chroma type is 2, the chroma type may be a 4:2:2 format, and if the value of the chroma type is 3, the chroma type may be a 4:4:4 format. For example, the syntax element for the flag may be the qp_luma_to_chroma_joint_map_flag flag, sps_separate_qpc_table_flag, or is_separate_chroma_table described above.
[0641] For example, when the value of the flag is 1, the flag may indicate that one chroma quantization parameter table is applied to the chroma component. Also, when the value of the flag is 0, the flag may indicate that multiple chroma quantization parameter tables are applied to the chroma component. That is, when the value of the flag is 0, the flag may indicate that individual chroma quantization parameter tables are applied to each of the chroma components.
[0642] Also, for example, the flag may be signaled via a high level syntax, for example, a sequence parameter set (SPS), a picture parameter set (PPS), a slice header, or an adaptation parameter set (APS), etc.
[0643] Also, for example, the encoding device can generate and encode chroma quantization parameter data for the chroma components based on the flag.
[0644] For example, when the value of the flag is 0 (i.e., when it is determined that multiple chroma quantization parameter tables are applied to the chroma components), the chroma quantization parameter data may include first chroma quantization parameter data for a Cb component and second chroma quantization parameter data for a Cr component. Or, for example, when the value of the flag is 0 (i.e., when it is determined that multiple chroma quantization parameter tables are applied to the chroma components), the chroma quantization parameter data may include first chroma quantization parameter data for a Cb component, second chroma quantization parameter data for a Cr component, and / or third chroma quantization parameter data for a joint CbCr component.
[0645] Meanwhile, for example, the encoding apparatus may generate and encode a joint CbCr availability flag indicating whether or not third chroma quantization parameter data for the joint CbCr component exists. That is, for example, the encoding apparatus may determine whether or not third chroma quantization parameter data for the joint CbCr component exists, and may generate and encode the joint CbCr availability flag. Also, for example, the encoding apparatus may generate and encode a joint CbCr availability flag indicating whether or not third chroma quantization parameter data for the joint CbCr component exists based on a chroma type. Here, the chroma type may mean the above-mentioned ChromaArrayType. For example, if the value of the chroma type is not 0, the encoding apparatus may generate a joint CbCr availability flag indicating whether or not third chroma quantization parameter data for the joint CbCr component exists. For example, if the value of the chroma type is 1, the encoding apparatus may generate a joint CbCr availability flag indicating whether or not third chroma quantization parameter data for the joint CbCr component exists. Also, for example, the joint CbCr availability flag may be signaled via a high level syntax, for example, via a sequence parameter set (SPS), a picture parameter set (PPS), a slice header, or an adaptation parameter set (APS), etc.
[0646] In this case, when the value of the flag is 0 (i.e., it is determined that multiple chroma quantization parameter tables are applied to the chroma components) and the value of the joint CbCr available flag is 1 (i.e., it is determined that a third chroma quantization parameter data exists for the joint CbCr component), the chroma quantization parameter data may include a first chroma quantization parameter data for a Cb component, a second chroma quantization parameter data for a Cr component, and a third chroma quantization parameter data for the joint CbCr component.
[0647] Also, for example, the first chroma quantization parameter data may include a syntax element representing a start index of the first chroma quantization parameter table, a syntax element representing a difference between the start index and a last index of the first chroma quantization parameter table, and / or a syntax element for a chroma quantization parameter value of an index of the first chroma quantization parameter table. That is, for example, the first chroma quantization parameter data may include a syntax element representing a start index of the first chroma quantization parameter table, a syntax element representing a difference between the start index and a last index of the first chroma quantization parameter table, and / or a syntax element for a chroma quantization parameter value of each index of the first chroma quantization parameter table. The syntax element representing the start index may be the above-mentioned qPi_min_idx, qPi_min_idx_minus1[i], or qPi_cb_min_idx_minus1. Also, the syntax element representing the difference between the start index and the last index may be qPi_delta_max_idx, qPi_cb_delta_max_idx_minus1, or qPi_delta_max_idx[i]. Also, the syntax element for the quantization parameter value of the index may be the above-mentioned QpC_qPi_val[i], QpC_cb_qPi_flag[i], or QpC_qPi_flag[i][j]. Also, for example, the first chroma quantization parameter data may be signaled via a high level syntax.For example, the first chroma quantization parameter data may be signaled via a sequence parameter set (SPS), a picture parameter set (PPS), a slice header, or an adaptation parameter set (APS), or the like.
[0648] Also, for example, the second chroma quantization parameter data may include a syntax element representing a start index of the second chroma quantization parameter table, a syntax element representing a difference between the start index and a last index of the second chroma quantization parameter table, and / or a syntax element for a chroma quantization parameter value of an index of the second chroma quantization parameter table. That is, for example, the second chroma quantization parameter data may include a syntax element representing a start index of the second chroma quantization parameter table, a syntax element representing a difference between the start index and a last index of the second chroma quantization parameter table, and / or a syntax element for a chroma quantization parameter value of each index of the second chroma quantization parameter table. The syntax element representing the start index may be the above-mentioned qPi_min_idx, qPi_min_idx_minus1[i], or qPi_cr_min_idx_minus1. Also, the syntax element representing the difference between the start index and the last index may be qPi_delta_max_idx, qPi_cr_delta_max_idx_minus1, or qPi_delta_max_idx[i]. Also, the syntax element for the quantization parameter value of the index may be the above-mentioned QpC_qPi_val[i], QpC_cr_qPi_flag[i], or QpC_qPi_flag[i][j]. Also, for example, the second chroma quantization parameter data may be signaled via a high level syntax.For example, the second chroma quantization parameter data may be signaled via a sequence parameter set (SPS), a picture parameter set (PPS), a slice header, or an adaptation parameter set (APS), or the like.
[0649] Also, for example, the third chroma quantization parameter data may include a syntax element representing a start index of the third chroma quantization parameter table, a syntax element representing a difference between the start index and a last index of the third chroma quantization parameter table, and / or a syntax element for a chroma quantization parameter value of an index of the third chroma quantization parameter table. That is, for example, the third chroma quantization parameter data may include a syntax element representing a start index of the third chroma quantization parameter table, a syntax element representing a difference between the start index and a last index of the third chroma quantization parameter table, and / or a syntax element for a chroma quantization parameter value of each index of the third chroma quantization parameter table. The syntax element representing the start index may be the above-mentioned qPi_min_idx or qPi_min_idx_minus1[i]. Also, the syntax element representing the difference between the start index and the last index may be qPi_delta_max_idx or qPi_delta_max_idx[i]. Also, the syntax element for the quantization parameter value of the index may be the above-mentioned QpC_qPi_val[i] or QpC_qPi_flag[i][j]. Also, for example, the third chroma quantization parameter data may be signaled via a high level syntax. For example, the third chroma quantization parameter data may be signaled via a sequence parameter set (SPS), a picture parameter set (PPS), a slice header, or an adaptation parameter set (APS), etc.
[0650] Also, for example, when the value of the flag is 1 (i.e., when it is determined that one chroma quantization parameter table is applied to the chroma component), the chroma quantization parameter data may include chroma quantization parameter data for a Cb component, a Cr component, and a joint CbCr component.
[0651] The encoding device generates a bitstream including the image information (S1010).
[0652] For example, the encoding apparatus may output a bitstream including image information including prediction information for a chroma component, residual information for the chroma component, chroma quantization parameter data for the chroma component, and / or a flag indicating whether one chroma quantization parameter table is applied to the chroma component. The bitstream may include prediction information, residual information, the quantization parameter data, and / or the flag. Also, the image information may further include the joint CbCr availability flag.
[0653] The encoding device encodes image information and outputs it in the form of a bit stream.
[0654] Meanwhile, the bitstream including the image information can be transmitted to the decoding device via a network or a (digital) storage medium, where the network can include a broadcast network and / or a communication network, and the digital storage medium can include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, SSD, etc.
[0655] Fig. 11 is a schematic diagram of an encoding device that performs the image encoding method according to the present document. The method disclosed in Fig. 10 is performed by the encoding device disclosed in Fig. 11. Specifically, for example, an entropy encoding unit of the encoding device in Fig. 11 can perform S1000 to S1010. Although not shown, a process of deriving a predicted sample for a chroma component is performed by a prediction unit of the encoding device, and a process of generating a reconstructed sample and a reconstructed picture based on a residual sample and a predicted sample for a chroma component is performed by an adder of the encoding device.
[0656] Figure 12 is a schematic diagram illustrating an image decoding method by a decoding device according to the present document. The method disclosed in Figure 12 can be performed by the decoding device disclosed in Figure 3. Specifically, for example, S1200 in Figure 12 is performed by an entropy decoding unit of the decoding device, and S1210 in Figure 12 is performed by a residual processing unit of the decoding device.
[0657] The decoding device obtains image information (S1200). The decoding device can obtain the image information via a bitstream.
[0658] For example, the image information may include information regarding chroma quantization parameters.
[0659] For example, the decoding device may obtain a flag indicating whether one chroma quantization parameter table is applied to a chroma component. That is, for example, the image information may include a flag indicating whether one chroma quantization parameter table is applied. For example, the decoding device may obtain a flag indicating whether one chroma quantization parameter table is applied based on a chroma type. Here, the chroma type may mean the above-mentioned ChromaArrayType. For example, if the value of the chroma type is not 0, the decoding device may obtain a flag indicating whether one chroma quantization parameter table is applied. For example, if the value of the chroma type is 1, the decoding device may obtain a flag indicating whether one chroma quantization parameter table is applied. Here, if the value of the chroma type is 0, the chroma type may be a Monochrome format, if the value of the chroma type is 1, the chroma type may be a 4:2:0 format, if the value of the chroma type is 2, the chroma type may be a 4:2:2 format, and if the value of the chroma type is 3, the chroma type may be a 4:4:4 format. Also, for example, the chroma components may include a Cb component, a Cr component, and / or a joint CbCr component. For example, a syntax element for the flag may be the above-mentioned qp_luma_to_chroma_joint_map_flag flag, sps_separate_qpc_table_flag, or is_separate_chroma_table.
[0660] For example, when the value of the flag is 1, the flag may indicate that one chroma quantization parameter table is applied to the chroma component. Also, when the value of the flag is 0, the flag may indicate that multiple chroma quantization parameter tables are applied to the chroma component. That is, when the value of the flag is 0, the flag may indicate that individual chroma quantization parameter tables are applied to each of the chroma components.
[0661] Also, for example, the flag may be signaled via a high level syntax, for example, a sequence parameter set (SPS), a picture parameter set (PPS), a slice header, or an adaptation parameter set (APS), etc.
[0662] Also, the decoding device can obtain the chroma quantization parameter data based on the flag. For example, the image information can include the chroma quantization parameter data.
[0663] For example, when the value of the flag is 0 (i.e., when the flag indicates that multiple chroma quantization parameter tables are applied to the chroma components), the chroma quantization parameter data may include a first chroma quantization parameter data for a Cb component and a second chroma quantization parameter data for a Cr component. Or, for example, when the value of the flag is 0 (i.e., when the flag indicates that multiple chroma quantization parameter tables are applied to the chroma components), the chroma quantization parameter data may include a first chroma quantization parameter data for a Cb component, a second chroma quantization parameter data for a Cr component, and / or a third chroma quantization parameter data for a joint CbCr component.
[0664] Meanwhile, for example, the decoding apparatus may obtain a joint CbCr availability flag indicating whether or not third chroma quantization parameter data for the joint CbCr component exists. For example, the image information may include a joint CbCr availability flag indicating whether or not third chroma quantization parameter data for the joint CbCr component exists. Also, for example, the decoding apparatus may obtain a joint CbCr availability flag indicating whether or not third chroma quantization parameter data for the joint CbCr component exists based on a chroma type. Here, the chroma type may mean the above-mentioned ChromaArrayType. For example, if the value of the chroma type is not 0, the decoding apparatus may obtain a joint CbCr availability flag indicating whether or not third chroma quantization parameter data for the joint CbCr component exists. For example, if the value of the chroma type is 1, the decoding apparatus may obtain a joint CbCr availability flag indicating whether or not third chroma quantization parameter data for the joint CbCr component exists. Also, for example, the joint CbCr availability flag may be signaled via a high level syntax. For example, the joint CbCr availability flag may be signaled via a sequence parameter set (SPS), a picture parameter set (PPS), a slice header, or an adaptation parameter set (APS), etc.
[0665] In this case, when the value of the flag is 0 (i.e., the flag indicates that multiple chroma quantization parameter tables are applied to the chroma component) and the value of the joint CbCr available flag is 1 (i.e., the joint CbCr available flag indicates that a third chroma quantization parameter data for the joint CbCr component exists), the chroma quantization parameter data may include a first chroma quantization parameter data for the Cb component, a second chroma quantization parameter data for the Cr component, and a third chroma quantization parameter data for the joint CbCr component.
[0666] Also, for example, the first chroma quantization parameter data may include a syntax element representing a start index of the first chroma quantization parameter table, a syntax element representing a difference between the start index and a last index of the first chroma quantization parameter table, and / or a syntax element for a chroma quantization parameter value of an index of the first chroma quantization parameter table. That is, for example, the first chroma quantization parameter data may include a syntax element representing a start index of the first chroma quantization parameter table, a syntax element representing a difference between the start index and a last index of the first chroma quantization parameter table, and / or a syntax element for a chroma quantization parameter value of each index of the first chroma quantization parameter table. The syntax element representing the start index may be the above-mentioned qPi_min_idx, qPi_min_idx_minus1[i], or qPi_cb_min_idx_minus1. Also, the syntax element representing the difference between the start index and the last index may be qPi_delta_max_idx, qPi_cb_delta_max_idx_minus1, or qPi_delta_max_idx[i]. Also, the syntax element for the quantization parameter value of the index may be the above-mentioned QpC_qPi_val[i], QpC_cb_qPi_flag[i], or QpC_qPi_flag[i][j]. Also, for example, the first chroma quantization parameter data may be signaled via a high level syntax.For example, the first chroma quantization parameter data may be signaled via a sequence parameter set (SPS), a picture parameter set (PPS), a slice header, or an adaptation parameter set (APS), or the like.
[0667] Also, for example, the second chroma quantization parameter data may include a syntax element representing a start index of the second chroma quantization parameter table, a syntax element representing a difference between the start index and a last index of the second chroma quantization parameter table, and / or a syntax element for a chroma quantization parameter value of an index of the second chroma quantization parameter table. That is, for example, the second chroma quantization parameter data may include a syntax element representing a start index of the second chroma quantization parameter table, a syntax element representing a difference between the start index and a last index of the second chroma quantization parameter table, and / or a syntax element for a chroma quantization parameter value of each index of the second chroma quantization parameter table. The syntax element representing the start index may be the above-mentioned qPi_min_idx, qPi_min_idx_minus1[i], or qPi_cr_min_idx_minus1. Also, the syntax element representing the difference between the start index and the last index may be qPi_delta_max_idx, qPi_cr_delta_max_idx_minus1, or qPi_delta_max_idx[i]. Also, the syntax element for the quantization parameter value of the index may be the above-mentioned QpC_qPi_val[i], QpC_cr_qPi_flag[i], or QpC_qPi_flag[i][j]. Also, for example, the second chroma quantization parameter data may be signaled via a high level syntax.For example, the second chroma quantization parameter data may be signaled via a sequence parameter set (SPS), a picture parameter set (PPS), a slice header, or an adaptation parameter set (APS), or the like.
[0668] Also, for example, the third chroma quantization parameter data may include a syntax element representing a start index of the third chroma quantization parameter table, a syntax element representing a difference between the start index and a last index of the third chroma quantization parameter table, and / or a syntax element for a chroma quantization parameter value of an index of the third chroma quantization parameter table. That is, for example, the third chroma quantization parameter data may include a syntax element representing a start index of the third chroma quantization parameter table, a syntax element representing a difference between the start index and a last index of the third chroma quantization parameter table, and / or a syntax element for a chroma quantization parameter value of each index of the third chroma quantization parameter table. The syntax element representing the start index may be the above-mentioned qPi_min_idx or qPi_min_idx_minus1[i]. Also, the syntax element representing the difference between the start index and the last index may be qPi_delta_max_idx or qPi_delta_max_idx[i]. Also, the syntax element for the quantization parameter value of the index may be the above-mentioned QpC_qPi_val[i] or QpC_qPi_flag[i][j]. Also, for example, the third chroma quantization parameter data may be signaled via a high level syntax. For example, the third chroma quantization parameter data may be signaled via a sequence parameter set (SPS), a picture parameter set (PPS), a slice header, or an adaptation parameter set (APS), etc.
[0669] Also, for example, when the value of the flag is 1 (i.e., when the flag indicates that one chroma quantization parameter table is applied to the chroma component), the chroma quantization parameter data may include chroma quantization parameter data for a Cb component, a Cr component, and a joint CbCr component.
[0670] Also, for example, the image information may include prediction information and / or residual information for the chroma components. For example, the image information may include prediction information for the chroma components, and the prediction information may include the prediction mode information. The prediction mode information may indicate whether inter prediction or intra prediction is applied to the current block for the chroma components. Also, for example, the residual information may include syntax elements for transform coefficients of the current block for the chroma components. 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.
[0671] The decoding device generates a reconstructed picture based on the image information (S1210).
[0672] For example, the decoding device can derive the chroma quantization parameter table based on the chroma quantization parameter data, can derive chroma quantization parameters for the chroma components based on the chroma quantization parameter table, can derive residual samples for the chroma components based on the chroma quantization parameters, and can generate a reconstructed picture based on the residual samples.
[0673] Specifically, for example, a decoding device may derive the chroma quantization parameter table based on the chroma 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.
[0674] For example, as described above, the chroma quantization parameter table may be derived based on a syntax element representing the start index of the chroma quantization parameter table, a syntax element representing a difference between the start index and the last index of the chroma quantization parameter table, and / or a syntax element for a quantization parameter value of an index of the chroma quantization parameter table, i.e., for example, a chroma quantization parameter table for a chroma component may be derived based on the quantization parameter data.
[0675] For example, when the value of the flag is 0 (i.e., when the flag indicates that multiple chroma quantization parameter tables are applied to the chroma components), the first chroma quantization parameter table for the chroma Cb component may be derived based on the first chroma quantization parameter data for the Cb component. Also, for example, when the value of the flag is 0, the second chroma quantization parameter table for the chroma Cr component may be derived based on the second chroma quantization parameter data for the Cr component. Also, for example, when the value of the flag is 0, the third chroma quantization parameter table for the chroma joint CbCr component may be derived based on the third chroma quantization parameter data for the joint CbCr component.
[0676] Also, for example, when the value of the flag is 1 (i.e., when the flag indicates that one chroma quantization parameter table is applied to the chroma component), the first chroma quantization parameter table for the chroma component may be derived based on the chroma quantization parameter data for the chroma component. The chroma components may include a Cb component, a Cr component, and a joint CbCr component.
[0677] Also, for example, the decoding device can derive chroma quantization parameters for the chroma components based on the chroma quantization parameter table.
[0678] For example, when the value of the flag is 0, a first chroma quantization parameter for the Cb component may be derived based on the first chroma quantization parameter table, and a second chroma quantization parameter for the Cr component may be derived based on the second chroma quantization parameter table. Also, for example, when the value of the flag is 0, a first chroma quantization parameter for the Cb component may be derived based on the first chroma quantization parameter table, a second chroma quantization parameter for the Cr component may be derived based on the second chroma quantization parameter table, and a third chroma quantization parameter for the joint CbCr component may be derived based on the third chroma quantization parameter table. Here, the quantization parameter for the Cb component is the above-mentioned QP' Cb and the quantization parameter for the Cr component can be expressed as QP′ Cr and the quantization parameter for the joint CbCr components can be represented as QP′ CbCr can be represented as:
[0679] For example, an index for a chroma component (Cb component, Cr component, or joint CbCr component) may be derived based on a quantization parameter for a luma component, and a chroma quantization parameter for the chroma component may be derived based on a chroma quantization parameter for the index in a chroma quantization parameter table for the chroma component. That is, for example, a chroma quantization parameter for the chroma component may be derived based on a chroma quantization parameter for the same index as the quantization parameter for the luma component in the chroma quantization parameter table.
[0680] Also, for example, a chroma quantization parameter (e.g., QP cb , Q.P. cr , or QP cbCr ) to obtain the chroma quantization parameter (e.g., QP′ Cb , QP' Cr , or QP' CbCr ) may be derived. The offset may be derived based on a syntax element representing an offset for derivation of a quantization parameter for the chroma component.
[0681] Alternatively, for example, if the value of the flag is 1, a chroma quantization parameter for the chroma component may be derived based on a chroma quantization parameter table for the chroma component. That is, for example, if the value of the flag is 1, a chroma quantization parameter for the chroma component may be derived based on one chroma quantization parameter table for the chroma component. Thus, the chroma quantization parameters may be applied to the chroma components in the same manner.
[0682] For example, indices for chroma components (Cb component, Cr component, and joint CbCr component) may be derived based on a quantization parameter for a luma component, and chroma quantization parameters for the chroma components may be derived based on chroma quantization parameters for the indexes in a chroma quantization parameter table for the chroma components. That is, for example, chroma quantization parameters for the chroma components may be derived based on chroma quantization parameters for the same indexes as the quantization parameters for the luma components in the chroma quantization parameter table.
[0683] Also, for example, the chroma quantization parameter for the chroma component may be derived by adding an offset to a chroma quantization parameter for the index of the chroma quantization parameter table for the chroma component. The offset may be derived based on a syntax element indicating an offset for derivation of a quantization parameter for the chroma component.
[0684] Thereafter, for example, a decoding device can derive residual samples for the chroma components based on the chroma quantization parameters.
[0685] For example, the decoding device may derive transform coefficients for chroma components based on received residual information, where the image information includes the residual information. Or, for example, the decoding device may derive transform coefficients based on the received residual information, and inversely transform the transform coefficients to derive inverse transformed transform coefficients, where the transform coefficients include transform coefficients for the Cb component, transform coefficients for the Cr component, and / or transform coefficients for the joint CbCr component.
[0686] A decoding device can then dequantize the transform coefficients based on the chroma quantization parameter to derive residual samples.
[0687] For example, when the value of the flag is 0, the decoding device can inverse quantize the transform coefficients for the Cb component based on a first chroma quantization parameter for the Cb component to derive a residual sample for the Cb component, and can inverse quantize the transform coefficients for the Cr component based on a second chroma quantization parameter for the Cr component to derive a residual for the Cr component. Alternatively, for example, when the value of the flag is 0, the decoding device can inverse quantize the transform coefficients for the Cb component based on a first chroma quantization parameter for the Cb component to derive a residual sample for the Cb component, inverse quantize the transform coefficients for the Cr component based on a second chroma quantization parameter for the Cr component to derive a residual for the Cr component, and inverse quantize the transform coefficients for the joint CbCr component based on a third chroma quantization parameter for the joint CbCr component to derive a residual sample for the joint CbCr component. Alternatively, for example, if the value of the flag is 1, the decoding device may inverse quantize the transform coefficients for the chroma components based on a chroma quantization parameter to derive residual samples for the chroma components.
[0688] Alternatively, when the value of the flag is 0, the decoding device may inverse quantize the inverse transformed transform coefficients for the Cb component based on a first chroma quantization parameter for the Cb component to derive a residual sample for the Cb component, and inverse quantize the inverse transformed transform coefficients for the Cr component based on a second chroma quantization parameter for the Cr component to derive a residual sample for the Cr component. Alternatively, for example, when the value of the flag is 0, the decoding device may inverse quantize the inverse transformed transform coefficients for the Cb component based on a first chroma quantization parameter for the Cb component to derive a residual sample for the Cb component, inverse quantize the inverse transformed transform coefficients for the Cr component based on a second chroma quantization parameter for the Cr component to derive a residual sample for the Cr component, and inverse quantize the inverse transformed transform coefficients for the joint CbCr component based on a third chroma quantization parameter for the joint CbCr component to derive a residual sample for the joint CbCr component. Alternatively, for example, if the value of the flag is 1, the decoding device may inverse quantize the inverse transformed transform coefficients for the chroma components based on a chroma quantization parameter to derive residual samples for the chroma components.
[0689] A decoding device, for example, can then generate a reconstructed picture based on the residual samples.
[0690] Meanwhile, for example, the decoding device may derive a prediction sample for the chroma component based on the received prediction information. The image information includes the prediction information. The decoding device may determine whether inter prediction or intra prediction is applied to the chroma component based on the prediction information, and perform prediction based on the determination. That is, for example, the decoding device may determine whether inter prediction or intra prediction is applied to a current block for the chroma component based on the prediction information, and perform prediction based on the determination.
[0691] For example, the decoding device may derive a prediction mode to be applied to the current block for the chroma components based on the prediction information, and derive a prediction sample of the current block based on the prediction mode. For example, when inter prediction is applied to the current block, the decoding device may derive motion information of the current block based on prediction information included in the image information, and derive the prediction sample of the current block based on the motion information. Also, for example, when intra prediction is applied to the current block, the decoding device may derive a reference sample based on neighboring samples of the current block, and derive the prediction sample in the current block based on the reference sample and the intra prediction mode of the current block. The reference sample includes an upper reference sample and a left reference sample of the current block. For example, if the size of the current block is N×N and the x component and y component of the top-left sample position of the current block are 0 and 0, the left reference samples may be p[-1][0] to p[-1][2N-1], and the upper reference samples may be p[0][-1] to p[2N-1][-1].
[0692] Then, for example, the decoding device can generate a reconstructed picture based on the prediction samples and the residual samples. For example, the decoding device can generate a reconstructed sample and / or a reconstructed picture by adding the prediction samples and the residual samples.
[0693] As mentioned above, in-loop filtering procedures such as deblocking filtering, SAO and / or ALF procedures may then be applied to the reconstructed samples in order to improve the subjective / objective image quality if necessary.
[0694] Fig. 13 is a schematic diagram of a decoding device that performs the image decoding method according to this document. The method disclosed in Fig. 12 is performed by the decoding device disclosed in Fig. 13. Specifically, for example, the entropy decoding unit of the decoding device in Fig. 13 can perform S1200 in Fig. 12, and the residual processing unit of the decoding device in Fig. 13 can perform S1210 in Fig. 12.
[0695] According to the above-mentioned document, a chroma quantization parameter table for a chroma component can be determined based on a flag indicating whether the same chroma quantization parameter table is used to derive a quantization parameter for the chroma component, and coding can be performed based on a quantization parameter according to image characteristics to improve coding efficiency.
[0696] In addition, according to this document, a chroma quantization parameter table for a chroma component can be determined based on chroma quantization data signaled individually or commonly for the chroma component, and coding can be performed based on quantization parameters according to image characteristics to improve coding efficiency.
[0697] In the above-described embodiments, the method is described with reference to a flow chart as a series of steps or blocks, but this document is not limited to the order of steps, and certain steps may occur in a different order or simultaneously with other steps than those described above. Also, those skilled in the art will understand that the steps shown in the flow chart are not exclusive, and other steps may be included, or one or more steps of the flow chart may be deleted without affecting the scope of this document.
[0698] The embodiments described in this document may be implemented and executed on a processor, microprocessor, controller, or chip. For example, the functional units illustrated in the figures may be implemented and executed on a computer, processor, microprocessor, controller, or chip. In this case, information (e.g., information on instructions) or algorithms for implementation may be stored on a digital storage medium.
[0699] In addition, the decoding device and the encoding device to which the embodiment of this document is applied may be included in a multimedia broadcast transmitting / receiving device, a mobile communication terminal, a home cinema video device, a digital cinema video device, a surveillance camera, a video interactive device, a real-time communication device such as video communication, a mobile streaming device, a storage medium, a camcorder, a custom video (VoD) service providing device, an over-the-top video (OTT) device, an internet streaming service providing device, a three-dimensional (3D) video device, an image telephone video device, a transportation terminal (e.g., a vehicle terminal, an airplane terminal, a ship terminal, etc.), and a medical video device, and may be used to process a video signal or a data signal. For example, the over-the-top video (OTT) device may include a game console, a Blu-ray player, an internet-connected TV, a home theater system, a smartphone, a tablet PC, a digital video recorder (DVR), etc.
[0700] In addition, the processing method to which the embodiments of this document are applied may be produced in the form of a program executed by a computer and may be stored in a computer-readable recording medium. Multimedia data having a data structure according to this document may also be stored in a computer-readable recording medium. The computer-readable recording medium includes all types of storage devices and distributed storage devices in which computer-readable data is stored. The computer-readable recording medium may include, for example, a Blu-ray Disc (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. The computer-readable recording medium may also include a medium realized in the form of a carrier wave (e.g., transmission via the Internet). In addition, a bit stream generated by the encoding method may be stored in a computer-readable recording medium or transmitted via a wired or wireless communication network.
[0701] Also, the embodiments of the present document may be implemented in a computer program product by program code, which may be executed by a computer according to the embodiments of the present document. The program code may be stored on a computer readable carrier.
[0702] FIG. 14 exemplarily illustrates a structural diagram of a content streaming system to which the embodiments of this document are applied.
[0703] A content streaming system to which the embodiments of this document are applied can broadly include an encoding server, a streaming server, a web server, a media repository, a user device, and a multimedia input device.
[0704] The encoding server compresses content input from a multimedia input device such as a smartphone, camera, camcorder, etc. into digital data to generate a bitstream and transmits the bitstream to the streaming server. As another example, if a multimedia input device such as a smartphone, camera, camcorder, etc. directly generates a bitstream, the encoding server may be omitted.
[0705] The bitstream may be generated by an encoding method or a bitstream generation method to which an embodiment of this document is applied, and the streaming server may temporarily store the bitstream in the process of transmitting or receiving the bitstream.
[0706] The streaming server transmits multimedia data to a user device based on a user request via a web server, and the web server acts as an intermediary to inform the user of available services. When a user requests a desired service from the web server, the web server transmits the request to the streaming server, and the streaming server transmits multimedia data to the user. In this case, the content streaming system may include a separate control server, and in this case, the control server controls commands / responses between devices in the content streaming system.
[0707] The streaming server may receive content from a media repository and / or an encoding server. For example, when the content is received from the encoding server, the content may be received in real time. In this case, the streaming server may store the bitstream for a certain period of time in order to provide a smooth streaming service.
[0708] Examples of the user devices include mobile phones, smartphones, laptop computers, digital broadcasting terminals, personal digital assistants (PDAs), portable multimedia players (PMPs), navigation systems, slate PCs, tablet PCs, ultrabooks, wearable devices (e.g., smartwatches, smart glass, head mounted displays (HMDs)), digital TVs, desktop computers, digital signage, etc. Each server in the content streaming system can be operated as a distributed server, and in this case, data received by each server can be processed in a distributed manner.
[0709] The claims described in this specification may be combined in various ways. For example, the technical features of the method claims in this specification may be combined and realized as an apparatus, the technical features of the apparatus claims in this specification may be combined and realized as a method, the technical features of the method claims and the technical features of the apparatus claims in this specification may be combined and realized as an apparatus, and the technical features of the method claims and the technical features of the apparatus claims in this specification may be combined and realized as a method.
Claims
1. An image decoding method performed by a decoding device, obtaining image information including prediction information and residual information for a current block; deriving a prediction sample based on the prediction information; deriving transformation coefficients based on the residual information; dequantizing the transform coefficients to derive residual samples; generating a reconstructed picture based on the prediction samples and the residual samples; Including, The step of acquiring image information includes: obtaining a flag indicating whether one chroma quantization parameter table is applied; obtaining at least one chroma quantization parameter table based on the flag; Including, The flag equal to 0 indicates that a first chroma quantization parameter table for a Cb component, a second chroma quantization parameter table for a Cr component, and a third chroma quantization parameter table for a joint CbCr component are signaled.
2. An image encoding method performed by an encoding device, comprising: deriving a predicted sample for the current block; deriving prediction information relating to the prediction samples; deriving a residual sample based on the prediction sample; deriving residual information associated with the residual samples; encoding image information including the prediction information and the residual information; generating a bitstream containing said image information; Including, The step of encoding the image information includes: generating a flag indicating whether one chroma quantization parameter table is applied; generating at least one chroma quantization parameter table based on the flag; encoding the at least one chroma quantization parameter table and the flag; Including, The method for encoding an image, wherein the flag equal to 0 indicates that a first chroma quantization parameter table for a Cb component, a second chroma quantization parameter table for a Cr component, and a third chroma quantization parameter table for a joint CbCr component are signaled.
3. A method for transmitting data for an image, comprising: obtaining a bitstream of image information including a flag and at least one chroma quantization parameter table, the bitstream being generated based on: deriving a prediction sample for a current block, deriving prediction information related to the prediction sample, deriving a residual sample based on the prediction sample, deriving residual information related to the residual sample, and encoding image information including the prediction information and the residual information; transmitting said data including said bitstream of image information including said flag and said at least one chroma quantization parameter table; Including, The flag indicates whether one chroma quantization parameter table is applied or not, the at least one chroma quantization parameter table is generated based on the flag; The data transmission method, wherein the flag equal to 0 indicates that a first chroma quantization parameter table for a Cb component, a second chroma quantization parameter table for a Cr component, and a third chroma quantization parameter table for a joint CbCr component are signaled.