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

Claim 5:
6. A method of encoding an image by an encoding apparatus, comprising:
deriving boundaries of a luma block and a chroma block in a current picture divided according to a partitioning structure;
determining an edge to apply a de-blocking filter among the boundaries of the luma block and the chroma block;
determining a type of the de-blocking filter for the determined edge of the luma block based on width or height of the luma block;
determining a type of the de-blocking filter for the determined edge of the chroma block based on the chroma block being an intra prediction block; and
applying the de-blocking filter the type of which is determined on reconstructed samples around the determined edge, and
wherein, based on that the type of the edge is a vertical edge, and the width of the luma block is less than or equal to 4, the type of the de-blocking filter for the luma block is determined as a weak filter,
wherein, based on that the type of the edge is a horizontal edge, and the height of the luma block is less than or equal to 4, the type of the de-blocking filter for the luma block is determined as the weak filter, and
wherein the types of the de-blocking filter for the luma block and the chroma block are determined based on reconstructed samples of the current picture before the de-blocking filter is applied.