CN102044058A - Method and system for processing pictures in electronic equipment, and electronic equipment - Google Patents
Method and system for processing pictures in electronic equipment, and electronic equipment Download PDFInfo
- Publication number
- CN102044058A CN102044058A CN 201010553695 CN201010553695A CN102044058A CN 102044058 A CN102044058 A CN 102044058A CN 201010553695 CN201010553695 CN 201010553695 CN 201010553695 A CN201010553695 A CN 201010553695A CN 102044058 A CN102044058 A CN 102044058A
- Authority
- CN
- China
- Prior art keywords
- electronic equipment
- picture
- screen resolution
- resolution
- screen
- 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.)
- Granted
Links
Images
Landscapes
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The invention is suitable for the field of picture processing, and provides a method and a system for processing pictures in electronic equipment, and electronic equipment. The method comprises the following steps of: after the electronic equipment is started up, scanning storage equipment of the electronic equipment, and finding pictures of which the resolution is greater than that of a screen of the electronic equipment; reducing the pictures of which the resolution is greater than that of the screen of the electronic equipment to meet the resolution of the screen; decoding the reduced pictures and pictures of which the resolution is less than or equal to that of the screen of the electronic equipment; and storing decoded data streams in the storage equipment. The invention solves the problem of high central processing unit (CPU) occupancy rate in the process that the electronic equipment processes large-size pictures, reduces the influence on other running application programs, and improves the large-size picture display speed.
Description
Technical field
The invention belongs to the picture process field, relate in particular to a kind of method, system and electronic equipment of in electronic equipment, handling picture.
Background technology
In the prior art, the implementation procedure of handling picture in electronic equipment is as follows: read the picture of preserving in this electronic equipment storage unit, then this picture is decoded, decoded data stream is exported on the electronic equipment screen show at last.The method of this processing picture needs the CPU processing speed of electronic equipment fast, and needs bigger internal memory to support.
Yet for existing electronic equipment, because electronic equipment adopts embedded platform to develop mostly, its hardware resource is limited, and the CPU processing speed is slow, and internal memory is little.Therefore, in electronic equipment, handle large-sized picture, need long decode time, and CPU usage height in the decode procedure, often have influence on other application programs of moving, bring experience effect poor to the user.
Summary of the invention
The object of the present invention is to provide a kind of method, system and electronic equipment of in electronic equipment, handling picture, when being intended to solve the large-sized picture of in electronic equipment, handling of existing in the prior art, need long decode time, and CPU usage height in the decode procedure, often have influence on other application programs of moving, bring the problem of experience effect difference to the user.
One of purpose of the present invention is to provide a kind of method of handling picture in electronic equipment, said method comprising the steps of:
After electronic equipment start, the memory device of described electronic equipment is scanned, find out picture greater than electronic equipment screen resolution;
Described picture greater than electronic equipment screen resolution is narrowed down to the resolution of screen;
Picture after will dwindling and the picture that is less than or equal to electronic equipment screen resolution are decoded;
The data stream that obtains after the decoding is stored in the described memory device.
Two of purpose of the present invention is to provide a kind of system that handles picture in electronic equipment, and described system comprises:
Scan module is used for after electronic equipment start, and the memory device of described electronic equipment is scanned, and finds out the picture greater than electronic equipment screen resolution;
Zoom module is used for described picture greater than electronic equipment screen resolution is narrowed down to the resolution of screen;
Decoder module is used for picture after dwindling and the picture that is less than or equal to electronic equipment screen resolution are decoded;
Memory module, the data stream that is used for obtaining after the decoding is stored to described memory device.
Three of purpose of the present invention is to provide a kind of electronic equipment of handling the system of picture in electronic equipment recited above that comprises.
In the present invention, by will narrowing down to the resolution of screen in the electronic equipment memory device greater than the picture of electronic equipment screen resolution, and the picture after will dwindling decodes, and the data stream that will obtain after will decoding is stored in the described memory device; Then directly decode for the picture that is less than or equal to electronic equipment screen resolution in the electronic equipment memory device, and the data stream that will obtain after will decoding is stored in the described memory device.The invention solves and in electronic equipment, handle the high problem of CPU usage in the large scale picture process, and reduced influence, improved the display speed of large scale picture other application programs of moving.
Description of drawings
Fig. 1 is the realization flow synoptic diagram of the method for handling picture in electronic equipment that provides of the embodiment of the invention.
Fig. 2 is the realization flow synoptic diagram of the processing picture that provides of the embodiment of the invention.
Fig. 3 is the realization flow synoptic diagram of the playing pictures that provides of the embodiment of the invention.
Fig. 4 is the structural representation of the system that handles picture in electronic equipment that provides of the embodiment of the invention.
Embodiment
In order to make purpose of the present invention, technical scheme and beneficial effect clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
See also Fig. 1, the realization flow of the method for in electronic equipment, handling picture that provides for the embodiment of the invention, it may further comprise the steps:
In step S101, after electronic equipment start, the memory device of described electronic equipment is scanned, find out picture greater than electronic equipment screen resolution;
In embodiments of the present invention, this electronic equipment can be advertisement machine or other electronic equipments that Shows Picture.
In step S102, described picture greater than electronic equipment screen resolution is narrowed down to the resolution of screen;
In step S103, picture after will dwindling and the picture that is less than or equal to electronic equipment screen resolution are decoded;
In step S104, the data stream that obtains after the decoding is stored in the described memory device;
In embodiments of the present invention, the form of the data stream that obtains after the decoding with file is stored in the described memory device.
In embodiments of the present invention, after step S104, further comprising the steps of:
When playing pictures, the data stream that obtaining decodes finishes, and be presented on the electronic equipment screen.
As one embodiment of the present invention, described during when playing pictures, the data stream that obtaining decodes finishes, and be presented at before the step on the electronic equipment screen, further comprising the steps of:
Decoded picture name is added in the decoded listed files.
Therefore, when playing pictures, skip decode procedure to original image, directly read the picture name in the described decoded listed files, and from described memory device, read the data stream of decoding finishing corresponding, and be presented on the electronic equipment screen with described picture name.
In embodiments of the present invention, the described account form that described picture greater than electronic equipment screen resolution is narrowed down to the resolution of screen is:
If greater than the picture width of electronic equipment screen resolution multiply by the screen resolution height again divided by the wide result of screen resolution less than described picture height greater than electronic equipment screen resolution, so, to equal screen resolution wide for the width of picture behind the convergent-divergent, and the height of picture equals described picture width greater than electronic equipment screen resolution and multiply by the screen resolution height again divided by the wide result of screen resolution behind the convergent-divergent.
If greater than the picture width of electronic equipment screen resolution multiply by the screen resolution height again divided by the wide result of screen resolution more than or equal to described picture height greater than electronic equipment screen resolution, so, the height of picture equals the screen resolution height behind the convergent-divergent, and the width of picture equals described picture height greater than electronic equipment screen resolution to multiply by screen resolution wide again divided by the high result of screen resolution behind the convergent-divergent.
For example, the common screen resolution of advertisement machine has following several: 640x480,800x600,1024x768,1280x720,1280x1024,1360x768,1600x1200,1920x1080.
Described picture greater than the advertisement machine screen resolution is being narrowed down in the step of screen output resolution ratio the size after adopting following formula to calculate picture to dwindle:
The former picture width of Width=
The former picture height of Height=
The ScreenWidth=screen resolution is wide
ScreenHeight=screen resolution height
The width of picture behind the out_width=convergent-divergent
The height of picture behind the out_height=convergent-divergent
If (Width*ScreenHeight/ScreenWidth)<Height
Then
{
out_width=ScreenWidth;
out_height=Width*ScreenHeight/ScreenWidth;
}
Otherwise
{
out_width=Height*ScreenWidth/ScreenHeight;
out_height=ScreenHeight
}
Arriving former image zooming wide again is out_width, and height is that the picture of out_height gets final product.
Describe the implementation procedure of the method for picture of in advertisement machine, handling that the embodiment of the invention provides in detail below by son for example.
See also Fig. 2 for handling the process of picture, be achieved as follows:
In step S1, pre-service begins;
In step S2, obtain the screen output resolution ratio;
In step S3, detect whether memory device is arranged;
If in step S4, detect memory device, judge whether that then success reads file from this memory device; If do not detect memory device, it is rapid then to return previous step;
If in step S5, successfully from this memory device, read file, judge then whether the file that gets access to is picture file;
In step S6, if picture file, judge then whether this picture file joins " listed files of having decoded ";
If do not join in step S7 in " listed files of having decoded ", whether the resolution of then judging this picture is greater than the screen output resolution ratio;
If the resolution of judging this picture in step S8 then narrows down to the screen output resolution ratio with this picture, and decodes greater than the screen output resolution ratio; Otherwise, directly this picture is decoded;
The data stream that will obtain in step S9, after will decoding stores in the memory device;
In step S10, decoded picture name is added in " listed files of having decoded ", and with this list storage in memory device.
See also the process of Fig. 3, be achieved as follows for playing pictures:
In step S20, play beginning;
In step S21, judge whether that success reads file from memory device;
If in step S22, successfully from memory device, read file, judge then whether the file that gets access to is picture file;
In step S23,, find in this tabulation the picture name file of decoding accordingly if picture file then reads " listed files of having decoded ";
In step S24, read the data stream of decoding and finishing the file from decoding;
In step S25, play the picture of this data stream correspondence.
See also Fig. 4, the structure of the system that in electronic equipment, handles picture that provides for the embodiment of the invention.For convenience of explanation, only show the part relevant with the embodiment of the invention.The described system that handles picture in electronic equipment comprises: scan module 102, Zoom module 104, decoder module 106, memory module 108 and display control module 110.The described system that handles picture in electronic equipment can be the unit that is built in software unit, hardware cell or software and hardware combining in the electronic equipment.This electronic equipment can be advertisement machine or other electronic equipments that Shows Picture.
After the electronic equipment start, the memory device of 102 pairs of described electronic equipments of described scan module scans, and finds out the picture greater than electronic equipment screen resolution; Described Zoom module 104 narrows down to described picture greater than electronic equipment screen resolution the resolution of screen; Picture after described decoder module 106 will dwindle and the picture that is less than or equal to electronic equipment screen resolution are decoded; The data stream that will obtain after described memory module 108 will be decoded is stored in the described memory device; When playing pictures, described display control module 110 directly obtains the data stream of having decoded and having finished, and is presented on the electronic equipment screen.
As one embodiment of the present invention, the described system that handles picture in electronic equipment also comprises: add module.
Described adding module is used for decoded picture name is added to decoded listed files.
In embodiments of the present invention, the described system that handles picture in electronic equipment also comprises: read module.
Described read module, be used for when playing pictures, skip decode procedure to original image, directly read the picture name in the described decoded listed files, and from described memory device, read the data stream of decoding finishing corresponding, and be presented on the electronic equipment screen with described picture name.
In sum, the embodiment of the invention is by narrowing down to the resolution of screen greater than the picture of electronic equipment screen resolution in the electronic equipment memory device, and the picture after will dwindling decodes, and the data stream that will obtain after will decoding is stored in the described memory device; Then directly decode for the picture that is less than or equal to electronic equipment screen resolution in the electronic equipment memory device, and the data stream that will obtain after will decoding is stored in the described memory device.The invention solves and in electronic equipment, handle the high problem of CPU usage in the large scale picture process, and reduced influence, improved the display speed of large scale picture other application programs of moving.
One of ordinary skill in the art will appreciate that all or part of step that realizes in the foregoing description method is to instruct relevant hardware to finish by program, described program can be in being stored in a computer read/write memory medium, described storage medium is as ROM/RAM, disk, CD etc.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.
Claims (10)
1. a method of handling picture in electronic equipment is characterized in that, said method comprising the steps of:
After electronic equipment start, the memory device of described electronic equipment is scanned, find out picture greater than electronic equipment screen resolution;
Described picture greater than electronic equipment screen resolution is narrowed down to the resolution of screen;
Picture after will dwindling and the picture that is less than or equal to electronic equipment screen resolution are decoded;
The data stream that obtains after the decoding is stored in the described memory device.
2. the method for handling picture in electronic equipment as claimed in claim 1 is characterized in that, the described account form that described picture greater than electronic equipment screen resolution is narrowed down to the resolution of screen is:
If greater than the picture width of electronic equipment screen resolution multiply by the screen resolution height again divided by the wide result of screen resolution less than described picture height greater than electronic equipment screen resolution, so, to equal screen resolution wide for the width of picture behind the convergent-divergent, and the height of picture equals described picture width greater than electronic equipment screen resolution and multiply by the screen resolution height again divided by the wide result of screen resolution behind the convergent-divergent;
If greater than the picture width of electronic equipment screen resolution multiply by the screen resolution height again divided by the wide result of screen resolution more than or equal to described picture height greater than electronic equipment screen resolution, so, the height of picture equals the screen resolution height behind the convergent-divergent, and the width of picture equals described picture height greater than electronic equipment screen resolution to multiply by screen resolution wide again divided by the high result of screen resolution behind the convergent-divergent.
3. the method for handling picture in electronic equipment as claimed in claim 1 is characterized in that, the described method of handling picture in electronic equipment is further comprising the steps of:
Decoded picture name is added in the decoded listed files.
4. as claim 1, the 2 or 3 described methods of in electronic equipment, handling picture, it is characterized in that the described method of handling picture in electronic equipment is further comprising the steps of:
The data stream that obtaining decodes finishes, and be presented on the electronic equipment screen.
5. the method for handling picture in electronic equipment as claimed in claim 4 is characterized in that, describedly obtains the data stream of decoding and finishing, and the step that is presented on the electronic equipment screen is specially:
When playing pictures, read the picture name in the described decoded listed files, and from described memory device, read the data stream of decoding finishing corresponding with described picture name, be presented on the electronic equipment screen then.
6. system that handles picture in electronic equipment is characterized in that described system comprises:
Scan module is used for after electronic equipment start, and the memory device of described electronic equipment is scanned, and finds out the picture greater than electronic equipment screen resolution;
Zoom module is used for described picture greater than electronic equipment screen resolution is narrowed down to the resolution of screen;
Decoder module is used for picture after dwindling and the picture that is less than or equal to electronic equipment screen resolution are decoded;
Memory module, the data stream that is used for obtaining after the decoding is stored to described memory device.
7. the system that handles picture in electronic equipment as claimed in claim 6 is characterized in that, the described system that handles picture in electronic equipment also comprises:
Add module, be used for decoded picture name is added to decoded listed files.
8. the system that handles picture in electronic equipment as claimed in claim 7 is characterized in that, the described system that handles picture in electronic equipment also comprises:
Read module is used for when playing pictures, reads the picture name in the described decoded listed files, and reads the data stream of decoding finishing corresponding with described picture name from described memory device, is presented on the electronic equipment screen then.
9. the system that handles picture in electronic equipment as claimed in claim 6 is characterized in that described Zoom module with the account form that described picture greater than electronic equipment screen resolution narrows down to the resolution of screen is:
If greater than the picture width of electronic equipment screen resolution multiply by the screen resolution height again divided by the wide result of screen resolution less than described picture height greater than electronic equipment screen resolution, so, to equal screen resolution wide for the width of picture behind the convergent-divergent, and the height of picture equals described picture width greater than electronic equipment screen resolution and multiply by the screen resolution height again divided by the wide result of screen resolution behind the convergent-divergent;
If greater than the picture width of electronic equipment screen resolution multiply by the screen resolution height again divided by the wide result of screen resolution more than or equal to described picture height greater than electronic equipment screen resolution, so, the height of picture equals the screen resolution height behind the convergent-divergent, and the width of picture equals described picture height greater than electronic equipment screen resolution to multiply by screen resolution wide again divided by the high result of screen resolution behind the convergent-divergent.
10. one kind comprises each described electronic equipment of handling the system of picture in electronic equipment of claim 6 to 9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010105536958A CN102044058B (en) | 2010-11-22 | 2010-11-22 | Method and system for processing pictures in electronic equipment, and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010105536958A CN102044058B (en) | 2010-11-22 | 2010-11-22 | Method and system for processing pictures in electronic equipment, and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102044058A true CN102044058A (en) | 2011-05-04 |
CN102044058B CN102044058B (en) | 2012-11-21 |
Family
ID=43910175
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2010105536958A Active CN102044058B (en) | 2010-11-22 | 2010-11-22 | Method and system for processing pictures in electronic equipment, and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102044058B (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102332151A (en) * | 2011-09-13 | 2012-01-25 | 深圳Tcl新技术有限公司 | Processing method and system for numbers of pictures |
CN103729375A (en) * | 2012-10-16 | 2014-04-16 | 中兴通讯股份有限公司 | Processing method and device for terminal photos |
CN105261050A (en) * | 2015-09-23 | 2016-01-20 | 北京金山安全软件有限公司 | Picture compression method and device and mobile terminal |
CN105787868A (en) * | 2016-02-18 | 2016-07-20 | 北京金山安全软件有限公司 | Picture compression method and device and electronic equipment |
CN106157247A (en) * | 2016-07-06 | 2016-11-23 | 北京元心科技有限公司 | A kind of image processing method and system |
CN106368689A (en) * | 2015-07-22 | 2017-02-01 | 克拉玛依红有软件有限责任公司 | Method for fast generating logging imaging figure |
CN107368232A (en) * | 2017-06-29 | 2017-11-21 | 联想(北京)有限公司 | A kind of display control method, electronic equipment and computer-readable recording medium |
CN108989563A (en) * | 2018-07-25 | 2018-12-11 | 努比亚技术有限公司 | Display methods, mobile terminal and the computer readable storage medium of double-sided screen |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6020920A (en) * | 1997-06-10 | 2000-02-01 | Flashpoint Technology, Inc. | Method and system for speculative decompression of compressed image data in an image capture unit |
CN101068333A (en) * | 2006-05-04 | 2007-11-07 | 新泰辉煌公司 | Method for scaling and cropping images for television display |
CN201122424Y (en) * | 2007-08-10 | 2008-09-24 | 北京海尔集成电路设计有限公司 | Digital photo frame |
CN101630502A (en) * | 2009-08-03 | 2010-01-20 | 深圳创维-Rgb电子有限公司 | Image display method |
CN101635141A (en) * | 2009-06-24 | 2010-01-27 | 青岛海信电器股份有限公司 | Method for quickly decompressing bitmap file |
-
2010
- 2010-11-22 CN CN2010105536958A patent/CN102044058B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6020920A (en) * | 1997-06-10 | 2000-02-01 | Flashpoint Technology, Inc. | Method and system for speculative decompression of compressed image data in an image capture unit |
CN101068333A (en) * | 2006-05-04 | 2007-11-07 | 新泰辉煌公司 | Method for scaling and cropping images for television display |
CN201122424Y (en) * | 2007-08-10 | 2008-09-24 | 北京海尔集成电路设计有限公司 | Digital photo frame |
CN101635141A (en) * | 2009-06-24 | 2010-01-27 | 青岛海信电器股份有限公司 | Method for quickly decompressing bitmap file |
CN101630502A (en) * | 2009-08-03 | 2010-01-20 | 深圳创维-Rgb电子有限公司 | Image display method |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102332151A (en) * | 2011-09-13 | 2012-01-25 | 深圳Tcl新技术有限公司 | Processing method and system for numbers of pictures |
CN102332151B (en) * | 2011-09-13 | 2015-01-07 | 深圳Tcl新技术有限公司 | Processing method and system for numbers of pictures |
CN103729375A (en) * | 2012-10-16 | 2014-04-16 | 中兴通讯股份有限公司 | Processing method and device for terminal photos |
CN106368689A (en) * | 2015-07-22 | 2017-02-01 | 克拉玛依红有软件有限责任公司 | Method for fast generating logging imaging figure |
CN105261050A (en) * | 2015-09-23 | 2016-01-20 | 北京金山安全软件有限公司 | Picture compression method and device and mobile terminal |
CN105261050B (en) * | 2015-09-23 | 2018-09-14 | 北京金山安全软件有限公司 | Picture compression method and device and mobile terminal |
US10210630B2 (en) | 2015-09-23 | 2019-02-19 | Beijing Kingsoft Internet Security Software Co., Ltd. | Picture compression method and apparatus, and mobile terminal |
CN105787868A (en) * | 2016-02-18 | 2016-07-20 | 北京金山安全软件有限公司 | Picture compression method and device and electronic equipment |
CN106157247A (en) * | 2016-07-06 | 2016-11-23 | 北京元心科技有限公司 | A kind of image processing method and system |
CN107368232A (en) * | 2017-06-29 | 2017-11-21 | 联想(北京)有限公司 | A kind of display control method, electronic equipment and computer-readable recording medium |
CN108989563A (en) * | 2018-07-25 | 2018-12-11 | 努比亚技术有限公司 | Display methods, mobile terminal and the computer readable storage medium of double-sided screen |
Also Published As
Publication number | Publication date |
---|---|
CN102044058B (en) | 2012-11-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102044058B (en) | Method and system for processing pictures in electronic equipment, and electronic equipment | |
KR101970605B1 (en) | Systems and methods for rendering user interface elements in accordance with a device type | |
KR101034080B1 (en) | Uniform video decoding and display | |
WO2021008424A1 (en) | Method and device for image synthesis, electronic apparatus and storage medium | |
US20100040297A1 (en) | Image Processing Device | |
US10271105B2 (en) | Method for playing video, client, and computer storage medium | |
CN105992005A (en) | Video decoding method and device and terminal device | |
US20100247066A1 (en) | Method and apparatus for reverse playback of encoded multimedia content | |
CN1595994A (en) | Method and device for sharing dynamic video compression buffer | |
JP2010026219A (en) | Information processing apparatus and method, and program | |
US20180220120A1 (en) | Method and system for constructing view from multiple video streams | |
CN100364323C (en) | Method for displaying high resolution JPEG picture using embedded Linux system TV set | |
CN114710702A (en) | Video playing method and device | |
US20130188732A1 (en) | Multi-Threaded Texture Decoding | |
TWI316812B (en) | ||
CN101729903B (en) | Method, system and multimedia processor for reading reference frame data | |
CN101996390B (en) | Image copying method and device | |
CN111885417B (en) | VR video playing method, device, equipment and storage medium | |
EP2475172A2 (en) | Video processing apparatus capable of dynamically controlling processed picture quality based on runtime memory bandwidth utilization | |
KR102247741B1 (en) | An image processor, a method of operating the image processor, and an application processor including the image processor | |
CN101388947B (en) | Image rotating system, image rotating method and decoding chip | |
CN102332151B (en) | Processing method and system for numbers of pictures | |
CN112118473A (en) | Video bullet screen display method and device, computer equipment and readable storage medium | |
US9336557B2 (en) | Apparatus and methods for processing of media signals | |
CN114157918B (en) | Media file playing method and device, computing equipment and readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |