# US 2021/0084293 A1 · Method and apparatus for coding video data

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

- Number: US 2021/0084293 A1
- Document ID: US20210084293A1
- Status: Published application
- Kind: A1
- Application number: 16/991,720
- Filed: 2020-08-12
- Published: 2021-03-18
- Earliest claimed: 2019-09-12
- Applicants: Alibaba Group Holding Limited
- Inventors: Mohammed Golam SARWER; Jiancong LUO; Yan YE
- Web page: https://patentgrep.com/patent/US20210084293A1

## CPC

- H04N 19/107: between spatial and temporal predictive coding, e.g. picture refresh
- H04N 19/91: Entropy coding, e.g. variable length coding [VLC] or arithmetic coding
- H04N 19/18: the unit being a set of transform coefficients
- H04N 19/184: the unit being bits, e.g. of the compressed video stream
- H04N 19/13: Adaptive entropy coding, e.g. adaptive variable length coding [AVLC] or context adaptive binary arithmetic coding [CABAC]
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

The present disclosure provides a computer-implemented method for encoding video. The method includes coding a bitstream including coefficient groups of a transform block, and flags that correspond respectively to the coefficient groups. Each of the coefficient groups includes one or more coefficients. The coding of the bitstream includes: after a number of context coded bins in the bitstream exceeds a threshold, coding remaining flags or coefficients in the bitstream in a bypass coding mode.

## Claims

### Claim 1

A non-transitory computer-readable storage medium storing a set of instructions that are executable by one or more processors of a device to cause the device to perform a method for encoding video, comprising:
coding a bitstream comprising:
a plurality of coefficient groups of a transform block, and
a plurality of flags that correspond respectively to the plurality of coefficient groups,
wherein each of the plurality of coefficient groups comprises one or more coefficients, and
wherein the coding of the bitstream comprises: after a number of context coded bins in the bitstream exceeds a threshold, coding one or more remaining flags or coefficients in the bitstream in a bypass coding mode.

### Claim 2 (depends on 1)

The non-transitory computer-readable storage medium of claim 1, wherein the set of instructions that are executable by the one or more processors cause the device to further perform:
signaling the plurality of flags at a beginning of the bitstream, and
the coding the plurality of flags comprises coding one or more of the plurality of flags in a context coding mode.

### Claim 3 (depends on 2)

The non-transitory computer-readable storage medium of claim 2, wherein the set of instructions that are executable by the one or more processors cause the device to further perform:
signaling, in the bitstream, the one or more remaining flags coded in the bypass coding mode following the one or more flags that are coded in the context coding mode.

### Claim 4 (depends on 2)

The non-transitory computer-readable storage medium of claim 2, wherein the set of instructions that are executable by the one or more processors cause the device to further perform:
signaling, in the bitstream, the plurality of coefficient groups following the plurality of flags, wherein the coefficients in the plurality of coefficient groups are coded in the context coding mode or in the bypass coding mode.

### Claim 5 (depends on 1)

The non-transitory computer-readable storage medium of claim 1, wherein each of the plurality of coefficient groups is signaled, in the bitstream, following a corresponding flag.

### Claim 6 (depends on 5)

The non-transitory computer-readable storage medium of claim 5, wherein the set of instructions that are executable by the one or more processors cause the device to further perform:
determining, before coding a first flag in the bitstream, whether the number of the context coded bins exceeds the threshold;
in response to the number of the context coded bins being equal to or below the threshold, coding the first flag in a context coding mode; and
in response to the number of the context coded bins exceeding the threshold, coding the first flag in the bypass coding mode.

### Claim 7 (depends on 1)

The non-transitory computer-readable storage medium of claim 1, wherein the set of instructions that are executable by the one or more processors cause the device to further perform:
determining the threshold according to a number of the plurality of coefficient groups in the transform block or according to a number of the plurality of flags in the bitstream.

### Claim 8

An apparatus, comprising:
a memory configured to store instructions; and
a processor coupled to the memory and configured to execute the instructions to cause the apparatus to:
code a bitstream comprising:
a plurality of coefficient groups of a transform block, and
a plurality of flags that correspond respectively to the plurality of coefficient groups,
wherein each of the plurality of coefficient groups comprises one or more coefficients, and
wherein the coding of the bitstream comprises: after a number of context coded bins in the bitstream exceeds a threshold, coding one or more remaining flags or coefficients in the bitstream in a bypass coding mode.

### Claim 9 (depends on 8)

The apparatus of claim 8, wherein the processor is further configured to execute the instructions to cause the apparatus to:
signal the plurality of flags at a beginning of the bitstream, and
the processor is further configured to execute the instructions to cause the apparatus to code the plurality of flags by coding one or more of the plurality of flags in a context coding mode.

### Claim 10 (depends on 9)

The apparatus of claim 9, wherein the processor is further configured to execute the instructions to cause the apparatus to:
signal, in the bitstream, the one or more remaining flags coded in the bypass coding mode following the one or more flags that are coded in the context coding mode.

### Claim 11 (depends on 9)

The apparatus of claim 9, wherein the processor is further configured to execute the instructions to cause the apparatus to:
signaling, in the bitstream, the plurality of coefficient groups following the plurality of flags in the bitstream, wherein the coefficients in the plurality of coefficient groups are coded in the context coding mode or in the bypass coding mode.

### Claim 12 (depends on 8)

The apparatus of claim 8, wherein each of the plurality of coefficient groups is signaled, in the bitstream, following a corresponding flag.

### Claim 13 (depends on 12)

The apparatus of claim 12, wherein the processor is further configured to execute the instructions to cause the apparatus to:
determine, before coding a first flag in the bitstream, whether the number of the context coded bins exceeds the threshold;
in response to the number of the context coded bins being equal to or below the threshold, code the first flag, in a context coding mode; and
in response to the number of the context coded bins exceeding the threshold, code the first flag, in the bypass coding mode.

### Claim 14 (depends on 8)

The apparatus of claim 8, wherein the processor is further configured to execute the instructions to cause the apparatus to:
determine the threshold according to a number of the plurality of coefficient groups in the transform block or according to a number of the plurality of flags in the bitstream.

### Claim 15

A computer-implemented method for encoding video, comprising:
coding a bitstream comprising:
a plurality of coefficient groups of a transform block, and
a plurality of flags that correspond respectively to the plurality of coefficient groups,
wherein each of the plurality of coefficient groups comprises one or more coefficients, and
wherein the coding of the bitstream comprises: after a number of context coded bins in the bitstream exceeds a threshold, coding one or more remaining flags or coefficients in the bitstream in a bypass coding mode.

### Claim 16 (depends on 15)

The method of claim 15, further comprising:
signaling the plurality of flags at a beginning of the bitstream,
wherein the coding the plurality of flags comprises coding one or more of the plurality of flags in a context coding mode.

### Claim 17 (depends on 16)

The method of claim 16, further comprising:
signaling, in the bitstream, the one or more remaining flags coded in the bypass coding mode following the one or more flags that are coded in the context coding mode.

### Claim 18 (depends on 16)

The method of claim 16, further comprising:
signaling, in the bitstream, the plurality of coefficient groups following the plurality of flags, wherein the coefficients in the plurality of coefficient groups are coded in the context coding mode or in the bypass coding mode.

### Claim 19 (depends on 15)

The method of claim 15, wherein coding the plurality of coefficients comprises:
signaling, in the bitstream, each of the plurality of coefficient groups following a corresponding flag.

### Claim 20 (depends on 19)

The method of claim 19, further comprising:
determining, before coding a first flag in the bitstream, whether the number of the context coded bins exceeds the threshold;
in response to the number of the context coded bins being equal to or below the threshold, coding the first flag in a context coding mode; and
in response to the number of the context coded bins exceeding the threshold, coding the first flag in the bypass coding mode.
