Patent ID: 11902527
Assignee: LG ELECTRONICS INC.
Field: Audio-visual technology (Electrical engineering)
Classification: CPC H | IPC H

Claim 10:
11. A non-transitory computer-readable storage medium storing a bitstream generated by a method, the method comprising:
generating predicted samples for a current block in a current picture, wherein the predicted samples include predicted luma samples and predicted chroma samples;
deriving luma mapping with chroma scaling (LMCS) codewords and bins for luma mapping;
generating mapped predicted luma samples based on the LMCS codewords and the bins for the luma mapping;
generating reconstructed luma samples based on the mapped predicted luma samples;
generating modified reconstructed luma samples based on the reconstructed luma samples, the LMCS codewords, and the bins for the luma mapping;
deriving information on LMCS data based on the LMCS codewords and the bins for the luma mapping;
generating residual luma samples based on the mapped predicted luma samples;
generating residual information based on the residual luma samples;
generating residual chroma samples based on the predicted chroma samples; and
encoding image information including the residual information and the information on the LMCS data,
wherein the image information includes LMCS adaptation parameter sets (APSs),
wherein an LMCS APS includes type information indicating that the LMCA APS is an AP including an LMCS data field,
wherein the LMCS APS includes the LMCS data field based on the type information;
wherein the LMCS data field includes the information on the LMCS data,
wherein a maximum number of the LMCS APS is a specific value,
wherein the specific value is 4,
wherein the method further comprises:
deriving a chroma residual scaling factor based on a piecewise index; and
generating scaled residual chroma samples based on the residual chroma samples and the chroma residual scaling factor,
wherein the piecewise index is identified based on the information on the LMCS data.