CN101287057A - Buffer saving image decompressing storing method and module thereof - Google Patents

Buffer saving image decompressing storing method and module thereof Download PDF

Info

Publication number
CN101287057A
CN101287057A CNA2008100182362A CN200810018236A CN101287057A CN 101287057 A CN101287057 A CN 101287057A CN A2008100182362 A CNA2008100182362 A CN A2008100182362A CN 200810018236 A CN200810018236 A CN 200810018236A CN 101287057 A CN101287057 A CN 101287057A
Authority
CN
China
Prior art keywords
picture
signal
pixel
resolution
segment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CNA2008100182362A
Other languages
Chinese (zh)
Inventor
杨凰琳
陈淮琰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inventec Besta Xian Co Ltd
Original Assignee
Inventec Besta Xian Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inventec Besta Xian Co Ltd filed Critical Inventec Besta Xian Co Ltd
Priority to CNA2008100182362A priority Critical patent/CN101287057A/en
Publication of CN101287057A publication Critical patent/CN101287057A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Color Image Communication Systems (AREA)

Abstract

The invention discloses a picture decompression and storage method and a module thereof for saving scratch-pad memory, wherein, the picture decompression and storage method comprises the following steps: acquiring a picture block which has 'm' multiplying 'm' pixel dots and native resolution, calculating 'n' multiplying 'n' pixel dots to be reserved among the 'm' multiplying 'm' pixel dots according to compression resolution; quantifying the location of the 'n' multiplying 'n' pixel dots so as to acquire a group of color signals; converting the color signals into the color signals of the original picture and storing the color signals. As display resolution of the screen is smaller than the resolution of the original picture in certain condensed proportion, the whole JPEG picture block does not need to be conserved. The method of the invention and the picture storage module thereof can achieve the technical effect of saving the memory.

Description

A kind of picture decompression storage method and module thereof of saving scratch-pad memory
Technical field
The present invention relates to a kind of picture storing technology, particularly a kind of picture decompression storage method and module thereof of saving scratch-pad memory, this method and module thereof can be used for carrying out JPEG (Joint PhotographicExperts Group; Joint image expert group) decompression of picture stores.
Background technology
Past is for picture, image, sound ... etc. the transmission and the playback system of information, because technical restriction only can be handled in a similar manner.In recent years, because the high development of digital technology, make that information processing is also developed and stride forward towards the digitlization direction.
Can play browsing pictures at any time easily in various electronic equipments is that everybody is desired; Yet, the image literary composition file of the various forms that from world-wide web or other image file database, obtain, wherein the size of picture that is comprised such as background picture, scenery picture and caricature picture is often bigger.
Therefore, when on electronic equipment, particularly on portable electric device, when Showing Picture, the screen resolution on its portable electric device (as, 320 * 240) common resolution much smaller than picture (as, 800 * 600,2048 * 1536 ... Deng), usually need decompress whole pictures, and then downgrade resolution if want to show this picture on screen this moment.But the internal memory or the internal memory more than three times (picture information also comprises tricolor signal (R, G, B)) that need so at least to be equal to the photo resolution size are kept in this picture.
Summary of the invention
Defective or deficiency at above-mentioned prior art existence, the objective of the invention is to, a kind of picture decompression storage method and module thereof of saving scratch-pad memory is provided, and this method and module thereof can decompress whole pictures on screen with less internal memory, can save the setting of scratch-pad memory.
To achieve these goals, the present invention adopts following technical solution:
A kind of picture decompression storage method of saving scratch-pad memory is characterized in that this method comprises the following steps:
Get the segment in the JPEG picture, this segment contains m * m the pixel and the original resolution of JPEG picture;
Calculate n * n the pixel that desire keeps in m * m the pixel according to compression resolution;
Quantize n * n pixel position, to obtain one group of chrominance signal; And
Chrominance signal is converted to the chrominance signal and the storage of former picture.
Wherein, the chrominance signal before the conversion can be one group of luminance signal and color difference signal; The chrominance signal (being tricolor signal) that then luminance signal and color difference signal is transferred to former picture; And then the tricolor signal after the storage conversion.
The picture decompression storage module of the saving scratch-pad memory of method for preparing comprises:
One segment acquisition unit be used for capturing at least one segment of JPEG picture, and each segment contains m * m pixel and original resolution;
One arithmetic element is used for calculating each segment m * m n * n pixel that the pixel desire keeps under compression resolution, wherein, and m>n;
One quantifying unit is used to quantize n * n pixel position, to produce at least one group of luminance signal and a plurality of color difference signal;
One color space conversion unit is used for luminance signal and a plurality of color difference signal are converted to the chrominance signal of former picture, and stores the chrominance signal that is converted to.
For example: transfer luminance signal and color difference signal (YUV or YCbCr) to tricolor signal (R, G, B).The color space converting unit is decided the chrominance signal that internal memory then is converted in order to storage according to the actual displayed interface.
The picture decompression storage method of saving scratch-pad memory of the present invention and picture storage module thereof, because screen display resolution is under certain reduce in scale, less than former photo resolution, therefore need not store the segment of whole JPEG picture, can reach the technique effect of saving internal memory.
Description of drawings
Figure 1A is the picture storage method flow chart of the saving scratch-pad memory of a specific embodiment of the present invention;
Figure 1B is the picture storage method flow chart of the saving scratch-pad memory of an alternative embodiment of the invention;
Fig. 2 is the flow chart of the picture storage method of the saving scratch-pad memory of another embodiment of the present invention;
Fig. 3 is the simplified block diagram of picture storage module of the saving scratch-pad memory of the embodiment of the invention;
Fig. 4 is the simplified block diagram according to the picture storage module of the saving scratch-pad memory of second embodiment of the invention.
The embodiment that provides below in conjunction with accompanying drawing and inventor is described in further detail the present invention.
Embodiment
Main concept of the present invention at first is described: generally speaking, at JPEG (Joint PhotographicExperts Group; When joint image expert group) picture decompresses, be serve as each compression and the base unit that decompresses with one 8 * 8 segment (Block), the big segment (MacroBlock of a width of cloth in addition in addition; MB), it has comprised complete trichromatic basic picture segment.Wherein, the pixel of picture can be divided into three compositions, for example: brightness (Y) signal, blue color difference (Cb) signal and red color (Cr) signal, primary red signal (R), green primary signal (G) and blue primaries signal (B), or ... Deng.Usually JPEG is Y, Cb, three kinds of signals of Cr after decompression, in the time will being presented on the screen, changes into R, G, B tricolor signal more then.A common MB has comprised four Y-signal segments, a Cb signal segment and a Cr signal segment.
Method of the present invention mainly is the first required pixel of acquisition screen display, stores after then it being changed into the RGB tricolor signal.Therefore, be basic processing unit with MB, in each MB, only capture the required pixel of screen display, and then store after it is changed into R, G, B signal.
With reference to Figure 1A, this figure is the flow chart of picture storage method of the saving scratch-pad memory of a specific embodiment of the present invention; This method comprises: get the segment (step 110) in the JPEG picture, this segment contains m * m the pixel and the original resolution of JPEG picture, calculates n * n the pixel (step 120) of desire reservation in m * m the pixel according to compression resolution; Quantize n * n pixel position, to obtain one group of chrominance signal (step 130); Chrominance signal is converted to the chrominance signal (step 140) of former picture; Store and transform the chrominance signal (step 150) that obtains.
Wherein, the chrominance signal before the conversion can be luminance signal and color difference signal, that is to say, quantizing n * n pixel position, obtains luminance signal and color difference signal (step 132); The chrominance signal (being tricolor signal) (step 142) that then again luminance signal and color difference signal is transferred to former picture; Then store change primary signal (step 152), shown in Figure 1B.
Wherein, m is greater than n, and the compression resolution of original resolution after greater than reduce in scale.Moreover, before transforming with conversion after chrominance signal can decide according to the actual displayed interface.
For instance, with reference to Fig. 2, suppose that with a MB be basic processing unit, at first obtain a MB (step 210), the size of this MB is 16 * 16 pixels, and which pixel that then calculates in these pixels will be displayed on (step 220) on the screen; In other words, the original resolution of supposing picture is 1280 * 960, and screen resolution is 320 * 240 (being above-mentioned compression resolution), 16 * 16 pixels among each MB then, to there be 4 * 4 pixels will be displayed on the screen, and then quantize to calculate 4 * 4 pixel positions to obtain Y-signal, Cb signal and Cr signal (step 230), wherein then each needs to store 2 * 2 pixels (supposing that the color space ratio is 4: 2: 0 or 4: 1: 1) for Cb signal and Cr signal, be converted into R thereupon, G, B tricolor signal (step 240) stores (step 250) then.Like this, each MB just only needs to store the data of these 16 pixels, therefore, can reach the effect of saving internal memory.
With reference to Fig. 3, Fig. 3 is another embodiment that provides according to method of the present invention, and the picture decompression storage module of this saving scratch-pad memory comprises segment acquisition unit 310, arithmetic element 320, quantifying unit 330, color space converting unit 340 and internal memory 350.
Can obtain at least one segment in the former picture of JPEG by segment acquisition unit 310, and each picture segment have m * m pixel and original resolution.And then by arithmetic element 320 calculate each picture segment under a compression resolution in m * m pixel with n * n pixel of desire reservation.Then, quantifying unit 330 quantizes n * n pixel position, to produce one group of chrominance signal, for example: luminance signal and color difference signal.By color space converting unit 340 conversioning colour signals, for example: transfer luminance signal and color difference signal to tricolor signal.Subsequently, the chrominance signal (as primary signal) after the conversion is stored in the internal memory 350.Wherein, m is greater than n, and original resolution is greater than compression resolution.Wherein the color space converting unit is decided according to the actual displayed interface, wherein is useful on the internal memory that stores conversion back chrominance signal.
In addition, suppose that display interface is a display, can detect the resolution of display 400 to obtain compressing resolution, as shown in Figure 4 by this detecting unit 360.In other words, when the present invention was applied in the electronic equipment, the employed exploration on display resolution ratio of detecting unit detected electrons equipment whereby was to obtain compressing resolution (being exploration on display resolution ratio).
Like this, only need to use less internal memory, can decompress whole pictures on screen.
In addition, during JPEG picture after being used to store decompression, MB can be carried out the processing of whole JPEG picture as basic processing unit, for example when making the preview of a large amount of pictures, can separate into small icon in advance and store.
Though the present invention has made detailed description with above-mentioned preferred embodiment to the present invention, be not to limit the present invention with the foregoing description.Those skilled in the art should recognize under the situation that does not break away from given technical characterictic of technical solution of the present invention and scope, and the increase that technical characterictic is done, with the replacement of some same contents of this area all should belong to protection scope of the present invention.

Claims (4)

1. a picture decompression storage method of saving scratch-pad memory is characterized in that this method comprises the following steps:
Get the segment in the JPEG picture, this segment contains m * m the pixel and the original resolution of JPEG picture;
Calculate n * n the pixel that desire keeps in m * m the pixel according to compression resolution;
Quantize n * n pixel position, to obtain one group of chrominance signal; And
Chrominance signal is converted to the chrominance signal and the storage of former picture.
2. the method for claim 1 is characterized in that, described chrominance signal is luminance signal and color difference signal before conversion.
3. realize the picture decompression storage module of the saving scratch-pad memory of the described method preparation of claim 1, it is characterized in that, comprising:
One segment acquisition unit be used for capturing at least one segment of JPEG picture, and each segment contains m * m pixel and original resolution;
One arithmetic element is used for calculating each segment m * m n * n pixel that the pixel desire keeps under compression resolution, wherein, and m>n;
One quantifying unit is used to quantize n * n pixel position, to produce at least one group of luminance signal and a plurality of color difference signal;
One color space conversion unit is used for luminance signal and a plurality of color difference signal are converted to the chrominance signal of former picture, and stores the chrominance signal that is converted to.
4. the picture decompression storage module of saving scratch-pad memory as claimed in claim 3 is characterized in that described color space converting unit is decided according to the actual displayed interface, wherein is useful on the internal memory that stores conversion back chrominance signal.
CNA2008100182362A 2008-05-16 2008-05-16 Buffer saving image decompressing storing method and module thereof Pending CN101287057A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2008100182362A CN101287057A (en) 2008-05-16 2008-05-16 Buffer saving image decompressing storing method and module thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2008100182362A CN101287057A (en) 2008-05-16 2008-05-16 Buffer saving image decompressing storing method and module thereof

Publications (1)

Publication Number Publication Date
CN101287057A true CN101287057A (en) 2008-10-15

Family

ID=40059011

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2008100182362A Pending CN101287057A (en) 2008-05-16 2008-05-16 Buffer saving image decompressing storing method and module thereof

Country Status (1)

Country Link
CN (1) CN101287057A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102521278A (en) * 2011-11-24 2012-06-27 广州广电运通金融电子股份有限公司 Rapid storage method for image data, valuable file identification method and identification device thereof
CN103903285B (en) * 2012-12-25 2017-05-10 三星电子(中国)研发中心 Thumbnail extraction method of PNG image and BMP image
CN107071284A (en) * 2017-04-28 2017-08-18 深圳市金立通信设备有限公司 A kind of photographic method and terminal

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102521278A (en) * 2011-11-24 2012-06-27 广州广电运通金融电子股份有限公司 Rapid storage method for image data, valuable file identification method and identification device thereof
CN102521278B (en) * 2011-11-24 2014-03-05 广州广电运通金融电子股份有限公司 Rapid storage method for image data, valuable file identification method and identification device thereof
US9224185B2 (en) 2011-11-24 2015-12-29 Grg Banking Equipment Co., Ltd. Fast storage method for image data, valuable-file identifying method and identifying device thereof
CN103903285B (en) * 2012-12-25 2017-05-10 三星电子(中国)研发中心 Thumbnail extraction method of PNG image and BMP image
CN107071284A (en) * 2017-04-28 2017-08-18 深圳市金立通信设备有限公司 A kind of photographic method and terminal

Similar Documents

Publication Publication Date Title
US10089710B2 (en) Image capture accelerator
US6426771B1 (en) Image processing apparatus and method and computer readable memory storing the method
US7013041B2 (en) Image data transmitting apparatus and method of controlling same
US8036469B2 (en) Imaging apparatus including a separable monitor, and method for controlling the imaging apparatus
EP1581008A2 (en) parallel processing of an image and its corresponding thumbnail
WO2020063505A1 (en) Image processing method, system, and computer readable storage medium
KR20050042699A (en) Method and apparatus for enhancing local luminance of image, and computer-readable recording media for storing computer program
US20060215915A1 (en) Device and method for generating thumbnail JPEG image and medium for storing thumbnail JPEG image
CN109167916A (en) intelligent terminal, image processing method and computer readable storage medium
KR100742851B1 (en) Digital picture signal processing apparatus, method thereof, digital picture recording apparatus, method thereof, transmitting method thereof, and data record medium thereof
US20100296731A1 (en) Information processing device and method and program
US20090066721A1 (en) Method and system for providing accelerated video processing in a communication device
US8055069B2 (en) Image data sampling method
JP2005210495A (en) Image processing apparatus, method, and program
CN101287057A (en) Buffer saving image decompressing storing method and module thereof
US8026952B2 (en) Image capturing device with reduced-sized sub-image collection and an image processing method thereof
CN110557532B (en) Imaging apparatus, client apparatus, and control method
WO2004056084A1 (en) Image data compression device and decompression device and image data compression program and decompression program
CN101729884B (en) Image acquiring device and image preprocessing method
CN101753780A (en) Compression method of color image based on primary color extraction, segmentation and compression
KR100834357B1 (en) Device and method for compressing image data
CN112215775B (en) BMP picture restoration method and device
Murugesh et al. Camera Raw Image: A Study, Processing and Quality Analysis
KR100604474B1 (en) Apparatus and method thereof for transmitting image being scaned in progressive with interlace scanning
US20050134608A1 (en) Method, and related system, for overlaying a graphics object on a digital picture

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Open date: 20081015