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

Claim 6:
7. An image encoding method performed by an encoding apparatus, the method comprising:
deriving prediction samples of a current block based on inter prediction or intra prediction;
generating prediction mode information representing a prediction mode of the current block;
deriving residual samples based on the prediction samples;
generating residual information based on the residual samples;
generating reconstructed samples based on the prediction samples;
deriving adaptive loop filter (ALF) parameters for an ALF on the reconstructed samples; and
encoding image information including the prediction mode information, the residual information and the ALF parameters,
wherein the image information includes a sequence parameter set (SPS), slice header information and a first adaptation parameter set (APS) comprising an ALF data field,
wherein the ALF data field includes ALF parameters used for deriving filter coefficients,
wherein the SPS includes ALF enabled flag information related to whether the ALF is enabled,
wherein the slice header information includes ALF enabled flag information related to whether the ALF is enabled in a slice based on the ALF enabled flag information in the SPS,
wherein the slice header information includes ALF related APS IDs number information based on the ALF enabled flag information in the slice header,
wherein a number of ALF related APS IDs is derived based on a value of the ALF related APS IDs number information, and
wherein ALF related APS ID syntax elements of which number is equal to the number of ALF related APS IDs are included in the slice header information.