LUMA MAPPING-BASED VIDEO OR IMAGE CODING
According to the disclosure of the present document, by explicitly signaling information relating to a value(s) of a chroma residual scaling factor, accuracy in an LMCS procedure can be increased, and therefore a subjective/objective image quality of a coded image/video can be further improved.
1 . An image decoding method performed by a decoding apparatus, the method comprising:
obtaining image information including residual information and information about luma mapping with chroma scaling (LMCS) data from a bitstream;
deriving transform coefficients based on the residual information;
generating residual chroma samples for the current block based on the transform coefficients;
deriving LMCS codewords based on the information about the LMCS data;
generating scaled residual chroma samples based on the residual chroma samples and the LMCS codewords; and
generating reconstructed chroma samples for the current block based on the prediction chroma samples and the scaled residual chroma samples,
wherein the image information includes information about an absolute value of a chroma residual scaling delta value and information about a sign of the chroma residual scaling delta value,
wherein the information about the LMCS data includes information on the LMCS codewords,
wherein the LMCS codewords are derived based on the information on the LMCS codewords,
wherein a chroma residual scaling factor is derived based on the information about the absolute value of the chroma residual scaling delta value and the information about the sign of the chroma residual scaling delta value, and
wherein the scaled residual chroma samples are derived based on the chroma residual scaling factor.
2 . An image encoding method performed by an encoding apparatus, the method comprising:
generating prediction chroma samples for a current block in a current picture;
generating residual chroma samples for the current block based on the prediction chroma samples;
deriving luma mapping with chroma scaling (LMCS) codewords;
deriving information about LMCS data based on the LMCS codewords;
generating scaled residual chroma samples based on the residual chroma samples and the LMCS codewords;
deriving transform coefficients based on the scaled residual chroma samples;
deriving residual information based on the transform coefficients; and
encoding image information including the information about the LMCS data and the residual information,
wherein the image information includes information about an absolute value of a chroma residual scaling delta value and information about a sign of a chroma residual scaling delta value,
wherein the SPS includes an LMCS enabled flag representing whether an LMCS data field is enabled,
wherein the information on the LMCS data includes information on the LMCS codewords,
wherein the information about the absolute value of the chroma residual scaling delta value and the information about the sign of the chroma residual scaling delta value represent a chroma residual scaling factor, and
wherein the scaled residual chroma samples are derived based on the chroma residual scaling factor.
3 . A method comprising:
generating a bitstream for the image, wherein the bitstream is generated based on generating prediction chroma samples for a current block in a current picture, generating residual chroma samples for the current block based on the prediction chroma samples, deriving luma mapping with chroma scaling (LMCS) codewords, deriving information about LMCS data based on the LMCS codewords, generating scaled residual chroma samples based on the residual chroma samples and the LMCS codewords, deriving transform coefficients based on the scaled residual chroma samples, deriving residual information based on the transform coefficients, and encoding image information including the information about the LMCS data and the residual information; and
transmitting the data comprising the bitstream,
wherein the image information includes information about an absolute value of a chroma residual scaling delta value and information about a sign of a chroma residual scaling delta value,
wherein the SPS includes an LMCS enabled flag representing whether an LMCS data field is enabled,
wherein the information on the LMCS data includes information on the LMCS codewords,
wherein the information about the absolute value of the chroma residual scaling delta value and the information about the sign of the chroma residual scaling delta value represent a chroma residual scaling factor, and
wherein the scaled residual chroma samples are derived based on the chroma residual scaling factor.