| CPC H04N 19/105 (2014.11) [H04N 19/159 (2014.11); H04N 19/176 (2014.11)] | 20 Claims |

|
1. A method of decoding a bitstream by an electronic device, the method comprising:
receiving the bitstream;
determining a block unit from an image frame according to the bitstream;
generating a histogram of gradient (HoG) for selecting a plurality of intra candidate modes from a plurality of intra default modes for the block unit;
generating a template prediction for each of the plurality of intra candidate modes that is selected from the HoG based on an accumulated plurality of template amplitudes included in the HoG;
selecting, based on the generated template predictions, a plurality of prediction modes from the plurality of intra candidate modes, which is selected from the HoG based on the accumulated plurality of template amplitudes included in the HoG; and
reconstructing the block unit based on the plurality of prediction modes.
|