IP Library › Granted Patent US 12,262,057
Granted Patent B2
US 12,262,057 · App. 17/701,647 · Granted Mar 25, 2025

Method and apparatus of image compression with bit rate control

Inventors: Hsu-Jung Tung (HsinChu, TW); Chi-Wang Chai (San Jose, CA); Weimin Zeng (San Jose, CA); Yi-Chen Tseng (HsinChu, TW)
Assignee: Realtek Semiconductor Corp.
H04N19/625H04N19/176
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 12,262,057
App. No.
17/701,647
Granted
Mar 25, 2025
Kind
B2
Abstract

A method for compressing images based on joint photographic experts group (JPEG) standard includes: compressing data of one or more first image blocks with a first compression level to produce compression data of the one or more first image blocks; adjusting the first compression level to obtain a second compression level according to at least one of a data size-related index regarding the compression data of the one or more first image blocks or a transmission-related index regarding transmission of the compression data of the one or more first image blocks; and compressing data of a second image block with the second compression level.

Claims (39)

1. A method for compressing images based on joint photographic experts group (JPEG) standard, comprising:

compressing data of one or more first image blocks with a first compression level to produce compression data of the one or more first image blocks;

adjusting the first compression level to obtain a second compression level according to at least one of a data size-related index regarding the compression data of the one or more first image blocks or a transmission-related index regarding transmission of the compression data of the one or more first image blocks; and

compressing data of a second image block with the second compression level, comprising:

converting the data of the second image block into a plurality of discrete cosine transform (DCT) coefficients;

quantizing the plurality of DCT coefficients of the second image block by applying a quantization table to obtain a plurality of quantized DCT coefficients of the second image block; and

producing compression data of the second image block by encoding based on the quantized DCT coefficients of the second image block, comprising:

reducing values of only a subset of the plurality of quantized DCT coefficients of the second image block to obtain at least one value-reduced quantized DCT coefficient through direct value adjustment rather than through quantization table adjustment if the second compression level is higher than the first compression level; and

producing the compression data of the second image block by encoding the at least one value-reduced quantized DCT coefficient and non-value-reduced quantized DCT coefficients.

2. The method of claim 1 , wherein the step of adjusting the first compression level to obtain the second compression level comprises:

leveling up the first compression level to obtain the second compression level if a remaining capacity of a compressed data buffer which the compression data of the one or more first image blocks are buffered in is lower than a first threshold.

3. The method of claim 1 , wherein the step of adjusting the first compression level to obtain the second compression level comprises:

leveling up the first compression level to obtain the second compression level if a data size of the one or more first image blocks is higher than a first threshold.

4. The method of claim 1 , wherein the step of adjusting the first compression level to obtain the second compression level comprises:

leveling up the first compression level to obtain the second compression level upon receipt of a retransmission request.

5. The method of claim 1 , wherein the step of adjusting the first compression level to obtain the second compression level comprises:

leveling up the first compression level to obtain the second compression level if a data transmission rate of the transmission of the compression data of the one or more first image blocks is lower than a first threshold.

6. The method of claim 1 , wherein the step of compressing data of the second image block with the second compression level comprises:

increasing at least one of elements of the quantization table to obtain an adjusted quantization table;

quantizing the plurality of DCT coefficients of the second image block by applying the adjusted quantization table to obtain a plurality of quantized DCT coefficients of the second image block; and

producing the compression data of the second image block by encoding the plurality of quantized DCT coefficients of the second image block.

7. The method of claim 1 , wherein the one or more first image blocks and the second image block belong to a same image or different images.

8. An apparatus for compression images based on joint photographic experts group (JPEG) standard, comprising:

a compression circuit, configured to compress data of one or more first image blocks with a first compression level to produce compression data of the one or more first image blocks, and compress data of a second image block with a second compression level; and

a compression level control circuit, coupled to the compression circuit, configured to adjusting the first compression level to obtain the second compression level according to at least one of a data size-related index regarding the compression data of the one or more first image blocks or a transmission-related index regarding transmission of the compression data of the one or more first image blocks;

wherein the compression circuit comprises:

a discrete cosine transform (DCT) unit, configured to convert the data of the second image block into a plurality of discrete cosine transform (DCT) coefficients;

a quantization unit, configured to quantize the plurality of DCT coefficients of the second image block by applying a quantization table to obtain a plurality of quantized DCT coefficients of the second image block; and

an encoding unit, configured to produce compression data of the second image block by encoding based on the quantized DCT coefficients of the second image block

wherein the quantization unit is configured to reduce values of only a subset of the plurality of quantized DCT coefficients of the second image block to obtain at least one value-reduced quantized DCT coefficient through direct value adjustment rather than through quantization table adjustment if the second compression level is higher than the first compression level; and the encoding unit is configured to produce the compression data of the second image block by encoding the at least one value-reduced quantized DCT coefficient and non-value-reduced quantized DCT coefficients.

9. The apparatus of claim 8 , wherein the compression level control circuit is configured to:

level up the first compression level to obtain the second compression level if a remaining capacity of a compressed data buffer which the compression data of the one or more first image blocks are buffered in is lower than a first threshold.

10. The apparatus of claim 8 , wherein the compression level control circuit is configured to:

level up the first compression level to obtain the second compression level if a data size of the one or more first image blocks is higher than a first threshold.

11. The apparatus of claim 8 , wherein the compression level control circuit is configured to level up the first compression level to obtain the second compression level upon receipt of a retransmission request.

12. The apparatus of claim 8 , wherein the compression level control circuit is configured to:

level up the first compression level to obtain the second compression level if a data transmission rate of the transmission of the compression data of the one or more first image blocks is lower than a first threshold.

13. The apparatus of claim 8 , wherein the quantization unit increases at least one of elements of the quantization table to obtain an adjusted quantization table, and accordingly quantizes the plurality of DCT coefficients of the second image block by applying the adjusted quantization table to obtain a plurality of quantized DCT coefficients of the second image block; and the encoding unit produces the compression data of the second image block by encoding the plurality of quantized DCT coefficients of the second image block.

14. The apparatus of claim 8 , wherein the one or more first image blocks and the second image block belong to a same image or different images.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 22, 2022
From: TUNG, HSU-JUNG; CHAI, CHI-WANG; ZENG, WEIMIN; TSENG, YI-CHEN
To: REALTEK SEMICONDUCTOR CORP.
Reel/Frame 059346/0584 →
Continuity (1)
Related Publication 20230308687A1 · Sep 28, 2023
References Cited (9)
US 6104757A · Rhee · 2000 [cited by examiner]
US 7457359B2 · Mabey · 2008 [cited by applicant]
US 9979969B2 · Wee · 2018 [cited by examiner]
US 10341684B2 · Drako · 2019 [cited by applicant]
US 20040179110A1 · Hashimoto · 2004 [cited by examiner]
US 20060050978A1 · Lin · 2006 [cited by examiner]
US 20060078211A1 · Tjandrasuwita · 2006 [cited by examiner]
US 20100232721A1 · Yang · 2010 [cited by examiner]
US 20120039194A1 · Kure · 2012 [cited by examiner]