IP Library Granted Patent US 8,437,560
Granted Patent B2
US 8,437,560 · App. 13/278,489 · Granted May 7, 2013

Method and system for decoding encoded images and reducing the size of said images

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 8,437,560
App. No.
13/278,489
Granted
May 7, 2013
Kind
B2
Abstract

A method and system for reducing the number of mathematical operations required in the JPEG decoding process without substantially impacting the quality of the image displayed is disclosed. Embodiments provide an efficient JPEG decoding process for the purposes of displaying an image on a display smaller than the source image, for example, the screen of a handheld device. According to one aspect of the invention, this is accomplished by reducing the amount of processing required for dequantization and inverse DCT (IDCT) by effectively reducing the size of the image in the quantized, DCT domain prior to dequantization and IDCT. This can be done, for example, by discarding unnecessary DCT index rows and columns prior to dequantization and IDCT. In one embodiment, columns from the right, and rows from the bottom are discarded such that only the top left portion of the block of quantized, and DCT coefficients are processed.

Claims (38)

1. A computer-implemented method of decoding and resizing an encoded image wherein a processor executes computer-readable instructions to perform a method comprising:

decoding the encoded image by applying an entropy decoding operation to generate an image file in a quantized transform domain; and

resizing the image file by:

downscaling the image file by applying scaling factors to generate a downscaled image file in the quantized transform domain;

dequantizing the downscaled image file by multiplying each block of the downscaled image file by a quantization step size block to generate a dequantized image file in a dequantized transform domain; and

performing an inverse transform operation on the dequantized image file to generate an image file in a pixel domain.

2. The method of claim 1 , wherein the entropy decoding operation is Huffman decoding, the quantized transform domain is a Discrete Cosine Transform (DCT) domain, and the inverse transform operation is a Inverse Discrete Cosine Transform (IDCT).

3. The method of claim 2 , wherein the downscaling the image file comprises discarding DCT indices of order higher than the scaling factors.

4. The method of claim 3 , wherein the discarding the DCT indices of order higher than the scaling factors comprises discarding rows and columns of index blocks including indices of order higher than the scaling factors.

5. The method of claim 4 , wherein the downscaling the image file results in reduced index blocks, and dequantizing the downscaled image file comprises utilizing a quantization step size block of the same size as the reduced index blocks.

6. The method of claim 5 , wherein the dequantizing the downscaled image file further comprises decreasing the size of the quantization step size block to the same size as the reduced index blocks.

7. The method of claim 6 , wherein the scaling factors are vertical and horizontal scaling factors dependent on a size of a display on which the image is to be displayed.

8. The method of claim 7 , wherein the decreasing the size of the quantization step size block is carried out according to the same scaling factors used in reducing the image size.

9. The method of claim 3 , wherein decoding the encoded image comprises eliminating decoding steps that would produce non-zero DCT indices of index blocks to be discarded.

10. The method of claim 9 wherein the eliminating decoding steps that would produce non-zero DCT indices of index blocks to be discarded comprises failing to execute an Extend procedure which forms part of said Huffman decoding for the non-zero DCT indices which will be discarded.

11. A computer program product, embodied on a tangible computer-readable medium, comprising instructions, which when executed by a processor of a device, cause said device to perform a method of decoding and resizing an encoded image, the method comprising:

decoding the encoded image by applying an entropy decoding operation to generate an image file in a quantized transform domain; and

resizing the image file by:

downscaling the image file by applying scaling factors to generate a downscaled image file in the quantized transform domain;

dequantizing the downscaled image file by multiplying each block of the downscaled image file by a quantization step size block to generate a dequantized image file in a dequantized transform domain; and

performing an inverse transform operation on the dequantized image file to generate an image file in a pixel domain.

12. The computer program product of claim 11 , wherein the entropy decoding operation is Huffman decoding, the quantized transform domain is a Discrete Cosine Transform (DCT) domain, and the inverse transform operation is a Inverse Discrete Cosine Transform (IDCT).

13. The computer program product of claim 12 , wherein the downscaling the image file comprises discarding DCT indices of order higher than the scaling factors.

14. The computer program product of claim 13 , wherein the discarding the DCT indices of order higher than the scaling factors comprises discarding rows and columns of index blocks including indices of order higher than the scaling factors.

15. The computer program product of claim 14 , wherein the downscaling the image file results in reduced index blocks, and dequantizing the downscaled image file comprises utilizing a quantization step size block of the same size as the reduced index blocks.

16. The computer program product of claim 15 , wherein the dequantizing the downscaled image file further comprises decreasing the size of the quantization step size block to the same size as the reduced index blocks.

17. The computer program product of claim 16 , wherein the scaling factors are vertical and horizontal scaling factors dependent on the size of a display on which the image is to be displayed.

18. The computer program product of claim 17 , wherein the decreasing the size of the quantization step size block is carried out according to the same scaling factors used in reducing the image size.

19. The computer program product of claim 13 , wherein decoding the encoded image comprises eliminating decoding steps that would produce non-zero DCT indices of index blocks to be discarded.

20. The computer program product of claim 19 wherein the eliminating decoding steps that would produce non-zero DCT indices of index blocks to be discarded comprises failing to execute an Extend procedure which forms part of said Huffman decoding for the non-zero DCT indices which will be discarded.

21. A device for decoding and resizing an encoded image for display comprising:

a processor configured to execute computer-readable instructions to perform a method comprising:

decoding the encoded image by applying an entropy decoding operation to generate an image file in a quantized transform domain; and

resizing the image file by:

downscaling the image file by applying scaling factors to generate a downscaled image file in the quantized transform domain;

dequantizing the downscaled image file by multiplying each block of the downscaled image file by a quantization step size block to generate a dequantized image file in a dequantized transform domain; and

performing an inverse transform operation on the dequantized image file to generate an image file in a pixel domain; and

a display for displaying the image file in the pixel domain.

Assignments (5)
NUNC PRO TUNC ASSIGNMENT Recorded Jun 19, 2023
From: BLACKBERRY LIMITED
To: MALIKIE INNOVATIONS LIMITED
Reel/Frame 064270/0001 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jun 16, 2023
From: BLACKBERRY LIMITED
To: MALIKIE INNOVATIONS LIMITED
Reel/Frame 064104/0103 →
CHANGE OF NAME Recorded Mar 21, 2014
From: RESEARCH IN MOTION LIMITED
To: BLACKBERRY LIMITED
Reel/Frame 032495/0694 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Oct 21, 2011
From: WU, GUIXING; LAMB, BRIAN; YANG, EN-HUI
To: SLIPSTREAM DATA INC.
Reel/Frame 027100/0287 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Oct 21, 2011
From: SLIPSTREAM DATA INC.
To: RESEARCH IN MOTION LIMITED
Reel/Frame 027100/0313 →