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)] | 8 Claims |
1. An apparatus for decoding video data, comprising:
a decoder configured to decode, 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
an intra-predictor configured to generate 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, in generating the prediction block for the current block by performing the MIP, the intra-predictor is configured to:
decode, 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;
derive an input boundary vector using neighboring samples adjacent to the current block based on the width and the height of the current block;
generate 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
derive 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 generating the initial boundary vector comprises:
decoding, from the bitstream, a syntax element indicating a concatenation order of first entries of the initial boundary vector derived from the left neighboring samples adjacent to the current block and second entries of the initial boundary vector derived from the above neighboring samples adjacent to the current block; and
concatenating the first entries and the second entries according to the concatenation order and thereby generating the initial boundary vector.
|