CPC H04N 19/186 (2014.11) [H04N 19/132 (2014.11); H04N 19/176 (2014.11); H04N 19/1887 (2014.11); H04N 19/70 (2014.11); H04N 19/96 (2014.11); H04N 19/117 (2014.11)] | 11 Claims |
1. A decoding apparatus for 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 residual information and information on luma mapping with chroma scaling (LMCS) data from a bitstream;
generate mapped predicted luma samples based on the information on the LMCS data and predicted luma samples;
derive residual luma samples based on the residual information; and
generate reconstructed luma samples based on the mapped predicted luma samples and the residual luma samples; and
generate modified reconstructed luma samples based on the reconstructed luma samples and the information on the LMCS data,
wherein:
the image information includes LMCS adaptation parameter sets (APSs);
an LMCS APS includes identifier information of the LMCS APS, and type information indicating that the LMCS APS is an APS including an LMCS data field;
the LMCS data field includes the information on the LMCS data;
the LMCS APS includes the LMCS data field based on the type information;
LMCS codewords are derived based on the LMCS data field;
the mapped predicted luma samples and the modified reconstructed luma samples are generated based on the LMCS codewords;
a value of the identifier information is in a predetermined range;
the image information includes header information;
the header information includes LMCS related APS ID information;
the LMCS related APS ID information represents the identifier information of the LMCS APS; and
a value of the LMCS related APS ID information is in a range of 0 to 3.
|