Image or video coding based on palette coding
According to the disclosure of the present document, a quantization parameter for a quantized escape value in a palette mode can be derived on the basis of minimum quantization parameter information about a conversion skip mode to perform a scaling process on the quantized escape value. Therethrough, the data amount that is required to be signaled for palette mode coding can be reduced, and the efficiency of escape coding in the palette mode can be enhanced.
1. A decoding apparatus for an image decoding, the decoding apparatus comprising:
a memory; and
at least one processor connected to the memory, the at least one processor configured to:
obtain image information including quantized escape value information in a palette mode from a bitstream;
derive an escape value for a current block based on the quantized escape value information and a quantization parameter; and
generate reconstructed samples based on the escape value,
wherein for the current block including at least one escape-coded sample, the quantized escape value information is obtained,
wherein the image information includes minimum quantization parameter information for a transform skip mode, wherein the minimum quantization parameter information for the transform skip mode is a syntax element related to derivation of a minimum quantization parameter value and is signaled in a sequence parameter set (SPS),
wherein the SPS includes information on whether the palette mode is enabled, and wherein based on a value of the information on whether the palette mode is enabled being equal to 1, the minimum quantization parameter information for the transform skip mode is signaled in the SPS,
wherein the minimum quantization parameter value is derived by a predetermined equation based on the minimum quantization parameter information for the transform skip mode signaled in the SPS, and wherein the predetermined equation is given as 4 plus a value specified based on the minimum quantization parameter information for the transform skip mode signaled in the SPS, and
wherein the quantization parameter is derived based on the derived minimum quantization parameter value, and the escape value is derived based on the quantization parameter.
2. An encoding apparatus for an image encoding, the encoding apparatus comprising:
a memory; and
at least one processor connected to the memory, the at least one processor configured to:
derive an escape value in a palette mode for a current block;
derive a quantized escape value based on the escape value and a quantization parameter; and
encode image information including information on the quantized escape value,
wherein the information on the quantized escape value is generated for the current block including at least one escape-coded sample,
wherein the image information includes minimum quantization parameter information for a transform skip mode, wherein the minimum quantization parameter information for the transform skip mode is a syntax element related to derivation of a minimum quantization parameter value and is signaled in a sequence parameter set (SPS),
wherein the SPS includes information on whether the palette mode is enabled, and wherein based on a value of the information on whether the palette mode is enabled being equal to 1, the minimum quantization parameter information for the transform skip mode is signaled in the SPS,
wherein in signaling in the SPS, a value of the minimum quantization parameter information for the transform skip mode is determined based on the minimum quantization parameter value derived by a predetermined equation, and wherein the predetermined equation is given as 4 plus a value specified based on the minimum quantization parameter information for the transform skip mode is the minimum quantization parameter value, and
wherein the quantization parameter is determined based on the derived minimum quantization parameter value, and the quantized escape value is derived based on the quantization parameter.
3. An apparatus for transmitting a bitstream generated by an encoding apparatus, the apparatus comprising:
at least one processor configured to obtain the bitstream, wherein the bitstream is generated based on deriving an escape value in a palette mode for a current block, deriving a quantized escape value based on the escape value and a quantization parameter, encoding image information including information on the quantized escape value; and
a transmitter configured to transmit data comprising the bitstream,
wherein the information on the quantized escape value is generated for the current block including at least one escape-coded sample,
wherein the image information includes minimum quantization parameter information for a transform skip mode, wherein the minimum quantization parameter information for the transform skip mode is a syntax element related to derivation of a minimum quantization parameter value and is signaled in a sequence parameter set (SPS),
wherein the SPS includes information on whether the palette mode is enabled, and wherein based on a value of the information on whether the palette mode is enabled being equal to 1, the minimum quantization parameter information for the transform skip mode is signaled in the SPS,
wherein in signaling in the SPS, the minimum quantization parameter information for the transform skip mode is determined based on the minimum quantization parameter value derived by a predetermined equation, and wherein the predetermined equation is given as 4 plus a value specified based on the minimum quantization parameter information for the transform skip mode is the minimum quantization parameter value, and
wherein the quantization parameter is determined based on the derived minimum quantization parameter value, and the quantized escape value is derived based on the quantization parameter.