CPC H04N 19/186 (2014.11) [H04N 19/105 (2014.11); H04N 19/136 (2014.11); H04N 19/176 (2014.11)] | 3 Claims |
1. An image decoding method performed by a decoding apparatus, the method comprising: obtaining image information comprising prediction mode information for a current chroma block; deriving a left cross-component linear model (CCLM) prediction mode as an intra prediction mode of the current chroma block based on the prediction mode information; deriving a sample number of left neighboring chroma samples of the current chroma block based on a height of the current chroma block and a specific value; deriving the left neighboring chroma samples of the sample number; deriving down sampled left neighboring luma samples related with the left neighboring chroma samples and down sampled luma samples of a current luma block; deriving CCLM parameters based on the left neighboring chroma samples and the down sampled left neighboring luma samples; deriving prediction samples for the current chroma block based on the CCLM parameters and the down sampled luma samples; and generating reconstructed samples for the current chroma block based on the prediction samples, wherein the specific value is derived as 2, wherein the height of the current chroma block is N, wherein based on 2N being less than or equal to twice the specific value, the sample number of the left neighboring chroma samples is derived as 2N, based on the 2N being greater than twice the specific value, the sample number of the left neighboring chroma samples is derived as 4, wherein the prediction mode information comprises index information indicating one of CCLM prediction modes, and wherein the CCLM prediction modes comprises a left top CCLM prediction mode, a top CCLM prediction mode and the left CCLM prediction mode.
|