VIDEO OR IMAGE CODING ON BASIS OF CONDITIONALLY PARSED ALF MODEL AND RESHAPING MODEL
According to the disclosure of the present document, reshaper data and/or an ALF parameter can be signaled adaptively from a parameter set, thereby reducing the amount of data to be signaled for video/image coding and improving coding efficiency.
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:
receive image information through a bitstream;
generate luma prediction samples of a current block based on the image information;
perform a luma mapping with chroma scaling (LMCS) process for the luma prediction samples; and
reconstruct samples of the current block based on the mapped luma prediction samples,
wherein to perform the LMCS process the at least one processor further configured to:
derive LMCS indices for the LMCS; and
generate the mapped luma prediction samples based on the luma prediction samples and the LMCS indices,
wherein the image information includes adaptation parameter set (APS),
wherein the APS includes LMCS data field,
wherein a LMCS data is derived based on the LMCS data field,
wherein the LMCS indices are derived based on the LMCS data.
2 . An encoding apparatus for image encoding, the encoding apparatus comprising:
a memory; and
at least one processor connected to the memory, the at least one processor configured to:
generate luma prediction samples of a current block in a current picture;
derive luma mapping with chroma scaling (LMCS) indices for LMCS on the luma prediction samples;
generate mapped luma prediction samples based on the luma prediction samples and the LMCS indices;
generate LMCS related information; and
encode image information including prediction mode information for generating the luma prediction samples and the LMCS related information,
wherein samples of the current block are reconstructed based on the mapped luma prediction samples,
wherein the image information includes an adaptation parameter set (APS),
wherein the APS includes LMCS data field,
wherein a LMCS data is derived based on the LMCS data field,
wherein the LMCS indices are derived based on the LMCS data.
3 . An apparatus for transmitting data for an image, the apparatus comprising:
at least one processor configured to obtain a bitstream generated by an encoding method performed by an encoding apparatus for image encoding; and
a transmitter configured to transmit the bitstream,
wherein the encoding method comprising:
generating luma prediction samples of a current block in a current picture;
deriving luma mapping with chroma scaling (LMCS) indices for LMCS on the luma prediction samples;
generating mapped luma prediction samples based on the luma prediction samples and the LMCS indices;
generating LMCS related information; and
encoding image information including prediction mode information for generating the luma prediction samples and the LMCS related information,
wherein samples of the current block are reconstructed based on the mapped luma prediction samples,
wherein the image information includes an adaptation parameter set (APS),
wherein the APS includes LMCS data field,
wherein a LMCS data is derived based on the LMCS data field,
wherein the LMCS indices are derived based on the LMCS data.