Patent attributes
A method of decoding a bitstream by an electronic device is provided. An image frame is received from the bitstream. A block unit is determined from the image frame. An intra prediction mode index corresponding to one of a plurality of wide-angle candidate modes each having an angle parameter is determined for the block unit based on the bitstream. A plurality of reference samples neighboring the block unit is determined. The electronic device determines whether the intra prediction mode index is different from predefined indices each corresponding to one of predefined wide-angle modes in the wide-angle candidate modes. A plurality of filtered samples is generated by an interpolation filter based on the reference samples when the intra prediction mode index is different from the predefined indices. The block unit is reconstructed based on the filtered samples along a mode direction of the intra prediction mode index.