CPC H04N 19/593 (2014.11) [H04N 19/176 (2014.11)] | 14 Claims |
1. A method for video decoding, comprising:
decoding a directional intra prediction mode for a block of a picture in a video, said directional intra prediction mode having a direction;
obtaining, based on said directional intra prediction mode, a first predictor for a sample, the sample being within said block;
determining a displacement value along an array of reference samples, based on said direction, using integer-based operations, wherein said displacement value is determined using a table of magnitude values for each angle parameter associated with a direction of a directional intra prediction mode from a set of available directional intra prediction modes, and wherein said magnitude values are determined by N/A, where A is an angle parameter associated with said direction and Nis a power of 2, wherein said power depends on a sample accuracy of said direction;
identifying a second predictor for said sample based on said displacement value, said first and second predictors being on a line along or approximating said direction, wherein said sample is substantially located on said line, between said first and second predictors, said second predictor being substantially at an intersection of said line and said array of reference samples;
predicting a sample value of said sample, by using said first and second predictors; and
decoding said sample of said block based on said predicted sample value.
|