CN101789129A - Method and device for quickly displaying picture obtained by symmetrically transforming picture in compressed format - Google Patents

Method and device for quickly displaying picture obtained by symmetrically transforming picture in compressed format Download PDF

Info

Publication number
CN101789129A
CN101789129A CN201010106549A CN201010106549A CN101789129A CN 101789129 A CN101789129 A CN 101789129A CN 201010106549 A CN201010106549 A CN 201010106549A CN 201010106549 A CN201010106549 A CN 201010106549A CN 101789129 A CN101789129 A CN 101789129A
Authority
CN
China
Prior art keywords
picture
buffer area
portable terminal
compressed format
display device
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
CN201010106549A
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.)
Shenzhen Wuju Technology Co Ltd
Original Assignee
Shenzhen Wuju Technology 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 Shenzhen Wuju Technology Co Ltd filed Critical Shenzhen Wuju Technology Co Ltd
Priority to CN201010106549A priority Critical patent/CN101789129A/en
Publication of CN101789129A publication Critical patent/CN101789129A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Telephone Function (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The invention relates to a method and a device for quickly displaying a picture obtained by symmetrically transforming the picture in a compressed format. The method comprises the following steps: creating a buffer area in a mobile terminal and selecting the pictures to be processed in the compressed format; allocating initial addresses and sizes to each picture to be processed in the buffer area and initializing an address pointer; decompressing the pictures to be processed and storing the decompressed pictures into the buffer area; making a position pointer point to an initial position of the displayed picture; and according to the picture needing displaying and selected by a user, searching for the initial address of the picture, resetting the direction of the address pointer and the position pointer according to symmetrical transformation to be performed by the user, extracting the picture from the buffer area and then displaying the symmetrically-transformed picture on the display equipment of the mobile terminal. In the method and the device, the pictures to be processed and stored in the compressed format are decompressed into the buffer area, and the user directly extracts the decompressed original pictures from the created buffer area, performs the corresponding symmetrical transformation on the pictures and copies the symmetrically transformed pictures to the display equipment for display so as to realize quick mapping.

Description

The method and apparatus that shows the picture after compressed format picture symmetry changes fast
Technical field
The present invention relates to the portable terminal application, particularly relate to a kind of method and apparatus of the picture after portable terminal compressed format picture symmetry changes.
Background technology
At present, along with the continuous development of mobile communication technology, portable terminal has been deep in people's the life, and mobile communication has also become the most widely used communication mode.Here, the alleged portable terminal of the present invention is meant that mobile phone, personal digital assistant (PDA, Personal Digital Assistant) etc. have the small hand-held formula mobile communication equipment of wireless communication function.
With the mobile phone is example, and it no longer is simple means of communication, also has multimedia function and game function.For example, in mobile phone games manufacturing process, the producer need call picture and duplicate on the display screen that sticks on portable terminal and show, and in order to save mobile phone resources, therefore the picture that calls all is that compressed format is stored in the document in the mobile phone, therefore before duplicating stickup, need carry out decompress(ion) to the picture of compressed format, and whenever call a picture, all carry out the words of a decompress(ion), can take a large amount of CPU time, cause the cell phone system operation slowly.And the user need carry out symmetry to some picture and change on the basis of former figure, for example X-axis symmetry, Y-axis symmetry, and central point.But the present rule of doing need repaint a new picture and calls.Therefore, need a kind of method and apparatus that can show the picture of compressed format picture after symmetry changes fast at portable terminal.
Summary of the invention
At defective that exists in the prior art and deficiency, the objective of the invention is to propose a kind of method and apparatus, can be presented at apace in the portable terminal with compressed format picture storage and that carried out symmetrical variation.
In order to achieve the above object, the present invention proposes the method for the picture after a kind of quick demonstration compressed format picture symmetry changes, comprising:
Step 1: newly-built buffer area in portable terminal, and the pending picture of selection compressed format;
Step 2:,, and address pointer is pointed to the direction of described start address and the described address pointer of initialization for each described pending picture is distributed in start address and size in the described buffer area according to the original size of each described pending picture;
Step 3: described pending picture is carried out decompress(ion), and according to described start address, with the picture-storage behind the decompress(ion) to described buffer area;
Step 4: dispose described portable terminal display device attribute: comprise position indicator pointer is pointed to the reference position that Shows Picture on described portable terminal display device;
Step 5: the picture of selecting the needs demonstration according to the user, search the start address that this picture distributes in described buffer area, the symmetry of described picture needs being done according to the user changes, reset the direction and the position indicator pointer of described address pointer, the picture that extracts from described buffer area behind the described picture after symmetry changed according to described address pointer and position indicator pointer is presented on the described portable terminal display device then.
Preferred as technique scheme, described step 1 is specially:
With the newly-built buffer area of the surplus resources of portable terminal,, select the pending picture of compressed format earlier according to the size of described buffer area; Perhaps according to the size of the pending picture of the compressed format of selecting, newly-built buffer area in the portable terminal surplus resources.
Preferred as technique scheme also comprises at the described portable terminal display device attribute of described step 4 configuration: length, width, the Aspect Ratio of the effective coverage that display device shows.
A kind of portable terminal comprises the device of the picture after quick demonstration compressed format picture symmetry changes, and described device comprises:
Select and newly-built module, be used to select the pending picture of compressed format, and in described portable terminal newly-built buffer area;
Allocating cache district module, be used for original size according to described pending picture, for each described pending picture is distributed in start address and size in the described buffer area, and address pointer is pointed to the inceptive direction of described start address and the described address pointer of initialization;
Decompression module is used for described pending picture is carried out decompress(ion), and according to the start address in described buffer area of described allocating cache district module assignment, with the picture-storage behind the decompress(ion) to described buffer area;
Configuration display device attribute module is used to dispose described portable terminal display device attribute: comprise position indicator pointer is pointed to the reference position that Shows Picture on described portable terminal display device;
Display module, be used for selecting the picture of needs demonstration according to the user, search the start address that this picture distributes in described buffer area, the symmetry of described picture needs being done according to the user changes, reset described address pointer and position indicator pointer, from described buffer area, extract described picture according to described address pointer and position indicator pointer then and be presented on the portable terminal display device.
Preferred as technique scheme, described selection and newly-built module are used for earlier the newly-built buffer area of the surplus resources of portable terminal according to the size of described buffer area, is selected the pending picture of compressed format; Perhaps according to the pending picture size of the compressed format of selecting, newly-built buffer area in the portable terminal surplus resources.
Preferred as technique scheme, described configuration display device attribute module also are used to dispose length, width, the Aspect Ratio of the effective coverage that display device shows.
The present invention will be by unziping to the pending picture of compressed format storage earlier in the buffer area in the portable terminal, when the user need or replace picture at the output device pinup picture, the calling interface program, from the buffer memory of creating, directly extract the original image behind the decompress(ion), direct or having carried out copying to display device after the corresponding symmetrical change process shows.Therefore, the user can realize quick pinup picture on such as display screen at the output device of portable terminal, need not at every turn all earlier picture to be carried out decompress(ion), draw again according to customer requirements then, improved the efficient that shows with the compressed format storage and carry out the picture that symmetry changes greatly.
Below in conjunction with accompanying drawing, the specific embodiment of the present invention is described in further detail.For the person of ordinary skill in the field, from detailed description of the invention, above-mentioned and other purposes of the present invention, feature and advantage will be apparent.
Description of drawings
The synoptic diagram of first preferred embodiment of the method for the picture after the quick demonstration compressed format picture symmetry that Fig. 1 proposes for the present invention changes;
The composition synoptic diagram of the device of the picture after the quick demonstration compressed format picture symmetry that Fig. 2 proposes for the present invention changes.
Embodiment
Below a kind of portable terminal that proposes for the present invention shows the preferred embodiment of the device of compressed format picture, as shown in Figure 1,
Step 1: newly-built buffer area in portable terminal, and the pending picture of selection compressed format;
Here, can once select one or more pending pictures with the compressed format storage, and, after having selected pending picture, obtain the attribute of pending picture, the data that comprise picture in the described attribute, the data owner of picture will comprise: the title of picture, the original size of picture (length and width) can also comprise the path of picture and form etc.;
Step 2: according to the original size of each described pending picture, for each described pending picture is distributed in start address and size in the described buffer area; And the inceptive direction (for example inceptive direction is set to from left to right) that address pointer points to start address and described address pointer is set;
When having selected a plurality of pending picture in the step 1, according to the original size of each pending picture, the allocating cache attribute is each pending picture and is distributed in size and start address in the buffer area;
Described size can be calculated gained according to the original size of picture, and described computing method can be:
Length x width x bit depth ÷ 8, wherein, bit depth is the fixed value of setting in the cell phone system;
Step 3: described pending picture is carried out decompress(ion), and according to the described start address of in described buffer area, distributing, with the picture-storage behind the decompress(ion) to described buffer area;
Step 4: dispose described portable terminal display device attribute: comprise position indicator pointer is pointed to the reference position that Shows Picture on described portable terminal display device;
Step 5: the picture of selecting the needs demonstration according to the user, search the start address that this picture distributes in described buffer area, the symmetry of described picture needs being done according to the user changes, reset described position indicator pointer and address pointer, from described buffer area, extract behind the described picture at described portable terminal display device according to described position indicator pointer and address pointer then and show picture after symmetry changes;
For example: change if will carry out X-axis symmetry picture, then position indicator pointer is re-set as point to step 4 in initial position about the position of X-axis symmetry, and the direction of address pointer is constant, promptly with step 2 in inceptive direction be consistent;
If carry out the Y-axis symmetry to picture changes, then position indicator pointer is re-set as point to step 4 in initial position about the position of Y-axis symmetry, and the direction of address pointer is set to the direction opposite with inceptive direction (for example will inceptive direction from left to right change to from right to left).
The foregoing description has been realized having finished the conversion to this picture in the picture that shows compressed format, the picture after the conversion directly can be shown, and therefore, has saved the time that portable terminal is handled.
Wherein, step 1 can be specially:
Step 11: select to be stored in pending picture in the portable terminal with compressed format;
Step 12: according to size newly-built buffer area in described portable terminal of the pending picture of selecting;
Perhaps:
Step 11 ': newly-built buffer area in portable terminal;
Step 12 ': the user selects the pending picture of compressed format according to the size of described buffer area;
Utilize the newly-built buffer area of the remaining internal memory of portable terminal earlier, select the pending picture with the compressed format storage of appropriate quantity then according to the size of buffer area, can avoid the situation that Out of Memory is used in the portable terminal to take place like this.
In the above-described embodiments, can also set up the step of judgement, to judge whether the user needs picture is carried out symmetrical treatment, therefore, the picture that described step 5 selects needs to show according to the user, also comprise search the start address that this picture distributes in described buffer area after: judge whether the user needs that described picture is carried out symmetry and change, if, this step 5 of continuation execution; If not, just can directly extract described picture according to described initial address from described buffer area is presented on the portable terminal display device.
In addition, can also be before the picture after showing decompress(ion) on the output device of portable terminal earlier the attribute to output device be configured, with in order better on output device, to Show Picture.The attribute that disposes described output device comprises: the length of the effective coverage that the configuration output device shows, width, Aspect Ratio etc.
A kind of portable terminal that the present invention proposes comprises the device of the picture after quick demonstration compressed format picture symmetry changes, and as shown in Figure 2, this device comprises:
Select and newly-built module, be used to select the pending picture of compressed format, and in described portable terminal newly-built buffer area;
Allocating cache district module, be used for original size according to described pending picture, for each described pending picture is distributed in start address and size in the described buffer area, and address pointer is pointed to the inceptive direction of described start address and the described address pointer of initialization;
Decompression module is used for described pending picture is carried out decompress(ion), and according to the start address in described buffer area of described allocating cache district module assignment, with the picture-storage behind the decompress(ion) to described buffer area;
Configuration display device attribute module is used to dispose described portable terminal display device attribute: comprise position indicator pointer is pointed to the reference position that Shows Picture on described portable terminal display device;
Display module, be used for selecting the picture of needs demonstration according to the user, search the start address that this picture distributes in described buffer area, the symmetry of described picture needs being done according to the user changes, reset described address pointer and position indicator pointer, from described buffer area, extract described picture according to described address pointer and position indicator pointer then and be presented on the portable terminal display device.
Wherein, described selection and newly-built module are used for elder generation with the newly-built buffer area of the surplus resources of portable terminal, according to the size of described buffer area, select the pending picture of compressed format; Perhaps according to the pending picture size of the compressed format of selecting, newly-built buffer area in the portable terminal surplus resources.
Described device can also comprise judge module, be used for the picture that described display module selects needs to show according to the user, search after the start address that this picture distributes in described buffer area, judge whether the user needs that described picture is carried out symmetry and change, if continue the described display module of operation; If not, directly extracting described picture according to described initial address from described buffer area is presented on the portable terminal display device.
Wherein, described configuration display device attribute module also is used to dispose length, width, the Aspect Ratio of the effective coverage that display device shows.
Though; the present invention clearly demonstrates by above embodiment and accompanying drawing thereof; yet under the situation that does not deviate from spirit of the present invention and essence thereof; the person of ordinary skill in the field works as can make various corresponding variations and correction according to the present invention, but these corresponding variations and correction all should belong to the protection domain of claim of the present invention.

Claims (6)

1. a method that shows the picture after compressed format picture symmetry changes fast is characterized in that, comprising:
Step 1: newly-built buffer area in portable terminal, and the pending picture of selection compressed format;
Step 2:,, and address pointer is pointed to the direction of described start address and the described address pointer of initialization for each described pending picture is distributed in start address and size in the described buffer area according to the original size of each described pending picture;
Step 3: described pending picture is carried out decompress(ion), and according to described start address, with the picture-storage behind the decompress(ion) to described buffer area;
Step 4: dispose described portable terminal display device attribute: comprise position indicator pointer is pointed to the reference position that Shows Picture on described portable terminal display device;
Step 5: the picture of selecting the needs demonstration according to the user, search the start address that this picture distributes in described buffer area, the symmetry of described picture needs being done according to the user changes, reset the direction and the position indicator pointer of described address pointer, the picture that extracts from described buffer area behind the described picture after symmetry changed according to described address pointer and position indicator pointer is presented on the described portable terminal display device then.
2. method according to claim 1 is characterized in that, described step 1 is specially:
With the newly-built buffer area of the surplus resources of portable terminal,, select the pending picture of compressed format earlier according to the size of described buffer area; Perhaps according to the size of the pending picture of the compressed format of selecting, newly-built buffer area in the portable terminal surplus resources.
3. method according to claim 1 is characterized in that, also comprises at the described portable terminal display device attribute of described step 4 configuration: length, width, the Aspect Ratio of the effective coverage that display device shows.
4. a portable terminal is characterized in that, comprises the device of the picture after quick demonstration compressed format picture symmetry changes, and described device comprises:
Select and newly-built module, be used to select the pending picture of compressed format, and in described portable terminal newly-built buffer area;
Allocating cache district module, be used for original size according to described pending picture, for each described pending picture is distributed in start address and size in the described buffer area, and address pointer is pointed to the inceptive direction of described start address and the described address pointer of initialization;
Decompression module is used for described pending picture is carried out decompress(ion), and according to the start address in described buffer area of described allocating cache district module assignment, with the picture-storage behind the decompress(ion) to described buffer area;
Configuration display device attribute module is used to dispose described portable terminal display device attribute: comprise position indicator pointer is pointed to the reference position that Shows Picture on described portable terminal display device;
Display module, be used for selecting the picture of needs demonstration according to the user, search the start address that this picture distributes in described buffer area, the symmetry of described picture needs being done according to the user changes, reset described address pointer and position indicator pointer, from described buffer area, extract described picture according to described address pointer and position indicator pointer then and be presented on the portable terminal display device.
5. portable terminal according to claim 4 is characterized in that, described selection and newly-built module are used for elder generation with the newly-built buffer area of the surplus resources of portable terminal, according to the size of described buffer area, selects the pending picture of compressed format; Perhaps according to the pending picture size of the compressed format of selecting, newly-built buffer area in the portable terminal surplus resources.
6. portable terminal according to claim 4 is characterized in that, described configuration display device attribute module also is used to dispose length, width, the Aspect Ratio of the effective coverage that display device shows.
CN201010106549A 2010-01-26 2010-01-26 Method and device for quickly displaying picture obtained by symmetrically transforming picture in compressed format Pending CN101789129A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010106549A CN101789129A (en) 2010-01-26 2010-01-26 Method and device for quickly displaying picture obtained by symmetrically transforming picture in compressed format

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010106549A CN101789129A (en) 2010-01-26 2010-01-26 Method and device for quickly displaying picture obtained by symmetrically transforming picture in compressed format

Publications (1)

Publication Number Publication Date
CN101789129A true CN101789129A (en) 2010-07-28

Family

ID=42532332

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010106549A Pending CN101789129A (en) 2010-01-26 2010-01-26 Method and device for quickly displaying picture obtained by symmetrically transforming picture in compressed format

Country Status (1)

Country Link
CN (1) CN101789129A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103645873A (en) * 2013-12-06 2014-03-19 北京首钢自动化信息技术有限公司 Method for achieving high-efficiency data caching in trend curve system
CN105229695A (en) * 2013-06-20 2016-01-06 英特尔公司 The compression and decompression based on subset of graph data

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105229695A (en) * 2013-06-20 2016-01-06 英特尔公司 The compression and decompression based on subset of graph data
US10621691B2 (en) 2013-06-20 2020-04-14 Intel Corporation Subset based compression and decompression of graphics data
CN103645873A (en) * 2013-12-06 2014-03-19 北京首钢自动化信息技术有限公司 Method for achieving high-efficiency data caching in trend curve system
CN103645873B (en) * 2013-12-06 2016-08-03 北京首钢自动化信息技术有限公司 A kind of method realizing efficient data caching in trend curve system

Similar Documents

Publication Publication Date Title
CN101710267A (en) Method and device for quickly displaying picture for mobile terminal
CN103677942B (en) A kind of method and apparatus of movable terminal to browse network pictures
KR101496875B1 (en) Apparatus and methods for retrieving/downloading content on a communication device
US20090167919A1 (en) Method, Apparatus and Computer Program Product for Displaying an Indication of an Object Within a Current Field of View
EP3528140A1 (en) Picture processing method, device, electronic device and graphic user interface
CN108055567B (en) Video processing method and device, terminal equipment and storage medium
CN110908762B (en) Dynamic wallpaper implementation method and device
CN107436948B (en) File searching method and device and terminal
CN106453572B (en) Method and system based on Cloud Server synchronous images
CN105262810A (en) Cloud backup method and device for picture and electronic equipment
CN105468707A (en) Cache-based data processing method and device
CN103984781A (en) Webpage loading method and device
WO2017166760A1 (en) Method, apparatus, mobile terminal, and electronic device for reviewing image file
WO2015096588A1 (en) Method and device for switching display pages
CN105912289A (en) Startup LOGO image conversion and storage method and apparatus, and startup LOGO image displaying method and apparatus
CN109814930A (en) A kind of application loading method, device and mobile terminal
CN105677712A (en) Information pushing method and device and electronic equipment
CN102169589A (en) Image processing system and method
US20130227383A1 (en) Apparatus and method for searching for resources of e-book
CN101789129A (en) Method and device for quickly displaying picture obtained by symmetrically transforming picture in compressed format
CN113779321A (en) Electronic whiteboard file saving method and device, electronic whiteboard and storage medium
CN103208128A (en) Method and device for displaying picture
KR102060996B1 (en) Device and method for changing address and data of memory in termival
CN103488380A (en) Method and device for displaying information
CN104135518A (en) A method for sharing data

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

Application publication date: 20100728