# US 2019/0166180 A1 · System and methods for bit rate control

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

- Number: US 2019/0166180 A1
- Document ID: US20190166180A1
- Status: Published application
- Kind: A1
- Application number: 16/262,048
- Filed: 2019-01-30
- Published: 2019-05-30
- Earliest claimed: 2016-08-04
- Assignees: Sz Dji Technology Co., Ltd.
- Applicants: Sz Dji Technology Co., Ltd.
- Inventors: Wenjun ZHAO; Yannan WU
- Web page: https://patentgrep.com/patent/US20190166180A1

## CPC

- H04N 19/15: by monitoring actual compressed data size at the memory before deciding storage at the transmission buffer
- H04L 65/613: for the control of the source by the destination (control signals issued by the client directed to the server or network components specially adapted for selective content distribution H04N21/637)
- H04L 65/70: Media network packetisation
- H04L 65/75: Media network packet handling
- H04N 19/126: Details of normalisation or weighting functions, e.g. normalisation matrices or variable uniform quantisers
- H04N 19/174: the region being a slice, e.g. a line of blocks or a group of blocks
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A computer-implemented method for controlling bit rate includes determining a difference between a cumulative number of bits used to encode one or more slices of a frame up to and including a first slice encoded using a first coding parameter and a maximum number of bits allowed to encode the one or more slices of the frame, updating a coding parameter threshold based at least in part on a counter that indicates a number of times when one or more coding parameters used to encode the one or more slices reach or exceed the coding parameter threshold, and determining a second coding parameter used to encode a second slice of the frame based at least in part on the difference and the updated coding parameter threshold.

## Claims

### Claim 1

A computer-implemented method for controlling bit rate, comprising:
determining a difference between a cumulative number of bits used to encode one or more slices of a frame up to and including a first slice and a maximum number of bits allowed to encode the one or more slices of the frame, the first slice being encoded using a first coding parameter;
updating a coding parameter threshold based at least in part on a counter that indicates a number of times when one or more coding parameters used to encode the one or more slices reach or exceed the coding parameter threshold; and
determining a second coding parameter used to encode a second slice of the frame based at least in part on the difference and the updated coding parameter threshold.

### Claim 2 (depends on 1)

The method of claim 1, wherein each of the one or more slices of the frame is encoded using a corresponding one of the one or more coding parameters.

### Claim 3 (depends on 1)

The method of claim 1, wherein the first coding parameter and the second coding parameter are quantization parameters.

### Claim 4 (depends on 1)

The method of claim 1, further comprising determining an expected adjustment to the first coding parameter based at least in part on the difference.

### Claim 5 (depends on 4)

The method of claim 4, wherein determining the second coding parameter comprises determining an actual adjustment to the first coding parameter based at least in part on the expected adjustment.

### Claim 6 (depends on 5)

The method of claim 5, wherein the expected adjustment to the first coding parameter is positive when the cumulative number of bits is greater than the maximum number of bits allowed.

### Claim 7 (depends on 6)

The method of claim 6, wherein the expected adjustment to the first coding parameter is negative when the cumulative number of bits is less than the maximum number of bits allowed.

### Claim 8 (depends on 1)

The method of claim 1, wherein the counter indicates a number of consecutive times when the one or more coding parameters reach or exceed the coding parameter threshold.

### Claim 9 (depends on 1)

The method of claim 1, wherein the coding parameter threshold represents an upper bound for the first coding parameter and the updated coding parameter threshold represents an upper bound for the second coding parameter.

### Claim 10 (depends on 1)

The method of claim 1, wherein updating the coding parameter threshold comprises incrementing the coding parameter threshold by a predefined value if the counter is equal to or greater than a predefined counter threshold and the difference between the cumulative number of bits and the maximum number of bits exceeds a predefined bits threshold.

### Claim 11 (depends on 10)

The method of claim 10, wherein the predefined value varies depending on an order in which the first slice or the second slice is encoded relative to other slices of the frame.

### Claim 12 (depends on 10)

The method of claim 10, wherein the predefined bits threshold varies depending on an order in which the first slice or the second slice is encoded relative to other slices of the frame.

### Claim 13 (depends on 1)

The method of claim 1, wherein updating the coding parameter threshold comprises decrementing the coding parameter threshold by a predefined value if the counter is less than a predefined counter threshold or if the difference between the cumulative number of bits and the maximum number of bits does not exceed a predefined bits threshold.

### Claim 14 (depends on 13)

The method of claim 13, wherein the predefined value varies depending on an order in which the first slice or the second slice is encoded relative to other slices of the frame.

### Claim 15 (depends on 13)

The method of claim 13, wherein the predefined bits threshold varies depending on an order in which the first slice or the second slice is encoded relative to other slices of the frame.

### Claim 16 (depends on 1)

The method of claim 1, further comprising removing a predefined set of frequency coefficients for the second slice of the frame based at least in part on the difference.

### Claim 17 (depends on 16)

The method of claim 16, wherein the predefined set is determined based at least in part on a determination that the difference exceeds a predefined bits threshold.

### Claim 18 (depends on 17)

The method of claim 17, wherein the predefined bits threshold varies depending on an order in which the first slice or the second slice is encoded relative to other slices of the frame.

### Claim 19

One or more non-transitory computer-readable storage media storing computer-executable instructions that, when executed by a computing system, configure the computing system to perform operations comprising:
determining a difference between a cumulative number of bits used to encode one or more slices of a frame up to and including a first slice and a maximum number of bits allowed to encode the one or more slices of the frame, the first slice being encoded using a first coding parameter;
updating a coding parameter threshold based at least in part on a counter that indicates a number of times when one or more coding parameters used to encode the one or more slices reach or exceed the coding parameter threshold; and
determining a second coding parameter used to encode a second slice of the frame based at least in part on the difference and the updated coding parameter threshold.

### Claim 20

A computer system, comprising:
a memory that stores one or more computer-executable instructions; and
one or more processors configured to access the memory and execute the computer-executable instructions to perform operations comprising:
determining a difference between a cumulative number of bits used to encode one or more slices of a frame up to and including a first slice and a maximum number of bits allowed to encode the one or more slices of the frame, the first slice being encoded using a first coding parameter;
updating a coding parameter threshold based at least in part on a counter that indicates a number of times when one or more coding parameters used to encode the one or more slices reach or exceed the coding parameter threshold; and
determining a second coding parameter used to encode a second slice of the frame based at least in part on the difference and the updated coding parameter threshold.
