# US 2021/0092422 A1 · Device and method for coding video data based on one or more reference lines

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0092422 A1
- Document ID: US20210092422A1
- Status: Published application
- Kind: A1
- Application number: 17/112,462
- Filed: 2020-12-04
- Published: 2021-03-25
- Earliest claimed: 2018-06-29
- Assignees: FG Innovation Company Limited
- Applicants: FG Innovation Company Limited
- Inventors: HUI-YU JIANG; YAO-JEN CHANG
- Web page: https://patentgrep.com/patent/US20210092422A1

## CPC

- H04N 19/11: among a plurality of spatial predictive coding modes
- H04N 19/44: Decoders specially adapted therefor, e.g. video decoders which are asymmetric with respect to the encoder
- H04N 19/105: Selection of the reference unit for prediction within a chosen coding or prediction mode, e.g. adaptive choice of position and number of pixels used for prediction
- H04N 19/134: characterised by the element, parameter or criterion affecting or controlling the adaptive coding
- H04N 19/174: the region being a slice, e.g. a line of blocks or a group of blocks
- H04N 19/176: the region being a block, e.g. a macroblock
- H04N 19/46: Embedding additional information in the video signal during the compression process (H04N19/517, H04N19/68, H04N19/70 take precedence)
- H04N 19/593: involving spatial prediction techniques
- H04N 19/70: characterised by syntax aspects related to video coding, e.g. related to compression standards
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

A method of decoding a bistream by an electronic device is provided. A block unit is determined from an image frame according to the bitstream. A line index determined in the bitstream is compared with a first predefined value to determine whether a mode flag is included in the bitstream. A mode index is determined for directly selecting a prediction mode of the block unit from a most probable mode (MPM) list of the block unit when the mode flag is not included in the bitstream. The mode flag is compared to a second predefined value when the mode flag is included in the bitstream to determine whether the prediction mode is selected from the MPM list. One of a plurality of reference lines is selected based on the line index. The block unit is reconstructed based on the selected reference line and the prediction mode.

## Claims

### Claim 1

A method of decoding a bitstream by an electronic device, the method comprising:
determining a block unit from an image frame according to the bitstream;
determining a line index of the block unit in the bitstream;
comparing the line index with a first predefined value to determine whether a mode flag is included in the bitstream;
determining a mode index in the bitstream for directly selecting a prediction mode of the block unit from a most probable mode (MPM) list of the block unit when the mode flag is not included in the bitstream;
comparing the mode flag to a second predefined value when the mode flag is included in the bitstream to determine whether the prediction mode is selected from the MPM list based on the mode index;
selecting one of a plurality of reference lines based on the line index; and
reconstructing the block unit based on the selected one of the plurality of reference lines and the prediction mode.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the prediction mode of the block unit is selected from a plurality of mode candidates based on the mode flag, when the selected one of the plurality of reference lines is identical to a first one of the plurality of reference lines adjacent to the block unit and indicated by the first predefined value.

### Claim 3 (depends on 2)

The method according to claim 2, wherein:
the plurality of mode candidates is categorized into the MPM list and a non-MPM list; and
the mode flag indicates in which one of the MPM list and the non-MPM list the prediction mode is included.

### Claim 4 (depends on 2)

The method according to claim 2, wherein the prediction mode is selected based on the mode index from the MPM list without parsing the mode flag, when the selected one of the plurality of reference lines is different from the first one of the plurality of reference lines.

### Claim 5

An electronic device for decoding a bitstream, the electronic device comprising:
at least one processor; and
a storage device coupled to the at least one processor and storing a plurality of instructions which, when executed by the at least one processor, causes the at least one processor to:
determine a block unit from an image frame according to the bitstream;
determine a line index of the block unit in the bitstream;
compare the line index with a first predefined value to determine whether a mode flag is included in the bitstream;
determine a mode index in the bitstream for directly selecting a prediction mode of the block unit from a most probable mode (MPM) list of the block unit when the mode flag is not included in the bitstream;
compare the mode flag to a second predefined value when the mode flag is included in the bitstream to determine whether the prediction mode is selected from the MPM list based on the mode index;
select one of a plurality of reference lines based on the line index; and
reconstruct the block unit based on the selected one of the plurality of reference lines and the prediction mode.

### Claim 6 (depends on 5)

The electronic device according to claim 5, wherein the prediction mode of the block unit is selected from a plurality of mode candidates based on the mode flag, when the selected one of the plurality of reference lines is identical to a first one of the plurality of reference lines adjacent to the block unit and indicated by the first predefined value.

### Claim 7 (depends on 6)

The electronic device according to claim 6, wherein the prediction mode is selected from the MPM list including a plurality of most probable modes determined from the plurality of mode candidates, when the selected one of the plurality of reference lines is different from the first one of the plurality of reference lines.

### Claim 8

A method of decoding a bitstream by an electronic device, the method comprising:
determining a block unit from an image frame according to the bitstream;
determining a line index in the bitstream for selecting a prediction line of the block unit from a plurality of reference lines;
determining, based on the line index, whether a mode flag is included in the bitstream;
directly determining a most probable mode (MPM) index from the bitstream for selecting a prediction mode of the block unit from a MPM list of the block unit when the mode flag is not included in the bitstream;
comparing the mode flag with a predefined value for selecting one of the MPM index and a non-MPM index to determine the prediction mode when the mode flag is included in the bitstream; and
reconstructing the block unit based on the prediction line and the prediction mode.

### Claim 9 (depends on 8)

The method according to claim 8, wherein
the mode flag is included in the bitstream for indicating the selected one of the MPM index and the non-MPM index, when the prediction line indicated by the line index is identical to a first one of the plurality of reference lines, and
the first one of the plurality of reference lines is adjacent to the block unit.

### Claim 10 (depends on 9)

The method according to claim 9, wherein the prediction mode is selected directly based on the MPM index from the MPM list without parsing the mode flag, when the prediction line is different from the first one of the plurality of reference lines.

### Claim 11 (depends on 10)

The method according to claim 10, wherein the mode flag is not included in the bitstream, when the prediction line is different from the first one of the plurality of reference lines.
