CPC H04N 19/11 (2014.11) [H04N 19/105 (2014.11); H04N 19/139 (2014.11); H04N 19/159 (2014.11); H04N 19/167 (2014.11); H04N 19/176 (2014.11); H04N 19/70 (2014.11)] | 11 Claims |
1. A method of decoding video data, comprising:
decoding, from a bitstream, a syntax element indicating an intra-prediction type of a current block of the video data, the intra-prediction type being indicated from among matrix based intra-prediction (MIP) and regular intra-prediction; and
generating a prediction block for the current block by selectively performing the MIP or the regular intra-prediction based on the intra-prediction type of the current block indicated by the syntax element,
wherein generating the prediction block for the current block by performing the MIP comprises:
decoding, from the bitstream, a syntax element indicating an MIP mode for the current block, the syntax element being represented as a truncated binary code specifying one of a plurality of MIP prediction modes allowed for a width and a height of the current block;
deriving an input boundary vector using neighboring samples adjacent to the current block based on the width and the height of the current block;
generating predicted samples for the current block based on matrix-vector multiplication between the input boundary vector and a matrix predefined for the MIP mode; and
deriving the prediction block for the current block based on the predicted samples,
wherein deriving the input boundary vector using the neighboring samples adjacent to the current block comprises:
generating an initial boundary vector filled with the neighboring samples adjacent to the current block or down-sampled values from the neighboring samples according to the width and the height of the current block; and
from the initial boundary vector, generating an input boundary vector to which the matrix-vector multiplication is applied, and
wherein the input boundary vector is generated by subtracting a value of a first entry from each entry of the initial boundary vector.
|