| CPC H04N 19/105 (2014.11) [H04N 19/119 (2014.11); H04N 19/132 (2014.11); H04N 19/176 (2014.11); H04N 19/186 (2014.11); H04N 19/1883 (2014.11); H04N 19/80 (2014.11)] | 16 Claims |

|
1. A method of decoding an image, the method comprising:
determining an intra prediction mode of a current block; and
generating a prediction block of the current block, by performing prediction based on the intra prediction mode,
wherein when the current block is a chroma block and the intra prediction mode of the current block is a cross-component prediction mode, the generating the prediction block of the current block includes:
generating neighboring samples of a luma block corresponding to the current block;
performing down-sampling with respect to the neighboring samples of the luma block by applying at least one filter to neighboring samples at specific locations among the neighboring samples of the luma block;
deriving a cross-component parameter based on the down-sampled neighboring samples; and
generating the prediction block of the current block based on the cross-component parameter,
wherein the neighboring samples of the luma block includes at least one of top neighboring samples or left neighboring samples,
wherein a number of samples used in a filter used for down-sampling of the top neighboring samples varies depending on whether a top boundary of the current block is a coding tree unit (CTU) boundary or not, and
wherein an interval between the specific locations is determined based on a type of the cross-component prediction mode and the number of available neighboring samples of the current block.
|