# US 2021/0082082 A1 · Data processing method and processing circuit

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

- Number: US 2021/0082082 A1
- Document ID: US20210082082A1
- Status: Published application
- Kind: A1
- Application number: 17/105,401
- Filed: 2020-11-25
- Published: 2021-03-18
- Earliest claimed: 2018-05-31
- Assignees: Sz Dji Technology Co., Ltd.
- Applicants: Sz Dji Technology Co., Ltd.
- Inventors: Yao ZHAO; Qian GU; Feng HAN
- Web page: https://patentgrep.com/patent/US20210082082A1

## CPC

- G06T 1/60: Memory management
- G06T 1/0007: {Image acquisition}
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

A data processing method and a processing circuit are provided. The method includes obtaining a first input data and a data length of the first input data; obtaining a first value according to a byte offset and the data length of the first input data, the first value including N bits, each bit of the first value is either a first identifier or a second identifier, and each bit corresponding to one storage queue; obtaining a second input data according to the byte offset and the first input data, each sub-data corresponding to one bit in the first value; selecting the sub-data corresponding to a bit having the first identifier, and storing the selected sub-data in the storage queue corresponding to the bit having the first identifier; and when a data output condition is satisfied, outputting the sub-data stored in the storage queue.

## Claims

### Claim 1

A data processing method, comprising:
obtaining a first input data and a data length of the first input data;
obtaining a first value according to a byte offset and the data length of the first input data, wherein the first value includes N bits, a value of each bit of the first value is one of a first identifier and a second identifier, and each bit corresponds to one storage queue;
obtaining a second input data according to the byte offset and the first input data, wherein each sub-data included in the second input data corresponds to one bit in the first value;
selecting the sub-data corresponding to a bit whose value is the first identifier from the second input data, and storing the selected sub-data in the storage queue corresponding to the bit whose value is the first identifier; and
when a data output condition is satisfied, outputting the sub-data stored in the storage queue.

### Claim 2 (depends on 2)

The method according to claim 2, wherein:
the first input data includes one or more of an image pixel value or an outside-padding pixel value.

### Claim 3 (depends on 1)

The method according to claim 1, wherein: obtaining the first value according to the byte offset and the data length of the first input data comprises:
converting the data length of the first input data to a second value having N bits, a value of each bit of the second value being one of the first identifier and the second identifier, including:
based on the data length M, set last M bits of the second value as the first identifier, and set first (N−M) bits of the second value as the second identifier, M being less than or equal to N; and
offsetting the second value according to the byte offset to obtain the first value.

### Claim 4 (depends on 3)

The method according to claim 3, wherein offsetting the second value according to the byte offset to obtain the first value comprises:
determine a first offset number L1 according to the byte offset, and cyclically left-shift L1 bits for each bit in the second value to obtain the first value.

### Claim 5 (depends on 1)

The method according to claim 1, wherein obtaining the second input data according to the byte offset and the first input data comprises:
determine a second offset number L2 according to the byte offset, and cyclically left-shift L2 bits for each sub-data in the first input data to obtain the second input data.

### Claim 6 (depends on 1)

The method according to claim 1, further comprising:
before obtaining the first value according to the byte offset and the data length of the first input data, reading the byte offset from an offset register, wherein the offset register is configured to record the byte offset, and the byte offset recorded by the offset register is less than or equal to N; and
after obtaining the second input data according to the byte offset and the first input data, accumulating the byte offset in the offset register with the data length of the first input data to obtain a new byte offset, and updating the obtained new byte offset in the offset register.

### Claim 7 (depends on 1)

The method according to claim 1, wherein:
the data output condition is satisfied upon determining that every storage queue stores a sub-data.

### Claim 8 (depends on 1)

The method according to claim 1, further comprising: before obtaining the first input data and the data length of the first input data,
obtaining third input data that includes pixel values, the pixel values including an image pixel value and an inside-padding pixel value; and
outputting the third input data to an asymmetric storage queue, and storing the pixel values in the third input data to a plurality of sub-storage queues included in the asymmetric storage queue;
outputting the pixel values stored in the sub-storage queues when a data output condition corresponding to the third data is satisfied; and
obtaining an image pixel value of the first input data according to the outputted pixel values; and
obtaining the first input data according to at least one of the image pixel value of the first input data or an outside-padding pixel value of the first input data.

### Claim 9 (depends on 8)

The method according to claim 8, wherein:
the third input data includes R image pixel values, and S inside-padding pixel values after each of the R image pixel values; and
the asymmetric storage queue includes S+1 sub-storage queues, each sub-storage queue being configured to store R pixel values of the third input data.

### Claim 10 (depends on 8)

The method according to claim 8, wherein:
the data output condition corresponding to the third data is satisfied upon determining that all sub-storage queues have stored pixel values.

### Claim 11 (depends on 8)

The method according to claim 8, wherein outputting the pixel values stored in the sub-storage queues comprises:
sequentially traversing each of the sub-storage queues according to a sequence of the sub-storage queues;
reading R pixel values from a currently traversed sub-storage queue; and
outputting the R pixel values read from the currently traversed sub-storage queue.

### Claim 12

A processing circuit, comprising:
a selection sub-circuit, configured to obtain a first value according to a byte offset and a data length of a first input data, wherein the first value includes N bits, a value of each bit of the first value is one of a first identifier and a second identifier, and each bit corresponds to one storage queue;
a first shifting sub-circuit, configured to obtain a second input data according to the byte offset and the first input data, wherein each sub-data included in the second input data corresponds to one bit in the first value; and
at least N storage queues, each configured to store the sub-data according a value of the bit corresponding to the storage queue, wherein the sub-data corresponding to a bit whose value is the first identifier is stored into a storage queue corresponding to the bit, wherein:
when a data output condition is satisfied, the sub-data stored in the at least N storage queues is outputted.

### Claim 13 (depends on 12)

The processing circuit according to claim 12, wherein:
the first input data includes one or more of an image pixel value or an outside-padding pixel value.

### Claim 14 (depends on 12)

The processing circuit according to claim 12, wherein the selection sub-circuit includes:
a byte enable sub-circuit, configured to convert the data length of the first input data to a second value having N bits, wherein a value of each bit of the second value is one of the first identifier and the second identifier; and
a second shifting sub-circuit, configured to offset the second value according to the byte offset to obtain the first value.

### Claim 15 (depends on 14)

The processing circuit according to claim 14, wherein when converting the data length of the first input data into the second value having N bits, the byte enable sub-circuit is configured to:
based on a data length M, set last M bits of the second value as the first identifier, and set first (N−M) bits of the second value as the second identifier, wherein M is less than or equal to N.

### Claim 16 (depends on 14)

The processing circuit according to claim 14, wherein when offsetting the second value according to the byte offset to obtain the first value, the second shifting sub-circuit is configured to:
determine a first offset number L1 according to the byte offset, and cyclically left-shift L1 bits for each bit in the second value to obtain the first value, wherein the first offset number includes the byte offset.

### Claim 17 (depends on 12)

The processing circuit according to claim 12, wherein when obtaining the second input data according to the byte offset and the first input data, the first shifting sub-circuit is configured to:
determine a second offset number L2 according to the byte offset, and cyclically left-shift L2 bits for each sub-data in the first input data to obtain the second input data, wherein the second offset number includes a product of the byte offset and a specific value.

### Claim 18 (depends on 12)

The processing circuit according to claim 12, further including:
an offset register, configured to record the byte offset, and output the recorded byte offset to the selection sub-circuit and the first shifting sub-circuit, wherein the byte offset is less than or equal to N.

### Claim 19 (depends on 18)

The processing circuit according to claim 18, wherein the offset register is further configured to:
after the first shifting sub-circuit obtains the second input data according to the byte offset and the first input data, accumulate the byte offset in the offset register with the data length of the first input data to obtain a new byte offset, and update the obtained new byte offset in the offset register.

### Claim 20 (depends on 12)

The processing circuit according to claim 12, wherein:
when every storage queue stores a sub-data, the data output condition is satisfied; and
when outputting the sub-data stored in the storage queues, the sub-data is read from each storage queue among entire storage queues, and the read sub-data is outputted.
