# US 2024/0205406 A1 · Method and apparatus for signaling of mapping function of chroma quantization parameter

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2024/0205406 A1
- Document ID: US20240205406A1
- Status: Published application
- Kind: A1
- Application number: 18/439,264
- Filed: 2024-02-12
- Published: 2024-06-20
- Earliest claimed: 2019-04-26
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Sergey Yurievich IKONIN; Roman Igorevich CHERNYAK; Timofey Mikhailovich SOLOVYEV; Alexander Alexandrovich KARABUTOV; Elena Alexandrovna ALSHINA; Jianle CHEN
- Web page: https://patentgrep.com/patent/US20240205406A1

## CPC

- H04N 19/126: Details of normalisation or weighting functions, e.g. normalisation matrices or variable uniform quantisers
- H04N 19/124: Quantisation
- H04N 19/132: Sampling, masking or truncation of coding units, e.g. adaptive resampling, frame skipping, frame interpolation or high-frequency transform coefficient masking
- H04N 19/172: the region being a picture, frame or field
- H04N 19/174: the region being a slice, e.g. a line of blocks or a group of blocks
- H04N 19/184: the unit being bits, e.g. of the compressed video stream
- H04N 19/186: the unit being a colour or a chrominance component
- H04N 19/44: Decoders specially adapted therefor, e.g. video decoders which are asymmetric with respect to the encoder
- H04N 19/70: characterised by syntax aspects related to video coding, e.g. related to compression standards
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

A method of obtaining a chrominance quantization parameter (QP) for chrominance components based on a luminance QP for a luminance component, wherein the method is performed by a decoder, and comprises parsing a received bitstream comprising a sequence parameter set (SPS) to obtain the luminance QP and information of a mapping function (ƒ) which associates a QP index (QPi) to a chrominance QP (QPc), wherein the chroma QP mapping table is signaled in the SPS; obtaining the QPi based at least in part on the luminance QP; obtaining the mapping function based on the obtained information of the mapping function; and obtaining a QPc based on the obtained mapping function and the obtained QPi.

## Claims

### Claim 1

A method comprising:
receiving a bitstream comprising a sequence parameter set (SPS);
parsing the bitstream to obtain a luminance quantization parameter (QP) and information of a chroma QP mapping table which associates a QP index (QPi) to a chrominance QP (QPc), wherein the chroma QP mapping table is signaled in the SPS;
obtaining a QPi based at least in part on the luminance QP;
obtaining the chroma QP mapping table based on the obtained-information of the chroma QP mapping table;
obtaining a first QPc based on the chroma QP mapping table and the QPi; and
obtaining a second QPc based on the first QPc.

### Claim 2 (depends on 1)

The method of claim 1, wherein
qPChroma=Clip3(−QpBdOffset,63,QpY);
qPCb=ChromaQpTable[0][qPChroma];
qPCr=ChromaQpTable[1][qPChroma]; or
qPCbCr=ChromaQpTable[2][qPChroma];
wherein the QpY respresents the luminance QP;
wherein the ChromaQpTable represents the chroma QP mapping table;
wherein the qPChroma represents the QPi;
wherein the qPCb, qPCr or qPCbCr represents the first QPc; and
wherein the QpBdOffset represents a bit depth offset calculated based on a bit depth of samples of luma and chroma arrays using the following:
QpBdOffset=6*bit_depth_minus8,
wherein the bit_depth_minus8 is in a range of 0 to 8, inclusive.

### Claim 3 (depends on 1)

The method of claim 1, wherein
the chroma QP mapping table associates each element x of a set X, wherein the set X corresponds to QPis in an allowed QPi range supported by a decoder; or
the chroma QP mapping table associates each element x of a subset of the set X, to one element y of a set Y, wherein the set Y corresponds to QPcs in an allowed QPc range supported by the decoder.

### Claim 4 (depends on 1)

The method of claim 1, wherein values of the chroma QP mapping table satisfy a mapping function.

### Claim 5 (depends on 4)

The method of claim 4, wherein the mapping function is a piecewise mapping function, and information of the piecewise mapping function comprises breakpoints, change points, or pivot points.

### Claim 6 (depends on 5)

The method of claim 5, wherein an amount of the breakpoints, the change points, or the pivot points and respective x and y coordinates of the amount are signaled in the bitstream either directly or based on delta values between coordinates of a current pivot point and coordinates of a previous pivot point.

### Claim 7 (depends on 4)

The method of claim 4, wherein the mapping function is a piecewise function based on at least one of:
a linear equation;
an exponential equation; or
a logarithmic equation.

### Claim 8 (depends on 7)

The method of claim 7, wherein parameters of pieces of the piecewise function are obtained based on pivot points, using a linear equation given by:
y=slope*x+b; with slope and b being parameters of the linear equation, wherein
slope=(Ey−Dy)/(Ex−Dx),b=Dy−slope*Dx;
wherein D and E are pivot points with corresponding coordinates Dx, Dy and Ex, Ey.

### Claim 9 (depends on 1)

The method of claim 1, wherein the information of the chroma QP mapping table is signaled jointly for all chrominance components.

### Claim 10 (depends on 4)

The method of claim 4, wherein the information of the chroma QP mapping table comprises an indicator indicating whether the mapping function is signaled for chrominance components separately or jointly.

### Claim 11 (depends on 1)

The method of claim 1, wherein the information of the chroma QP mapping table is signaled from at least one of:
at a sequence level in a sequence parameter set;
at a picture level in a picture parameter set;
at a tile group level in a tile group parameter set;
in an adaptation parameter set; or
in a supplemental enhancement information (SEI) message.

### Claim 12 (depends on 2)

The method of claim 2, wherein
Qp′Cb=Clip3(−QpBdOffset,63,qPCb+pps_cb_qp_offset+slice_cb_qp_offset+CuQp OffsetCb)+QpBdOffset;
Qp′Cr=Clip3(−QpBdOffset,63,qPCr+pps_cr_qp_offset+slice_cr_qp_offset+CuQpO ffsetCr)+QpBdOffset; or
Qp′CbCr=Clip3(−QpBdOffset,63,qPCbCr+ppsjoint CbCrqp offset_value+slicejoint_cbcr_qp_offset+CuQpOffsetCbCr)+QpBdOffset;
wherein the Qp′Cb, Qp′Cr or Qp′CbCr represents the second QPc;
wherein the pps_cb_qp_offset and the pps_cr_qp_offset specify offsets to a luma quantization parameter Qp′Y used for deriving the Qp′Cb and Qp′Cr, respectively, wherein QpY=QpY+QpBdOffsetY;
wherein the pps_joint_CbCr_qp_offset_value specifies an offset to the luma quantization parameter Qp′Y used for deriving the Qp′CbCr;
wherein the slice_cr_qp_offset specifies a difference to be added to a value of the pps_cr_qp_offset when determining a value of the Qp′Cr quantization parameter;
wherein slice_cb_qp_offset specifies a difference to be added to a value of pps_cb_qp_offset when determining a value of the Qp′Cb quantization parameter;
wherein slice_joint_CbCr_qp_offset specifies a difference to be added to a value of pps_joint_CbCr_qp_offset_value when determining a value of the Qp′CbCr; and
wherein the CuQpOffsetCb, CuQpOffsetCr, and CuQpOffsetCbCr, specify values to be used for determining the respective values of the Qp′Cb, Qp′Cr, and Qp′CbCr quantization parameters for a decoder.

### Claim 13

A decoder comprising:
one or more electronic circuits or processors configured to:
receive a bitstream comprising a sequence parameter set (SPS);
parse the bitstream to obtain a luminance quantization parameter (QP) and information of a chroma QP mapping table which associates a QP index (QPi) to a chrominance QP (QPc), wherein the chroma QP mapping table is signaled in the SPS;
obtain a QPi based at least in part on the luminance QP;
obtain the chroma QP mapping table based on the information of the chroma QP mapping table;
obtain a first QPc based on the chroma QP mapping table and the QPi; and
obtain a second QPc based on the first QPc.

### Claim 14 (depends on 13)

The decoder of claim 13, wherein:
qPChroma=Clip3(−QpBdOffset,63,QpY);
qPCb=ChromaQpTable[0][qPChroma];
qPCr=ChromaQpTable[1][qPChroma]; or
qPCbCr=ChromaQpTable[2][qPChroma];
wherein the QpY respresents the luminance QP;
wherein the ChromaQpTable represents the chroma QP mapping table;
wherein the qPChroma represents the QPi;
wherein the qPCb, qPCr or qPCbCr represents the first QPc; and
wherein the QpBdOffset represents a bit depth offset calculated based on a bit depth of samples of luma and chroma arrays using the following:
QpBdOffset=6*bit_depth_minus8,
wherein the bit_depth_minus8 is in a range of 0 to 8, inclusive.

### Claim 15 (depends on 13)

The decoder of claim 13, wherein
the chroma QP mapping table associates each element x of a set X, wherein the set X corresponds to QPis in an allowed QPi range supported by the decoder; or
the chroma QP mapping table associates each element x of a subset of the set X, to one element y of a set Y, wherein the set Y corresponds to QPcs in an allowed QPc range supported by the decoder.

### Claim 16 (depends on 13)

The decoder of claim 13, wherein values of the chroma QP mapping table satisfy a mapping function.

### Claim 17 (depends on 16)

The decoder of claim 16, wherein the mapping function is a piecewise mapping function, and information of the piecewise mapping function comprises breakpoints, change points, or pivot points.

### Claim 18 (depends on 16)

The decoder of claim 16, wherein the mapping function is a piecewise function based on at least one of:
a linear equation;
an exponential equation; or
a logarithmic equation.

### Claim 19 (depends on 18)

The decoder of claim 18, wherein parameters of pieces of the piecewise function are obtained based on pivot points, using a linear equation given by:
y=slope*x+b; with slope and b being parameters of the linear equation, where
slope=(Ey−Dy)/(Ex−Dx), b=Dy−slope*Dx;
wherein D and E are pivot points with corresponding coordinates Dx, Dy and Ex, Ey.

### Claim 20

A non-transitory computer-readable medium having instructions stored therein, which when executed by a processor, cause a decoder to:
receive a bitstream comprising a sequence parameter set (SPS);
parse the bitstream to obtain a luminance quantization parameter (QP) and information of a chroma QP mapping table which associates a QP index (QPi) to a chrominance QP (QPc), wherein the chroma QP mapping table is signaled in the SPS;
obtain a QPi based at least in part on the luminance QP;
obtain a chroma QP mapping table based on the information of the chroma QP mapping table;
obtain a first QPc based on the chroma QP mapping table and the QPi; and
obtain a second QPc based on the first QPc.
