CPC H04N 19/44 (2014.11) [H04N 19/105 (2014.11); H04N 19/174 (2014.11); H04N 19/176 (2014.11); H04N 19/46 (2014.11)] | 11 Claims |
1. A method of encoding video data by an electronic device, the method comprising:
determining a block unit from an image frame according to the video data;
encoding a line index of the block unit in a bitstream based on one of a plurality of reference lines selected for the block unit;
comparing the encoded line index with a first predefined value to determine whether to encode a mode flag in the bitstream;
encoding a mode index in the bitstream for indicating a prediction mode of the block unit from a most probable mode (MPM) list of the block unit when the mode flag is determined not to be encoded in the bitstream; and
comparing the encoded mode flag with a second predefined value for encoding the mode index when the mode flag is determined to be encoded in the bitstream to indicate whether the prediction mode is selected from the MPM list based on the mode index, wherein
the block unit is determined based on the selected one of the plurality of reference lines and the prediction mode.
|