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

Claim 1:
2. An image encoding method performed by an encoding apparatus, comprising:
deriving an intra prediction mode of a current block;
determining a modified intra prediction mode of a current block having a different width and height from an intra prediction mode, based on a ratio between the width and height of the current block and the intra prediction mode;
determining a non-separable transform set based on the modified intra prediction mode;
applying a non-separable transform matrix selected from the non-separable transform set, to a top-left region of the current block determined based on the width and height of the current block;
generating prediction related information; and
generating a bitstream by encoding image information comprising the prediction related information,
wherein the modified intra prediction mode is determined by adding 65 or −67 to the intra prediction mode,
wherein determining the non-separable transform set comprises determining an index of the non-separable transform set related to the modified intra prediction mode,
wherein based on that the modified intra prediction mode is greater than or equal to 0 and smaller than or equal to 1, the index is determined as a first index value,
wherein based on that the modified intra prediction mode is greater than or equal to 2 and smaller than or equal to 12, the index is determined as a second index value,
wherein based on that the modified intra prediction mode is greater than or equal to 13 and smaller than or equal to 23, the index is determined as a third index value,
wherein based on that the modified intra prediction mode is greater than or equal to 24 and smaller than or equal to 44, the index is determined as a fourth index value,
wherein based on that the modified intra prediction mode is greater than or equal to 45 and smaller than or equal to 55, the index is determined as the third index value,
wherein based on that the modified intra prediction mode is greater than or equal to 56, the index is determined as the second index value, and
wherein based on that the modified intra prediction mode is smaller than 0, the index is determined as the second index value.