CPC H04N 19/117 (2014.11) [H04N 19/105 (2014.11); H04N 19/159 (2014.11); H04N 19/167 (2014.11); H04N 19/176 (2014.11); H04N 19/186 (2014.11)] | 6 Claims |
1. A method of decoding a video, the method comprising:
determining an intra-prediction mode of a current chroma block;
in response to the intra-prediction mode indicates intra-prediction between color components, deriving linear model parameters of the current chroma block; and
obtaining a prediction block of the current chroma block based on the linear model parameters and a reconstructed luma block corresponding to the current chroma block,
wherein the linear model parameters are derived based on a luma template region adjacent to the reconstructed luma block and a chroma template region adjacent to the current chroma block,
wherein down-sampled luma samples are obtained by applying a down-sampling filter to the luma template region,
wherein the linear model parameters are derived further based on a maximum luma reference value, a minimum luma reference value, a maximum chroma reference value and a minimum chroma reference value,
wherein the maximum luma reference value is obtained by using a maximum down-sampled luma sample in the luma template region, and the maximum chroma reference value is obtained by using a first chroma sample that has a position corresponding to the maximum down-sampled luma sample, and
wherein the minimum luma reference value is obtained by using a minimum down-sampled luma sample in the luma template region, and the minimum chroma reference value is obtained by using a second chroma sample that has a position corresponding to the minimum down-sampled luma sample.
|