# US 2021/0084342 A1 · Acceleration of context adaptive binary arithmetic coding (cabac) in video codecs

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

- Number: US 2021/0084342 A1
- Document ID: US20210084342A1
- Status: Published application
- Kind: A1
- Application number: 17/103,024
- Filed: 2020-11-24
- Published: 2021-03-18
- Earliest claimed: 2014-05-28
- Assignees: ARRIS Enterprises LLC
- Applicants: ARRIS Enterprises LLC
- Inventors: Padmassri Chandrashekar; Padmagowri Pichumani; Vinay Kulkarni; Shailesh Ramamurthy; Anil Kumar Nellore; Chetan Kumar Viswanath Gubbi
- Web page: https://patentgrep.com/patent/US20210084342A1

## CPC

- H04N 19/91: Entropy coding, e.g. variable length coding [VLC] or arithmetic coding
- H04N 19/13: Adaptive entropy coding, e.g. adaptive variable length coding [AVLC] or context adaptive binary arithmetic coding [CABAC]
- 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 is provided for determining a context-index when performing Context-based Adaptive Binary Arithmetic Coding (CABAC) for video compression or decompression includes initializing to an initialized value each of a plurality of context-indexes of chosen syntax elements associated with a given block (e.g., a macroblock). The context-index of dependent neighboring blocks of the given block is evaluated. The dependent neighboring blocks are blocks that have a context-index that depends on coding of a current bin position. The context-index of the dependent neighboring blocks is updated if and only if their context-index changes from the initialized values.

## Claims

### Claim 1

A method of determining a context-index when performing Context-based Adaptive Binary Arithmetic Coding (CABAC) for video compression or decompression, the method comprising:
initializing to an initialized value each of a plurality of context-indexes of chosen syntax elements associated with a given block;
evaluating the context-index of dependent neighboring blocks of the given block, the dependent neighboring blocks being blocks that have a context-index that depends on coding of a current bin position;
updating the context-index of the dependent neighboring blocks if and only if their context-index changes from the initialized values.

### Claim 2 (depends on 1)

The method of claim 1, wherein the selected syntax elements are specified in an H.264/MPEG 4 AVC standard and are selected from the group consisting of a mb_type, mb_skip_flag, transform_size_8×8_flag, mb_qp_delta, mb_field_decoding_flag, intra_chroma_pred_mode, mvd (horizontal)_l0, mvd (vertical)_l0, mvd (horizontal)_l1, mvd (vertical)_l1, ref_idx_l0 and ref_idx_l1, coded_block_pattern and coded_block_flag.

### Claim 3 (depends on 1)

The method of claim 1, wherein the selected syntax elements are specified in a HEVC standard and are selected from the group consisting of a split_cu_flag, cu_skip_flag, sig_coeff_flag if the video compression or decompression performed using HEVC.

### Claim 4 (depends on 1)

The method of claim 1, wherein the context-index of the dependent neighboring blocks only depends on the coding of the current bin position when at least one specified condition is satisfied, one of the specified conditions being dependent on the block type.

### Claim 5 (depends on 1)

The method of claim 1, wherein initializing the plurality of context-indexes includes initializing all context-indexes to a minimum possible context-index for the selected syntax element being coded.

### Claim 6 (depends on 5)

The method of claim 5, wherein initializing and updating the context-index of the dependent neighboring blocks includes incrementing the context-index based on block type and a bit rate of a video stream being compressed or decompressed.

### Claim 7 (depends on 1)

The method of claim 1, wherein initializing the plurality of context-indexes includes initializing all context-indexes to a maximum possible context-index for the selected syntax element being coded.

### Claim 8 (depends on 7)

The method of claim 7, wherein initializing and updating the context-index of the dependent neighboring blocks includes decrementing the context-index based on block type and a bit rate of a video stream being compressed or decompressed.

### Claim 9 (depends on 1)

The method of claim 1, wherein initializing the plurality of context indexes includes initializing up to two rows of context index samples.

### Claim 10

A method of debinarizing Context-based Adaptive Binary Arithmetic Coding (CABAC) data during video decompression, the method comprising:
identifying all syntax elements which are coded with a specific bit pattern and bit length that is pre-defined by a protocol;
arranging the codes of the syntax elements that are identified such that the codes with an equal number of bits are arranged sequentially without any intervening codes having a different number of bits; and
performing de-binarization using the arranged codes of the syntax elements.

### Claim 11 (depends on 10)

The method of claim 10, wherein performing the de-binarization comprises:
checking if a number of decoded bins in a bin string formed during the decoding of one of the syntax elements can result in a valid syntax element;
if the said number of decoded bins can potentially yield a valid syntax element, searching only those sequentially arranged codes that contain the given number of bins; and
identifying a valid syntax element that matches the bin string formed during the decoding of the syntax element.

### Claim 12 (depends on 10)

The method of claim 10, wherein the protocol conforms to an H.264/MPEG 4 AVC standard.

### Claim 13

A CABAC encoder, comprising:
a binarization module for converting a syntax element into a sequence of bins;
a context-index module for obtaining one or more context models for the syntax element based on the sequence of bins, each of the context models being associated with a context model, wherein the context-index module obtains the one or more context models by initializing a context-index of the syntax element associated with a given block and evaluates the context-index of dependent neighboring blocks of the given block, the dependent neighboring blocks being blocks that have a context-index that depends on coding of a current bin position; and
an arithmetic encoder for updating the one or more context models based on the sequence of bins and using the one or more context models to encode each of the bins in the sequence, wherein the arithmetic encoder updates the one or more context models by updating the associated context-indices of the dependent neighboring blocks if and only if their context-indices changes from the initialized values.

### Claim 14 (depends on 13)

The CABAC encoder of claim 13, wherein the context-index module is further configured to assign a context model to each bin the sequence of bins.

### Claim 15 (depends on 13)

The CABAC encoder of claim 13, wherein the context-index of the dependent neighboring blocks only depends on the coding of the current bin position when at least one specified condition is satisfied, one of the specified conditions being dependent on the block type.

### Claim 16 (depends on 13)

The CABAC encoder of claim 13, wherein the context-index module is further configured to initialize the plurality of context-indexes by initializing all context-indexes to a minimum possible context-index for the selected syntax element being coded.

### Claim 17 (depends on 16)

The CABAC encoder of claim 16, wherein the context-index module is further configured to initialize and update the context-index of the dependent neighboring blocks by incrementing the context-index based on macroblock type and a bit rate of a video stream being compressed or decompressed.

### Claim 18 (depends on 13)

The CABAC encoder of claim 13, wherein the context-index module is further configured to initialize the plurality of context-indexes by initializing all context-indexes to a maximum possible context-index for the selected syntax element being coded.

### Claim 19 (depends on 18)

The CABAC encoder of claim 18, wherein the context-index module is further configured to initialize and update the context-index of the dependent neighboring blocks by decrementing the context-index based on block type and a bit rate of a video stream being compressed or decompressed.

### Claim 20 (depends on 13)

The CABAC encoder of claim 13, wherein the context-index module is further configured to initialize the plurality of context indexes by initializing up to two rows of context index samples.
