CPC H04N 19/46 (2014.11) [H04N 19/176 (2014.11); H04N 19/186 (2014.11); H04N 19/70 (2014.11); H04N 19/96 (2014.11)] | 16 Claims |
1. A non-transitory computer-readable medium storing a bitstream, the bitstream being decoded by a decoding method, the decoding method comprising:
obtaining a transform skip enabled flag indicating whether a transform skip flag indicating whether a transform skip is applied to a transform block included in a current block is present in a transform unit syntax;
obtaining a palette enabled flag indicating whether a palette mode is enabled;
when the transform skip enabled flag indicates that the transform skip flag is present in the transform unit syntax, or when the palette enabled flag indicates that the palette mode is enabled, obtaining information related to a minimum allowed quantization parameter for a transform skip mode;
obtaining the minimum allowed quantization parameter, based on the information related to the minimum allowed quantization parameter;
obtaining a first modified quantization parameter by adding a quantization parameter and a quantization parameter offset;
obtaining a second modified quantization parameter by clipping the first modified quantization parameter,
wherein when a value of the transform skip flag indicates that the transform skip is not applied to the transform block and the first modified quantization parameter is less than 0, the second modified quantization parameter is obtained by clipping the first modified quantization parameter to 0,
wherein when the value of the transform skip flag indicates that the transform skip is applied to the transform block and the first modified quantization parameter is less than the minimum allowed quantization parameter, the second modified quantization parameter is obtained by clipping the first modified quantization parameter to the minimum allowed quantization parameter; and
reconstructing the current block based on the second modified quantization parameter.
|