# US 2010/0165117 A1 · Method and apparatus for generating compressed file, and terminal comprising the apparatus

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

- Number: US 2010/0165117 A1
- Document ID: US20100165117A1
- Status: Published application
- Kind: A1
- Application number: 12/637,527
- Filed: 2009-12-14
- Published: 2010-07-01
- Earliest claimed: 2008-12-31
- Assignees: LG Electronics Inc.
- Inventors: Tae Yoon Kim; Sung-Min Kwon
- Web page: https://patentgrep.com/patent/US20100165117A1

## CPC

- G06T 1/00: General purpose image data processing
- H04N 19/117: Filters, e.g. for pre-processing or post-processing (sub-band filter banks H04N19/635)
- H04N 19/136: Incoming video signal characteristics or properties
- H04N 19/172: the region being a picture, frame or field
- H04N 19/186: the unit being a colour or a chrominance component
- H04N 19/48: using compressed domain processing techniques other than decoding, e.g. modification of transform coefficients, variable length coding [VLC] data or run-length data (motion estimation in a transform domain H04N19/547; processing of decoded motion vectors H04N19/513)
- H04N 19/85: using pre-processing or post-processing specially adapted for video compression
- H04N 19/86: involving reduction of coding artifacts, e.g. of blockiness
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

An aspect of a method and apparatus for generating a compressed image file, and a terminal including the apparatus is receiving frame data comprising encoded image data of at least one frame of a raw image, generating first encoded thumbnail image data of the encoded image data, correcting the encoded image data and generating the compressed image file by using the corrected image data and the first encoded thumbnail image data when the encoded image data has an illuminance value lower than a preset reference value, and generating the compressed image file by using the encoded image data and the first encoded thumbnail image data when the encoded image data has an illuminance value greater than the preset reference value.

## Claims

### Claim 1

A method of generating a compressed image file at a mobile terminal, the method comprising:
receiving frame data comprising encoded image data of at least one frame of a raw image;
generating first encoded thumbnail image data of the encoded image data;
correcting the encoded image data and generating the compressed image file by using the corrected image data and the first encoded thumbnail image data when the encoded image data has an illuminance value lower than a preset reference value; and
generating the compressed image file by using the encoded image data and the first encoded thumbnail image data when the encoded image data has an illuminance value greater than the preset reference value.

### Claim 2 (depends on 1)

The method of claim 1, wherein correcting the encoded image data comprises:
decoding the encoded image data on a data-block basis to output at least one decoded data block;
applying an improving algorithm to the at least one decoded data block, wherein the improving algorithm comprises at least a brightness enhancement, a noise reduction, or a blocky effect reduction; and
encoding the at least one decoded block data to which the improving algorithm was applied to generate the corrected image data.

### Claim 3 (depends on 2)

The method of claim 2, wherein the encoded image data is JPEG image data.

### Claim 4 (depends on 2)

The method of claim 2, wherein the at least one decoded data block is decoded using a Huffman decoding method and encoded using a Huffman encoding method.

### Claim 5 (depends on 1)

The method of claim 1, wherein generating the first encoded thumbnail image data comprises:
decoding the encoded image data to generate decoded image data;
scaling the decoded image data to generate scaled image data of a thumbnail-sized image; and
encoding the scaled image data to generate the first encoded thumbnail image data.

### Claim 6 (depends on 5)

The method of claim 5, wherein the scaled image data comprises colors that are converted into a Red-Green-Blue (RGB) format and a display screen displays the thumbnail-sized image of the scaled image data using the RGB formatted colors.

### Claim 7 (depends on 5)

The method of claim 5, wherein correcting the encoded image data and generating the scaled image data are performed substantially in parallel.

### Claim 8 (depends on 1)

The method of claim 1, wherein the received frame data further comprises thumbnail image data of the at least one frame of the raw image.

### Claim 9 (depends on 8)

The method of claim 8, further comprising:
encoding the thumbnail image data of the at least one frame of the raw image to generate the first encoded thumbnail image data.

### Claim 10 (depends on 8)

The method of claim 8, wherein the received frame data further comprises second encoded thumbnail image data of the at least one frame of the raw image.

### Claim 11 (depends on 10)

The method of claim 10, wherein generating the compressed image file comprises using the second encoded thumbnail image data received with the frame data.

### Claim 12 (depends on 1)

The method of claim 1, wherein the frame data is generated by and received from a camera module.

### Claim 13 (depends on 1)

The method of claim 1, further comprising:
receiving the illuminance value of the encoded image data from a camera module.

### Claim 14 (depends on 1)

The method of claim 1, further comprising:
calculating the illuminance value from the encoded image data.

### Claim 15

An apparatus for generating a compressed file, comprising:
a storage unit for storing frame data comprising compression-coded image data of at least one frame of a raw image;
an illuminance determination unit for determining whether the stored compression-coded image data has an illuminance value lower than a preset reference value;
an image correction unit for correcting the stored compression-coded image data when the illuminance determination unit determines that the illuminance value of the stored compression-coded image data is lower than the preset reference value; and
a file generation unit for generating the compressed image file, wherein the file generation unit generates the compressed image file comprising the corrected compression-coded image data and first encoded thumbnail image data when the illuminance value is lower than the preset reference value and generates the compressed image file comprising the compression-coded image data and the first encoded thumbnail image data when the illuminance value is greater than the preset reference value.

### Claim 16 (depends on 15)

The apparatus of claim 15, wherein the image correction unit comprises:
a decoder for decoding the compression-coded image data on a block-data basis to output at least one decoded data block;
an algorithm application unit for applying an improving algorithm to the at least one decoded data block, wherein the improving algorithm comprises at least a brightness enhancement, a noise reduction, or a blocky effect reduction; and
an encoder for encoding the at least one decoded data block to which the improving algorithm was applied.

### Claim 17 (depends on 16)

The apparatus of claim 16, wherein:
the compression-coded image data is JPEG image data,
the decoder is a Huffman decoder, and
the encoder is a Huffman encoder.

### Claim 18 (depends on 15)

The apparatus of claim 15, further comprising:
a decoder for decoding the compression-coded image data to generate decoded image data;
a scaler for scaling the decoded image data to generate scaled image data of a thumbnail-sized image;
an encoder for generating the first encoded thumbnail image data by encoding the scaled image data.

### Claim 19 (depends on 18)

The apparatus of claim 18, further comprising:
a color conversion unit for converting color data of the scaled image data into a Red-Green-Blue (RGB) format, wherein the scaled image data comprises colors that are converted by the color conversion unit into the RGB format; and
a display screen for displaying the thumbnail-sized image of the scaled image data using the RGB formatted colors.

### Claim 20 (depends on 18)

The apparatus of claim 18, wherein the received frame data further comprises thumbnail image data of the at least one frame of the raw image.

### Claim 21 (depends on 20)

The apparatus of claim 20, wherein the encoder encodes the thumbnail image data to generate the first encoded thumbnail image data.

### Claim 22 (depends on 15)

The apparatus of claim 15, wherein the frame data further comprises second encoded thumbnail image data of the at least one frame of the raw image.

### Claim 23 (depends on 22)

The apparatus of claim 22, wherein the file generation unit generates the compressed image file using the second encoded thumbnail image data received with the frame data.

### Claim 24 (depends on 15)

The apparatus of claim 15, wherein the frame data is generated by and received from a camera module.

### Claim 25 (depends on 15)

The method of claim 15, wherein the illuminance determination unit receives the illuminance value of the stored compression-coded image data from a camera module.

### Claim 26 (depends on 15)

The method of claim 15, wherein the illuminance determination unit calculates the illuminance value from the stored compression-coded image data.

### Claim 27 (depends on 15)

The method of claim 15, further comprising:
a thumbnail image generation unit for generating thumbnail image data using the corrected compression-coded image data.

### Claim 28

A terminal, comprising:
a camera module, wherein the camera module comprises:
an image sensor,
an encoder for generating compression-coded image data from a raw image of at least one frame acquired by the image sensor, and
a data output unit for outputting frame data, wherein the frame data comprises the compression-coded image data; and
a host system connected to the camera module through an interface connection, wherein the host system comprises:
a storage unit for storing the frame data received from the camera module,
a thumbnail image generation unit for generating encoded thumbnail image data of the compression-coded image data,
an illuminance determination unit for determining whether the compression-coded image data has an illuminance value lower than a preset reference value,
an image correction unit for performing an image correction process that corrects the compression-coded image data when the illuminance determination unit determines that the illuminance value of the compression-coded image data is lower than the preset reference value, and
a file generation unit for generating a compressed image file, wherein the compressed image file comprises the corrected compression-coded image data and the encoded thumbnail image data when the illuminance value is lower than the preset reference value and the compressed image file comprises the compression-coded image data and the encoded thumbnail image data when the illuminance value is greater than the preset reference value.
