CPC H04N 19/132 (2014.11) [H04N 19/105 (2014.11); H04N 19/159 (2014.11); H04N 19/176 (2014.11); H04N 19/186 (2014.11); H04N 19/70 (2014.11)] | 2 Claims |
1. A method for encoding video data, the method comprising:
determining a luma intra prediction type and a luma intra prediction mode of a current coding block, the luma intra prediction type comprising matrix-based intra prediction (MIP) and regular intra prediction;
encoding, into a bitstream, information on the luma intra prediction type and the luma prediction mode of the current coding block;
determining a chroma prediction type and a chroma intra prediction mode of a current coding block based on the luma intra prediction type and the luma intra prediction mode of the current coding block;
encoding, into a bitstream, information on the chroma prediction mode of the current coding block; and
generating chroma prediction samples of the current coding block based on the chroma intra prediction mode of the current coding block,
wherein, when the luma intra prediction type of the current coding block is the matrix-based intra prediction:
if a sampling format of the video data is 4:4:4, the information on the chroma prediction mode indicating a direct mode (DM) means that the chroma intra prediction type of the current coding block is the matrix-based intra prediction and the chroma intra prediction mode of the current coding block is the same as a matrix-based intra prediction mode determined as the luma intra prediction mode of the current coding block.
|