CPC H04N 19/186 (2014.11) [H04N 19/132 (2014.11); H04N 19/136 (2014.11); H04N 19/176 (2014.11); H04N 19/44 (2014.11); H04N 19/117 (2014.11); H04N 19/70 (2014.11)] | 3 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 prediction mode information and luma mapping with chroma scaling (LMCS) related information from a bitstream;
derive an inter prediction mode for a current block based on the prediction mode information;
derive motion information for the current block based on the inter prediction mode;
generate prediction luma samples for the current block based on the motion information for the current block;
generate mapped prediction luma samples based on the prediction luma samples and LMCS codewords;
generate reconstructed luma samples for the current block based on the mapped prediction luma samples;
generate modified reconstructed luma samples based on the reconstructed luma samples for the current block,
wherein the image information includes adaptation parameter sets (APSs),
wherein an APS includes type information indicating whether or not the APS is an LMCS APS,
wherein an APS of which the type information indicates that the APS is the LMCS APS includes an LMCS data field,
wherein the LMCS data field includes the LMCS related information,
wherein the LMCS codewords for deriving the mapped prediction luma samples are derived based on the LMCS related information,
wherein a maximum number of LMCS APSs of the APSs is a specific value, and wherein the specific value is four.
|