CN101488991B - Image loading method based on BREW platform - Google Patents

Image loading method based on BREW platform Download PDF

Info

Publication number
CN101488991B
CN101488991B CN2008101875397A CN200810187539A CN101488991B CN 101488991 B CN101488991 B CN 101488991B CN 2008101875397 A CN2008101875397 A CN 2008101875397A CN 200810187539 A CN200810187539 A CN 200810187539A CN 101488991 B CN101488991 B CN 101488991B
Authority
CN
China
Prior art keywords
picture
segment
bar
loading method
index value
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.)
Expired - Fee Related
Application number
CN2008101875397A
Other languages
Chinese (zh)
Other versions
CN101488991A (en
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.)
Beijing University of Posts and Telecommunications
Original Assignee
Beijing University of Posts and Telecommunications
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 Beijing University of Posts and Telecommunications filed Critical Beijing University of Posts and Telecommunications
Priority to CN2008101875397A priority Critical patent/CN101488991B/en
Publication of CN101488991A publication Critical patent/CN101488991A/en
Application granted granted Critical
Publication of CN101488991B publication Critical patent/CN101488991B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Controls And Circuits For Display Device (AREA)

Abstract

The invention discloses a picture loading method based on a BREW platform, comprising steps of: loading a plurality of short bars to draw a fluctuant scene, loading some bars with others to draw a fluctuant scene, such that the bars can be loaded repeatedly to obtain different scenes, which generates various different pictures in a condition that total size of resource file bar is small as possible; setting corresponding marker bit in an array when citing the bar files, not reading picture blocks in display memory when no picture blocks in the loading bars; speed of loading is not affected and incoherency of scene perceptually is not generated, which may meet request of consumers who demands more for display quality of the mobile communication terminal.

Description

A kind of picture loading method based on binary runtime environment for wireless
Technical field
The present invention relates to the application software of mobile terminal field, especially relate to a kind of picture loading method of the application software of mobile terminal based on binary runtime environment for wireless.
Background technology
In mobile communication terminal is used, mobile phone games have become main application in the value-added telecom services, are one of main platforms of domestic and international development of games based on BREW (the Binary Runtime Environment for Wireless) client-side program of Qualcomm.Recreation relates to the loading and the rational management of image, because the palm system memory capacity is little, access speed is slow, causes its storage capacity and processing power to be very limited.To the method for handling based on game picture on the binary runtime environment for wireless, generally we draw a scene at the video memory that uses a figure bar to be loaded into mobile phone, and then be presented on the screen of portable terminal such as mobile phone, often want the conversion scene in the recreation, obtain different scenes, this figure bar just can not re-use, at this moment need to load another one figure bar, if you want to draw a plurality of different change scenes, you just need corresponding a plurality of different figure bar, cause the volume of resource file bar bigger, reducing method that volume usually adopts a kind of is the figure place that reduces picture, and another kind is the length of minimizing figure bar, and these two kinds of methods all can make the scene drawn out or color and luster and stereoscopic sensation very poor, scene is very dull, can not satisfy consumer's requirement more and more higher to the mobile communication terminal display quality.
Summary of the invention
The purpose of this invention is to provide a kind of picture loading method, be easier to expansion, obtain different scenes, reduce the volume of resource file bar, can't influence its speed of displaying based on binary runtime environment for wireless.
The objective of the invention is to be achieved through the following technical solutions:
A kind of picture loading method based on binary runtime environment for wireless may further comprise the steps:
A sets up a plurality of figure bar files, and each figure bar file contains identical but the square segment that content is different of several specifications;
The segment that B comprises according to needs in the picture to display at the figure bar file that need are quoted, is set up the segment index value array of picture;
C calls IDisplay_BitBlt () interface the segment of index value correspondence in the array is moved in the video memory according to the segment index value array of picture correspondence to display;
D is shown to picture on the screen by video memory.
Further, in the steps A, for each figure bar, its segment that comprises has the advantages that to use simultaneously, can further reduce the quantity of figure bar file.
In picture loading procedure step B, for a secondary picture, the figure bar file of quoting can be for a plurality of, and the segment index value array quantity of foundation is identical with it; For a figure bar file of quoting, the segment that it does not contain identifies with zone bit in the segment index value array of setting up; For example zone bit can be 0xFF when adopting 8 bit data, can be for being 0x03FF when adopting 16 bit data.
In picture loading procedure step step C, move in the process not video memory zone and move into segment to the zone bit correspondence; Call IDisplay_BitBlt () interface number of times and equal that numerical value number sum deducts all zone bit number sums in all segment index value arrays.
Beneficial effect of the present invention is, this scheme is to use the figure bar of a plurality of weak points to load the scene of drawing a change together, with some figure bar and the common scene of drawing another change that loads of other figure bar wherein, so just can repeat loading figure bar and obtain different scenes, can make in this way under the as far as possible little situation of the size of total resource file bar, reach the purpose that produces multiple different pictures; Simultaneously corresponding zone bit is set in array when quoting figure bar file, in video memory, does not read in segment during the segment that does not have in the loading figure bar, thereby do not influence the speed of loading, can not produce the discontinuous of scene visually.
Description of drawings
With specific embodiment the present invention is described in further detail with reference to the accompanying drawings below.
Fig. 1 is the general picture loading method principle schematic that adopts;
Fig. 2 is a picture loading method principle schematic of the present invention;
Fig. 3 be the present invention to the conversion scene after new picture loading method principle schematic.
Embodiment
To the method for handling based on game picture on the binary runtime environment for wireless, Fig. 1 has provided the picture loading method principle of general employing, generally we draw a scene at the video memory that uses a figure bar to be loaded into mobile phone, and then be presented on the screen of portable terminal such as mobile phone, sample picture 101 can be divided into 16 segments and form, each segment is the square of same specification, as 16 * 16 pixels, 32 * 32 pixels etc., this segment that wherein content is identical is respectively 1,2,3,4 four kinds, on based on binary runtime environment for wireless, Loaded Image 101 o'clock, at first to set up figure bar file 102, it includes segment 1,2,3,4, its index value is 1,2,3,4; During rendered images 101, introduce figure bar file 102, call the corresponding interface function, can obtain picture 101 according to array 103.In the time will being transformed into another scene picture 104, figure bar file 102 can not re-use, need rebulid figure bar file 105, call the corresponding interface function according to array 106 again, obtain picture 104 on the screen thereby in video memory, move segment 16 times and finally be shown to by video memory.
Often want the conversion scene in the recreation, by present this loading method, obtain different scenes, as being transformed to picture 104 from picture 101 in the precedent, need make new figure bar file 105 again and generate new picture 104, if want to draw a plurality of different change scenes, you just need a plurality of different figure bars, cause the volume of resource file bar bigger, and the workload that programs is big.
Fig. 2 has provided picture loading method principle of the present invention, at first to set up two figure bar files, it is respectively figure bar file 202,202`, figure bar file 202 includes the segment 1 that uses simultaneously, 2, figure bar file 202` includes the segment 3 that uses simultaneously, 4, set up the segment index value array 203 of picture 201 at figure bar file 202, the segment that figure bar file 202 does not contain, in the segment index value array of setting up, identify with zone bit 0xFF, according to segment index value array 203, calling IDisplay_BitBlt () interface moves the segment of index value correspondence in the array 203 in the video memory, judge statement by if in the program, move in the process not the video memory zone to the zone bit correspondence and move into segment, for Figure 20 1 carrying 8 times in video memory altogether, segment 1 and segment 2 are carried in the corresponding video memory zone the most at last.Same, set up the segment index value array 203` of picture 201` at figure bar file 202`, repeatedly call IDisplay_BitBlt () interface the segment of index value correspondence among the array 203` is moved in the video memory, carry 8 times, segment 3 and segment 4 are carried in the corresponding video memory zone the most at last; Be shown to the effect that realizes demonstrating picture 101 on the screen by content in the video memory at last.
Fig. 3 has provided new picture loading method after the conversion scene, scene is transformed to picture 104 from picture 101, picture 104 is with respect to picture 101, at original four kinds of segments 1,2,3, the segment 5 and the segment 6 of newtype have been increased on 4 the basis, six types segment can constitute new picture 104 by combination, segment 5,6 have the advantages that to use simultaneously, set up new figure bar file 302, figure bar file 302 includes the segment 5 that uses simultaneously, 6, the method that adopts Fig. 2 to provide, successively at existing figure bar file 202,202` and newly-built figure bar file 302, set up picture 301,301`, the segment index value array 303 of 301``, 303`, 303``, repeatedly call IDisplay_BitBlt () interface with array 303,303`, the segment of index value correspondence is moved in the video memory among the 303``, judge statement by if in the program, move in the process not video memory zone and move into segment to the zone bit correspondence, move segment altogether 16 times, at last content in the video memory is shown to the effect that realizes demonstrating picture 104 on the screen.
Picture loading method based on binary runtime environment for wireless of the present invention, loading procedure is by increasing new figure bar file, utilize all or part of existing figure bar file, realization realizes the loading of new picture to increase little figure bar file, in loading procedure by corresponding marker bit is set in array, do not increase the number of times that segment is moved to video memory, reached good display effect, satisfy consumer's requirement more and more higher the mobile communication terminal display quality.

Claims (7)

1. picture loading method based on binary runtime environment for wireless is characterized in that may further comprise the steps:
A sets up a plurality of figure bar files, and each figure bar file contains identical but the square segment that content is different of several specifications;
The segment that B comprises according to needs in the picture to display at the figure bar file that need are quoted, is set up the segment index value array of picture;
C calls IDisplay_BitBlt () interface the segment of index value correspondence in the array is moved in the video memory according to the segment index value array of picture correspondence to display;
D is shown to picture on the screen by video memory.
2. a kind of picture loading method based on binary runtime environment for wireless according to claim 1 is characterized in that, in the steps A, for each figure bar, its segment that comprises has the advantages that to use simultaneously.
3. a kind of picture loading method based on binary runtime environment for wireless according to claim 1 is characterized in that, among the step B, for a secondary picture, the figure bar file of quoting can be for a plurality of, and the segment index value array quantity of foundation is identical with it.
4. according to described any the picture loading method of claim 1 to 3, it is characterized in that among the step B, for a figure bar file of quoting, the segment that it does not contain identifies with zone bit in the segment index value array of setting up based on binary runtime environment for wireless.
5. a kind of picture loading method based on binary runtime environment for wireless according to claim 4 is characterized in that, among the step C, moves in the process not the video memory zone to the zone bit correspondence and moves into segment.
6. a kind of picture loading method based on binary runtime environment for wireless according to claim 5 is characterized in that, described zone bit is 0xFF when adopting 8 bit data, is 0x03FF when adopting 16 bit data.
7. a kind of picture loading method according to claim 5 based on binary runtime environment for wireless, it is characterized in that, among the step C, call IDisplay_BitBlt () interface number of times and equal that numerical value number sum deducts all zone bit number sums in all segment index value arrays.
CN2008101875397A 2008-12-25 2008-12-25 Image loading method based on BREW platform Expired - Fee Related CN101488991B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008101875397A CN101488991B (en) 2008-12-25 2008-12-25 Image loading method based on BREW platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008101875397A CN101488991B (en) 2008-12-25 2008-12-25 Image loading method based on BREW platform

Publications (2)

Publication Number Publication Date
CN101488991A CN101488991A (en) 2009-07-22
CN101488991B true CN101488991B (en) 2011-09-28

Family

ID=40891664

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008101875397A Expired - Fee Related CN101488991B (en) 2008-12-25 2008-12-25 Image loading method based on BREW platform

Country Status (1)

Country Link
CN (1) CN101488991B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102768662B (en) * 2011-05-05 2016-02-10 阿里巴巴集团控股有限公司 A kind of method and apparatus Loaded Image

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1908894A (en) * 2005-08-04 2007-02-07 腾讯科技(深圳)有限公司 Brew-based dynamic user interface system structure and method for realization

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1908894A (en) * 2005-08-04 2007-02-07 腾讯科技(深圳)有限公司 Brew-based dynamic user interface system structure and method for realization

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
孙亭南.基于BREW的手机游戏的研究和实现.《中国优秀硕士学位论文全文数据库》.2006,第30-32页,图3.1. *
崔素文.基于BREW平台的嵌入式应用的研究和实现.《中国优秀硕士学位论文全文数据库》.2006,第21-32页. *

Also Published As

Publication number Publication date
CN101488991A (en) 2009-07-22

Similar Documents

Publication Publication Date Title
CN102368779B (en) Supersized image loading and displaying method used for mobile internet device
CN106909333B (en) Screen configuration method and device for display screen
CN102023843B (en) Function calling method and device as well as smart card
WO2020220971A1 (en) File loading method and apparatus, electronic device, and storage medium
CN109361947A (en) Internet resources batch loading method, smart television, storage medium and device
CN112233009A (en) Picture rendering method, device, equipment and storage medium
CN111104178A (en) Dynamic library loading method, terminal device and storage medium
CN105975168A (en) OSD menu fading-in and fading-out method and device
CN105488470A (en) Method and apparatus for determining character attribute information
CN108364335A (en) A kind of animation method for drafting and device
CN110782387B (en) Image processing method and device, image processor and electronic equipment
CN102723093B (en) A kind of caching method of image file
CN110413360A (en) Image display method, device, mobile terminal and storage medium
CN104793937B (en) A kind of startup control method and device
CN103853546A (en) Feedback system and feedback method
CN101488991B (en) Image loading method based on BREW platform
CN107423139A (en) A kind of method and device shared
CN103488380A (en) Method and device for displaying information
CN110851327A (en) Hardware state information acquisition method and device, terminal and readable storage medium
CN105898399A (en) Video resource loading method and device and smart television
CN115576513A (en) Target image display method, display device, electronic device, and storage medium
CN104021579A (en) Method and device for changing colors of image
CN114217758A (en) Image display method, image display device, electronic equipment and computer readable storage medium
CN106331834A (en) Multimedia data processing method and equipment
CN109064543A (en) A kind of graphical textures load rendering method

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
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20110928

Termination date: 20121225