CPC H04N 19/124 (2014.11) [H04N 19/126 (2014.11); H04N 19/174 (2014.11); H04N 19/186 (2014.11); H04N 19/44 (2014.11); H04N 19/70 (2014.11); H04N 19/146 (2014.11)] | 20 Claims |
1. A computer system comprising one or more processing units and memory, wherein the computer system implements a video decoder configured to perform operations comprising:
receiving encoded data in a bitstream for which values of quantization parameter (QP) vary according to a relationship between a luma component and chroma components, wherein the encoded data in the bitstream includes:
a flag in a picture parameter set that indicates presence of slice-level chroma QP offsets in slice headers;
syntax elements that indicate picture-level chroma QP offsets; and
syntax elements that indicate the slice-level chroma QP offsets; and
decoding at least some of the encoded data to reconstruct one or more pictures, including, for a portion of a given picture among the one or more pictures:
determining a QP index from a luma component QP and a chroma component QP offset, wherein the chroma component QP offset incorporates one of the picture-level chroma QP offsets and one of the slice-level chroma QP offsets, the QP index being determined according to:
qPI=Clip3(a,b,QPY+qp_offset+slice_qp_delta),
where qPI represents the QP index, QPY represents the luma component QP, qp_offset represents the one of the picture-level chroma QP offsets, slice_qp_delta represents the one of the slice-level chroma QP offsets, and Clip3(a, b, c) represents a function that clips the value of c to the range of a to b; and
mapping the QP index to a chroma component QP.
|