| CPC H04N 19/105 (2014.11) [H04N 19/132 (2014.11); H04N 19/176 (2014.11); H04N 19/186 (2014.11)] | 20 Claims |

|
1. A method of coding video data, the method comprising: determining, based on a comparison of a threshold and a quantity of reference samples in a selected template, whether the selected template is allowed, wherein a mode index indicates which template from among a plurality of templates is the selected template, wherein each of the templates includes a different set of reconstructed samples that neighbor a current coding unit (CU) of a current picture of the video data, and wherein the plurality of templates includes two or more of:
a first template that includes neighboring reconstructed samples above and left of the current CU,
a second template that is limited to neighboring reconstructed samples above the current CU, or
a third template that is limited to neighboring reconstructed samples left of the current CU;
and wherein the threshold is one of a first threshold or a second threshold, and determining whether the selected template is allowed comprises:
disallowing the first template based on a quantity of samples in the first template being less than the first threshold;
disallowing the second template based on a quantity of samples in the second template being less than the second threshold; and
disallowing the third template based on a quantity of samples in the third template being less than the second threshold;
based on determining that the selected template is allowed and that a convolutional cross-component model (CCCM) mode is to be used, applying the CCCM mode to predict chroma samples of the current CU based on reconstructed luma samples of the current CU and the reference samples in the selected template; and
encoding or decoding the current CU based on the predicted chroma samples of the current CU.
|