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

Claim 7:
8. An image encoding method performed by an image encoding apparatus, comprising:
deriving prediction samples for a target block;
deriving residual samples for the target block based on the prediction samples;
deriving transform coefficients for the target block from the residual samples based on a multiple transform selection (MTS) of a horizontal transform kernel and a vertical transform kernel;
deriving modified transform coefficients from the transform coefficients based on a predetermined transform kernel matrix for a non-separable transform; and
encoding an MTS index indicating the MTS or a transform index indicating the transform kernel matrix,
wherein a syntax element for the transform index is context-encoded based on a context increment,
wherein based on a tree type of a partition structure of the target block being not a single tree type, a first bin among a bin string of the syntax element for the transform index is derived based on a first context increment, and
wherein based on the tree type being the single tree type, the first bin is derived based on a second context increment.