CN103139632A - Image processing method and image processing device - Google Patents

Image processing method and image processing device Download PDF

Info

Publication number
CN103139632A
CN103139632A CN2011103974350A CN201110397435A CN103139632A CN 103139632 A CN103139632 A CN 103139632A CN 2011103974350 A CN2011103974350 A CN 2011103974350A CN 201110397435 A CN201110397435 A CN 201110397435A CN 103139632 A CN103139632 A CN 103139632A
Authority
CN
China
Prior art keywords
decompress
ion
picture
line
data
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
CN2011103974350A
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 CN2011103974350A priority Critical patent/CN103139632A/en
Publication of CN103139632A publication Critical patent/CN103139632A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses an image processing method. The image processing method includes reading the dimension information of an image, applying for a memory space needed for decompressing a line of data of the image, decompressing the image line by line, and displaying the image after decompression. Correspondingly, the invention further discloses an image processing device. By means of the image processing method and the image processing device, the memory space needed by a set top box for processing the image is greatly reduced, the memory space needed for decompressing only one line of the data of the image is needed, and therefore the memory space of the set top box in the image processing process is saved, and the set top box is enabled to successively process large-size images.

Description

A kind of method and device thereof of processing picture
Technical field
The present invention relates to image processing field, be specifically related to a kind of method and device thereof of processing picture.
Background technology
Nowadays, along with the development of digital technology, be full of various picture in people's life, it can show a lot of things that occur in life, allows life become finer, and is same, the picture of set-top box processes is also more and more, and the set-top box processes picture approach is as follows at present:
Read the dimension information of picture, according to the dimension information application decompress(ion) memory headroom of picture, decompress(ion) picture in the memory headroom of application, and the picture after the demonstration decompress(ion).
The inventor finds in the prior art, the needed memory headroom of decompress(ion) picture is the width that the length of 3 times of pictures is multiplied by picture, the unit of memory headroom is byte, the width that is multiplied by picture as the length of picture is 480*480, the needed memory headroom of this picture of decompress(ion) is the 3*480*480 byte so, need to take very large memory headroom in the set-top box processes picture process like this, even during set-top box processes large scale picture, can distribute not enough the processing unsuccessfully because of memory headroom.
Summary of the invention
The embodiment of the present invention provides a kind of method and device thereof of processing picture, can make set-top box save the memory headroom of set-top box in processing the picture process, and can make set-top box successfully process large-sized picture.
In order to solve the problems of the technologies described above, a kind of method of processing picture that the embodiment of the present invention provides comprises:
Read the dimension information of picture;
The needed memory headroom of data line according to the described picture of described dimension information application decompress(ion);
The described picture of decompress(ion) line by line in described memory headroom;
Picture after the demonstration decompress(ion).
Correspondingly, the embodiment of the present invention also provides a kind of device of processing picture, comprising:
Read size module, be used for reading the dimension information of picture;
The application module is used for the needed memory headroom of data line according to the described picture of described dimension information application decompress(ion);
Decompression module is used in the memory headroom of described application module application the described picture of decompress(ion) line by line;
Display module is for the picture after demonstration decompression module decompress(ion).
In the embodiment of the present invention, read the dimension information of picture, the needed memory headroom of data line according to the described picture of described dimension information application decompress(ion), the described picture of decompress(ion) line by line in described memory headroom, picture after the demonstration decompress(ion), processing so the needed memory headroom of picture dwindles greatly, the needed memory headroom of data line that only needs the decompress(ion) picture, make set-top box save the memory headroom of set-top box in processing the picture process, and can make set-top box successfully process large-sized picture.
Description of drawings
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, the below will do to introduce simply to the accompanying drawing of required use in embodiment or description of the Prior Art, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is a kind of schematic flow sheet of processing the method for picture that the embodiment of the present invention provides;
The schematic flow sheet of another embodiment of a kind of method of processing picture that Fig. 2 is that the embodiment of the present invention provides;
Fig. 3 is a kind of structural representation of processing the device of picture that the embodiment of the present invention provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Based on the embodiment in the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
Fig. 1 is a kind of schematic flow sheet of processing the method for picture that the embodiment of the present invention provides, and as shown in Figure 1, comprising:
S101, read the dimension information of picture.
Read the dimension information that needs picture to be processed, namely read length and the width of this picture.
Need to prove, here the length of said picture and width are the parameters of weighing the pixel size of picture, are 1024 as the length of picture, and the width of picture is 1024, the pixel of this picture is 1024*1024 so, and the pixel of picture length and the larger picture of width value is also just larger.
S102, according to the needed memory headroom of data line of the described picture of described dimension information application decompress(ion).
Need to prove, the needed memory headroom computational methods of the data line of picture, the same with prior art, the memory headroom of decompress(ion) picture is the width value that the length of 3 times of pictures multiply by picture, the unit of memory headroom is byte, and the needed memory headroom of the data line of decompress(ion) picture is the width value of 3 times of pictures so, and the length of the data line of picture is 1, length and width as picture are all 1024, and the needed memory headroom of the data line of this picture of decompress(ion) is the 3*1*1024 byte so.
S103, in the memory headroom of application the described picture of decompress(ion) line by line.
The data line of each decompress(ion) picture is until complete this picture of decompress(ion).
Picture after S104, demonstration decompress(ion).
In the embodiment of the present invention, read the dimension information of picture, the needed memory headroom of data line according to the described picture of described dimension information application decompress(ion), the described picture of decompress(ion) line by line again, picture after the demonstration decompress(ion) is processed so the needed memory headroom of picture and is greatly dwindled, and only needs the needed memory headroom of data line of decompress(ion) picture, make set-top box save the memory headroom of set-top box in processing the picture process, and can make set-top box successfully process large-sized picture.
Fig. 2 is the schematic flow sheet of another embodiment of the method for a kind of picture processing of providing of the embodiment of the present invention, as shown in Figure 2, comprising:
S201, read the dimension information of picture.
S202, according to the needed memory headroom of data line of the described picture of described dimension information application decompress(ion).
S203, judge described picture size whether greater than the display size of screen, be that execution in step S204 calculates scaling according to the size of described picture and the display size of screen if judgment result is that; If the determination result is NO, the execution in step S205 step of the described picture of decompress(ion) line by line.
Need to prove, here the display size of said screen refers to that this screen can show the size of maximum picture, the size that can show maximum picture as this screen is 1024*1024, this screen show dimensions as 1024*1024, the display size of screen also can be done the display pixel that is called screen certainly.
S204, calculate scaling according to the display size of the size of described picture and screen.
During greater than the display size of screen, also can be described as the pixel of picture greater than the display pixel of screen when the size of picture, just need to calculate the compression factor of this picture of compression, so that when this picture of decompress(ion), compress this picture according to compression ratio.
S205, in the memory headroom of application the described picture of decompress(ion) line by line.
Need to prove, have two kinds of situations here, a kind of situation when the size of the picture display size less than screen, does not at this moment just need to compress this picture, and the method for that this picture of decompress(ion) is as follows:
Read the data line of picture.
The data line that reads of decompress(ion) in the memory headroom of application, and return and carry out the next line data that read the data line after decompress(ion), until the complete described picture of decompress(ion).
Be understandable that, after the complete data line of decompress(ion), then read the next line data of those row data of decompress(ion), and the data that read of decompress(ion), so circulation is until complete this picture of decompress(ion).
Another kind of situation when the size of the picture display size greater than screen, does not at this moment just need to compress this picture, and the method for that this picture of decompress(ion) is as follows.
Read the data line of described picture.
The data line that decompress(ion) reads in the memory headroom of application.
Judge according to described scaling whether needs show for data line after decompress(ion), if judgment result is that be, according to the data line after described scaling convergent-divergent decompress(ion), and return and carry out the next line data that read the data line after decompress(ion), until the complete described picture of decompress(ion); If the determination result is NO, abandon the data line after decompress(ion), and return and carry out the next line data that read the data line after decompress(ion), until the complete described picture of decompress(ion).
Be understandable that, after the complete data line of decompress(ion), then read the next line data of those row data of decompress(ion), and the data that read of decompress(ion) and compression, so circulation is until complete this picture of decompress(ion) also can be described as and compressed this picture.
Be understandable that, said judge that according to described scaling whether needs show for data line after decompress(ion), can be understood as follows here:
When the size of picture greater than the display size of screen the time, a part of data that screen can only Show Picture,
Size as picture is 1000*1000, and the size of screen display is 100*100, must just can show this picture compression on screen to 100*100 so, can only select like this 100 row wherein to show from 1000 row, remaining 900 row is exactly not need to show.The method of choosing can be the 1st row of choosing inside every 10 row 10 row, the data of remaining row just can abandon, and can guarantee that like this data of the row selected are equally distributed, and the interval equates, again selected capable data are compressed, so just simplified the process of compressed picture.
Picture after S206, demonstration decompress(ion).
In the embodiment of the present invention, increase the method to large-sized picture compression in a upper embodiment, can simplify the process of compressed picture, simultaneously, make set-top box save the memory headroom of set-top box in processing the picture process, and can make set-top box successfully process large-sized picture.
Fig. 3 is a kind of structural representation of processing the device of picture that the embodiment of the present invention provides, and as shown in Figure 3, comprising: read size module 11, application module 12, decompression module 13 and display module 14, wherein:
Read size module 11, be used for reading the dimension information of picture.
Read the dimension information that needs picture to be processed, namely read length and the width of this picture.
Need to prove, here the length of said picture and width are the parameters of weighing the pixel size of picture, are 1024 as the length of picture, and the width of picture is 1024, the pixel of this picture is 1024*1024 so, and the pixel of picture length and the larger picture of width value is also just larger.
Application module 12 is used for the needed memory headroom of data line according to the described picture of described dimension information application decompress(ion).
Need to prove, the needed memory headroom computational methods of the data line of picture, the same with prior art, the memory headroom of decompress(ion) picture is the width value that the length of 3 times of pictures multiply by picture, the unit of memory headroom is byte, and the needed memory headroom of the data line of decompress(ion) picture is the width value of 3 times of pictures so, and the length of the data line of picture is 1, length and width as picture are all 1024, and the needed memory headroom of the data line of this picture of decompress(ion) is the 3*1*1024 byte so.
Decompression module 13 is used in the memory headroom of application module 12 applications the described picture of decompress(ion) line by line.
The data line of each decompress(ion) picture is until complete this picture of decompress(ion).
Display module 14 is for the picture after demonstration decompression module 13 decompress(ion)s.
Need to prove, this device can also comprise: judgement size module 15, wherein:
Judgement size module 15, whether the size that is used for judging described picture is greater than the display size of screen, if judgment result is that be, the display size according to the size of described picture and screen calculates scaling, and carries out described decompression module 13 described picture of decompress(ion) line by line in the memory headroom of application module 12 applications; If the determination result is NO, and carry out described decompression module 13 described picture of decompress(ion) line by line in the memory headroom of application module 12 application.
Need to prove, if the size of picture greater than the display size of screen, decompression module 13 can comprise: the first reading out data unit, the first decompress(ion) unit and judging unit, wherein:
The first reading out data unit is used for reading the data line of described picture.
The first decompress(ion) unit is used for the data line that the described reading out data of decompress(ion) unit reads in the memory headroom of application module 12 applications.
Judging unit, be used for according to judge that scaling that size module 15 is calculated judges the whether needs demonstration of data line after decompress(ion), if judgment result is that be, according to the data line after described scaling convergent-divergent decompress(ion), and control the next line data that described reading out data unit reads the data line after decompress(ion), until the complete described picture of decompress(ion); If the determination result is NO, abandon the data line after decompress(ion), and control the next line data that described reading out data unit reads the data line after decompress(ion), until the complete described picture of decompress(ion).
Be understandable that, after the complete data line of decompress(ion), then read the next line data of those row data of decompress(ion), and the data that read of decompress(ion) and compression, so circulation is until complete this picture of decompress(ion) also can be described as and compressed this picture.
Be understandable that, said according to judging that scaling that size module 14 is calculated judge the whether needs demonstration of data line after decompress(ion), can be understood as follows here:
When the size of picture greater than the display size of screen the time, a part of data that screen can only Show Picture,
Size as picture is 1000*1000, and the size of screen display is 100*100, must just can show this picture compression on screen to 100*100 so, can only select like this 100 row wherein to show from 1000 row, remaining 900 row is exactly not need to show.The method of choosing can be that the data of remaining row just can abandon, and only selected capable data are compressed, and have so just simplified the process of compressed picture from 10 optional 1 row in row the inside.
If the size of picture is less than the display size of screen, decompression module 13 can comprise: the second reading out data unit and the second decompress(ion) unit, wherein:
The second reading out data unit reads the data line of described picture.
The second decompress(ion) unit is used for the data line that decompress(ion) reads in the memory headroom of application module 12 applications, and controls the next line data that described the second reading out data unit reads the data line after decompress(ion), until the complete described picture of decompress(ion).
Be understandable that, after the complete data line of decompress(ion), then read the next line data of those row data of decompress(ion), and the data that read of decompress(ion), so circulation is until complete this picture of decompress(ion).
In the embodiment of the present invention, read the dimension information that size module reads picture, the application module is according to the needed memory headroom of data line of the described picture of described dimension information application decompress(ion), decompression module is the described picture of decompress(ion) line by line, display module shows the picture after decompress(ion), processing so the needed memory headroom of picture dwindles greatly, the needed memory headroom of data line that only needs the decompress(ion) picture, make set-top box save the memory headroom of set-top box in processing the picture process, and can make set-top box successfully process large-sized picture.
Above disclosed is only preferred embodiment of the present invention, certainly can not limit with this interest field of the present invention, and the equivalent variations of therefore doing according to claim of the present invention still belongs to the scope that the present invention is contained.

Claims (8)

1. a method of processing picture, is characterized in that, comprising:
Read the dimension information of picture;
The needed memory headroom of data line according to the described picture of described dimension information application decompress(ion);
The described picture of decompress(ion) line by line in described memory headroom;
Picture after the demonstration decompress(ion).
2. the method for claim 1, is characterized in that, also comprises:
Whether the size that judges described picture greater than the display size of screen, if judgment result is that and be, calculates scaling according to the size of described picture and the display size of screen, and carry out described in described memory headroom the step of the described picture of decompress(ion) line by line;
If the determination result is NO, carry out described in described memory headroom the step of the described picture of decompress(ion) line by line.
3. method as claimed in claim 2, is characterized in that, if the size of described picture greater than the display size of screen, described in described memory headroom line by line the described picture of decompress(ion) comprise:
Read the data line of described picture;
The data line that decompress(ion) reads in described memory headroom;
Judge according to described scaling whether needs show for data line after decompress(ion), if judgment result is that be, according to the data line after described scaling convergent-divergent decompress(ion), and return and carry out the next line data that read the data line after decompress(ion), until the complete described picture of decompress(ion);
If the determination result is NO, abandon the data line after decompress(ion), and return and carry out the next line data that read the data line after decompress(ion), until the complete described picture of decompress(ion).
4. method as claimed in claim 2, is characterized in that, if the size of described picture less than the display size of screen, the described picture of described decompress(ion) line by line comprises:
Read the data line of described picture;
The data line that decompress(ion) reads in described memory headroom, and return and carry out the next line data read the data line after decompress(ion), until the complete described picture of decompress(ion).
5. a device of processing picture, is characterized in that, comprising:
Read size module, be used for reading the dimension information of picture;
The application module is used for the needed memory headroom of data line according to the described picture of described dimension information application decompress(ion);
Decompression module is used in the memory headroom of described application module application the described picture of decompress(ion) line by line;
Display module is for the picture after demonstration decompression module decompress(ion).
6. device as claimed in claim 5, is characterized in that, also comprises:
The judgement size module, whether the size that is used for judging described picture is greater than the display size of screen, if judgment result is that be, the display size according to the size of described picture and screen calculates scaling, and carries out described decompression module described picture of decompress(ion) line by line in the memory headroom of described application module application;
If the determination result is NO, and carry out described decompression module described picture of decompress(ion) line by line in the memory headroom of described application module application.
7. device as claimed in claim 6, is characterized in that, if the size of described picture greater than the display size of screen, described decompression module comprises:
The first reading out data unit is used for reading the data line of described picture;
The first decompress(ion) unit is used for the data line that in the memory headroom of described application module application decompress(ion) described the first reading out data unit reads;
Judging unit, be used for judge whether needs demonstration of data line after decompress(ion) according to the described scaling that judges that size module is calculated, if judgment result is that be, according to the data line after described scaling convergent-divergent decompress(ion), and control the next line data that described reading out data unit reads the data line after decompress(ion), until the complete described picture of decompress(ion);
If the determination result is NO, abandon the data line after decompress(ion), and control the next line data that described reading out data unit reads the data line after decompress(ion), until the complete described picture of decompress(ion).
8. device as claimed in claim 6, is characterized in that, if the size of described picture less than the display size of screen, described decompression module comprises:
The second reading out data unit reads the data line of described picture;
The second decompress(ion) unit is used for the data line that decompress(ion) reads in the memory headroom of described application module application, and controls the next line data that described the second reading out data unit reads the data line after decompress(ion), until the complete described picture of decompress(ion).
CN2011103974350A 2011-12-05 2011-12-05 Image processing method and image processing device Pending CN103139632A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011103974350A CN103139632A (en) 2011-12-05 2011-12-05 Image processing method and image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011103974350A CN103139632A (en) 2011-12-05 2011-12-05 Image processing method and image processing device

Publications (1)

Publication Number Publication Date
CN103139632A true CN103139632A (en) 2013-06-05

Family

ID=48498842

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011103974350A Pending CN103139632A (en) 2011-12-05 2011-12-05 Image processing method and image processing device

Country Status (1)

Country Link
CN (1) CN103139632A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103686306A (en) * 2013-12-17 2014-03-26 康佳集团股份有限公司 Method and system for displaying image in line-by-line decompression mode
CN103678543A (en) * 2013-12-04 2014-03-26 康佳集团股份有限公司 System and method for decompressing PNG (portable network graphic format) images line by line
CN106506988A (en) * 2016-11-14 2017-03-15 广州视睿电子科技有限公司 The collocation method and device of frame parameter

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5901274A (en) * 1994-04-30 1999-05-04 Samsung Electronics Co. Ltd. Method for enlargement/reduction of image data in digital image processing system and circuit adopting the same
CN101237513A (en) * 2007-02-02 2008-08-06 株式会社东芝 Image processing device and image processing method
CN101489026A (en) * 2009-01-07 2009-07-22 深圳市同洲电子股份有限公司 Set-top box starting control method, image display method and set-top box
CN102111661A (en) * 2009-12-29 2011-06-29 康佳集团股份有限公司 Method for displaying pictures by set top box (STB) in line-by-line decompression mode

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5901274A (en) * 1994-04-30 1999-05-04 Samsung Electronics Co. Ltd. Method for enlargement/reduction of image data in digital image processing system and circuit adopting the same
CN101237513A (en) * 2007-02-02 2008-08-06 株式会社东芝 Image processing device and image processing method
CN101489026A (en) * 2009-01-07 2009-07-22 深圳市同洲电子股份有限公司 Set-top box starting control method, image display method and set-top box
CN102111661A (en) * 2009-12-29 2011-06-29 康佳集团股份有限公司 Method for displaying pictures by set top box (STB) in line-by-line decompression mode

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103678543A (en) * 2013-12-04 2014-03-26 康佳集团股份有限公司 System and method for decompressing PNG (portable network graphic format) images line by line
CN103686306A (en) * 2013-12-17 2014-03-26 康佳集团股份有限公司 Method and system for displaying image in line-by-line decompression mode
CN106506988A (en) * 2016-11-14 2017-03-15 广州视睿电子科技有限公司 The collocation method and device of frame parameter

Similar Documents

Publication Publication Date Title
CN101930337B (en) Method for processing on-screen display and associated embedded system
US10834424B2 (en) Method and device for compressing image, and electronic device
CN102723058A (en) System and method for foldable display
CN103514241A (en) Image loading method and system
CN102543045A (en) Method and related device for displaying picture
US10878532B2 (en) Display device, system and controlling method therefor
CN113126937B (en) Display terminal adjusting method and display terminal
CN112055244B (en) Image acquisition method and device, server and electronic equipment
EP3719741B1 (en) Image processing apparatus and image processing method thereof
CN104914979A (en) Display control method and terminal
JP5789719B2 (en) Method and apparatus for determining the display mode of an electronic document
EP4287633A1 (en) Video frame interpolation method and apparatus, and electronic device
CN104007947A (en) Thumbnail display method and device
CN103139632A (en) Image processing method and image processing device
CN105761656A (en) Opportunistic Compression For Display Self Refresh
CN110166798B (en) Down-conversion method and device based on 4K HDR editing
CN100364323C (en) Method for displaying high resolution JPEG picture using embedded Linux system TV set
US8655063B2 (en) Decoding system and method operable on encoded texture element blocks
CN107646131A (en) Shake for the view data to be shown
CN108989704B (en) Image generation method and device and terminal equipment
CN107908380B (en) Configuration-based multi-screen display method and device, terminal equipment and storage medium
CN111787240A (en) Video generation method, device and computer readable storage medium
CN102111661B (en) Method for displaying pictures by set top box (STB) in line-by-line decompression mode
CN105761267A (en) Image processing method and device
AU2013273770B2 (en) Device and method for controlling screen according to data loading in terminal

Legal Events

Date Code Title Description
C06 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: 20130605