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

Image loading method based on BREW platform Download PDF

Info

Publication number
CN101488991A
CN101488991A CNA2008101875397A CN200810187539A CN101488991A CN 101488991 A CN101488991 A CN 101488991A CN A2008101875397 A CNA2008101875397 A CN A2008101875397A CN 200810187539 A CN200810187539 A CN 200810187539A CN 101488991 A CN101488991 A CN 101488991A
Authority
CN
China
Prior art keywords
picture
segment
bar
loading method
wireless
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
Application number
CNA2008101875397A
Other languages
Chinese (zh)
Other versions
CN101488991B (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 disposal ability 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 third dimension 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 flag bit in the segment index value array of setting up; For example flag 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 flag bit correspondence; Call IDisplay_BitBlt () interface number of times and equal that numerical value number sum deducts all flag 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 flag 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 flag 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 flag 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 flag 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, a kind of 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.
According to described any the picture loading method of claim 1 to 3, it is characterized in that 4, among the step B, for a figure bar file of quoting, the segment that it does not contain identifies with flag 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 flag bit correspondence and moves into segment.
According to claim 4 or 5 described a kind of picture loading methods, it is characterized in that 6, described flag bit is 0xFF, is 0x03FF when adopting 16 bit data when adopting 8 bit data based on binary runtime environment for wireless.
7, a kind of picture loading method according to claim 3 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 flag 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 true CN101488991A (en) 2009-07-22
CN101488991B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102768662A (en) * 2011-05-05 2012-11-07 阿里巴巴集团控股有限公司 Method and device for loading picture

Family Cites Families (1)

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

Cited By (2)

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

Also Published As

Publication number Publication date
CN101488991B (en) 2011-09-28

Similar Documents

Publication Publication Date Title
CN102368779B (en) Supersized image loading and displaying method used for mobile internet device
CN110333947B (en) Method, device, equipment and medium for loading subcontracting resources of game application
CN103399802B (en) A kind of picture pre-add support method and 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
CN112233009A (en) Picture rendering method, device, equipment and storage medium
CN111104178A (en) Dynamic library loading method, terminal device and storage medium
CN109509139B (en) Vertex data processing method, device and equipment
CN105975168A (en) OSD menu fading-in and fading-out method and device
CN108364335A (en) A kind of animation method for drafting and device
CN114387376A (en) Rendering method and device of three-dimensional scene, electronic equipment and readable storage medium
CN110413360A (en) Image display method, device, mobile terminal and storage medium
CN103853546A (en) Feedback system and feedback method
CN101488991B (en) Image loading method based on BREW platform
CN103488380A (en) Method and device for displaying information
CN105898399A (en) Video resource loading method and device and smart television
CN106775815B (en) Application data migration method and device
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
CN109064543A (en) A kind of graphical textures load rendering method
CN106331834A (en) Multimedia data processing method and equipment
CN113949934B (en) Dynamic video content playing control method, device, medium and computer equipment
CN113687879B (en) Interaction method and device for cross-platform framework and platform interaction library
CN101789129A (en) Method and device for quickly displaying picture obtained by symmetrically transforming picture in compressed format

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