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. 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 a quantization parameter; and
generating 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 by 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. The image decoding method of claim 1 , wherein the image information includes palette size information about a maximum index of a palette table,
wherein the palette size information is a preset value or is determined based on the size of a coding unit.
3. The image decoding method of claim 1 , further comprising:
configuring a palette table based on palette entry information;
configuring a palette index map for the current block based on palette index information;
deriving sample values for palette entries in the palette table based on the palette index map; and
generating the reconstructed samples based on the palette index map and the sample values for the palette entries,
wherein the image information includes the palette entry information and the palette index information.
4. An image encoding method performed by an encoding apparatus, comprising:
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; and
encoding 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 by the minimum quantization parameter information for the transform skip mode is the minimum quantization parameter value, and
wherein the quantization parameter is derived based on the derived minimum quantization parameter value, and the quantized escape value is derived based on the quantization parameter.
5. The image encoding method of claim 4 , wherein the image information includes palette size information regarding a maximum index of a palette table,
wherein the palette size information is a preset value or is determined based on the size of a coding unit.
6. The image encoding method of claim 4 , further comprising:
generating palette entry information based on sample values of the current block;
generating palette index information for the current block based on the palette entry information; and
encoding the image information including the palette entry information and the palette index information.
7. A method of transmitting a bitstream generated by an encoding method, the encoding 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 a quantization parameter; and
encoding 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, 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 by the minimum quantization parameter information for the transform skip mode is the minimum quantization parameter value, and
wherein the quantization parameter is derived based on the derived minimum quantization parameter value, and the quantized escape value is derived based on the quantization parameter.