CN103678543A - System and method for decompressing PNG (portable network graphic format) images line by line - Google Patents

System and method for decompressing PNG (portable network graphic format) images line by line Download PDF

Info

Publication number
CN103678543A
CN103678543A CN201310639992.8A CN201310639992A CN103678543A CN 103678543 A CN103678543 A CN 103678543A CN 201310639992 A CN201310639992 A CN 201310639992A CN 103678543 A CN103678543 A CN 103678543A
Authority
CN
China
Prior art keywords
line
picture
decompress
ion
png
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
CN201310639992.8A
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.)
Konka Group Co Ltd
Original Assignee
Konka Group 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 Konka Group Co Ltd filed Critical Konka Group Co Ltd
Priority to CN201310639992.8A priority Critical patent/CN103678543A/en
Publication of CN103678543A publication Critical patent/CN103678543A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4335Housekeeping operations, e.g. prioritizing content for deletion because of storage space restrictions

Abstract

The invention discloses a system and a method for decompressing PNG (portable network graphic format) images line by line. When decompressing space is applied for, only memory space needed for decompressing one line of the images is applied for, so that memory space is saved by a large amount and generally less than 1% of the original. In addition, scaling is calculated in advance, after one line is decompressed, data of the line are determined whether to be used or not according to the calculated scaling, the line is scaled if the data need to be used, and then data of the next line are decompressed, so that the problem of insufficient memory when large-sized images are displayed is solved.

Description

A kind of PNG picture is the system and method for decompress(ion) line by line
Technical field
The present invention relates to Image Compression field, particularly a kind of PNG picture system and method for decompress(ion) line by line.
Background technology
PNG (Portable Network Graphic Format Portable Network Graphics) is a kind of image file storage format, its objective is and attempts to substitute GIF and tiff file form, increases the not available characteristic of some gif file forms simultaneously.
At present, when Set Top Box shows a PNG picture, way comprises the following steps successively conventionally:
First, read dimension of picture information, then, according to dimension of picture application decompress(ion) internal memory, after decompress(ion), according to picture original size and screen size, calculate scaling again, finally according to scaling, zoom to the applicable size of screen and show.
Conventionally the internal memory computing method that decompress(ion) one pictures needs are:
Picture length * picture width * 3=separates the internal memory that repoussage pictures needs.
By formula above, can be found out, the memory size that separating at present repoussage pictures needs need to meet picture length * picture width * 3.For general Set Top Box; while showing large scale PNG picture; often can be subject to the restriction of Set Top Box memory size; cannot show very large-sized picture: when the picture original size that shows when needs is very large; conventionally the internal memory that decompress(ion) needs is very large; Set Top Box cannot be assigned to enough internal memories, so cause Image Display failure.
In view of this, prior art haves much room for improvement and improves.
Summary of the invention
In view of above-mentioned the deficiencies in the prior art part, the object of the present invention is to provide a kind of PNG picture system and method for decompress(ion) line by line, to solve Set Top Box in prior art, solve the problem of the low memory while showing large scale picture.
In order to achieve the above object, the present invention has taked following technical scheme:
PNG picture is a method for decompress(ion) line by line, for Set Top Box, PNG picture is carried out decompress(ion) and is shown, wherein, comprising:
A, read picture original size information;
B, the memory headroom needing to a line of Set Top Box application decompress(ion) picture;
C, according to picture original size and final display size, calculate image zooming ratio, the packed data that reads a line of picture unzips in above-mentioned memory headroom;
D, according to scaling, determine whether this row needs to show, if carry out the convergent-divergent of width according to scaling;
E, read the packed data of the next line of picture, and after putting in above-mentioned memory headroom, repeating step D is until complete whole decompressions of picture.
Described PNG picture is the method for decompress(ion) line by line, wherein, in described step D when determining that this is capable while not needing to show, abandons the data of changing one's profession.
Described PNG picture is the method for decompress(ion) line by line, wherein, and memory headroom size=picture width value * 3 that in described step B, a line of decompress(ion) picture needs.
PNG picture is a system for decompress(ion) line by line, for Set Top Box, PNG picture is carried out decompress(ion) and is shown, wherein, comprising:
Reading unit, for reading picture original size information;
Application unit, the memory headroom needing for a line to Set Top Box application decompress(ion) picture;
Computing unit, for calculating image zooming ratio according to picture original size and final display size, the packed data that reads a line of picture unzips in above-mentioned memory headroom;
Display unit, for determining according to scaling whether this row needs to show, if carry out the convergent-divergent of width according to scaling;
Repetitive, for reading the packed data of the next line of picture, and after putting in above-mentioned memory headroom, is sent in display unit until complete whole decompressions of picture.
Described PNG picture is the system of decompress(ion) line by line, wherein, in described display unit when determining that this is capable while not needing to show, abandons the data of changing one's profession.
Described PNG picture is the system of decompress(ion) line by line, wherein, and memory headroom size=picture width value * 3 that in described application unit, a line of decompress(ion) picture needs.
Compared to prior art, PNG picture provided by the invention is the system and method for decompress(ion) line by line, and the application memory headroom that a line of picture needs of only applying for when decompression space decompressing, has so just saved a large amount of memory headrooms, is generally original below 1%; In addition, calculate in advance scaling, after decompress(ion) completes a line, just according to the scaling calculating, determine whether the row data are used, if need to use again good this row of convergent-divergent, and then decompression next line data, thereby solved the low memory problem while showing large scale picture.
Accompanying drawing explanation
Fig. 1 is the PNG picture provided by the invention process flow diagram of the method for decompress(ion) line by line.
Fig. 2 is the PNG picture provided by the invention structured flowchart of the system of decompress(ion) line by line.
Embodiment
The invention provides a kind of PNG picture system and method for decompress(ion) line by line, for making object of the present invention, technical scheme and effect clearer, clear and definite, referring to accompanying drawing, developing simultaneously, the present invention is described in more detail for embodiment.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
PNG picture provided by the invention is the method for decompress(ion) line by line, for Set Top Box, PNG picture is carried out decompress(ion) and is shown.Refer to Fig. 1, it is the PNG picture provided by the invention process flow diagram of the method for decompress(ion) line by line.As shown in Figure 1, PNG picture of the present invention line by line the method for decompress(ion) comprise:
S1, read picture original size information;
S2, the memory headroom needing to a line of Set Top Box application decompress(ion) picture;
S3, according to picture original size and final display size, calculate image zooming ratio, the packed data that reads a line of picture unzips in above-mentioned memory headroom;
S4, according to scaling, determine whether this row needs to show, if carry out the convergent-divergent of width according to scaling;
S5, read the packed data of the next line of picture, and after putting in above-mentioned memory headroom, repeating step S4 is until complete whole decompressions of picture.
For above-mentioned steps, be described in detail respectively below.
Described step S1 is for reading picture original size information.The contract original size information of the picture that shows of decompress(ion) is asked in i.e. judgement.It is unit that the pixel of picture size be take length and width, also has plenty of that to take centimetre be unit.Pixel and resolution pixel are the most basic units of digital image, and each pixel is exactly a point, and the point (pixel) of different colours gathers together and just becomes a photos.
Described step S2 is the memory headroom to a line needs of Set Top Box application decompress(ion) picture.Unlike the prior art, PNG picture of the present invention is the method for the decompress(ion) memory headroom that a line of picture needs of only applying for decompressing line by line, has so just saved a large amount of memory headrooms, is generally original below 1%.
Described step S3 is for to calculate image zooming ratio according to picture original size and final display size, and the packed data that reads a line of picture unzips in above-mentioned memory headroom.Wherein, according to picture original size and final display size, calculating image zooming ratio is prior art, does not just repeat here.Calculate after image zooming ratio, then the packed data that reads a line of picture unzips to (memory headrooms that a line that above-mentioned memory headroom is application needs) in above-mentioned memory headroom.In the present embodiment, memory headroom size=picture width value * 3 that a line of decompress(ion) picture needs.
Described step S4 is for determining according to scaling whether this row needs to show, if carry out the convergent-divergent of width according to scaling.The present invention calculates scaling in advance, after decompress(ion) completes a line, just according to the scaling calculating, determines whether the row data are used, if need to use again good this row of convergent-divergent, and then decompression next line data.
Described step S5 is the packed data that reads the next line of picture, and after putting in above-mentioned memory headroom, repeating step S4 is until complete whole decompressions of picture.In simple terms, after decompression data line, according to the step in above-mentioned steps S4, read the packed data of the next line of picture, and after putting in above-mentioned memory headroom, according to scaling, determine whether this row needs to show, if carry out the convergent-divergent of width according to scaling.Until complete whole decompressions of picture.
It should be noted that when determining that this is capable while not needing to show, abandons the data of changing one's profession.
The present invention is corresponding a kind of PNG picture system of decompress(ion) line by line that provides also, for Set Top Box, PNG picture is carried out decompress(ion) and is shown, as shown in Figure 2, comprising:
Reading unit 100, for reading picture original size information;
Application unit 200, the memory headroom needing for a line to Set Top Box application decompress(ion) picture;
Computing unit 300, for calculating image zooming ratio according to picture original size and final display size, the packed data that reads a line of picture unzips in above-mentioned memory headroom;
Display unit 400, for determining according to scaling whether this row needs to show, if carry out the convergent-divergent of width according to scaling;
Repetitive 500, for reading the packed data of the next line of picture, and after putting in above-mentioned memory headroom, is sent in display unit until complete whole decompressions of picture.
Preferably, described PNG picture is line by line in the system of decompress(ion), in described display unit when determining that this is capable while not needing to show, abandons the data of changing one's profession.
Preferably, described PNG picture is line by line in the system of decompress(ion), memory headroom size=picture width value * 3 that in described application unit, a line of decompress(ion) picture needs.
Above-mentioned PNG picture is the modules in the system of decompress(ion) line by line, all in said method, introduces, and seldom describes here.
In sum, PNG picture provided by the invention is the system and method for decompress(ion) line by line, and its application memory headroom that a line of picture needs of only applying for when decompression space decompressing, has so just saved a large amount of memory headrooms, is generally original below 1%; In addition, calculate in advance scaling, after decompress(ion) completes a line, just according to the scaling calculating, determine whether the row data are used, if need to use again good this row of convergent-divergent, and then decompression next line data, thereby solved the low memory problem while showing large scale picture.
Be understandable that, for those of ordinary skills, can be equal to replacement or change according to technical scheme of the present invention and inventive concept thereof, and all these changes or replacement all should belong to the protection domain of the appended claim of the present invention.

Claims (6)

1. a PNG picture method for decompress(ion) line by line, carries out decompress(ion) and shows PNG picture for Set Top Box, it is characterized in that, comprising:
A, read picture original size information;
B, the memory headroom needing to a line of Set Top Box application decompress(ion) picture;
C, according to picture original size and final display size, calculate image zooming ratio, the packed data that reads a line of picture unzips in above-mentioned memory headroom;
D, according to scaling, determine whether this row needs to show, if carry out the convergent-divergent of width according to scaling;
E, read the packed data of the next line of picture, and after putting in above-mentioned memory headroom, repeating step D is until complete whole decompressions of picture.
2. the PNG picture according to claim 1 method of decompress(ion) line by line, is characterized in that, in described step D when determining that this is capable while not needing to show, abandons the data of changing one's profession.
3. the PNG picture according to claim 1 method of decompress(ion) line by line, is characterized in that, memory headroom size=picture width value * 3 that in described step B, a line of decompress(ion) picture needs.
4. a PNG picture system for decompress(ion) line by line, carries out decompress(ion) and shows PNG picture for Set Top Box, it is characterized in that, comprising:
Reading unit, for reading picture original size information;
Application unit, the memory headroom needing for a line to Set Top Box application decompress(ion) picture;
Computing unit, for calculating image zooming ratio according to picture original size and final display size, the packed data that reads a line of picture unzips in above-mentioned memory headroom;
Display unit, for determining according to scaling whether this row needs to show, if carry out the convergent-divergent of width according to scaling;
Repetitive, for reading the packed data of the next line of picture, and after putting in above-mentioned memory headroom, is sent in display unit until complete whole decompressions of picture.
5. the PNG picture according to claim 4 system of decompress(ion) line by line, is characterized in that, in described display unit when determining that this is capable while not needing to show, abandons the data of changing one's profession.
6. the PNG picture according to claim 4 system of decompress(ion) line by line, is characterized in that, memory headroom size=picture width value * 3 that in described application unit, a line of decompress(ion) picture needs.
CN201310639992.8A 2013-12-04 2013-12-04 System and method for decompressing PNG (portable network graphic format) images line by line Pending CN103678543A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310639992.8A CN103678543A (en) 2013-12-04 2013-12-04 System and method for decompressing PNG (portable network graphic format) images line by line

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310639992.8A CN103678543A (en) 2013-12-04 2013-12-04 System and method for decompressing PNG (portable network graphic format) images line by line

Publications (1)

Publication Number Publication Date
CN103678543A true CN103678543A (en) 2014-03-26

Family

ID=50316088

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310639992.8A Pending CN103678543A (en) 2013-12-04 2013-12-04 System and method for decompressing PNG (portable network graphic format) images line by line

Country Status (1)

Country Link
CN (1) CN103678543A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105302415A (en) * 2015-10-19 2016-02-03 四川长虹电器股份有限公司 Image thumbnail generation method
CN105808567A (en) * 2014-12-30 2016-07-27 航天信息股份有限公司 Method and device for reducing sizes of PNG pictures
CN106327453A (en) * 2015-06-30 2017-01-11 北京金山安全软件有限公司 Method for splicing picture resources and picture resource splicing device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102111661A (en) * 2009-12-29 2011-06-29 康佳集团股份有限公司 Method for displaying pictures by set top box (STB) in line-by-line decompression mode
CN103139632A (en) * 2011-12-05 2013-06-05 康佳集团股份有限公司 Image processing method and image processing device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102111661A (en) * 2009-12-29 2011-06-29 康佳集团股份有限公司 Method for displaying pictures by set top box (STB) in line-by-line decompression mode
CN103139632A (en) * 2011-12-05 2013-06-05 康佳集团股份有限公司 Image processing method and image processing device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105808567A (en) * 2014-12-30 2016-07-27 航天信息股份有限公司 Method and device for reducing sizes of PNG pictures
CN105808567B (en) * 2014-12-30 2021-02-05 航天信息股份有限公司 Method and device for reducing size of PNG (portable network graphics) picture
CN106327453A (en) * 2015-06-30 2017-01-11 北京金山安全软件有限公司 Method for splicing picture resources and picture resource splicing device
CN106327453B (en) * 2015-06-30 2020-02-07 珠海豹趣科技有限公司 Method for splicing picture resources and picture resource splicing device
CN105302415A (en) * 2015-10-19 2016-02-03 四川长虹电器股份有限公司 Image thumbnail generation method

Similar Documents

Publication Publication Date Title
CN110136066B (en) Video-oriented super-resolution method, device, equipment and storage medium
CN109992226A (en) Image display method and device and spliced display screen
US10440360B2 (en) Video processing system
CN103020888B (en) Image translation upgrades display packing and system
JP4971442B2 (en) Image processing apparatus and method for pixel data conversion
WO2020098721A1 (en) Image presentation method and apparatus for virtual reality device, device and computer storage medium
JP4263190B2 (en) Video composition circuit
CN101778226A (en) High-definition image sawtooth-prevention method, device and digital television receiving terminal
CN103067671A (en) Method and device of image display
CN103678543A (en) System and method for decompressing PNG (portable network graphic format) images line by line
TW525391B (en) Method and apparatus for performing motion compensation in a texture mapping engine
WO2016004667A1 (en) Super-resolution reconstruction method for enhancing smoothness and definition of video image
CN112650460A (en) Media display method and media display device
CN102572207A (en) Color space transformation method suitable for joint photographic experts group (JPEG) image
CN109996085B (en) Model training method, image processing method and device and electronic equipment
CN101370142B (en) Image decoding and zooming method and device, image display system
CN107977923B (en) Image processing method, image processing device, electronic equipment and computer readable storage medium
CN105427235A (en) Image browsing method and system
WO2011121563A1 (en) Detecting saliency in an image
CN115049572A (en) Image processing method, image processing device, electronic equipment and computer readable storage medium
CN102263924B (en) Image processing method based on bicubic interpolation and image display method
CN114155152A (en) Real-time super-resolution reconstruction method and system based on historical feature fusion
CN103139632A (en) Image processing method and image processing device
CN113947528A (en) Real-time super-resolution reconstruction method and system based on multi-frame fusion
WO2021035643A1 (en) Monitoring image generation method, apparatus, device, system, and image processing device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20140326