CPC H04N 19/117 (2014.11) [H04N 19/124 (2014.11); H04N 19/159 (2014.11); H04N 19/176 (2014.11); H04N 19/52 (2014.11)] | 18 Claims |
1. A method of decoding a bitstream by an electronic device, the method comprising:
receiving an image frame of the bitstream;
determining a block unit from the received image frame;
determining an intra prediction mode index of the block unit based on the bitstream, the intra prediction mode index corresponding to one of a plurality of wide-angle candidate modes each having an angle parameter;
determining a plurality of reference samples neighboring the block unit;
determining whether the determined intra prediction mode index is equal to at least one of a plurality of predefined indices each corresponding to one of a plurality of predefined wide-angle modes in the plurality of wide-angle candidate modes;
generating a plurality of filtered samples based on the determined plurality of reference samples, wherein the plurality of filtered samples is generated:
by an interpolation filter when the determined intra prediction mode index is different from each of the plurality of predefined indices, and
by a reference filter different from the interpolation filter when the determined intra prediction mode index is equal to the one of the plurality of predefined indices; and
reconstructing the determined block unit based on the generated plurality of filtered samples along a mode direction of the determined intra prediction mode index,
wherein the angle parameters of the plurality of predefined wide-angle modes are divisible by a predefined value.
|