Method and apparatus for decoding chroma quantization parameter data
The image decoding method improves coding efficiency by determining chroma quantization parameters for high-resolution images, addressing the increased costs associated with high-quality image transmission and storage.
Patent Information
- Application Number
- JP2025187098
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2019-06-28
- Filing Date
- 2025-11-06
- Publication Date
- 2026-01-29
AI Technical Summary
The increasing demand for high-resolution, high-quality images leads to higher transmission and storage costs due to the increased amount of information, necessitating more efficient image coding techniques, particularly for chroma components.
An image decoding method that determines a chroma quantization parameter table based on a flag, deriving chroma quantization parameters, prediction samples, and transform coefficients to improve coding efficiency by individually handling Cb and Cr components.
Enhances coding efficiency by allowing the determination of chroma quantization parameters based on image characteristics, reducing transmission and storage costs for high-resolution images.
Smart Images

Figure 2026015383000001_ABST
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 has been increasing in various fields. As the resolution and quality of image data increases, the amount of information or bits to be transmitted increases relatively compared to existing image data. Therefore, when image data is transmitted using a medium such as an existing wired or wireless broadband line or when image data is stored using an existing storage medium, transmission costs and storage costs increase.
[0003] Therefore, highly efficient image compression techniques are required to effectively transmit, store and reproduce high-resolution, high-quality image information. 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 deriving 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 including: acquiring image information including a flag indicating whether one chroma quantization parameter table is applied to a chroma component, prediction information and residual information for the chroma component; acquiring chroma quantization parameter data based on the flag; deriving the chroma quantization parameter table based on the chroma quantization parameter data; deriving chroma quantization parameters for the chroma component based on the chroma quantization parameter table; deriving prediction samples for the chroma component based on the prediction information; deriving transform coefficients for the chroma component based on the residual information; dequantizing the transform coefficients based on the chroma quantization parameters to derive residual samples; and generating a reconstructed picture based on the prediction samples and the residual samples, wherein if the 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.
[0007] Another embodiment of the present document provides a decoding device for decoding an image, the decoding device including: an entropy decoding unit that acquires image information including a flag indicating whether one chroma quantization parameter table is applied to a chroma component, prediction information and residual information for the chroma component, and acquires chroma quantization parameter data based on the flag; a prediction unit that derives prediction samples for the chroma component based on the prediction information; a residual processing unit that derives the chroma quantization parameter table based on the chroma quantization parameter data, derives transform coefficients for the chroma component based on the residual information, and dequantizes the transform coefficients based on the chroma quantization parameters to derive residual samples; and an adder that generates a reconstructed picture based on the prediction samples and the residual samples, wherein when 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.
[0008] According to yet another embodiment of the present document, there is provided a video encoding method performed by an encoding device, the method including the steps of: deriving prediction samples for chroma components based on inter prediction or intra prediction, deriving residual samples for the chroma components based on the prediction samples, generating a flag indicating whether one chroma quantization parameter table is applied to the chroma components, generating chroma quantization parameter data for the chroma components based on the flag, and encoding prediction information for the chroma components, residual information for the chroma components, the chroma quantization parameter data, and the flag, wherein if the 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: a prediction unit that derives prediction samples for chroma components based on inter prediction or intra prediction; a residual processing unit that derives residual samples for the chroma components based on the prediction samples, generates a flag indicating whether one chroma quantization parameter table is applied to the chroma components, and generates chroma quantization parameter data for the chroma components based on the flag; and an entropy encoding unit that encodes prediction information for the chroma components, residual information for the chroma components, the chroma quantization parameter data, and the flag, wherein 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 when the value of the flag is 0. [Effects 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 explanation of the drawings]
[0012] [Figure 1] 1 illustrates schematically an example of a video / image coding system to which embodiments of the present document may be applied. [Figure 2] 1 is a diagram illustrating a schematic configuration of a video / image encoding device to which embodiments of the present document can be applied; [Figure 3] 1 is a diagram illustrating the configuration of a video / image decoding device to which the embodiments of the present document can be applied; [Figure 4] 1 shows an example of an inter-prediction based video / image encoding method. [Figure 5] 1 shows an example of an inter-prediction based video / image decoding method. [Figure 6] 1 illustrates an exemplary inter-prediction procedure. [Figure 7] 1 illustrates a schematic diagram of an image encoding method using an encoding device according to the present document. [Figure 8] 1 shows a schematic diagram of an encoding device for performing the image encoding method according to the present document; [Figure 9] 1 illustrates an image decoding method using a decoding device according to the present document. [Figure 10] 1 shows a schematic diagram of a decoding device for performing the image decoding method according to the present document; [Figure 11] 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 INVENTION
[0013] This document may be modified in various ways and may have various embodiments. Specific embodiments will be illustrated in the drawings and described in detail. However, this is not intended to limit this document to the specific embodiment. Common terms used in this document are used merely to describe specific embodiments and are not intended to limit the technical ideas of this document. A singular expression includes a plural expression unless the context clearly dictates otherwise. In this specification, terms such as "comprise" or "have" are intended to specify the presence of a feature, number, step, operation, component, part, or combination 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 component 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 component is realized by separate hardware or software. For example, two or more components may be combined to form a single component, or a single component may be divided into multiple components. Embodiments in which each component is integrated and / or separated are also within the scope of this document as long as they do 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 to refer to the same components in the drawings, and duplicated descriptions of the same components may be omitted.
[0016] FIG. 1 illustrates schematically an example of a video / image coding system in which embodiments of the present document may be applied.
[0017] As shown in Figure 1, a 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 file or streaming form via a digital storage medium or a network.
[0018] The source device may include a video source, an encoding device, and a transmitting unit. The receiving device may include a receiving unit, a decoding device, and a renderer. The encoding device may be called a video / image encoding device, and the decoding device may be called a video / image decoding device. The transmitter may be included in the encoding device. The receiver may be included in the decoding device. The renderer may include a display unit, which may be a separate device or an external component.
[0019] A video source can acquire video / images through a video / image capture, synthesis, or generation process. A video source can include a video / image capture device and / or a video / image generation device. A video / image capture device can include, for example, one or more cameras, a video / image archive containing previously captured video / images, etc. A video / image generation device can include, for example, a computer, a tablet, a smartphone, etc., and can (electronically) generate video / images. For example, virtual video / images can be generated via a computer, etc., in which case the video / image capture process can be replaced by a process in which the associated data is generated.
[0020] An encoding device can encode input video / images. The encoding device can perform a series of steps such as prediction, transformation, and quantization for compression and coding efficiency. The encoded data (encoded video / image information) can be output in the form of a bitstream.
[0021] The transmitter may transmit the encoded video / image information or data output in the form of a bitstream to a receiver 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, and SSD. The transmitter may include elements for generating a media file in a predetermined file format and elements for transmission via a broadcasting / communication network. The receiver 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 transform, prediction, etc., which correspond to the operations of the encoding device.
[0023] The renderer can render the decoded video / image, and the rendered video / image 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 second generation of audio video coding standard (AVS2), or next generation video / image coding standards (e.g., H.267 or H.268).
[0025] This document presents various embodiments relating to video / image coding, which, unless otherwise stated, may also be implemented in combination with one another.
[0026] In this document, video may refer to a collection of a series of images over time. A picture generally refers to a unit that shows an image at a specific time, and a subpicture, slice, or tile is a unit that constitutes part of a picture in coding. A subpicture, slice, or tile may contain one or more coding tree units (CTUs). A picture may be composed of one or more subpictures, slices, or tiles. A picture may be composed of one or more groups of tiles. A tile group may contain 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 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 refers to 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. Also, 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 height of the picture. A tile scan refers to a specific sequential ordering of CTUs partitioning a picture in which the CTUs are ordered consecutively in a 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, in this document, tile group / tile group header may be called slice / slice header.
[0027] A pixel or a pel may refer to the smallest unit that constitutes one picture (or image). A "sample" may also be used as a term corresponding to a pixel. A sample may generally refer to a pixel or a pixel value, or 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.
[0028] A unit may refer to a basic unit of image processing. A unit may include at least one of a specific region of a picture and information related to that region. One unit may include one luma block and two chroma (e.g., cb, cr) blocks. The term unit may be used interchangeably with terms such as block or area. In a general case, an M×N block may include samples (or a sample array) consisting of M columns and N rows, or a set (or an array) of transform coefficients.
[0029] As used herein, "A or B" may mean "A only," "B only," or "both A and B." In other words, as used herein, "A or B" may be interpreted as "A and / or B." For example, as used herein, "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] As used herein, "at least one of A and B" can mean "A only," "B only," or "both A and B." Furthermore, as used herein, the expressions "at least one of A or B" and "at least one of A and / or B" can be interpreted in the same way as "at least one of A and B."
[0032] Furthermore, in this specification, "at least one of A, B and C" can 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" can mean "at least one of A, B and C."
[0033] Furthermore, 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." Furthermore, 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 illustrate a specific example of the present specification. The names of specific devices and names of specific signals / messages / fields shown in the drawings are provided 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 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 dividing unit 210, the predicting unit 220, the residual processing unit 230, the entropy encoding unit 240, the adding unit 250, and the filtering unit 260 may be configured by one or more hardware components (e.g., an encoder chipset or a processor) depending on the embodiment. Also, 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. For 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 multiple coding units of deeper depths based on a quad-tree structure, a binary tree structure, and / or a ternary structure. In this case, for example, the quad-tree structure may be applied first, and then the binary tree structure and / or the ternary structure may be applied later. Alternatively, the binary tree structure may be applied first. The coding procedure according to this document may be performed based on the final coding unit that is not further divided. In this case, the largest coding unit may be immediately used as the final coding unit based on coding efficiency according to image characteristics, or the coding unit may be recursively divided into coding units of lower depths as needed, and the coding unit of the 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.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 term "unit" can be used interchangeably with terms such as "block" or "area." In general, an MxN block can refer to a set of samples or transform coefficients consisting of M columns and N rows. A sample can generally refer to a pixel or pixel value, and can refer to only a pixel / pixel value of the luma component, or only a pixel / pixel value of the chroma component. A sample can also be used as a term corresponding to one pixel or pel of a picture (or image).
[0040] The encoding apparatus 200 may subtract 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) to generate a residual signal (residual block, residual sample array), and the generated residual signal is transmitted to the conversion unit 232. In this case, as shown in the figure, a unit in the encoder 200 that subtracts the prediction signal (predicted block, prediction sample array) from the input image signal (original block, original sample array) may be referred to as the subtraction unit 231. The prediction unit may perform prediction on a current block to be processed (hereinafter, referred to as a current block) and generate a predicted block including prediction samples for the current block. The prediction 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 far away, depending on the prediction mode. In intra prediction, prediction modes may include a plurality of non-directional modes and a plurality of directional modes. The non-directional modes may include, for example, DC mode and planar mode. The directional modes may include, for example, 33 directional prediction modes or 65 directional prediction modes depending on the granularity of the prediction direction. However, this is merely an example, and more or less directional prediction modes may be used depending on the settings. The intra prediction unit 222 may also determine the prediction mode to be applied to the current block using the prediction modes applied to neighboring blocks.
[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. To reduce the amount of motion information transmitted in 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 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 information on an inter prediction direction (such as L0 prediction, L1 prediction, or Bi prediction). In the case of inter prediction, the neighboring blocks may include spatial neighboring blocks in the current picture and temporal neighboring blocks 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), or the like, and the reference picture including the temporal neighboring block may be called a collocated picture (colPic). For example, the inter predictor 221 may configure a motion information candidate list based on neighboring blocks and generate information indicating which candidates are used to derive a motion vector and / or a reference picture index for the current block. Inter prediction may be performed based on various prediction modes, and for example, in the case of a skip mode or a merge mode, the inter predictor 221 may use motion information of neighboring blocks as motion information of the current block. In the case of the skip mode, unlike in the merge mode, a residual signal may not be transmitted.In the case of motion vector prediction (MVP) mode, the motion vector of the neighboring block is 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 predictor 220 may generate a prediction signal based on various prediction methods, which will be described later. For example, the predictor may apply intra prediction or inter prediction for prediction of a block, or may simultaneously apply intra prediction and inter prediction. This may be referred to as combined inter and intra prediction (CIIP). The predictor may also use 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, such as 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 herein. The palette mode may be seen as an example of intra coding or intra prediction. When the palette mode is applied, sample values within a picture may be signaled based on information about a palette table and a palette index.
[0044] The prediction signal generated by the prediction unit (including the inter prediction unit 221 and / or the intra prediction unit 222) may be used to generate a reconstructed signal or 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, GBT refers to a transform obtained from a graph representing inter-pixel relationship information. CNT refers to a transform obtained based on a prediction signal generated using all previously reconstructed pixels. The transform process may be applied to pixel blocks having the same square size or non-square blocks of variable size.
[0045] The quantizer 233 quantizes the transform coefficients and transmits them to the entropy encoder 240. The entropy encoder 240 encodes the quantized signal (information about the quantized transform coefficients) and outputs it as a bitstream. The information about 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 about 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), context-adaptive binary arithmetic coding (CABAC), etc. In addition to the quantized transform coefficients, the entropy encoder 240 may also 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 also 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-described encoding procedure and included in the bitstream.The bitstream can be transmitted via a network or stored in a digital storage medium. Here, the network can include a broadcasting network and / or a communication network, and the digital storage medium can 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 can be configured as an internal / external element of the encoding device 200, or the transmitter can be included in the entropy encoding unit 240.
[0046] The quantized transform coefficients output from the quantization unit 233 may be used to generate a prediction signal. For example, a residual signal (residual block or residual sample) may be reconstructed by applying inverse quantization and inverse transform to the quantized transform coefficients via the inverse quantization unit 234 and the inverse transform unit 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 skip mode is applied, a predicted block may be used as the 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 block to be processed in the current picture, or may be used for inter prediction of the next picture after filtering, as described below.
[0047] Meanwhile, luma mapping with chroma scaling (LMCS) can 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 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 connection with each filtering method. The filtering information 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 can be used as a reference picture in the inter prediction unit 221. When inter prediction is applied through this, the encoding apparatus can avoid prediction mismatch between the encoding apparatus 200 and the decoding apparatus 300 and can also improve encoding efficiency.
[0050] The memory 270DPB may store modified reconstructed pictures for use as reference pictures in the inter predictor 221. The memory 270 may store motion information of blocks from which motion information in the current picture is derived (or encoded) and / or motion information of blocks in already reconstructed pictures. The stored motion information may be transmitted to the inter predictor 221 to be used as motion information of spatially neighboring blocks or temporally neighboring blocks. The memory 270 may store reconstructed samples of reconstructed blocks in the current picture and transmit them to the intra predictor 222.
[0051] FIG. 3 is a diagram illustrating the 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 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, residual processor 320, predictor 330, adder 340, and filter 350 may be configured as a single hardware component (e.g., a decoder chipset or processor) according to an embodiment. The memory 360 may include a decoded picture buffer (DPB) or 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 device 300 can reconstruct an image corresponding to the process by which the video / image information was processed by the encoding device of FIG. 2. For example, the decoding device 300 can derive units / blocks based on block division-related information obtained from the bitstream. The decoding device 300 can perform decoding using a processing unit applied by the encoding device. Accordingly, the processing unit for decoding is, for example, a coding unit, and the coding unit can be divided from a coding tree unit or a maximal 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. The reconstructed image signal decoded and output by the decoding device 300 can be reproduced through a playback 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 parse the bitstream to derive information (e.g., video / image information) necessary for image restoration (or picture restoration). 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 also include general constraint information. The decoding device may further decode pictures based on the information on the parameter sets and / or the general constraint information. Signaling / received information and / or syntax elements, which will be 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 receives bins corresponding to each syntax element in the bitstream, determines a context model using information on the syntax element to be decoded and decoded information on neighboring and current blocks, or information on symbols / bins decoded in previous steps, predicts the occurrence probability of the bins according to the determined context model, and performs arithmetic decoding of the bins to generate symbols corresponding to the values of each syntax element. After determining the context model, 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.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 a residual processing unit 320. The residual processing unit 320 may derive a residual signal (residual block, residual sample, residual sample array). In addition, among the information decoded by the entropy decoding unit 310, information related to filtering may be provided to a filtering unit 350. Meanwhile, a receiving unit (not shown) that receives 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 and output the transform coefficients. The inverse quantization unit 321 may rearrange the quantized transform coefficients in a two-dimensional block format. In this case, the rearrangement may be performed based on the coefficient scanning 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 performs inverse transform on 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 about the prediction output from the entropy decoding unit 310, and may determine a specific intra / inter prediction mode.
[0058] The predictor 320 may generate a prediction signal based on various prediction methods, which will be described later. For example, the predictor may apply intra prediction or inter prediction for predicting a block, or may simultaneously apply intra prediction and inter prediction. This may be referred to as combined inter and intra prediction (CIIP). The predictor may also use an intra block copy (IBC) prediction mode or a palette mode for predicting a block. The IBC prediction mode or palette mode may be used for content image / video coding, such as games, such as 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 far away from the current block depending on the prediction mode. In intra prediction, prediction modes may include a plurality of non-directional modes and a plurality of directional modes. The intra prediction unit 331 may also determine a prediction mode to be applied to the current block using prediction modes applied to neighboring blocks.
[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. To reduce the amount of motion information transmitted from 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 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 information on the inter prediction direction (e.g., L0 prediction, L1 prediction, Bi prediction, etc.). In the case of inter prediction, the neighboring blocks may include spatial neighboring blocks in the current picture and temporal neighboring blocks in the reference picture. For example, the inter prediction unit 332 may construct 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 received candidate selection information. Inter prediction may be performed based on various prediction modes, and the prediction information may include information indicating the inter prediction mode 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 predicted 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 the 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 the current picture, 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 predictor 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 predictor 260 to be used as motion information of a spatially neighboring block or a temporally neighboring block. The memory 360 may store reconstructed samples of reconstructed blocks in the current picture and transmit them to the intra predictor 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 consistency of expression.
[0068] In this document, quantized transform coefficients and transform coefficients may be referred to as transform coefficients and scaled transform coefficients, respectively. In this case, residual information may include information about the transform coefficient(s), and the information about the transform coefficient(s) may be signaled via a residual coding syntax. Transform coefficients may be derived based on the residual information (or information about the transform coefficient(s)), and scaled transform coefficients may be derived through an inverse transform (scaling) of the transform coefficient(s). Residual samples may be derived based on an inverse transform (transform) of the scaled transform coefficient(s). This may be similarly applied / expressed in other parts of this document.
[0069] As described above, prediction is performed to improve compression efficiency during video coding. 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 the spatial domain (or pixel domain). The predicted block is derived in the same way by an encoding device and a decoding device. The encoding device can improve image coding efficiency by signaling to a decoding device information (residual information) regarding the residual between the original block and the predicted block, rather than the original sample values of the original block themselves. The decoding device can derive a residual block including residual samples based on the residual information, combine the residual block with 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, an encoding device may derive a residual block between the original block and the predicted block, perform a transform procedure on 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 the related residual information (via a bitstream) to a decoding device. 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. A decoding device may perform an inverse quantization / inverse transform procedure based on the residual information to derive residual samples (or residual blocks). The decoding device may generate a reconstructed picture based on the predicted block and the residual block. The encoding device may further derive a residual block by inverse quantizing / inverse transforming the quantized transform coefficients for reference for inter-prediction of a subsequent picture, and generate a reconstructed picture based on the residual block.
[0071] Intra prediction may refer to a prediction that generates prediction samples for a current block based on reference samples 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 samples adjacent to the left boundary and bottom-left neighboring samples of a current block having a size of nW×nH, a total of 2×nH samples, samples adjacent to the top boundary and top-right neighboring samples of the current block, a total of 2×nW samples, and one sample adjacent to the top-left neighboring sample of the current block. Alternatively, the neighboring reference samples of the current block may include multiple columns of upper neighboring samples and multiple rows of left neighboring samples. In addition, the neighboring reference samples of the current block may include a total of nH samples adjacent to the right boundary of the current block of size nW×nH, a total of nW samples adjacent to the bottom boundary of the current block, and one sample adjacent to the bottom-right of the current block.
[0072] However, some of the surrounding reference samples of the current block may not yet be decoded or may not be available. In this case, the decoder may construct surrounding reference samples to be used for prediction by substituting unavailable samples for available samples, or may construct surrounding reference samples to be used for prediction through interpolation of available samples.
[0073] When neighboring reference samples are derived, (i) a predicted sample can be derived based on an average or 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 predicted sample may be generated by interpolating a first neighboring sample located in the prediction direction of the intra prediction mode of the current block and a second neighboring sample located in the opposite direction to the prediction direction based on the predicted sample of the current block among the neighboring reference samples. This case may be called linear interpolation intra prediction (LIP). Alternatively, a chroma predicted sample may be generated based on a luma sample using a linear model (LM). This case may be called an LM mode or a CCLM (chroma component LM) mode.
[0075] Alternatively, a provisional predicted sample of the current block may be derived based on filtered neighboring reference samples, and the predicted sample of the current block may be derived by weighting the provisional predicted sample with at least one reference sample derived according to the intra prediction mode from the existing neighboring reference samples, i.e., non-filtered neighboring reference samples. The above case may be referred to as Position Dependent Intra Prediction (PDPC).
[0076] In addition, intra-prediction coding may be performed by selecting a reference sample line with the highest prediction accuracy from among multiple reference sample lines surrounding the current block, deriving a prediction sample using a reference sample located in the prediction direction of the selected line, and signaling the used reference sample line to a decoding device. This case may 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 for each sub-partition. That is, in this case, the intra prediction mode for the current block is applied to the sub-partitions in the same manner, but neighboring reference samples may be derived and used for each sub-partition, thereby improving intra prediction performance in some cases. This prediction method may be called intra sub-partitions (ISP)-based intra prediction.
[0078] The above-described intra prediction methods may be referred to as intra prediction types, distinguished from intra prediction modes. The intra prediction types may be referred to by 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-described LIP, PDPC, MRL, and ISP. A general intra prediction method other than the specific intra prediction types, such as LIP, PDPC, MRL, and ISP, may be referred to as a normal intra prediction type. The normal intra prediction type may be generally applied when the above-described specific intra prediction types are not applied, and prediction may be performed based on the above-described 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] When intra prediction is applied, the intra prediction mode applied to the current block may be determined using the intra prediction modes of neighboring blocks. For example, the decoding device may select one of MPM candidates in an MPM (most probable mode) list derived based on the intra prediction modes of neighboring blocks (e.g., left and / or upper neighboring blocks) of the current block and 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 planar mode) based on remaining intra prediction mode information. The MPM list may be configured to include or not include planar mode as a candidate. For example, if the MPM list includes planar mode as a candidate, the MPM list may have six candidates, and if the MPM list does not include 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 (e.g., 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 if the MPM flag has a value of 1. Also, the MPM index may be signaled if the not planar flag has a value of 1. Here, the reason why the MPM list is configured not to include a planar mode as a candidate is that, rather than the planar mode not being an MPM, the planar mode is always considered as an MPM, and therefore a flag (not planar flag) is signaled first to first confirm whether the mode is a planar mode.
[0081] 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 (e.g., intra_luma_mpm_flag). A value of 1 for 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 for 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 for the not planar flag (e.g., intra_luma_not_planar_flag) may indicate that the intra prediction mode for the current block is planar mode, and a value of 1 for the not planar flag may indicate that the intra prediction mode for the current block is not 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 point to 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, the MPM list may be referred to by various terms such as an MPM candidate list, a candModeList, etc. If MIP is applied to the current block, a separate mpm flag (e.g., intra_mip_mpm_flag), an mpm index (e.g., intra_mip_mpm_idx), and remaining intra-prediction mode information (e.g., intra_mip_mpm_remainder) for MIP may be signaled, and the not planar flag may not be signaled.
[0082] 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 likely to have the same or similar intra-prediction modes. Therefore, an encoder can use the intra-prediction modes of neighboring blocks to encode the intra-prediction mode of the current block.
[0083] For example, the encoder / decoder may construct an MPM (Most Probable Modes) list for the 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 by considering similarities between the current block and neighboring blocks during intra-prediction mode coding. As described above, the MPM list may be configured to include or exclude the planar mode. For example, if the MPM list includes the planar mode, the number of candidates in the MPM list may be six. If the MPM list does not include the planar mode, the number of candidates in the MPM list may be five.
[0084] The encoder / decoder can construct an MPM list containing five or six MPMs.
[0085] To construct the MPM list, three types of modes may be considered: default intra modes, neighbor intra modes, and derived intra modes.
[0086] For the peripheral intra mode, two peripheral blocks may be considered: a left peripheral block and an upper peripheral block.
[0087] As described above, if the MPM list is configured not to include a planar mode, the planar mode is excluded from the list, and the number of MPM list candidates can be set to five.
[0088] In addition, among the intra prediction modes, the non-directional mode (or non-angular mode) may include a DC mode based on the average of neighboring reference samples of the current block or a planar mode based on interpolation.
[0089] Meanwhile, when inter prediction is applied, a prediction unit of an encoding / decoding device may perform inter prediction on a block-by-block basis to derive a prediction sample. Inter prediction may represent a prediction derived in a manner that is dependent on data elements (e.g., 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 indicated by a reference picture index. In this case, to reduce the amount of motion information transmitted in the inter prediction mode, motion information of the current block may be predicted on a block, sub-block, or sample-by-block basis based on the 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 type information (e.g., L0 prediction, L1 prediction, Bi prediction, etc.). 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 (colPics).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 the motion vector and / or reference picture index of the current block may be signaled. Inter prediction may be performed based on various prediction modes. For example, in 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 skip mode, unlike merge mode, a residual signal may not be transmitted. In 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.
[0090] The motion information may include L0 motion information and / or L1 motion information depending on the 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 L0 prediction, prediction based on an L1 motion vector may be referred to as L1 prediction, and prediction based on both the L0 motion vector and the L1 motion vector may be referred to as bi-prediction. Here, the L0 motion vector may 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 precede the current picture in output order as reference pictures, and the reference picture list L1 may include pictures that follow 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 in output order relative to the current picture as reference pictures. 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 in output order relative to the current picture as reference pictures. In this case, the subsequent picture may be indexed first in the reference picture list L1, and the previous picture may be indexed next. Here, the output order may correspond to a picture order count (POC) order.
[0091] A video / image encoding procedure based on inter prediction may generally include, for example:
[0092] FIG. 4 illustrates an example of an inter-prediction based video / image encoding method.
[0093] The encoding apparatus performs inter prediction on a current block (S400). The encoding apparatus may derive an inter prediction mode and motion information of the current block and generate a predicted sample for the current block. Here, the inter prediction mode determination, motion information derivation, and predicted sample generation procedures may be performed simultaneously, or one procedure may be performed before 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 predicted sample derivation unit, in which the prediction mode determination unit may determine a prediction mode for the current block, the motion information derivation unit may derive motion information for the current block, and the predicted sample derivation unit may derive a predicted sample for 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 region (search region) of a reference picture through motion estimation and derive a reference block whose difference from 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 can be derived, and a motion vector can be derived based on a position difference between the reference block and the current block. The encoding device can determine a mode to be applied to the current block from various prediction modes. The encoding device can compare RD costs for the various prediction modes to determine an optimal prediction mode for the current block.
[0094] For example, when a skip mode or a merge mode is applied to the current block, the encoding device may construct a merge candidate list (described below) and derive a reference block, among reference blocks indicated by merge candidates included in the merge candidate list, whose difference from the current block is minimum or equal to or less than a certain criterion. In this case, a merge candidate associated with the derived reference block may be selected, and merge index information indicating the selected merge candidate may be generated and signaled to the decoding device. Motion information of the current block may be derived using motion information of the selected merge candidate.
[0095] 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 use the motion vector of a selected MVP (motion vector predictor) candidate from among the MVP candidates included in the (A)MVP candidate list as the MVP of the current block. In this case, for example, a motion vector pointing to a reference block derived by the motion estimation described above may be used as the motion vector of the current block, and the MVP candidate having the smallest difference from the motion vector of the current block may be the selected MVP candidate. A motion vector difference (MVD), which is the 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. Furthermore, 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.
[0096] The encoding apparatus may derive residual samples based on the predicted samples (S410) by comparing the original samples of the current block with the predicted samples.
[0097] The encoding apparatus encodes image information including prediction information and residual information (S420). The encoding apparatus may output the encoded image information in the form of a bitstream. The prediction information may include prediction mode information (e.g., skip flag, merge flag, or mode index) and information on motion information, which are information related to the prediction procedure. The information on the motion information may include candidate selection information (e.g., merge index, MVP flag, or MVP index), which is information for deriving a motion vector. The information on the motion information may also include the above-mentioned information on MVD and / or reference picture index information. The information on the motion information may also 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.
[0098] The output bitstream can be stored in a (digital) storage medium and transmitted to the decoding device, or can be transmitted to the decoding device via a network.
[0099] 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 memory and use it as a reference picture for inter prediction. As described above, an in-loop filtering procedure can be further applied to the reconstructed picture.
[0100] A video / image decoding procedure based on inter prediction may generally include, for example:
[0101] FIG. 5 illustrates an example of an inter-prediction based video / image decoding method.
[0102] As shown in Figure 5, the decoding device may perform operations corresponding to those performed by the encoding device. The decoding device may perform prediction for the current block based on received prediction information and derive predicted samples.
[0103] Specifically, the decoding device may determine a prediction mode for the current block based on received prediction information (S500). The decoding device may determine which inter-prediction mode is applied to the current block based on prediction mode information in the prediction information.
[0104] For example, it may determine whether the merge mode or (A)MVP mode is applied to the current block based on the merge flag. Alternatively, it may select one of various inter prediction mode candidates 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.
[0105] The decoding device derives motion information of the current block based on the determined inter prediction mode (S510). For example, when a skip mode or a merge mode is applied to the current block, the decoding device may construct a merge candidate list (described below) and select one merge candidate from among the merge candidates included in the merge candidate list. The selection may be made based on the selection information (merge index) described above. 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 the motion information of the current block.
[0106] 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 use a motion vector of a selected MVP (motion vector predictor) candidate from among the MVP 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 related to the MVD, and the motion vector of the current block may be derived based on the MVP of the current block and the MVD. Furthermore, the decoding apparatus may derive a reference picture index of the current block based on the reference picture index information. A picture pointed to by the reference picture index in the reference picture list for the current block may be derived as a reference picture referenced for inter-prediction of the current block.
[0107] On the other hand, as will be described later, 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 the prediction mode section, which will be described later. In this case, the candidate list construction as described above may be omitted.
[0108] The decoding device may generate prediction samples for the current block based on the motion information of the current block (S520). In this case, the reference picture may be derived based on the reference picture index of the current block, and the prediction samples of the current block may be derived using samples of the reference block pointed to by the motion vector of the current block 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.
[0109] 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 (such as a motion vector and / or a 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.
[0110] The decoding device generates residual samples for the current block based on the received residual information (S530). The decoding device generates reconstructed samples for the current block based on the predicted samples and the residual samples, and can generate a reconstructed picture based on the reconstructed samples (S540). Thereafter, an in-loop filtering procedure, etc., can be further applied to the reconstructed picture, as described above.
[0111] FIG. 6 exemplarily illustrates an inter prediction procedure.
[0112] 6, as described above, the inter prediction procedure may include an inter prediction mode determination step, a motion information deriving 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.
[0113] As shown in FIG. 6, a coding apparatus determines an inter prediction mode for a current block (S600). Various inter prediction modes may be used for predicting a current block in a picture. For example, various modes may be used, such as merge mode, skip mode, motion vector prediction (MVP) mode, affine mode, sub-block merge mode, and merge with MVD (MMVD) mode. Decoder side motion vector refinement (DMVR) mode, adaptive motion vector resolution (AMVR) mode, bi-prediction with CU-level weight (BCW), bi-directional optical flow (BDOF), etc. may be used additionally or alternatively as auxiliary modes. Affine mode may also be referred to as affine motion prediction mode. MVP mode may also be referred to as advanced motion vector prediction mode. 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 in the merge / skip mode, or as an MVP candidate in the MVP mode. When the HMVP candidate is used as a motion information candidate in the merge mode or skip mode, the HMVP candidate can be referred to as an HMVP merge candidate.
[0114] Prediction mode information indicating the 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 applied, or a flag for additional classification may be further signaled. The affine mode may be signaled in an independent mode or 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.
[0115] The coding apparatus derives motion information for the current block (S610). The motion information may be derived based on the inter prediction mode.
[0116] A coding apparatus may perform inter-prediction using motion information of a current block. An encoding apparatus may derive optimal motion information for a 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 fractional pixel units within a predetermined search range in the reference picture, thereby deriving motion information. Block similarity may be derived based on a phase-based sample value difference. For example, block similarity may be calculated based on the SAD between the current block (or a template of the current block) and a reference block (or a template of the reference block). In this case, motion information may be derived based on the reference block with the smallest SAD within the search range. The derived motion information may be signaled to a decoding apparatus in various ways based on the inter-prediction mode.
[0117] The coding apparatus performs inter prediction based on motion information for the current block (S620). The coding apparatus may derive predictive samples (and the like) for the current block based on the motion information. The current block including the predictive samples may be referred to as a predicted block.
[0118] 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.
[0119] Generally, in video / image coding, the quantization rate can be changed, and the compression rate can be adjusted using the changed quantization rate. From the viewpoint of implementation, a quantization parameter (QP) is used instead of directly using the quantization rate, considering the complexity. For example, an integer value of the quantization parameter ranging 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 the luma component (luma sample) can be Y ) and the quantization parameter (QP C ) can be set differently.
[0120] The quantization process takes the transform coefficients (C) as input and the quantization rate (Q step ) and obtain a quantized transform coefficient C' based on the result. In this case, taking into consideration the computational complexity, the quantization rate can be multiplied by a scale to convert it into an integer, and a shift operation can be performed by the value corresponding to the scale value. The quantization scale can be derived based on the product of the quantization rate and the scale value. That is, the quantization scale can be derived according to the QP. For example, the quantization scale can be applied to the transform coefficient C, and the quantized transform coefficient C' can be derived based on the quantization scale.
[0121] The inverse quantization process is the reverse of the quantization process, and applies the quantization rate (Q step ) to obtain the reconstructed transform coefficients (C'') based on the quantization parameter. In this case, a level scale is derived according to the quantization parameter, and the level scale is applied to the quantized transform coefficients (C') to derive the reconstructed transform coefficients (C''). The reconstructed transform coefficients (C'') may differ slightly from the original transform coefficients (C) due to losses in the transform and / or quantization process. Therefore, the encoding device also performs inverse quantization in the same way as the decoding device.
[0122] Meanwhile, an adaptive frequency weighting quantization technique that adjusts quantization strength according to frequency may be applied. The adaptive frequency weighting quantization 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 may be used depending on the size of a current block and / or whether a prediction mode applied to the current block is inter-prediction or intra-prediction to generate 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. 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 (modified) quantization scaling metrics 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, if the scaling list data is signaled at a higher level (e.g., SPS), the frequency-specific quantization scale information may further include information indicating whether the scaling list data is modified at a lower level (e.g., PPS or tile group header) below the higher level.
[0123] As described above, quantization / dequantization is applied to the luma and chroma components based on the quantization parameters.
[0124] 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.
[0125] For example, information regarding derivation of quantization parameters is signaled via an SPS (sequence parameter set) as shown in the following table.
[0126] [Table 1]
[0127] The semantics for the syntax elements in Table 1 above are as follows:
[0128] [Table 2]
[0129] 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 is expressed as follows 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, bit_depth_luma_minus8 can range from 0 to 8.
[0130] Also, for example, the syntax element bit_depth_chroma_minus8 specifies BitDepth, which is the bit depth of the samples in the chroma array. c and QpBdOffset, the chroma quantization parameter range offset c That is, for example, the BitDepth is expressed as follows based on the syntax element bit_depth_chroma_minus8: 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 the QpBdOffset c is derived as the value of the syntax element bit_depth_chroma_minus8 multiplied by 6. Also, bit_depth_chroma_minus8 can range from 0 to 8.
[0131] Also, for example, information regarding derivation of quantization parameters is signaled via a PPS (picture parameter set) 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.
[0132] [Table 3]
[0133] The semantics for the syntax elements in Table 3 above are as follows:
[0134] [Table 4]
[0135] For example, adding 26 to the syntax element init_qp_minus26 results in 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.
[0136] Also, 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. 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 these syntax elements.
[0137] For example, the syntax element pps_joint_cbcr_qp_offset is CbCr The luma quantization parameter Qp' used to derive Y The pps_joint_cbcr_qp_offset can be in the range of -12 to +12. If ChromaArrayType is 0, the pps_joint_cbcr_qp_offset may not be used in the decoding process, and the decoding device may ignore the value of this syntax element.
[0138] 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 in 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. Also, a value of 0 in 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, if ChromaArrayType is 0, pps_slice_chroma_qp_offsets_present_flag is set to 0 during the decoding process.
[0139] As described 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. Furthermore, the syntax elements pps_cb_qp_offset, pps_cr_qp_offset, and pps_joint_cbcr_qp_offset indicate the luma quantization parameter Qp' Y Furthermore, the syntax element pps_slice_chroma_qp_offsets_present_flag indicates whether or not the offset parameter is present in the slice header.
[0140] Also, information regarding derivation of the quantization parameter can be signaled, for example, via a slice header, as shown in the following table.
[0141] [Table 5]
[0142] The semantics for the syntax elements in Table 5 above are as follows:
[0143] [Table 6-1]
[0144] [Table 6-2]
[0145] 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 for a slice Y The initial value of SliceQp Y is derived as 26+init_qp_minus26+slice_qp_delta. SliceQp Y The value of -QpBdOffset Y or +63.
[0146] Also, for example, slice_cb_qp_offset is the quantization parameter Qp' Cb This indicates the difference to be added to the value of pps_cb_qp_offset when determining the value of slice_cb_qp_offset. The value of slice_cb_qp_offset can be in the range of -12 to +12. Also, for example, if slice_cb_qp_offset does not exist, slice_cb_qp_offset is inferred as 0. The value of pps_cb_qp_offset+slice_cb_qp_offset can be in the range of 12 to +12.
[0147] Also, for example, slice_cr_qp_offset is the quantization parameter Qp' Cr This 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 can 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 as 0. The value of pps_cr_qp_offset+slice_cr_qp_offset can be in the range of 12 to +12.
[0148] Also, for example, slice_cbcr_qp_offset is the quantization parameter Qp' CbCrThe value of slice_cbcr_qp_offset may be in the range of -12 to +12. For example, if slice_cbcr_qp_offset does not exist, slice_cbcr_qp_offset is inferred as 0. The value of pps_cbcr_qp_offset+slice_cbcr_qp_offset may be in the range of 12 to +12.
[0149] The derivation process for luma and chroma quantization parameters begins with the inputs being the luma location, variables specifying the width and height of the current coding block, and variables specifying whether the tree is a single tree or a dual tree. Meanwhile, as described above, the luma quantization parameter, chroma quantization parameter, and joint chroma quantization parameter are derived from Qp' Y , Qp' Cb , Qp' Cr and Qp' CbCr It can be shown that:
[0150] 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 can indicate the sign of CuQpDeltaVal as follows:
[0151] 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. Alternatively, 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.
[0152] 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 can be in the range of -(32+QpBdOffsetY / 2) to +(31+QpBdOffsetY / 2).
[0153] Then, for example, the luma quantization parameter Qp′ Y is derived as follows:
[0154]
number
[0155] Also, if ChromaArrayType is not 0 and treeType is SINGLE_TREE or DUAL_TREE_CHROMA, the following applies:
[0156] -If treeType is DUAL_TREE_CHROMA, the variable Qp Y is the luma quantization parameter Qp of the luma coding unit containing the luma position (xCb+cbWidth / 2, yCb+cbHeight / 2). Y can be set equal to
[0157] -variable qP Cb , qP Cr and qP CbCr is derived as follows:
[0158]
number
[0159] For example, if ChromaArrayType is 1, the variable qP Cb , qP Cr and qP CbCr are qPi Cb , qPi Cr and qPi CbCr It can be set to the same QpC value as specified in Table 7 based on the same index qPi.
[0160] [Table 7]
[0161] 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 to be equal to Min(qPi,63) based on the same index qPi.
[0162] 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:
[0163]
number
[0164] Meanwhile, this paper proposes a method for improving coding efficiency in the quantization / dequantization process.
[0165] In one embodiment, when ChromaArrayType is not 0 (for example, when ChromaArrayType is 1), this document proposes a method in which a user defines and uses a user-defined Chroma Quantization Table, rather than a method in which a chroma quantization parameter value is obtained from a luma quantization parameter value through a chroma quantization mapping table predefined in the existing VVC Draft 5v.7. In the VVC specification text (for example, VVC Draft 5v.7), when a qPi (luma quantization parameter value) is given, a Qpc (chroma quantization parameter value) is derived through a predefined chroma quantization table (for example, the above-mentioned Table 7). However, this document proposes a method in which a user derives Qpc from qPi based on a newly defined chroma quantization mapping table. According to an embodiment of this document, the Qpc value is derived from a functional 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 functional relationship is transmitted by transmitting a value of a predefined syntax element, and a method is proposed in which the user defines a chroma quantization table mapping based on the transmitted value. As an example, since the Qpc value can be derived from a functional 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 format shown in Table 7.
[0166] As an embodiment, a method is proposed in which information about 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.
[0167] [Table 8]
[0168] 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.
[0169] The semantics for the syntax elements in Table 8 above are as follows:
[0170] [Table 9]
[0171] For example, the syntax element adaptation_parameter_set_id provides an identifier for an APS that is referenced by other syntax elements.
[0172] 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, a value of 1 for the syntax element aps_extension_flag indicates that the aps_extension_data_flag syntax element is present in the APS RBSP syntax structure, and a value of 0 for the syntax element aps_extension_flag indicates that the aps_extension_data_flag syntax element is not present in the APS RBSP syntax structure.
[0173] Also, for example, the syntax element aps_extension_data_flag can have any value. The presence and value of the aps_extension_data_flag may not affect decoder conformance to the profile specified in this standard version. For example, a decoding device conforming to this standard version may ignore all syntax elements aps_extension_data_flag.
[0174] 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.
[0175] [Table 10]
[0176] 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.
[0177] This document also proposes another embodiment for signaling information about the quantization parameters.
[0178] For example, in this embodiment, a user-defined Qp C Data (user defined Qp C A scheme for signaling user-defined data is proposed. As an example of 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.
[0179] The flag indicating whether the PPS contains user-defined data is signaled as shown in the following table.
[0180] [Table 11]
[0181] For example, the syntax element Qpc_data_default_flag may be the aforementioned flag syntax element. 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 that 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.
[0182] The user-defined data signaled in the PPS according to this embodiment is as shown in the following table.
[0183] [Table 12]
[0184] On the other hand, for example, Qpc_data() contains the information necessary for chroma quantization derivation when ChromaArrayType is 1.
[0185] This document also proposes another embodiment for signaling information about the quantization parameters.
[0186] 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 whether a user-defined mode is available in which parameters indicating a function used to derive a chroma quantization parameter (QP) in an SPS and / or PPS can be used.
[0187] For example, flag information signaled in the high level syntax proposed in this embodiment is as shown in the table below.
[0188] [Table 13]
[0189] For example, Qpc_data_present_flag indicates whether parameters for deriving chroma quantization coefficients are present in the high-level syntax RBSP syntax structure. For example, a Qpc_data_present_flag of 0 indicates that chroma quantization parameters are not present in the high-level syntax RBSP syntax structure. Also, for example, a Qpc_data_present_flag of 1 indicates that chroma quantization parameters are present in the high-level syntax RBSP syntax structure.
[0190] Alternatively, the syntax element Qpc_data_present_flag may be used to indicate the usage of a chroma quantization derivation method in a bitstream. For example, Qpc_data_present_flag may indicate the use of a tool or user-defined mode used for chroma quantization derivation as follows:
[0191] 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.
[0192] This document also proposes another embodiment for signaling information about the quantization parameters.
[0193] 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
[0046] 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.
[0194] [Table 14]
[0195] The semantics for the syntax elements in Table 14 above are as follows:
[0196] [Table 15]
[0197] For example, the syntax element qPi_min_idx indicates the minimum qPi index used for chroma quantization.
[0198] Also, for example, the syntax element qPi_delta_max_idx indicates the delta value between the 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.
[0199]
Equation
[0200] Also, for example, the syntax element QpC_qPi_val[i] indicates the Qp value for the i-th index. C value.
[0201] Also, for example, the syntax element QpOffset [[ID=3L]] C represents the offset value used for the derivation of Qp C value.
[0202] 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.
[0203] - When -qPi < qPi_min_idx, Qp C Idx[qPi] is set to be the same as qPi.
[0204] - When -qPi = qPi_min_idx ··· qPiMaxIdx, Qp CIdx[qPi] is set equal to QpC_qPi_val[qPi].
[0205] -If qPi>qPiMaxIdx, then Qp C Idx[qPi] is qPi-QpOffset C is set to
[0206] Then, Qp C The value of Qp C It is derived as Idx[qPi].
[0207] For example, the process of deriving the quantization parameters according to this embodiment can be written in a standard format as shown in the following table.
[0208] [Table 16-1]
[0209] [Table 16-2]
[0210] [Table 16-3]
[0211] [Table 16-4]
[0212] Referring to Table 16 above, the derivation process for luma and chroma quantization parameters begins with the inputs being the luma position (xCb, yCb), variables cbWidth and cbHeight specifying the width and height of the current coding block, and variable treeType specifying 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 derived from Qp' Y , Qp'Cb and Qp' Cr It is shown as follows.
[0213] This document also proposes another embodiment for signaling information about the quantization parameters.
[0214] 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.
[0215] [Table 17]
[0216] [Table 18]
[0217] [Table 19]
[0218] For example, the syntax element Qpc_data_default_flag indicates whether a user-defined mode is used to derive the quantization parameters. For example, a Qpc_data_default_flag of 0 indicates that a user-defined mode is used to derive 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 considered to be 1.
[0219] 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.
[0220] 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. Multiple Qp with the same value of adaptation_parameter_set_id C If an APS is referenced by more than one slice of the same picture, multiple Qp with the same value of adaptation_parameter_set_id C The APSs can have the same content.
[0221] The APS structure for transmitting chroma quantized data proposed in this embodiment is as shown in Table 19 above.
[0222] For example, the syntax element adaptation_parameter_set_id can provide an identifier for an APS that is referenced by other syntax elements.
[0223] 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, a value of 1 for the syntax element aps_extension_flag indicates that the aps_extension_data_flag syntax element is present in the APS RBSP syntax structure, and a value of 0 for the syntax element aps_extension_flag indicates that the aps_extension_data_flag syntax element is not present in the APS RBSP syntax structure.
[0224] Also, for example, the syntax element aps_extension_data_flag can have any value. The presence and value of the aps_extension_data_flag may not affect decoder conformance to the profile specified in this standard version. For example, a decoding device conforming to this standard version may ignore all syntax elements aps_extension_data_flag.
[0225] 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.
[0226] Qp disclosed in Table 19 above C_data() is signaled as shown in the following table.
[0227] [Table 20]
[0228] For example, the syntax element qPi_min_idx indicates the minimum qPi index used for chroma quantization.
[0229] For example, the syntax element qPi_delta_max_idx is used to set the 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.
[0230] 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.
[0231] Also, for example, the syntax element Qp C _init_val is the Qp corresponding to qPi_min_idx C Indicates the value.
[0232] 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 the value.
[0233] Also, for example, the syntax element QpOffsetC represents the offset value used for the derivation of Qp C For example, the variable Qp for qPi
[0234] Idx[qPi] is derived as follows. Here, the said qPi can be from 0 to qPiMaxIdx C When -qPi < qPi_min_idx, Qp
[0235] Idx[qPi] is set to be the same as qPi C When -qPi = qPi_min_idx ··· qPiMaxIdx, Qp
[0236] Idx[qPi] is set to Qp C _qPi_delta_val[qPi] + Qp C Idx[qPi - 1] C When -qPi > qPiMaxIdx, Qp
[0237] Idx[qPi] is set to qPi - QpOffset C Then, the value of Qp C can be derived as Qp
[0238] Idx[qPi] C Similar to the above-described embodiments, the chroma quantization parameters, namely, Qp‘Cb, Qp‘Cr and Qp‘CbCr can be derived using the user-defined information to be signaled or using the default values shown in the default table such as Table 7 above C For example, when describing the process of deriving the quantization parameters according to this embodiment in a standard format, it is as shown in the following table
[0239]
[0240]
[0241] <00016]]
Table 21-1
[0242] [Table 21-2]
[0243] [Table 21-3]
[0244] [Table 21-4]
[0245] [Table 21-5]
[0246] Referring to Table 21 above, if ChromaArrayType is 1 and Qp C If _data_default_flag indicates a negative (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 is derived by the default table based on the same index qPi as
[0247] This document also proposes another embodiment for signaling information about the quantization parameters.
[0248] For example, this embodiment proposes a syntax element that can be used to control the derivation of a quantization parameter by indicating a user-defined mode or a default mode in an SPS flag. 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.
[0249] [Table 22]
[0250] For example, the syntax element qPi_min_idx indicates the minimum qPi index used for chroma quantization.
[0251] For example, the syntax element qPi_delta_max_idx is used to set the 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.
[0252] 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 the value.
[0253] Also, for example, the syntax element QpOffset C is the Qp C Indicates the offset value used to derive
[0254] 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.
[0255] For example, the process of deriving the quantization parameters according to this embodiment can be written in a standard format as shown in the following table.
[0256] [Table 23-1]
[0257] [Table 23-2]
[0258] [Table 23-3]
[0259] [Table 23-4]
[0260] [Table 23-5]
[0261] Referring to Table 23 above, if ChromaArrayType is 1 and Qp C If _data_default_flag indicates a negative (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 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 value of Qp Cb qPi Cr and qPi CbCr respectively, based on the same index qPi.
[0262] For example, the variable Qp C Idx[i] is derived as follows.
[0263] - If i < qPi_min_idx, Qp C Idx[qPi] is set to be the same as qPi.
[0264] - If i = qPi_min_idx ··· qPiMaxIdx, Qp C Idx[i] is set to Qp C _qPi_delta_val[i] + Qp C Idx[i - 1].
[0265] - If i > qPiMaxIdx, Qp C Idx[i] is set to qPi - QpOffset C .
[0266] After that, the said Qp C can be set to the said Qp C Idx[i].
[0267] Also, referring to Table 23, when 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 is derived by the default table based on the same index qPi as
[0268] This document also proposes another embodiment for signaling information about the quantization parameters.
[0269] For example, in this embodiment, chroma quantization (Qp C A syntax element for the Qp deriving parameter is proposed. For example, the APS ID can be signaled in the slice header. Also, for example, a flag in the PPS (picture parameter set) 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 Qp C Additional control schemes are added to support access to the APS containing the data.
[0270] 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.
[0271] 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.
[0272] For example, the APS according to this embodiment is as shown in the following table.
[0273] [Table 24]
[0274] For example, the syntax element adaptation_parameter_set_id provides an identifier for an APS that is referenced by other syntax elements.
[0275] 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.
[0276] 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, a value of 1 for the syntax element aps_extension_flag indicates that the aps_extension_data_flag syntax element is present in the APS RBSP syntax structure, and a value of 0 for the syntax element aps_extension_flag indicates that the aps_extension_data_flag syntax element is not present in the APS RBSP syntax structure.
[0277] 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 the profile specified in this standard version. For example, a decoding device conforming to this standard version may ignore all syntax elements aps_extension_data_flag.
[0278] Qp disclosed in Table 24 above C _data() is signaled as shown in the following table.
[0279] [Table 25]
[0280] 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.
[0281] For example, the syntax element qPi_delta_max_idx is used to set the 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, 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.
[0282] 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.
[0283] 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. When the Qp C Offset C _present_flag does not exist, the Qp C Offset C _present_flag is considered to be 0.
[0284] Also, for example, the syntax element QpOffset C represents an offset value used for deriving Qp C .
[0285] For example, the variable Qp for qPi C Idx[qPi] is derived as follows. Here, the qPi can be from 0 to 63.
[0286] - When -qPi < qPi_min_Idx, Qp C Idx[qPi] is set to be the same as qPi.
[0287] - When -qPi = qPi_min_idx ··· qPiMaxIdx, Qp C Idx[qPi] is set to Qp C _qPi_delta_val[qPi] + Qp C Idx[qPi - 1].
[0288] - When -qPi > qPiMaxIdx, Qp COffset C If _present_flag is 1, 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 Idx[qPiMaxIdx]).
[0289] Then, Qp C The value of Qp C It is derived as Idx[qPi].
[0290] Furthermore, this embodiment proposes flags to be signaled in the PPS as shown in the following table.
[0291] [Table 26]
[0292] For example, the syntax element Qp C _data_default_flag indicates whether a user defined mode is used for quantization parameter derivation. For example, a Qp of 0 C _data_default_flag indicates that a user-defined mode is used to derive the quantization parameters, e.g., 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 is not present, Qp C _data_default_flag is considered to be 1.
[0293] Furthermore, this embodiment proposes syntax elements signaled in the slice header as shown in the following table.
[0294] [Table 27]
[0295] 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. Multiple Qp with the same value of adaptation_parameter_set_id C If an APS is referenced by more than one slice of the same picture, multiple Qp with the same value of adaptation_parameter_set_id C The APSs can have the same content.
[0296] For example, the process of deriving the quantization parameter according to this embodiment can be written in a standard format as shown in the following table.
[0297] [Table 28-1]
[0298] [Table 28-2]
[0299] [Table 28-3]
[0300] [Table 28-4]
[0301] [Table 28-5]
[0302] Referring to Table 28 above, if ChromaArrayType is 1 and Qp C If _data_default_flag indicates a negative (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
[0303] This document also proposes another embodiment for signaling information about the quantization parameters.
[0304] For example, in this embodiment, it is proposed to signal the user-defined guidance of chroma quantization in SPS as follows: CPropose (the following). For example, it can indicate whether the SPS flag uses the default table for chroma quantization derivation or derives the content of the table for chroma quantization derivation from the information signaled in the SPS.
[0305] For example, this embodiment proposes a scheme for performing chroma quantization as a function of the index qPi using the syntax elements shown in the following table.
[0306] [Table 29]
[0307] 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.
[0308] 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 chroma 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.
[0309] Also, for example, the syntax element Qp C _qPi_delta_val[i] indicates the delta of the Qp C value for the i-th index.
[0310] For example, the variable Qp C Idx[qPi] is derived as follows.
[0311] - When -qPi < qPi_min_Idx, QpC Idx[qPi] is set equal to qPi.
[0312] -If qPi=qPi_min_idx···qPiMaxIdx, then Qp C Idx[qPi] is Qp C _qPi_delta_val[qPi]+Qp C It is set to Idx[qPi-1].
[0313] -If qPi>qPiMaxIdx, then Qp C Idx[qPi] is qPi-(qPiMaxIdx-Qp C Idx[qPiMaxIdx]).
[0314] Then, the Qp C is the Qp C It is set to Idx[qPi].
[0315] In addition, the flag of the SPS indicating whether to use the 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.
[0316] [Table 30]
[0317] For example, the syntax element Qp C _data_default_flag indicates whether a user-defined mode is used for deriving the quantization parameters. For example, a Qp of 0 C _data_default_flag indicates that a user-defined mode is used for quantization parameter derivation, e.g., 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 CIf _data_default_flag is not present, C _data_default_flag is considered to be 1.
[0318] For example, the process of deriving the quantization parameters according to this embodiment can be written in a standard format as shown in the following table.
[0319] [Table 31-1]
[0320] [Table 31-2]
[0321] [Table 31-3]
[0322] [Table 31-4]
[0323] [Table 31-5]
[0324] Referring to Table 31 above, if ChromaArrayType is 1 and Qp C If _data_default_flag indicates a negative (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. 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 can be derived by a default table based on the same index qPi as
[0325] This document also proposes another embodiment for signaling information about the quantization parameters.
[0326] 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 the user-defined table and the default table for each picture that references the PPS.
[0327] The syntax elements for the user defined table signaled in the PPS proposed in this embodiment are as follows:
[0328] [Table 32]
[0329] 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.
[0330] Also, for example, the syntax element qPi_delta_max_idx indicates the delta value between the maximum qPi index used in the derivation of Qpi_min_idx and 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 63. For example, Qp C The maximum index qPiMaxIdx used in the derivation can be derived as shown in Equation 4 above.
[0331] Also, for example, the syntax element QpC_qPi_delta_val[i] indicates the delta of the Qp value for the i-th index. C The delta of the value.
[0332] For example, the variable Qp C Idx[qPi] can be derived as follows.
[0333] When -qPi < qPi_min_Idx, Qp C Idx[qPi] is set to be the same as qPi.
[0334] When -qPi = qPi_min_idx ··· qPiMaxIdx, Qp C Idx[qPi] is Qp C _qPi_delta_val[qPi] + Qp C Idx[qPi - 1].
[0335] When -qPi > qPiMaxIdx, Qp C Idx[qPi] is set to qPi - (qPiMaxIdx - Qp C Idx[qPiMaxIdx]).
[0336] After that, the said Qp C is set to the said Qp C Idx[qPi].
[0337] In addition, the flag of the SPS indicating whether to use the 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.
[0338] [Table 33]
[0339] For example, the syntax element Qp C _data_default_flag indicates whether a user-defined mode is used for deriving the quantization parameters. For example, a Qp of 0 C _data_default_flag indicates that a user-defined mode is used for the 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 also 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, C _data_default_flag is considered to be 1.
[0340] For example, the process of deriving the quantization parameters according to this embodiment can be written in a standard format as shown in the following table.
[0341] [Table 34-1]
[0342] [Table 34-2]
[0343] [Table 34-3]
[0344] [Table 34-4]
[0345] [Table 34-5]
[0346] Referring to Table 34 above, if ChromaArrayType is 1 and Qp C If _data_default_flag indicates a negative (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. 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
[0347] This document also proposes another embodiment for signaling information about the quantization parameters.
[0348] For example, this embodiment proposes a general mode for deriving and signaling the chroma quantization parameter Qp C and signaling.
[0349] For the chroma quantization parameter data Qp_data() for the chroma quantization parameter proposed in this embodiment, C is signaled as shown in the following table.
[0350]
Table 35
[0351] 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.
[0352] 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 chroma 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, for Qp C the maximum index qPiMaxIdx used for derivation can be derived as in the above formula (4).
[0353] Also, for example, the syntax element QpC_qPi_delta_val[i] indicates the delta of the Qp C value for the i-th index.
[0354] For example, the variable Qp C Idx[qPi] can be derived as follows.
[0355] - When -qPi < qPi_min_Idx, QpC Idx[qPi] is set equal to qPi.
[0356] -If qPi=qPi_min_idx···qPiMaxIdx, then Qp C Idx[qPi] is Qp C _qPi_delta_val[qPi]+Qp C It is set to Idx[qPi-1].
[0357] -If qPi>qPiMaxIdx, then Qp C Idx[qPi] is qPi-(qPiMaxIdx-Qp C Idx[qPiMaxIdx]).
[0358] Then, the Qp C is the Qp C It is set to Idx[qPi].
[0359] Furthermore, this embodiment proposes a scheme for signaling a flag indicating whether a default table is used for chroma quantization derivation or signaled information is used for chroma quantization derivation. The flag can be signaled via a high level syntax such as a sequence parameter set (SPS) or a picture parameter set (PPS). The flag signaled via the high level syntax is as shown in the following table.
[0360] [Table 36]
[0361] For example, the syntax element Qp C _data_default_flag indicates whether a user-defined mode is used for deriving the quantization parameters. For example, a Qp of 0 C_data_default_flag indicates that a user-defined mode is used for the 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 also 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, C _data_default_flag is considered to be 1.
[0362] For example, the process of deriving the quantization parameters according to this embodiment can be written in a standard format as shown in the following table.
[0363] [Table 37-1]
[0364] [Table 37-2]
[0365] [Table 37-3]
[0366] [Table 37-4]
[0367] [Table 37-5]
[0368] Referring to Table 37 above, if ChromaArrayType is 1 and Qp C If _data_default_flag indicates a negative (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
[0369] This document also proposes another embodiment for signaling information about the quantization parameters.
[0370] 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 APS or can be used independently. For example, the syntax structure of APS integrated with chroma quantization data is as follows:
[0371] [Table 38]
[0372] 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.
[0373] 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.
[0374] Also, for example, the syntax element QpC_qPi_delta_val[i] indicates the difference in Qp C value for the i-th index. The said difference may be referred to as delta.
[0375] For example, the variable Qp C Idx[qPi] is derived as follows. Here, the said qPi can be from 0 to 63.
[0376] - When -qPi < qPi_min_Idx, Qp C Idx[qPi] is set to be the same as qPi.
[0377] - When -qPi = qPi_min_idx ··· qPiMaxIdx, Qp C Idx[qPi] is Qp C _qPi_delta_val[qPi] + Qp C Idx[qPi - 1].
[0378] - When -qPi > qPiMaxIdx, Qp C Idx[qPi] is qPi - (qPiMaxIdx - Qp CIdx[qPiMaxIdx]).
[0379] Then, the Qp C is the Qp C It is set to Idx[qPi].
[0380] This document also proposes another embodiment for signaling information about the quantization parameters.
[0381] For example, this embodiment uses continuous Qp C A scheme in which the delta (or difference) between values is limited to 1 is presented as an example.
[0382] For example, the present embodiment adds user-defined chroma quantization (Qp C ) is proposed. For example, a flag in the sequence parameter set (SPS) proposed in this embodiment indicates whether to use an existing default table for deriving chroma quantization parameters 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.
[0383] For example, this 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.
[0384] [Table 39]
[0385] 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.
[0386] Also, for example, the syntax element qPi_delta_max_idx indicates the delta value between the maximum qPi index used in Qpi_min_idx and 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 1 to 63. For example, Qp C The maximum index qPiMaxIdx used in the derivation can be derived as shown in Equation 4 above.
[0387] 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 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 has not increased.
[0388] [[ID=三十二]]For example, the variable Qp C Idx[qPi] can be derived as follows. Here, the qPi can be from 0 to 63.
[0389] - When -qPi < qPi_min_Idx, Qp C Idx[qPi] is set to be the same as qPi.
[0390] - When -qPi = qPi_min_idx ··· qPiMaxIdx, Qp C Idx[qPi] is Qp C _qPi_flag[qPi] + Qp[[ID=四十九]] C Idx[qPi - 1] is set.
[0391] -If qPi>qPiMaxIdx, then Qp C Idx[qPi] is qPi-(qPiMaxIdx-Qp C Idx[qPiMaxIdx]).
[0392] Then, the Qp C is the Qp C It is set to Idx[qPi].
[0393] Furthermore, this embodiment proposes a scheme for signaling a flag indicating whether a default table is used for chroma quantization derivation or signaled information is used for chroma quantization derivation. The flag can be signaled via a high level syntax such as a sequence parameter set (SPS) or a picture parameter set (PPS). The flag signaled via a high level syntax is as shown in the following table.
[0394] [Table 40]
[0395] For example, the syntax element Qp C _data_default_flag indicates whether a user-defined mode is used for deriving the quantization parameters. For example, a Qp of 0 C _data_default_flag indicates that a user-defined mode is used for the 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 also 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, C _data_default_flag is considered to be 1.
[0396] For example, the process of deriving the quantization parameters according to this embodiment can be written in a standard format as shown in the following table.
[0397] [Table 41-1]
[0398] [Table 41-2]
[0399] [Table 41-3]
[0400] [Table 41-4]
[0401] [Table 41-5]
[0402] Referring to Table 41 above, if ChromaArrayType is 1 and Qp C If _data_default_flag indicates a negative (FALSE) (i.e., for example, Qp C _data_default_flag is 0), qP Cb , variable qP Crand qP CbCr can be 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 , qPi CbCr can be derived by a default table based on the same index qPi as
[0403] This document also proposes another embodiment for signaling information about the quantization parameters.
[0404] 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, to 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, the syntax elements used to derive the chroma QP mapping table may be signaled as shown in the following table.
[0405] [Table 42]
[0406] For example, the syntax element Qp C_data_default_flag indicates whether a user-defined mode is used for deriving the quantization parameters. For example, a Qp of 0 C _data_default_flag indicates that a user-defined mode is used for the derivation of the quantization parameters, i.e., a Qp of 0 C The _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 can 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, C _data_default_flag is considered to be 1.
[0407] 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.
[0408] 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.
[0409] Also, for example, the syntax element Qp C _qPi_flag[i] indicates the delta value between the i-th element and the (i-1)-th element of the set of points at which the mapping function is non-increasing.
[0410] Based on the chroma quantization parameter data shown in Table 42, the chroma QP mapping table can be derived as follows:
[0411] For example, the variable cQpFlatSize can be derived as follows:
[0412]
number
[0413] Also, for example, the variable cQpFlat[ ] can be derived as shown in the following table.
[0414] [Table 43]
[0415] Then, based on the variables cQpFlatSize and cQpFlat[ ], a chroma QP mapping table can be derived as shown in the following table.
[0416] [Table 44]
[0417] This document also proposes another embodiment for signaling information about the quantization parameters.
[0418] For example, this embodiment proposes adding a new syntax element, chroma_qp_mapping_flag, to 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 the chroma QP mapping table are signaled as shown in the following table.
[0419] [Table 45]
[0420] For example, the syntax element Qp C _data_default_flag indicates whether a user-defined mode is used for deriving the quantization parameters. For example, a Qp of 0 C _data_default_flag indicates that a user-defined mode is used for the derivation of the quantization parameters, i.e., a Qp of 0 C The _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, C _data_default_flag is considered to be 1.
[0421] 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.
[0422] 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.
[0423] 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 element and the (i-1)-th element of the set of points where the mapping function does not increase.
[0424] Based on the chroma quantization parameter data shown in Table 45, the chroma QP mapping table can be derived as follows:
[0425] For example, the variable cQpFlatSize can be derived as shown in Equation 5 above.
[0426] Also, for example, the variable cQpFlat[ ] can be derived as shown in the following table.
[0427] [Table 46]
[0428] 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.
[0429] This document also proposes another embodiment for signaling information about the quantization parameters.
[0430] For example, this embodiment proposes a scheme for signaling an individual table for each chroma component, i.e., for example, this embodiment proposes a scheme for signaling a syntax element used to derive a chroma QP mapping table for each chroma component.
[0431] For example, a chroma QP mapping table for each chroma component can be derived, and the syntax elements for each chroma component can be signaled as shown in the following table.
[0432] [Table 47]
[0433] 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 (Cb residual), the Cr residual (Cr residual), and the CbCr residual (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. 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.
[0434] Also, 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_minus1 can range from 1 to 63.
[0435] For example, adding 1 to the syntax element qPi_delta_max_idx_minus1 results in a value 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. 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 for derivation is derived as follows in the following formula.
[0436]
Equation
[0437] 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 value of the j-th Qp of the i-th chroma component C increases by 1 compared to the value of the (j - 1)-th Qp[[ID=()]] 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 has not increased.
[0438] For example, the variable Qp C Idx[i][qPi] can be derived as follows. Here, the qPi can be from 0 to maxQp.
[0439] When -qPi < qPi_min_idx_minus1 + 1, Qp C Idx[qPi] is set to be the same as qPi.
[0440] ]When -qPi = qPi_min_idx_minus1 + 1 ··· qPiMaxIdx, Qp C Idx[qPi] is set to QpC_qPi_flag[qPi] + Qp C Idx[qPi - 1].
[0441] -If qPi>qPiMaxIdx, then Qp C Idx[qPi] is qPi-(qPiMaxIdx-Qp C Idx[qPiMaxIdx]).
[0442] Then, the Qp C The value of Qp C It can be derived as Idx[i][qPi].
[0443] Meanwhile, according to this 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.
[0444] [Table 48]
[0445] Syntax element Qp C _data_default_flag indicates whether a user-defined mode is used for deriving the quantization parameters. For example, a Qp of 0 C _data_default_flag indicates that a user-defined mode is used for the derivation of the quantization parameters, i.e., a Qp of 0 C The _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, C _data_default_flag is considered to be 1.
[0446] For example, the process of deriving the quantization parameter according to this embodiment can be written in a standard format as shown in the following table.
[0447] [Table 49-1]
[0448] [Table 49-2]
[0449] [Table 49-3]
[0450] [Table 49-4]
[0451] [Table 49-5]
[0452] Referring to Table 49 above, if ChromaArrayType is 1 and Qp C If _data_default_flag indicates a negative (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. 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 is derived by the default table based on the same index qPi as
[0453] 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 relative to the maximum QP. That is, for example, according to this embodiment, a syntax element indicating a delta value between maxQp and the maximum qPi index used in chroma QpC derivation is signaled.
[0454] Chroma quantization parameter data, Qp C _data() is signaled as shown in the following table.
[0455] [Table 50]
[0456] 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.
[0457] 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, Qp C The maximum index qPiMaxIdx used for deriving Qp can be derived as follows:
[0458] [Equation]
[0459] 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 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.
[0460] For example, the variable Qp C Idx[qPi] can be derived as follows. Here, the qPi can be from 0 to 63.
[0461] When -qPi < qPi_min_Idx, Qp C Idx[qPi] is set to be the same as qPi.
[0462] When -qPi = qPi_min_idx ··· qPiMaxIdx, Qp C Idx[qPi] is QpC_qPi_flag[qPi]+QpC It is set to Idx[qPi-1].
[0463] -If qPi>qPiMaxIdx, then Qp C Idx[qPi] is qPi-(qPiMaxIdx-Qp C Idx[qPiMaxIdx]).
[0464] Then, the Qp C is the Qp C It is set to Idx[qPi].
[0465] Furthermore, this embodiment proposes a scheme for signaling a flag indicating whether a default table is used for chroma quantization derivation or signaled information is used for chroma quantization derivation. The flag can be signaled via a high level syntax such as a sequence parameter set (SPS) or a picture parameter set (PPS). The flag signaled via a high level syntax is as shown in the following table.
[0466] [Table 51]
[0467] For example, the syntax element Qp C _data_default_flag indicates whether a user-defined mode is used for deriving the quantization parameters. For example, a Qp of 0 C _data_default_flag indicates that a user-defined mode is used for the 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 also 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, C _data_default_flag is considered to be 1.
[0468] For example, the process of deriving the quantization parameter according to this embodiment can be written in a standard format as shown in the following table.
[0469] [Table 52-1]
[0470] [Table 52-2]
[0471] [Table 52-3]
[0472] [Table 52-4]
[0473] [Table 52-5]
[0474] Referring to Table 52 above, if ChromaArrayType is 1 and Qp C If _data_default_flag indicates a negative (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. 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
[0475] This document also proposes another embodiment for signaling information about quantization parameters, which proposes signaling the maximum difference between a start point and an end point by signaling the end point as a delta relative to the maximum QP or the difference between the start point and the delta.
[0476] Chroma quantization parameter data, Qp C _data() is signaled as shown in the following table.
[0477] [Table 53]
[0478] 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 maxQp.
[0479] 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.
[0480] For example, adding 1 to the syntax element qPi_delta_max_idx_minus1 equals maxQp and chroma Qp C 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.
[0481] [Table 54]
[0482] Also, for example, the syntax element Qp C _qPi_flag[i] is the Qp C Indicates whether the value is incremented by 1. For example, the syntax element Qp C _qPi_flag[i] is the ith 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 A value of 1 indicates an increase, and a Qp of 0 C _qPi_flag[i] is Qp C Indicates that the value is not increasing.
[0483] For example, the variable Qp CIdx[qPi] is derived as follows. Here, the qPi can be from 0 to maxQp.
[0484] - When -qPi < qPi_min_idx_minus1 + 1, Qp C Idx[qPi] is set to be the same as qPi.
[0485] - When -qPi = qPi_min_idx_minus1 ··· qPiMaxIdx, Qp C Idx[qPi] is Qp C _qPi_flag[qPi] + Qp C set to Idx[qPi - 1].
[0486] - When -qPi > qPiMaxIdx, Qp C Idx[qPi] is qPi - (qPiMaxIdx - Qp C set to Idx[qPiMaxIdx]).
[0487] After that, the Qp C is set to the Qp C Idx[qPi].
[0488] Also, 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.
[0489]
Table 55
[0490] For example, the syntax element Qp C_data_default_flag indicates whether a user-defined mode is used for deriving the quantization parameters. For example, a Qp of 0 C _data_default_flag indicates that a user-defined mode is used for the 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, C _data_default_flag is considered to be 1.
[0491] For example, the process of deriving the quantization parameters according to this embodiment can be written in standard format as shown in the following table.
[0492] [Table 56-1]
[0493] [Table 56-2]
[0494] [Table 56-3]
[0495] [Table 56-4]
[0496] [Table 56-5]
[0497] Referring to Table 56 above, if ChromaArrayType is 1 and Qp C If _data_default_flag indicates a negative (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. 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
[0498] This document also proposes another embodiment for signaling information about quantization parameters, which proposes signaling the maximum difference between a start point and an end point by signaling the end point as a delta relative to the maximum QP or the difference between the start point and the delta.
[0499] Chroma quantization parameter data, Qp C _data() is signaled as shown in the following table.
[0500] [Table 57]
[0501] 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 maxQp.
[0502] 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.
[0503] For example, adding 1 to the syntax element qPi_delta_max_idx_minus1 equals maxQp and chroma Qp C 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.
[0504] Also, for example, the syntax element Qp C _qPi_flag[i] is the Qp C Indicates whether the value is incremented by 1. For example, the syntax element Qp C _qPi_flag[i] is the ith 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 in value, and QpC_qPi_flag[i] of 0 indicates that Qp C does not increase in value.
[0505] For example, the variable Qp C Idx[qPi] is derived as follows. Here, the qPi can be from 0 to maxQp.
[0506] When -qPi < qPi_min_idx_minus1 + 1, Qp C Idx[qPi] is set to be the same as qPi.
[0507] When -qPi = qPi_min_idx_minus1 ··· qPiMaxIdx, Qp C Idx[qPi] is QpC_qPi_flag[qPi] + Qp C set to Idx[qPi - 1].
[0508] When -qPi > qPiMaxIdx, Qp C Idx[qPi] is qPi - (qPiMaxIdx - Qp[[ID=3T]] C Idx[qPiMaxIdx]) is set.
[0509] <00T22>After that, the Qp C can be set to the Qp C Idx[qPi].
[0510] 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 shown in the following table.
[0511] [Table 58]
[0512] For example, the syntax element Qp C _data_default_flag indicates whether a user-defined mode is used for deriving the quantization parameters. For example, a Qp of 0 C _data_default_flag indicates that a user-defined mode is used for the 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, C _data_default_flag is considered to be 1.
[0513] For example, the process of deriving the quantization parameter according to this embodiment can be written in a standard format as shown in the following table.
[0514] [Table 59-1]
[0515] [Table 59-2]
[0516] [Table 59-3]
[0517] [Table 59-4]
[0518] [Table 59-5]
[0519] Referring to Table 59 above, if ChromaArrayType is 1 and Qp C If _data_default_flag indicates a negative (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
[0520] This document also proposes another embodiment for signaling information about quantization parameters, which uses minus1 nomenclature instead of actual values to signal an index to a chroma QP mapping table.
[0521] Chroma quantization parameter data, Qp C _data() is signaled as shown in the following table.
[0522] [Table 60]
[0523] 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.
[0524] For example, adding 1 to the syntax element qPi_delta_max_idx_minus1 equals the sum of qPi_min_idx and chroma Qp C 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:
[0525]
number
[0526] Also, for example, the syntax element Qp C _qPi_flag[i] is the Qp C Indicates whether the value is incremented by 1. For example, the syntax element Qp C _qPi_flag[i] is the ith 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.
[0527] For example, the variable Qp C Idx[qPi] can be derived as follows. Here, the qPi can be from 0 to 63.
[0528] When -qPi < qPi_min_idx_minus1 + 1, Qp C Idx[qPi] is set to be the same as qPi.
[0529] When -qPi = qPi_min_idx_minus1 + 1 ··· qPiMaxIdx, Qp C Idx[qPi] is Qp C _qPi_flag[qPi] + Qp C Is set to Idx[qPi - 1].[[ID= [Table 61]
[0534] For example, the syntax element Qp C _data_default_flag indicates whether a user-defined mode is used for deriving the quantization parameters. For example, a Qp of 0 C _data_default_flag indicates that a user-defined mode is used for the 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 also 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, C _data_default_flag is considered to be 1.
[0535] For example, the process of deriving the quantization parameter according to this embodiment can be written in a standard format as shown in the following table.
[0536] [Table 62-1]
[0537] [Table 62-2]
[0538] [Table 62-3]
[0539] [Table 62-4]
[0540] [Table 62-5]
[0541] Referring to Table 62 above, if ChromaArrayType is 1 and Qp C If _data_default_flag indicates a negative (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. 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
[0542] This document also proposes another embodiment for signaling information about quantization parameters, in which a separate chroma quantization table is used for each chroma component.
[0543] The chroma quantization parameter data for the chroma quantization parameters proposed in this embodiment can be signaled as shown in the following table.
[0544] [Table 63]
[0545] 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 of 0 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. 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.
[0546] Also, 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 tables are used for Cb samples and Cr samples. Csps_separate_qpc_table_flag of 0 indicates that one Qpc table is used for Cb and Cr samples. C Indicates that a table is to be used.
[0547] 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 May be the same as [i], where i can be from 0 to 69.
[0548] Also, for example, the value of the 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.
[0549] 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 Indicates the delta value between qPi_cb_delta_idx_minus1 and qPiMaxIdx, which 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 for the Cb component C The maximum index qPiMaxIdxcb used in the derivation can be derived as follows:
[0550]
number
[0551] Also, for example, the syntax element Qp C _cb_qPi_flag[i] is the ith Qp for the Cb component C Value Qp Cb [i] and (i-1)th Qp C Value Qp Cb Qp indicates the delta values between [i-1]. C The value of _cb_qPi_flag[i] can range from 0 to 1.
[0552] For example, the variable Qp Cb [i] is derived as follows: where i can be from 0 to 69.
[0553] - For i=0..qPiMaxIdxCb, qP Cb [i] is set equal to i.
[0554] -i=qPi_cb_min_idx_minus1+1+1..qPiMaxIdxCb, then Qp Cb [i] is Qp Cb [i-1]+Qp C _cb_qPi_flag[i] is set.
[0555] -Qp for i=qPiMaxIdxCb+1...69 Cb [i] is set to i-deltaEnd, and deltaEnd is qPiMaxIdxCb-qP Cb It can be derived as [qPiMaxIdxCb].
[0556] Also, 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.
[0557] 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 can be combined with at least one of the above-described embodiments. That is, for example, the embodiments of this document can be commonly applied.
[0558] Specifically, for example, in this embodiment, a user-defined chroma quantization parameter (Qp C ) is included. For example, according to this embodiment, a flag in an SPS (sequence parameter set) indicates whether to use a default table for deriving a chroma quantization parameter or whether 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 image content characteristics in image coding, thereby improving coding efficiency. In addition, this embodiment may provide flexibility by providing an option for using one user-defined table for chroma components and an option for using separate user-defined tables for the Cb and Cr components.
[0559] For example, the chroma quantization parameter data Qp C _data() is signaled as shown in the following table.
[0560] [Table 64]
[0561] 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.
[0562] Also, for example, the syntax element qPi_delta_max_idx indicates the delta value between the maximum qPi index used for the derivation of qPi_min_idx and the 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 for the derivation of Qp C can be derived as shown in Equation 4 above.
[0563] 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 [[ID=二十]]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 has not increased.
[0564] For example, the variable Qp C Idx[qPi] can be derived as follows. Here, the qPi can be from 0 to 69.
[0565] - When -qPi < qPi_min_Idx, Qp C [[ID=四十]]Idx[qPi] is set to be the same as qPi. - When -qPi = qPi_min_idx ··· qPiMaxIdx, Qp
[0566] Idx[qPi] is set to Qp C _qPi_flag[qPi] + Qp C Idx[qPi - 1]. C Idx[qPi - 1] is set.
[0567] -If qPi>qPiMaxIdx, then Qp C Idx[qPi] is qPi-(qPiMaxIdx-Qp C Idx[qPiMaxIdx]).
[0568] Then, the Qp C is the Qp C It is set to Idx[qPi].
[0569] Furthermore, this 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 flag signaled via the high level syntax is as shown in the following table.
[0570] [Table 65]
[0571] For example, the syntax element Qp C _data_default_flag indicates whether a user-defined mode is used for deriving the quantization parameters. For example, a Qp of 0 C _data_default_flag indicates that a user-defined mode is used for the 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 also 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, C _data_default_flag is considered to be 1.
[0572] For example, the process of deriving the quantization parameter according to this embodiment can be written in a standard format as shown in the following table.
[0573] [Table 66-1]
[0574] [Table 66-2]
[0575] [Table 66-3]
[0576] [Table 66-4]
[0577] [Table 66-5]
[0578] Referring to Table 66 above, if ChromaArrayType is 1 and Qp C If _data_default_flag indicates a negative (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. 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
[0579] 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.
[0580] [Table 67]
[0581] For example, the syntax element "is_separate_chroma_table" indicates whether separate chroma quantization table-related parameters are signaled for the Cb and Cr components. That is, the syntax element "is_separate_chroma_table" may indicate whether two separate chroma quantization parameter mapping tables are used for the Cb and Cr components. For example, the syntax element "is_separate_chroma_table" may indicate whether separate luma-chroma quantization parameter mapping tables are used for the Cb residual and the Cr residual. For example, "is_separate_chroma_table" of 1 indicates that separate chroma quantization parameter mapping tables are signaled for the Cb and Cr components, 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 _qPi_flag[i][j] can be signaled. Also, for example, if the value of is_separate_chroma_table is 0, qPi_min_idx_minus1[i], qPi_delta_max_Idx[i], and Qp for the Cb component, Cr component, and joint CbCr component can be signaled. C _qPi_flag[i][j] can be signaled.
[0582] Also, for example, the value of the 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.
[0583] For example, the syntax element qPi_delta_max_idx is the sum of qPi_min_Idx[i] and chroma Qp C 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 0 to 69. For example, Qp C The maximum index qPiMaxIdx[i] used in the derivation can be derived as follows:
[0584]
number
[0585] The value of qPiMaxIdx[i] is greater than or equal to qPi_min_idx_minus1[i].
[0586] Also, for example, the syntax element Qp C _qPi_flag[i][j] is the jth Qp of the ith chroma component C Indicates whether the value is incremented by 1. For example, the syntax element Qp C _qPi_flag[i][j] is the jth Qp of the ith 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 Qp of the ith chroma component is increased by 1. C A QpC_qPi_flag[j] of 0 indicates that the value is increased by 1, and a QpC_qPi_flag[j] of 0 indicates that the jth Qp CIndicates that the value does not increase.
[0587] For example, 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.
[0588]
Table 68
[0589] 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.
[0590] 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 table 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.
[0591] [[ID=2S]] [[ID=Z6]]Also, referring to Table 68, Qp C Idx[i][qPi] is derived as follows.
[0592] When -qPi < qPi_min_Idx[i], Qp CIdx[i][qPi] is set equal to qPi.
[0593] -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].
[0594] -If qPi>qPiMaxIdx, then Qp C Idx[i][qPi] is qPi-(qPiMaxIdx[i]-Qp C Idx[i][qPiMaxIdx]).
[0595] Then, the Qp C The value of Qp C It can be derived as Idx[i][qPi].
[0596] Furthermore, this embodiment proposes a scheme for signaling a flag indicating whether a default table is used for chroma quantization derivation or signaled information is used for chroma quantization derivation. The flag can be signaled via a high level syntax such as a sequence parameter set (SPS) or a picture parameter set (PPS). The flag signaled via a high level syntax is as shown in the following table.
[0597] [Table 69]
[0598] For example, the syntax element Qp C _data_default_flag indicates whether a user-defined mode is used for deriving the quantization parameters. For example, a Qp of 0 C_data_default_flag indicates that a user-defined mode is used for the 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 also 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, C _data_default_flag is considered to be 1.
[0599] For example, the process of deriving the quantization parameter according to this embodiment can be written in a standard format as shown in the following table.
[0600] [Table 70-1]
[0601] [Table 70-2]
[0602] [Table 70-3]
[0603] [Table 70-4]
[0604] [Table 70-5]
[0605] Referring to Table 70 above, if ChromaArrayType is 1 and Qp C If _data_default_flag indicates a negative (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. 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
[0606] FIG. 7 schematically illustrates an image encoding method by the encoding device according to the present disclosure. The method disclosed in FIG. 7 may be performed by the encoding device disclosed in FIG. 2. Specifically, for example, S700 in FIG. 7 may be performed by a prediction unit of the encoding device, S710 to S730 in FIG. 7 may be performed by a residual processing unit of the encoding device, and S740 may be performed by an entropy encoding unit of the encoding device. Also, although not shown, the process of generating reconstructed samples and reconstructed pictures based on residual samples and predicted samples may be performed by an adder of the encoding device.
[0607] An encoding apparatus derives prediction samples for chroma components based on inter prediction or intra prediction (S700). The encoding apparatus may derive prediction samples for the chroma components based on a prediction mode. That is, for example, the encoding apparatus may derive prediction samples of the current block for the chroma components based on a prediction mode. In this case, various prediction methods disclosed herein, such as inter prediction or intra prediction, may be applied. The chroma components may include a Cb component, a Cr component, and / or a joint CbCr component.
[0608] For example, the encoding device 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. The encoding device may derive prediction samples for the current block according to the determined mode.
[0609] The encoding apparatus derives residual samples for the chroma components based on the predicted samples (S710). For example, the encoding apparatus may derive the residual samples by subtracting the predicted samples from the original samples of the current block for the chroma components in the current picture.
[0610] The encoding device generates a flag indicating whether one chroma quantization parameter table is applied to the chroma component (S720). The encoding device can determine whether one chroma quantization parameter table is applied to the chroma component and generate the flag.
[0611] 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 the chroma type. Here, the chroma type may refer to 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 above-mentioned qp_luma_to_chroma_joint_map_flag flag, sps_separate_qpc_table_flag, or is_separate_chroma_table.
[0612] For example, if the value of the flag is 1, the flag may indicate that one chroma quantization parameter table is applied to the chroma component. Also, if 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, if 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.
[0613] Also, for example, the flag may be signaled via a high level syntax, such as a sequence parameter set (SPS), a picture parameter set (PPS), a slice header, or an adaptation parameter set (APS).
[0614] The encoding apparatus generates chroma quantization parameter data for the chroma components based on the flag (S730). The encoding apparatus can generate chroma quantization parameter data for the chroma components based on the flag.
[0615] 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 the Cb component and second chroma quantization parameter data for the Cr component. Alternatively, 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 the Cb component, second chroma quantization parameter data for the Cr component, and / or third chroma quantization parameter data for the joint CbCr component.
[0616] Meanwhile, for example, the encoding apparatus may generate and encode a joint CbCr availability flag indicating whether third chroma quantization parameter data for the joint CbCr component exists. That is, for example, the encoding apparatus may determine whether third chroma quantization parameter data for the joint CbCr component exists and generate and encode the joint CbCr availability flag. Furthermore, for example, the encoding apparatus may generate and encode a joint CbCr availability flag indicating whether third chroma quantization parameter data for the joint CbCr component exists based on a chroma type. Here, the chroma type may refer to 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 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 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, such as a sequence parameter set (SPS), a picture parameter set (PPS), a slice header, or an adaptation parameter set (APS).
[0617] In this case, if 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 third chroma quantization parameter data exists for the joint CbCr components), the chroma quantization parameter data may include first chroma quantization parameter data for the Cb component, second chroma quantization parameter data for the Cr component, and third chroma quantization parameter data for the joint CbCr component.
[0618] Furthermore, 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 the 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 the 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. Furthermore, 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]. Furthermore, 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]. Furthermore, for example, the first chrominance 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).
[0619] Furthermore, 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 the 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 the 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. Furthermore, 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]. Furthermore, 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]. Furthermore, for example, the second chrominance 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).
[0620] Furthermore, 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 the 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 the 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]. Furthermore, 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]. Furthermore, 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]. Furthermore, 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, an adaptation parameter set (APS), or the like.
[0621] 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 the Cb component, the Cr component, and the joint CbCr component.
[0622] The encoding device encodes the prediction information for the chroma components, the residual information for the chroma components, the chroma quantization parameter data, and the flag (S740). The encoding device may encode the image information. The image information may include the prediction information for the chroma components, the residual information for the chroma components, the chroma quantization parameter data, and the flag.
[0623] For example, the encoding apparatus may generate and encode prediction information for the current block, the prediction information may include prediction mode information indicating a prediction mode of the current block for the chroma component, and the image information may include the prediction information.
[0624] Furthermore, for example, the encoding device may encode residual information for the residual samples. For example, the encoding device may derive transform coefficients based on the residual samples and generate the residual information based on the transform coefficients. For example, the encoding device may quantize the residual samples based on a chroma quantization parameter to derive quantized residual samples, derive transform coefficients based on the quantized residual samples, and generate and encode the residual information based on the transform coefficients. Or, for example, the encoding device may quantize the residual samples based on a chroma quantization parameter to derive quantized residual samples, transform the quantized residual samples to derive transform coefficients, and generate and encode the residual information based on the transform coefficients.
[0625] For example, when the value of the flag is 0, the encoding device can quantize the residual samples for the Cb component based on a first chroma quantization parameter for the Cb component to derive quantized residual samples for the Cb component, and can quantize the residual samples for the Cr component based on a second chroma quantization parameter for the Cr component to derive quantized residual samples for the Cr component. Alternatively, when the value of the flag is 0, the encoding device can quantize the residual samples for the Cb component based on a first chroma quantization parameter for the Cb component to derive quantized residual samples for the Cb component, can quantize the residual samples for the Cr component based on a second chroma quantization parameter for the Cr component to derive quantized residual samples for the Cr component, and can quantize the residual samples for the joint CbCr component based on a third chroma quantization parameter for the joint CbCr component to derive quantized residual samples for the joint CbCr component. Alternatively, for example, if the value of the flag is 1, the encoding apparatus may quantize the residual samples for the chroma components based on a chroma quantization parameter to derive quantized residual samples for the chroma components.
[0626] The image information may include the residual information. For example, the residual information may include syntax elements for transform coefficients of a current chroma block. For example, the syntax elements may include syntax elements such as coded_sub_block_flag, sig_coeff_flag, coeff_sign_flag, abs_level_gt1_flag, par_level_flag, abs_level_gtX_flag, abs_remainder, and / or coeff_sign_flag.
[0627] Furthermore, for example, the encoding device can encode the chroma quantization parameter data and the flag. The image information can include the chroma quantization parameter data and the flag.
[0628] An encoding device may encode image information including the chroma quantization parameter data, the flag, and / or the joint CbCr availability flag.
[0629] The encoding device encodes image information and outputs it in the form of a bitstream.
[0630] Meanwhile, the bitstream containing the image information can be transmitted to the decoding device via a network or a (digital) storage medium, where the network can include a broadcasting 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.
[0631] FIG. 8 schematically illustrates an encoding device that performs the image encoding method according to the present document. The method disclosed in FIG. 7 can be performed by the encoding device disclosed in FIG. 8. Specifically, for example, the prediction unit of the encoding device in FIG. 8 can perform S700, the residual processing unit of the encoding device can perform S710 to S730, and the entropy encoding unit of the encoding device can perform S740. Also, although not shown, the process of generating reconstructed samples and reconstructed pictures based on the residual samples and predicted samples can be performed by an adder of the encoding device.
[0632] Figure 9 schematically illustrates an image decoding method by the decoding device according to the present document. The method disclosed in Figure 9 can be performed by the decoding device disclosed in Figure 3. Specifically, for example, steps S900 to S910 of Figure 9 can be performed by an entropy decoding unit of the decoding device, step S940 of Figure 9 can be performed by a prediction unit of the decoding device, steps S920 to S930 and S950 to S960 of Figure 9 can be performed by a residual processing unit of the decoding device, and step S970 of Figure 9 can be performed by an adder unit of the decoding device.
[0633] A decoding device acquires image information including a flag indicating whether a chroma quantization parameter table is applied to a chroma component, prediction information for the chroma component, and residual information (S900). The decoding device may acquire the image information via a bitstream. For example, the image information may include information about chroma quantization parameters.
[0634] 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 refer to 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, the 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.
[0635] For example, if the value of the flag is 1, the flag may indicate that one chroma quantization parameter table is applied to the chroma component. Also, if 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, if 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.
[0636] Also, for example, the flag may be signaled via a high level syntax, such as a sequence parameter set (SPS), a picture parameter set (PPS), a slice header, or an adaptation parameter set (APS).
[0637] Further, 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. Further, 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.
[0638] The decoding device obtains the chroma quantization parameter data based on the flag (S910). The decoding device can obtain the chroma quantization parameter data based on the flag.
[0639] 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 first chroma quantization parameter data for the Cb component and second chroma quantization parameter data for the Cr component. Alternatively, 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 first chroma quantization parameter data for the Cb component, second chroma quantization parameter data for the Cr component, and / or third chroma quantization parameter data for the joint CbCr component.
[0640] Meanwhile, for example, the decoding device may acquire a joint CbCr availability flag indicating whether third chroma quantization parameter data for the joint CbCr component is present. For example, the image information may include a joint CbCr availability flag indicating whether third chroma quantization parameter data for the joint CbCr component is present. Furthermore, for example, the decoding device may acquire a joint CbCr availability flag indicating whether third chroma quantization parameter data for the joint CbCr component is present based on a chroma type. Here, the chroma type may refer to the above-mentioned ChromaArrayType. For example, if the value of the chroma type is not 0, the decoding device may acquire a joint CbCr availability flag indicating whether third chroma quantization parameter data for the joint CbCr component is present. For example, if the value of the chroma type is 1, the decoding device may acquire a joint CbCr availability flag indicating whether third chroma quantization parameter data for the joint CbCr component is present. Furthermore, 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).
[0641] In this case, if 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 third chroma quantization parameter data exists for the joint CbCr component), the chroma quantization parameter data may include first chroma quantization parameter data for the Cb component, second chroma quantization parameter data for the Cr component, and third chroma quantization parameter data for the joint CbCr component.
[0642] Furthermore, 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 the 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 the 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. Furthermore, 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]. Furthermore, 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]. Furthermore, for example, the first chrominance 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).
[0643] Furthermore, 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 the 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 the 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. Furthermore, 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]. Furthermore, 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]. Furthermore, for example, the second chrominance 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).
[0644] Furthermore, 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 the 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 the 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]. Furthermore, 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]. Furthermore, 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]. Furthermore, 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, an adaptation parameter set (APS), or the like.
[0645] 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 the Cb component, the Cr component, and the joint CbCr component.
[0646] The decoding device derives the chroma quantization parameter table based on the chroma quantization parameter data (S920). The decoding device can derive the chroma quantization parameter table based on the chroma quantization parameter data. The chroma quantization parameter table can be called a chroma quantization parameter mapping table or a user-defined quantization parameter mapping table.
[0647] 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 the 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. That is, for example, a chroma quantization parameter table for a chroma component may be derived based on the quantization parameter data.
[0648] 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, 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, 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.
[0649] 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 chroma quantization parameter data for the chroma component. The chroma components may include a Cb component, a Cr component, and a joint CbCr component.
[0650] The decoding device derives chroma quantization parameters for the chroma components based on the chroma quantization parameter table (S930). The decoding device can derive chroma quantization parameters for the chroma components based on the chroma quantization parameter table.
[0651] 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 expressed as:
[0652] 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 the 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.
[0653] 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 The offset may be derived based on a syntax element that indicates an offset for deriving a quantization parameter for the chroma component.
[0654] 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. Therefore, the same chroma quantization parameter can be applied to the chroma components.
[0655] For example, an index for a chroma component (Cb component, Cr component, and joint CbCr component) may be derived based on a quantization parameter for the 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.
[0656] Furthermore, for example, the chroma quantization parameter for the chroma component may be derived by adding an offset to the chroma quantization parameter for the index in the chroma quantization parameter table for the chroma component, and the offset may be derived based on a syntax element representing an offset for deriving a quantization parameter for the chroma component.
[0657] The decoding device derives prediction samples for the chroma components based on the prediction information (S940). The decoding device may determine whether inter prediction or intra prediction is applied to the chroma components 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 the current block for the chroma components based on the prediction information, and perform prediction based on the determination.
[0658] 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 predicted samples of the current block based on the prediction mode. For example, if 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 predicted samples of the current block based on the motion information. Furthermore, for example, if intra prediction is applied to the current block, the decoding device may derive reference samples based on neighboring samples of the current block, and derive the predicted samples of the current block based on the reference samples and the intra prediction mode of the current block. The reference samples may include upper reference samples and left reference samples of the current block. For example, if the size of the current block is NxN and the x component of the top-left sample position of the current block is 0 and the y component is 0, the left reference sample can be p[-1][0] to p[-1][2N-1], and the upper reference sample can be p[0][-1] to p[2N-1][-1].
[0659] The decoding device derives transform coefficients for the chroma components based on the residual information (S950). For example, the decoding device may derive transform coefficients for the chroma components based on the received residual information. Alternatively, for example, the decoding device may derive transform coefficients based on the residual information and inversely transform the transform coefficients to derive inverse-transformed transform coefficients. The transform coefficients may include transform coefficients for the Cb component, transform coefficients for the Cr component, and / or transform coefficients for the joint CbCr component.
[0660] The decoding device dequantizes the transform coefficients based on the chroma quantization parameter to derive residual samples (S960). The decoding device can derive residual samples based on the chroma quantization parameter.
[0661] For example, if the flag value is 0, the decoding device may dequantize 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 may dequantize 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, if the flag value is 0, the decoding device may dequantize 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, dequantize 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 dequantize 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 apparatus may dequantize the transform coefficients for the chroma components based on a chroma quantization parameter to derive residual samples for the chroma components.
[0662] Alternatively, if 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 residual samples 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 residual samples for the Cr component. Alternatively, for example, if 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 residual samples 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 residual samples 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 residual samples 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.
[0663] The decoding device generates a reconstructed picture based on the predicted samples and the residual samples (S970). For example, the decoding device can generate the reconstructed picture based on the residual samples.
[0664] Meanwhile, for example, the decoding device can derive a prediction sample by performing an inter prediction mode or an intra prediction mode on the current block based on prediction information received via a bitstream, and can generate a reconstructed sample and / or a reconstructed picture by adding the prediction sample and the residual sample.
[0665] As mentioned above, in-loop filtering procedures such as deblocking filtering, SAO, and / or ALF procedures may then be applied to the reconstructed samples to improve the subjective / objective image quality as needed.
[0666] Figure 10 schematically illustrates a decoding device that performs the image decoding method according to the present document. The method disclosed in Figure 9 can be performed by the decoding device disclosed in Figure 10. Specifically, for example, the entropy decoding unit of the decoding device of Figure 10 can perform S900 to S910 of Figure 9, the prediction unit of the decoding device of Figure 10 can perform S940 of Figure 9, the residual processing unit of the decoding device of Figure 10 can perform S920 to S930 and S950 to S960 of Figure 9, and the addition unit of the decoding device of Figure 10 can perform S970 of Figure 9.
[0667] 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.
[0668] 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, thereby improving coding efficiency.
[0669] In the above-described embodiments, the method is described based on a flow chart as a series of steps or blocks, but this document is not limited to the order of steps, and some steps may occur in a different order or simultaneously with other steps than those described above. Furthermore, 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.
[0670] The embodiments described herein 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.
[0671] In addition, the decoding device and encoding device to which the embodiments of this document are 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 interaction 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 (OTT) video (over-the-top) device, an internet streaming service providing device, a three-dimensional (3D) video device, an image telephone video device, a vehicle terminal (e.g., a vehicle terminal, an airplane terminal, a ship terminal, etc.), a medical video device, etc., and may be used to process video signals or data signals. For example, an over-the-top (OTT) video (over-the-top) 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.
[0672] In addition, a processing method to which an embodiment of this document is applied may be produced in the form of a computer-executable program and 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 media implemented in the form of a carrier wave (e.g., transmission via the Internet). The bitstream generated by the encoding method may be stored in a computer-readable recording medium or transmitted via a wired or wireless communication network.
[0673] Furthermore, the embodiments of the present document may be implemented in a computer program product by program code, which may be executed by a computer in accordance with the embodiments of the present document. The program code may be stored on a computer-readable carrier.
[0674] FIG. 11 exemplarily illustrates a structural diagram of a content streaming system to which the embodiments of this document are applied.
[0675] 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.
[0676] 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.
[0677] The bitstream can be generated by an encoding method or a bitstream generation method to which an embodiment of this document is applied, and the streaming server can temporarily store the bitstream in the process of transmitting or receiving the bitstream.
[0678] 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, which then transmits the multimedia data to the user. The content streaming system may include a separate control server, which controls commands and responses between devices in the content streaming system.
[0679] The streaming server can receive content from a media repository and / or an encoding server. For example, if content is received from the encoding server, the content can be received in real time. In this case, the streaming server can store the bitstream for a certain period of time to provide a smooth streaming service.
[0680] 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 glasses, and 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.
[0681] 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 to be realized as an apparatus, and the technical features of the apparatus claims in this specification may be combined to be realized as a method. Furthermore, the technical features of the method claims and the technical features of the apparatus claims in this specification may be combined to be 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 to be realized as a method.
Claims
1. An image decoding method performed by a decoding device, obtaining image information including residual information for chroma components and a flag indicating whether one chroma quantization parameter table is applied; obtaining chroma quantization parameter data based on the flag; deriving at least one chroma quantization parameter table based on the chroma quantization parameter data; deriving at least one chroma quantization parameter for the chroma component based on the at least one chroma quantization parameter table; deriving transform coefficients for the chroma components based on the residual information; deriving residual samples for chroma components by dequantizing the transform coefficients based on the at least one chroma quantization parameter; generating a reconstructed picture based on the residual samples; the flag equal to 0 indicates that a first chroma quantization parameter table for the Cb component, a second chroma quantization parameter table for the Cr component, and a third chroma quantization parameter table for the joint CbCr component are signaled; the first chroma quantization parameter data for the Cb component includes a syntax element for the first chroma quantization parameter table; the second chroma quantization parameter data for the Cr component includes a syntax element for the second chroma quantization parameter table; The third chroma quantization parameter data for the joint CbCr component includes a syntax element for the third chroma quantization parameter table.
2. The image decoding method of claim 1 , wherein the flag equal to 1 indicates that the one chroma quantization parameter table is signaled to apply to the Cb component, the Cr component, and the joint CbCr component.
3. An image encoding method performed by an encoding device, deriving residual samples for chroma components; generating a flag indicating whether one chroma quantization parameter table is applied; generating chroma quantization parameter data for the chroma components based on the flag; encoding residual information for the chroma components, the chroma quantization parameter data, and the flag; the flag equal to 0 indicates that a first chroma quantization parameter table for the Cb component, a second chroma quantization parameter table for the Cr component, and a third chroma quantization parameter table for the joint CbCr component are signaled; the first chroma quantization parameter data for the Cb component includes a syntax element for the first chroma quantization parameter table; the second chroma quantization parameter data for the Cr component includes a syntax element for the second chroma quantization parameter table; The method of claim 1, wherein the third chroma quantization parameter data for the joint CbCr component includes a syntax element for the third chroma quantization parameter table.
4. In a method for transmitting data relating to an image, obtaining a bitstream of image information including residual information for a chroma component, a flag, and chroma quantization parameter data for said chroma component; transmitting the data including the bitstream of the image information including the residual information, the flag, and the chroma quantization parameter data; the residual information is information for a residual sample for the chroma component, The flag indicates whether one chroma quantization parameter table is applied, the chroma quantization parameter data is generated based on the flag; the flag equal to 0 indicates that a first chroma quantization parameter table for the Cb component, a second chroma quantization parameter table for the Cr component, and a third chroma quantization parameter table for the joint CbCr component are signaled; the first chroma quantization parameter data for the Cb component includes a syntax element for the first chroma quantization parameter table; the second chroma quantization parameter data for the Cr component includes a syntax element for the second chroma quantization parameter table; The third chroma quantization parameter data for the joint CbCr components includes a syntax element for the third chroma quantization parameter table.
Citation Information
Patent Citations
Chroma quantization parameter extension
US20160373751A1
Chroma quantization parameter (QP) offset
US20190124330A1
Extended range for chroma QP values
WO2014008277A1
Method and apparatus for signaling of mapping function of chroma quantization parameter
WO2020216376A1
Quantization parameter signaling
WO2020243206A1