IP Library Granted Patent US 11,930,198
Granted Patent B2
US 11,930,198 · App. 18/259,681 · Granted Mar 12, 2024

Image processing method and apparatus, and related assembly

Inventor: Jinfeng Song (Jiangsu, CN)
Assignee: INSPUR SUZHOU INTELLIGENT TECHNOLOGY CO., LTD.
H04N19/423H04N19/124H04N19/13H04N19/14H04N19/176H04N19/186H04N19/625
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,930,198
App. No.
18/259,681
Granted
Mar 12, 2024
Kind
B2
Abstract

Provided is an image processing method, which includes: determining whether the number of written rows of source image data in a DDR is a preset number of rows or a stop write number of rows, the preset number of rows being an integer multiple of the number of rows of an image block determined according to a compression condition, and the image block being any image block in an image block matrix determined on the basis of an entire frame of image; if yes, reading the source image data of the current image block from the DDR on the basis of a first read address of the current image block, the number of rows, and the number of columns; and performing compression on the source image data of the current image block to obtain compressed data, and writing the compressed data to the DDR.

Claims (54)

1. An image processing method, comprising:

determining whether a number of written rows of source image data in a Double Data Rate synchronous dynamic random access memory (DDR) is a preset number of rows or a stop write number of rows, the preset number of rows being an integer multiple of a number of rows of an image block determined according to a compression condition, and the image block being any image block in an image block matrix determined on the basis of an entire frame of image;

when the number of written rows of source image data in the DDR is the preset number of rows or the stop write number of rows, reading the source image data of the current image block from the DDR on the basis of a first read address of the current image block, a number of rows, and a number of columns of the current image block; and

performing compression on the source image data of the current image block to obtain compressed data, and writing the compressed data into the DDR.

2. The image processing method according to claim 1 , wherein a process of determining whether the number of written rows of the source image data in the DDR is the preset number of rows comprises:

detecting whether a current write address in the DDR is a preset address;

when the current write address is the preset address, determining that the number of written rows of the source image data in the DDR is the preset number of rows; and

when the current write address is the preset address, determining that the number of written rows of the source image data in the DDR is not the preset number of rows.

3. The image processing method according to claim 1 , wherein before reading the source image data of the current image block from the DDR on the basis of the first read address of the current image block, the number of rows, and the number of columns, the image processing method further comprises:

when the current image block is a image block in the last column of the image block matrix, determining whether a number of columns of the source image data in the DDR is the integer multiple of the number of columns of the image block; and

when the number of columns of the source image data in the DDR is not the integer multiple of the number of columns of the image block, performing column edge processing on the source image data in the DDR.

4. The image processing method according to claim 3 , wherein the column edge processing comprises: performing a completion operation on the source image data in the last column of the DDR, so that the number of columns of the source image data is the integer multiple of the number of columns of the image block.

5. The image processing method according to claim 1 , wherein before reading the source image data of the current image block from the DDR on the basis of the first read address of the current image block, the number of rows, and the number of columns, the image processing method further comprises:

when the current image block is the image block in the last row of the image block matrix, determining whether a number of rows of the source image data in the DDR is the integer multiple of the number of rows of the image block; and

when the number of rows of the source image data in the DDR is not the integer multiple of the number of rows of the image block, performing row edge processing on the source image data in the DDR.

6. The image processing method according to claim 5 , wherein the row edge processing comprises: performing a completion operation on the source image data in the last row of the DDR, so that the number of rows of the source image data is the integer multiple of the number of rows of the image block.

7. The image processing method according to claim 1 , wherein the compression comprises a Red Green Blue (RGB) to Luma and Chroma (YUV) format conversion operation, a Discrete Cosine Transform (DCT) operation, a quantization operation, and an entropy coding operation.

8. The image processing method according to claim 1 , wherein the stop write number of rows is a corresponding number of written rows when all the source image data of the entire frame of image is written into the DDR.

9. An electronic apparatus, comprising:

a memory, configured to store a computer program; and

a processor, configured to execute the computer program to:

determine whether a number of written rows of source image data in a Double Data Rate synchronous dynamic random access memory (DDR) is a preset number of rows or a stop write number of rows, the preset number of rows being an integer multiple of a number of rows of an image block determined according to a compression condition, and the image block being any image block in an image block matrix determined on the basis of an entire frame of image;

when the number of written rows of source image data in the DDR is the preset number of rows or the stop write number of rows, read the source image data of the current image block from the DDR on the basis of a first read address of the current image block, a number of rows, and a number of columns of the current image block; and

perform compression on the source image data of the current image block to obtain compressed data, and write the compressed data into the DDR.

10. The electronic apparatus according to claim 9 , wherein the processor is further configured to:

detect whether a current write address in the DDR is a preset address;

when the current write address is the preset address, determine that the number of written rows of the source image data in the DDR is the preset number of rows; and

when the current write address is the preset address, determine that the number of written rows of the source image data in the DDR is not the preset number of rows.

11. The electronic apparatus according to claim 9 , wherein the processor is further configured to:

when the current image block is a image block in the last column of the image block matrix, determine whether a number of columns of the source image data in the DDR is the integer multiple of the number of columns of the image block; and

when the number of columns of the source image data in the DDR is not the integer multiple of the number of columns of the image block, perform column edge processing on the source image data in the DDR.

12. The electronic apparatus according to claim 11 , wherein the processor is further configured to:

perform a completion operation on the source image data in the last column of the DDR, so that the number of columns of the source image data is the integer multiple of the number of columns of the image block.

13. The electronic apparatus according to claim 9 , wherein the processor is further configured to:

when the current image block is the image block in the last row of the image block matrix, determine whether a number of rows of the source image data in the DDR is the integer multiple of the number of rows of the image block; and

when the number of rows of the source image data in the DDR is not the integer multiple of the number of rows of the image block, perform row edge processing on the source image data in the DDR.

14. The electronic apparatus according to claim 9 , wherein the compression comprises a Red Green Blue (RGB) to Luma and Chroma (YUV) format conversion operation, a Discrete Cosine Transform (DCT) operation, a quantization operation, and an entropy coding operation.

15. The electronic apparatus according to claim 9 , wherein the stop write number of rows is a corresponding number of written rows when all the source image data of the entire frame of image is written into the DDR.

16. A non-transitory computer-readable storage medium, wherein a computer program is stored on the non-transitory computer-readable storage medium, and the computer program is configured to, when executed by a processor, cause the processor to:

determine whether a number of written rows of source image data in a Double Data Rate synchronous dynamic random access memory (DDR) is a preset number of rows or a stop write number of rows, the preset number of rows being an integer multiple of a number of rows of an image block determined according to a compression condition, and the image block being any image block in an image block matrix determined on the basis of an entire frame of image;

when the number of written rows of source image data in the DDR is the preset number of rows or the stop write number of rows, read the source image data of the current image block from the DDR on the basis of a first read address of the current image block, a number of rows, and a number of columns of the current image block; and

perform compression on the source image data of the current image block to obtain compressed data, and write the compressed data into the DDR.

17. The non-transitory computer-readable storage medium according to claim 16 , wherein the computer program is further configured to cause the processor to:

detect whether a current write address in the DDR is a preset address;

when the current write address is the preset address, determine that the number of written rows of the source image data in the DDR is the preset number of rows; and

when the current write address is the preset address, determine that the number of written rows of the source image data in the DDR is not the preset number of rows.

18. The non-transitory computer-readable storage medium according to claim 16 , wherein the computer program is further configured to cause the processor to:

when the current image block is a image block in the last column of the image block matrix, determine whether a number of columns of the source image data in the DDR is the integer multiple of the number of columns of the image block; and

when the number of columns of the source image data in the DDR is not the integer multiple of the number of columns of the image block, perform column edge processing on the source image data in the DDR.

19. The non-transitory computer-readable storage medium according to claim 18 , wherein the computer program is further configured to cause the processor to:

perform a completion operation on the source image data in the last column of the DDR, so that the number of columns of the source image data is the integer multiple of the number of columns of the image block.

20. The non-transitory The computer-readable storage medium according to claim 16 , wherein the computer program is further configured to cause the processor to

when the current image block is the image block in the last row of the image block matrix, determine whether a number of rows of the source image data in the DDR is the integer multiple of the number of rows of the image block; and

when the number of rows of the source image data in the DDR is not the integer multiple of the number of rows of the image block, perform row edge processing on the source image data in the DDR.

Assignments (2)
LICENSE Recorded Jun 30, 2026
From: IEIT SYSTEMS CO., LTD
To: AIVRES SYSTEMS INC.
Reel/Frame 075857/0939 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jun 28, 2023
From: SONG, JINFENG
To: INSPUR SUZHOU INTELLIGENT TECHNOLOGY CO., LTD.
Reel/Frame 064098/0582 →
Priority Claims (1)
CN 202111103935.9 · Sep 22, 2021 · national
Continuity (1)
Related Publication 20230396786A1 · Dec 7, 2023