Image or video coding based on palette mode
According to the disclosure of the present documents, a quantization parameter used in a scaling process of a quantized escape value in a palette mode may be derived on the basis of minimum quantization parameter information relating to a transform skip mode. Accordingly, the amount of data required to be signaled for video/image coding can be reduced and escape coding in a palette mode can be effectively performed.
1. An image decoding method performed by a decoding apparatus, the method comprising:
obtaining image information including quantized escape value information in a palette mode from a bitstream;
deriving an escape value for a current block based on the quantized escape value information; and
generating reconstructed samples based on the escape value,
wherein the escape value is derived based on the quantized escape value information and a quantization parameter,
wherein the quantization parameter is derived based on information on a minimum quantization parameter for a transform skip mode, wherein the information on the minimum quantization parameter for the transform skip mode is a syntax element obtained from a sequence parameter set (SPS) included in the image information, and
wherein the quantization parameter has a value greater than or equal to a minimum quantization parameter value derived from the information on the minimum quantization parameter for the transform skip mode.
2. An image encoding method performed by an encoding apparatus, the method comprising:
deriving an escape value in a palette mode for a current block;
deriving a quantized escape value based on the escape value; and
encoding image information including the quantized escape value information,
wherein the quantized escape value is derived based on a quantization parameter for the escape value in the current block,
wherein the quantization parameter is determined based on information on a minimum quantization parameter for a transform skip mode, wherein the information on the minimum quantization parameter for the transform skip mode is a syntax element included in a sequence parameter set (SPS), the SPS is included in the image information, and
wherein the quantization parameter has a value greater than or equal to a minimum quantization parameter value derived from the information on the minimum quantization parameter for the transform skip mode.
3. A transmission method of data for image, the transmission method comprising:
obtaining a 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 encoding image information including the quantized escape value information to generate the bitstream; and
transmitting the data comprising the bitstream,
wherein the quantized escape value is derived based on a quantization parameter for the escape value in the current block,
wherein the quantization parameter is determined based on information on a minimum quantization parameter for a transform skip mode, wherein the information on the minimum quantization parameter for the transform skip mode is a syntax element included in a sequence parameter set (SPS), the SPS is included in the image information, and
wherein the quantization parameter has a value greater than or equal to a minimum quantization parameter value derived from the information on the minimum quantization parameter for the transform skip mode.