# US 2022/0286672 A1 · Dictionary based coding of video data

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

- Number: US 2022/0286672 A1
- Document ID: US20220286672A1
- Status: Published application
- Kind: A1
- Application number: 17/825,998
- Filed: 2022-05-26
- Published: 2022-09-08
- Earliest claimed: 2019-11-30
- Assignees: Bytedance Inc.
- Applicants: Bytedance Inc.
- Inventors: Weijia ZHU; Jizheng XU; Li ZHANG; Hsiao Chiang CHUANG; Kui FAN
- Web page: https://patentgrep.com/patent/US20220286672A1

## CPC

- 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/593: involving spatial prediction techniques
- H04N 19/147: according to rate distortion criteria (rate-distortion as a criterion for motion estimation H04N19/567)
- H04N 19/176: the region being a block, e.g. a macroblock
- H03M 7/4056: {Coding table selection}
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION
- H03M: CODING; DECODING; CODE CONVERSION IN GENERAL (using fluidic means F15C4/00; optical analogue/digital converters G02F7/00; coding, decoding or code conversion, specially adapted for particular applications, see the relevant subclasses, e.g. G01D, G01R, G06F, G06T, G09G, G10L, G11B, G11C, H04B, H04L, H04M, H04N; ciphering or deciphering for cryptography or other purposes involving the need for secrecy G09C)

## Abstract

A method of video processing is described. The method includes performing a conversion between a current block of a video and a bitstream representation of the video, wherein the current block is coded with a dictionary-based coding mode using one or more dictionaries, and wherein the conversion is based on the one or more dictionaries.

## Claims

### Claim 1

A method of processing video data, comprising:
performing a conversion between a current block of a current video region of a video and a bitstream of the video,
wherein the current block is coded with a dictionary-based coding mode using one or more dictionaries, and
wherein the conversion is based on the one or more dictionaries.

### Claim 2 (depends on 1)

The method of claim 1, wherein a prediction block of the current block is based on one or more entries of a dictionary.

### Claim 3 (depends on 2)

The method of claim 2, wherein the prediction block is determined using an entry of the dictionary, and
wherein an index of the entry is included in the bitstream, or
the index of the entry is inferred to N, and N is an integer.

### Claim 4 (depends on 2)

The method of claim 2, wherein how to select an entry of the dictionary is determined by minimizing a certain cost,
wherein the certain cost corresponds to a rate distortion cost or a rate distortion characteristic between the entry and the current block, or
the certain cost corresponds to a distortion between the entry and the current block.

### Claim 5 (depends on 2)

The method of claim 2, wherein the prediction block is determined solely based on multiple entries of the dictionary, or
wherein the prediction block is determined based on multiple entries of the dictionary and a reconstructed area in a current picture including the current block.

### Claim 6 (depends on 2)

The method of claim 2, wherein a corresponding residual block between the current block and the prediction block is transformed, quantized and/or entropy coded.

### Claim 7 (depends on 1)

The method of claim 1, wherein a dictionary for the current block is reset before coding the current video region and updated after coding the current block.

### Claim 8 (depends on 7)

The method of claim 7, wherein the dictionary is updated based on overlapping video blocks with different sizes that are contained in the current video region, or
wherein the dictionary is updated based on overlapping video blocks with a size that is equal to M×N, and M and N are positive integers.

### Claim 9 (depends on 7)

The method of claim 7, wherein a hash function is used to exclude similar or identical video blocks from the dictionary.

### Claim 10 (depends on 9)

The method of claim 9, wherein the hash function is a cyclic redundancy check function with N bits, and N is a positive integer;
wherein only a latter video block according to a raster order that is of two video blocks having a same hash value is included in the dictionary, or two video blocks having a same hash value are included in the dictionary;
wherein each entry in the dictionary is a block list to store blocks with same hash values.

### Claim 11 (depends on 1)

The method of claim 1, wherein a prediction block or a reconstruction block of the current block is derived by sorting entries in a dictionary.

### Claim 12 (depends on 11)

The method of claim 11, wherein the sorting is based on a distortion measure between a template of an entry in the dictionary and a template of the current block,
wherein the sorting is in an ascending or descending order based on a template distortion cost, or
wherein the sorting is in a descending order, and wherein only first K entries are used in the conversion.

### Claim 13 (depends on 12)

The method of claim 12, wherein, for the current block having a size S1×S2, the template is denoted as a M×N region excluding an area corresponding to the size S1×S2, and S1, S2, M, and N are positive integers, M>S1 and M>S2;
wherein the distortion measure is based on a sum of absolute differences (SAD) computation, a sum of absolute temporal differences (SATD) computation, a sum of squared errors (SSE) computation or a mean-squared error (MSE) computation, or
wherein the entry includes the current block in a reconstructed region and the template of the current block.

### Claim 14 (depends on 1)

The method of claim 1, wherein indices of one or more entries of a dictionary are included in the bitstream, and
wherein the indices are binarized using a truncated unary coding, a truncated binary coding a fixed length coding or an exponential-Golomb coding.

### Claim 15 (depends on 14)

The method of claim 14, wherein the indices are binarized based on a number of the one or more entries in the dictionary, and
wherein a binarization of the indices has a fixed length with M bits, wherein M is equal to floor(log 2(N)), wherein log 2(N) is a function to get a logarithm of N to a base of 2 and floor(N) is a function to get a nearest integer upbound of N, or
the indices are binarized using a truncated binary coding or a truncated unary coding with cMax equal to N,
wherein N is a number of all entries or available entries in the dictionary.

### Claim 16 (depends on 1)

The method of claim 1, wherein how to select a dictionary for the current block is based on coding characteristic of the current block, and the coding characteristic includes a size of the current block and/or information in the bitstream.

### Claim 17 (depends on 1)

The method of claim 1, wherein the conversion includes encoding the current block into the bitstream.

### Claim 18 (depends on 1)

The method of claim 1, wherein the conversion includes decoding the current block from the bitstream.

### Claim 19

An apparatus for processing video data comprising a processor and a non-transitory memory with instructions thereon, wherein the instructions upon execution by the processor, cause the processor to:
perform a conversion between a current block of a current video region of a video and a bitstream of the video,
wherein the current block is coded with a dictionary-based coding mode using one or more dictionaries, and
wherein the conversion is based on the one or more dictionaries.

### Claim 20

A non-transitory computer-readable recording medium storing a bitstream of a video which is generated by a method performed by a video processing apparatus, wherein the method comprises:
generating, for a current block of a current video region of a video, the bitstream of the video,
wherein the current block is coded with a dictionary-based coding mode using one or more dictionaries, and
wherein the generating is based on the one or more dictionaries.
