Embodiment
In order to make the object of the invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with accompanying drawing and embodiment.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.
To the problem that prior art exists, the image display method of the embedded device that the embodiment of the invention provides is preset the special efficacy display mode, and after receiving the picture shows signal, the special efficacy display mode with preset shows corresponding picture.
Fig. 1 shows the flow process of the image display method of the embedded device that first embodiment of the invention provides.
In step S101, receive the picture shows signal.
In step S102, call the attribute information and the special efficacy display mode thereof of the corresponding picture of picture shows signal that prestores, and according to the attribute information of the picture that calls, the picture pixel data that calls that prestore, corresponding size is to video memory.This attribute information comprises the display width of the display position horizontal ordinate of corresponding picture on display interface, display position ordinate, corresponding picture and shows height etc.
In step S103, show the picture pixel data that calls video memory with the special efficacy display mode that calls.
In the first embodiment of the invention, the special efficacy display mode that prestores be from left to right show, show from right to left, show from top to bottom, show from top to bottom, from the centre to the right and left, show, show, be rolled to both sides up and down from the left side from the centre the right show, be rolled to from the right the left side show, be rolled to from the top following show or be rolled to the top from bottom show.Step S103 can may further comprise the steps again: putting the process of the pixel of getting full picture from initial pixel; Utilize the corresponding iterative algorithm of special efficacy display mode, constantly obtain picture at the display position horizontal ordinate on the display interface, picture display position ordinate, the display width of picture and the demonstration height of picture on display interface; According to the display width of the picture that obtains and the demonstration height of picture, a rectangular area that obtains picture is as zone to be shown; Real-time update along with the demonstration height of the display width of picture and picture redraws the picture pixel data of respective calls to video memory in display interface.
Particularly; The coordinate axis of supposing display interface is positive dirction to the right; Then when preset special efficacy display mode be when from left to right showing; The step of step S103 can may further comprise the steps again: a picture address side-play amount is set, and with the display width of picture in the attribute information that the calls initial value as this picture address side-play amount; With a pixel wide is that step-length reduces this picture address side-play amount; It is poor that the display width of picture in the attribute information that calls and photo current address offset amount are done, and obtains the corresponding display width of picture; According to picture address side-play amount after reducing and the corresponding display width that calculates, the picture pixel data that constantly will call video memory redraws in display interface, can obtain picture special efficacy display effect from left to right.
For example, the display width of picture is width in the attribute information of supposing to call, and the demonstration of picture highly is height in the attribute information that calls; The display position horizontal ordinate of picture on display interface is x, and the display position ordinate of picture on display interface is y, that is to say; The attribute information of the corresponding picture of picture shows signal is expressed as (x, y, width; Height), then according to this attribute information, can x=0; Y=0 is an origin coordinates, and display width is width, shows and highly call video memory for the picture pixel data of height in the picture that prestores.Afterwards; Suppose that the picture address side-play amount is offset; The corresponding display width that photo current address offset amount is calculated picture is width ', then with the width width of picture in the attribute information that calls give picture address side-play amount offset as initial value after, repeat in order:
width′=width-offset
offset=offset-1
Can make picture address side-play amount offset gradually from picture width width be reduced to 0, the corresponding display width width ' of picture is increased to picture width width gradually from 0, thereby formed picture display effect from left to right.
When preset special efficacy display mode is when showing from right to left, the step of step S103 can may further comprise the steps again: give the display position horizontal ordinate one horizontal ordinate initial value of picture on display interface in the attribute information that calls; One picture address side-play amount is set, and with the width of picture in the attribute information that the calls initial value as this picture address side-play amount; With a pixel wide is that step-length reduces this picture address side-play amount; With photo current address offset amount and the summation of horizontal ordinate initial value, obtain the current display position horizontal ordinate of picture on display interface; It is poor that the width of picture in the attribute information that calls and photo current address offset amount are done, and obtains the corresponding display width of picture; According to the picture address side-play amount after reducing, the corresponding display width that calculates and the picture current display position horizontal ordinate on display interface; The picture pixel data that constantly will call video memory redraws in display interface, can obtain picture special efficacy display effect from right to left.
For example, the display width of picture is width in the attribute information of supposing to call, and the demonstration of picture highly is height in the attribute information that calls; The display position horizontal ordinate of picture on display interface is x, and the display position ordinate of picture on display interface is y, that is to say; The attribute information of the corresponding picture of picture shows signal is expressed as (x, y, width; Height), then according to this attribute information, can x=0; Y=0 is an origin coordinates, and display width is width, shows and highly call video memory for the picture pixel data of height in the picture that prestores.Afterwards; Suppose that the picture address side-play amount is offset; The corresponding display width that photo current address offset amount is calculated picture is width ', and the current display position horizontal ordinate of picture on display interface is x ', and then the display width width with picture in the attribute information that calls gives picture address side-play amount offset as initial value; And with 0 give in the attribute information picture the display position horizontal ordinate on the display interface be x as initial value after, repeat in order:
x′=offset+x
width′=width-offset
offset=offset-1
Can make picture address side-play amount offset gradually from picture display width width be reduced to 0, the corresponding display width width ' of picture is increased to picture display width width gradually from 0; The current display position horizontal ordinate of picture on display interface is that x ' reduces gradually, thereby formed picture display effect from right to left.
The coordinate axis of supposing display interface is positive dirction downwards; Then when preset special efficacy display mode be when showing from top to bottom; The step of step S103 can may further comprise the steps again: a picture address side-play amount is set, and with the initial value of the demonstration of picture in the attribute information that calls height as this picture address side-play amount; With a pixel wide is that step-length reduces this picture address side-play amount; It is poor that the demonstration of picture in the attribute information that calls height and photo current address offset amount are done, and the corresponding demonstration that obtains picture highly; According to picture address side-play amount after reducing and the corresponding demonstration height that calculates, the picture pixel data that constantly will call video memory redraws in display interface, can obtain picture special efficacy display effect from top to bottom.
The display width of picture is width in the attribute information of supposing to call, and the demonstration of picture highly is height in the attribute information that calls, and the display position horizontal ordinate of picture on display interface is x; The display position ordinate of picture on display interface is y, that is to say, the attribute information of the corresponding picture of picture shows signal is expressed as (x; Y, width, height); Then according to this attribute information; Can x=0, y=0 is an origin coordinates, display width is width, shows and highly call video memory for the picture pixel data of height in the picture that prestores.Afterwards; Suppose that the picture address side-play amount is offset, corresponding demonstrations that photo current address offset amount is calculated picture highly is height ', then with the demonstration of picture in the attribute information that calls height highly; Give picture address side-play amount offset as initial value after, repeat in order:
height′=height-offset
offset=offset-1
Can make picture address side-play amount offset gradually from picture width height be reduced to 0, the corresponding demonstration height height ' of picture is increased to picture gradually from 0 and shows height height, thereby formed picture display effect from top to bottom.
When preset special efficacy display mode is when showing from top to bottom, the step of step S103 can may further comprise the steps again: give the display position ordinate one ordinate initial value of picture on display interface in the attribute information that calls; One picture address side-play amount is set, and with the height of picture in the attribute information that the calls initial value as this picture address side-play amount; With a pixel wide is that step-length reduces this picture address side-play amount; With photo current address offset amount and the summation of ordinate initial value, obtain the current display position ordinate of picture on display interface; It is poor that the height of picture in the attribute information that calls and photo current address offset amount are done, and obtains the corresponding demonstration height of picture; According to the picture address side-play amount after reducing, the corresponding demonstration height and the current display position ordinate of picture on display interface that calculate; The picture pixel data that constantly will call video memory redraws in display interface, can obtain picture special efficacy display effect from top to bottom.
For example, the display width of picture is width in the attribute information of supposing to call, and the demonstration of picture highly is height in the attribute information that calls; The display position horizontal ordinate of picture on display interface is x, and the display position ordinate of picture on display interface is y, that is to say; The attribute information of the corresponding picture of picture shows signal is expressed as (x, y, width; Height), then according to this attribute information, can x=0; Y=0 is an origin coordinates, and display width is width, shows and highly call video memory for the picture pixel data of height in the picture that prestores.Afterwards; Suppose that the picture address side-play amount is offset; The corresponding demonstration that photo current address offset amount is calculated picture highly is height ', and the current display position ordinate of picture on display interface is y ', and then the demonstration height height with picture in the attribute information that calls gives picture address side-play amount offset as initial value; And with 0 give in the attribute information picture the display position ordinate on the display interface be y as initial value after, repeat in order:
y′=offset+y
height′=height-offset
offset=offset-1
Can make picture address side-play amount offset show that from picture height height is reduced to 0, corresponding the demonstrations height height ' of picture is increased to picture gradually from 0 and shows highly height gradually; The current display position ordinate y ' of picture on display interface is reduced to 0 gradually, thereby formed picture display effect from top to bottom.
When preset special efficacy display mode is when from the centre to the right and left, showing, the step of step S103 can may further comprise the steps again: give the display position horizontal ordinate one horizontal ordinate initial value of picture on display interface in the attribute information that calls; One picture address side-play amount is set, and with the width of picture in the attribute information that the calls initial value as this picture address side-play amount; With a pixel wide is that step-length reduces this picture address side-play amount; With the half the of photo current address offset amount and the summation of horizontal ordinate initial value, obtain the current display position horizontal ordinate of picture on display interface; It is poor that the width of picture in the attribute information that calls and photo current address offset amount are done, and obtains the corresponding display width of picture; According to the picture address side-play amount after reducing, the corresponding display width that calculates and the picture current display position horizontal ordinate on display interface; The picture pixel data that constantly will call video memory redraws in display interface, can obtain the special efficacy display effect of picture from the centre to the right and left.
For example, the display width of picture is width in the attribute information of supposing to call, and the demonstration of picture highly is height in the attribute information that calls; The display position horizontal ordinate of picture on display interface is x, and the display position ordinate of picture on display interface is y, that is to say; The attribute information of the corresponding picture of picture shows signal is expressed as (x, y, width; Height), then according to this attribute information, can x=0; Y=0 is an origin coordinates, and display width is width, shows and highly call video memory for the picture pixel data of height in the picture that prestores.Afterwards; Suppose that the picture address side-play amount is offset; The corresponding display width that photo current address offset amount is calculated picture is width ', and the current display position horizontal ordinate of picture on display interface is x ', and then the display width width with picture in the attribute information that calls gives picture address side-play amount offset as initial value; And with 0 give in the attribute information picture the display position horizontal ordinate on the display interface be x as initial value after, repeat in order:
x′=offset/2+x
width′=width-offset
offset=offset-1
Can make picture address side-play amount offset gradually from picture display width width be reduced to 0, the corresponding display width width ' of picture is increased to picture display width width gradually from 0; The current display position horizontal ordinate x ' of picture on display interface is reduced to 0 gradually from the intermediate width of picture, thereby formed picture from the display effect from the centre to the right and left.
When preset special efficacy display mode be from the centre when both sides show up and down, the step of step S103 can may further comprise the steps again: give the display position ordinate one ordinate initial value of picture on display interface in the attribute information that calls; One picture address side-play amount is set, and with the height of picture in the attribute information that the calls initial value as this picture address side-play amount; With a pixel wide is that step-length reduces this picture address side-play amount; With the half the of photo current address offset amount and the summation of ordinate initial value, obtain the current display position ordinate of picture on display interface; It is poor that the height of picture in the attribute information that calls and photo current address offset amount are done, and obtains the corresponding demonstration height of picture; According to the picture address side-play amount after reducing, the corresponding demonstration height and the current display position ordinate of picture on display interface that calculate; The picture pixel data that constantly will call video memory redraws in display interface, can obtain picture from the centre to the special efficacy display effect on both sides up and down.
For example, the display width of picture is width in the attribute information of supposing to call, and the demonstration of picture highly is height in the attribute information that calls; The display position horizontal ordinate of picture on display interface is x, and the display position ordinate of picture on display interface is y, that is to say; The attribute information of the corresponding picture of picture shows signal is expressed as (x, y, width; Height), then according to this attribute information, can x=0; Y=0 is an origin coordinates, and display width is width, shows and highly call video memory for the picture pixel data of height in the picture that prestores.Afterwards; Suppose that the picture address side-play amount is offset; The corresponding demonstration that photo current address offset amount is calculated picture highly is height ', and the current display position ordinate of picture on display interface is y ', and then the demonstration height height with picture in the attribute information that calls gives picture address side-play amount offset as initial value; And with 0 give in the attribute information picture the display position ordinate on the display interface be y as initial value after, repeat in order:
y′=offset/2+y
height′=height-offset
offset=offset-1
Can make picture address side-play amount offset show that from picture height height is reduced to 0, corresponding the demonstrations height height ' of picture is increased to picture gradually from 0 and shows highly height gradually; The current display position ordinate y ' of picture on display interface be reduced to 0 gradually from the intermediate altitude of picture, thus formed picture from from the centre to the display effect on both sides up and down.
When preset special efficacy display mode is that the step of step S103 can may further comprise the steps again: give the display position horizontal ordinate one horizontal ordinate initial value of picture on display interface in the attribute information that calls when being rolled to the right demonstration from the left side; One picture address side-play amount is set, and with the display width of picture in the attribute information that the calls initial value as this picture address side-play amount; With a pixel wide is that step-length reduces this picture address side-play amount; With photo current address offset amount and the summation of horizontal ordinate initial value, obtain the current display position horizontal ordinate of picture on display interface; It is poor that the display width of picture in the attribute information that calls and photo current address offset amount are done, and obtains the corresponding display width of picture; According to the picture address side-play amount after reducing, the corresponding display width that calculates and the picture current display position horizontal ordinate on display interface; The picture pixel data that constantly will call video memory redraws the corresponding viewing area in display interface; The attribute information of this corresponding viewing area can be expressed as (dx=0, y, width '; Height), can obtain picture is rolled to the right from the left side special efficacy display effect.
For example, the display width of picture is width in the attribute information of supposing to call, and the demonstration of picture highly is height in the attribute information that calls; The display position horizontal ordinate of picture on display interface is sx, and the display position ordinate of picture on display interface is y, that is to say; The attribute information of the corresponding picture of picture shows signal is expressed as (sx, y, width; Height), then according to this attribute information, can sx=0; Y=0 is an origin coordinates, and display width is width, shows and highly call video memory for the picture pixel data of height in the picture that prestores.Afterwards; Suppose that the picture address side-play amount is offset; The corresponding display width that photo current address offset amount is calculated picture is width ', and the current display position horizontal ordinate of picture on display interface is sx ', and then the display width width with picture in the attribute information that calls gives picture address side-play amount offset as initial value; And with 0 give in the attribute information picture the display position horizontal ordinate on the display interface be sx as initial value after, repeat in order:
sx′=offset+sx
width′=width-offset
offset=offset-1
Can make picture address side-play amount offset gradually from picture display width width be reduced to 0, the current display position horizontal ordinate sx ' of picture on display interface be reduced to 0 from picture display width width; And the corresponding display width width ' of picture is increased to picture display width width gradually from 0; The continuous like this picture pixel data that will call video memory redraws the corresponding viewing area (dx=0 in display interface; Y; Width ' height), thereby has formed picture from be rolled to the display effect on the right from the left side.The picture that this display effect is similar to the display interface left side pushs out toward display interface the right, so the right-hand component of picture at first is presented on the position of dx.
When preset special efficacy display mode is that the step of step S103 can may further comprise the steps again: give the horizontal ordinate one horizontal ordinate initial value of the position, corresponding viewing area on the display interface when being rolled to left side demonstration from the right; One picture address side-play amount is set, and with the display width of picture in the attribute information that the calls initial value as this picture address side-play amount; With a pixel wide is that step-length reduces this picture address side-play amount; With photo current address offset amount and the summation of horizontal ordinate initial value, obtain the current display position horizontal ordinate of the position, corresponding viewing area on the display interface; It is poor that the display width of picture in the attribute information that calls and photo current address offset amount are done, and obtains the corresponding display width of picture; Current display position horizontal ordinate according to the position, corresponding viewing area on the picture address side-play amount after reducing, the corresponding display width that calculates and the display interface; The picture pixel data that constantly will call video memory redraws the corresponding viewing area in display interface, can obtain picture is rolled to the left side from the right special efficacy display effect.
For example, the display width of picture is width in the attribute information of supposing to call, and the demonstration of picture highly is height in the attribute information that calls; Position, corresponding viewing area horizontal ordinate on the display interface is dx, and the current display position horizontal ordinate of the position, corresponding viewing area on the display interface is dx ', and the display position horizontal ordinate of picture on display interface is sx; The display position ordinate of picture on display interface is y, that is to say, the attribute information of the corresponding picture of picture shows signal is expressed as (sx; Y, width, height); Then according to this attribute information; Can sx=0, y=0 is an origin coordinates, display width is width, shows and highly call video memory for the picture pixel data of height in the picture that prestores.Afterwards; Suppose that the picture address side-play amount is offset; The corresponding display width that photo current address offset amount is calculated picture is width '; Then the display width width with picture in the attribute information that calls gives picture address side-play amount offset as initial value, and with 0 give in the attribute information picture the display position horizontal ordinate on the display interface be dx as initial value after, repeat in order:
dx′=offset+dx
width′=width-offset
offset=offset-1
Can make picture address side-play amount offset gradually from picture display width width be reduced to 0, the current display position horizontal ordinate of position, corresponding viewing area on the display interface is that dx ' is reduced to 0 from picture display width width; And the corresponding display width width ' of picture is increased to picture display width width, continuous like this picture pixel data (sx=0, the y that will call video memory gradually from 0; Width; Height) redraw (dx, y, width ' in the corresponding viewing area of display interface; Height), thus formed picture from be rolled to the display effect on the left side from the right.The picture that this display effect is similar to display interface the right pushs out toward the display interface left side, so the left-hand component of picture at first is presented on the position of dx.
When preset special efficacy display mode is that the step of step S103 can may further comprise the steps again: give the display position ordinate one ordinate initial value of picture on display interface in the attribute information that calls when being rolled to following the demonstration from the top; One picture address side-play amount is set, and with the display width of picture in the attribute information that the calls initial value as this picture address side-play amount; With a pixel wide is that step-length reduces this picture address side-play amount; With photo current address offset amount and the summation of ordinate initial value, obtain the current display position ordinate of picture on display interface; It is poor that the demonstration of picture in the attribute information that calls height and photo current address offset amount are done, and the corresponding demonstration that obtains picture highly; According to the picture address side-play amount after reducing, the corresponding demonstration height and the current display position ordinate of picture on display interface that calculate; The picture pixel data that constantly will call video memory redraws the corresponding viewing area in display interface; The attribute information of this corresponding viewing area can be expressed as (x, dy=0, width; Height '), can obtain picture and be rolled to following special efficacy display effect from the top.
For example, the display width of picture is width in the attribute information of supposing to call, and the demonstration of picture highly is height in the attribute information that calls; The display position horizontal ordinate of picture on display interface is x, and the display position ordinate of picture on display interface is sy, that is to say; The attribute information of the corresponding picture of picture shows signal is expressed as (x, sy, width; Height), then according to this attribute information, can x=0; Sy=0 is an origin coordinates, and display width is width, shows and highly call video memory for the picture pixel data of height in the picture that prestores.Afterwards; Suppose that the picture address side-play amount is offset; The corresponding demonstration that photo current address offset amount is calculated picture highly is height ', and the current display position ordinate of picture on display interface is sy ', and then the demonstration height height with picture in the attribute information that calls gives picture address side-play amount offset as initial value; And with 0 give in the attribute information picture the display position ordinate on the display interface be sy as initial value after, repeat in order:
sy′=offset+sy
height′=height-offset
offset=offset-1
Can make picture address side-play amount offset show that from picture height height is reduced to 0, the current display position ordinate sy ' of picture on display interface shows that from picture height height is reduced to 0 gradually; And the corresponding demonstration height height ' of picture is increased to picture gradually from 0 and shows height height; The continuous like this picture pixel data that will call video memory redraws the corresponding viewing area (x in display interface; Dy=0; Width, height '), thereby formed picture from be rolled to following display effect from the top.The picture that this display effect is similar to the display interface top pushs out toward display interface bottom, so the following part of picture at first is presented on the position of dy.
When preset special efficacy display mode is when bottom is rolled to the top and shows, the step of step S103 can may further comprise the steps again: give the ordinate one ordinate initial value of the position, corresponding viewing area on the display interface; One picture address side-play amount is set, and with the initial value of the demonstration of picture in the attribute information that calls height as this picture address side-play amount; With a pixel wide is that step-length reduces this picture address side-play amount; With photo current address offset amount and the summation of ordinate initial value, obtain the current display position ordinate of the position, corresponding viewing area on the display interface; It is poor that the demonstration of picture in the attribute information that calls height and photo current address offset amount are done, and the corresponding demonstration that obtains picture highly; Current display position ordinate according to the position, corresponding viewing area on the picture address side-play amount after reducing, the corresponding demonstration height that calculates and the display interface; The picture pixel data that constantly will call video memory redraws the corresponding viewing area in display interface, can obtain picture is rolled to the top from bottom special efficacy display effect.
For example, the display width of picture is width in the attribute information of supposing to call, and the demonstration of picture highly is height in the attribute information that calls; Position, corresponding viewing area ordinate on the display interface is y, and the current display position ordinate of the position, corresponding viewing area on the display interface is dy ', and the display position horizontal ordinate of picture on display interface is x; The display position ordinate of picture on display interface is y, that is to say, the attribute information of the corresponding picture of picture shows signal is expressed as (x; Y, width, height); Then according to this attribute information; Can x=0, y=0 is an origin coordinates, display width is width, shows and highly call video memory for the picture pixel data of height in the picture that prestores.Afterwards; Suppose that the picture address side-play amount is offset; The corresponding demonstration that photo current address offset amount is calculated picture highly is height '; Then give picture address side-play amount offset as initial value with the demonstration of picture in the attribute information that calls height height, and with 0 give in the attribute information picture the display position ordinate on the display interface be dy as initial value after, repeat in order:
dy′=offset+dy
height′=height-offset
offset=offset-1
Can make picture address side-play amount offset gradually from picture show that height height is reduced to 0, the current display position ordinate dy ' of position, corresponding viewing area on the display interface shows that from picture height height is reduced to 0; And the corresponding demonstration height height ' of picture is increased to picture gradually from 0 and shows height height, continuous like this picture pixel data (x, the y that will call video memory; Width; Height) redraw (x, dy, width in the corresponding viewing area of display interface; Height '), thus formed picture from be rolled to the display effect of top from bottom.This display effect is similar to the picture that display interface is following and pushs out toward the display interface top, so the top part of picture at first is presented on the position of dy.
The image display method of the embedded device that first embodiment of the invention provides is preset the special efficacy display mode; And after receiving the picture shows signal; With the special efficacy display mode that calls, show corresponding picture pixel data, with respect to prior art; The special efficacy that has realized embedded device shows, has improved display effect and appreciative value.
Because the image display method of the embedded device that provides of prior art is to adopt many caching technologys, and many caching technologys generally be the single threaded application program directly with the buffer memory mapping, to the picture of needs demonstration; Be mapped to respective cache; Thereby need between the polylith buffer memory, to switch back and forth, it is low to carry out efficient, has taken simultaneously in the embedded device originally with regard to few memory headroom; Further reduced the execution efficient of equipment integral; Be further head it off, the present invention has opened up a buffer area for the corresponding picture of picture shows signal, shows the flow process of the image display method of the embedded device that second embodiment of the invention provides like Fig. 2.
In step S201, receive the picture shows signal.
In step S202, in internal memory, open up a buffer area, the binary data of the corresponding picture of picture shows signal that prestores in the internal memory is read in the buffer area of opening up.
Particularly, the step of in internal memory, opening up a buffer area may further comprise the steps again: with the width of picture in the attribute information of the corresponding picture of picture shows signal that prestores in the internal memory with highly multiply each other, obtain the size of buffer area; According to the start address of the size of the buffer area that obtains and preset buffer area, in internal memory, open up a buffer area.
In step S203, with the binary data conversion imaging pixel data of reading in buffer area, and the pixel data after preservation is changed in buffer area and the attribute information of the corresponding picture of picture shows signal.This attribute information comprises the display width of the display position coordinate of corresponding picture on display interface, corresponding picture and shows height etc.
In step S204, call the attribute information and the special efficacy display mode thereof of the corresponding picture of picture shows signal that prestores, and according to the attribute information of the picture that calls, the picture pixel data that calls that prestore, corresponding size is to video memory.
Particularly; Step S204 is: call attribute information and special efficacy display mode thereof that store in the buffer area, the corresponding picture of picture shows signal; And according to the attribute information of the picture that calls, the picture pixel data that calls that store in the buffer area, corresponding size is to video memory.
In step S205, show the picture pixel data that calls video memory with the special efficacy display mode that calls.When the special efficacy display mode be respectively from left to right show, show from right to left, show from top to bottom, show from top to bottom, from the centre to the right and left, show, show, be rolled to both sides up and down from the left side from the centre the right show, be rolled to from the right the left side show, be rolled to from the top followingly show, when bottom is rolled to the top and shows; Step S205 concrete steps as above the first embodiment of the invention part is said, repeat no more at this.
Different with first embodiment of the invention, the image display method of the embedded device that second embodiment of the invention provides is also opened up a buffer area in internal memory on the basis of first embodiment of the invention; And with the corresponding picture-storage of picture shows signal in this buffer area; When showing corresponding picture, directly read the pixel data in the buffer area, and need not to adopt existing many caching technologys; Save memory headroom, improved the execution efficient of equipment integral.
In order further to improve the execution efficient of equipment integral, the image display method of the embedded device that second embodiment of the invention provides has adopted the design of two-wire journey.Particularly, step S204, step S205 are carried out by the control of first thread; Step S202, step S203 are carried out by the control of second thread; Picture shows signal among the step S201 specifically sends to second thread by first thread; And second thread is after execution in step S203; Return a message to first thread, this message that first thread returns according to this second thread, beginning execution in step S204.Design through the two-wire journey; Make second thread when opening up buffer area and the corresponding picture that reads in buffer area handled, first thread can be accomplished the demonstration of former frame picture, with respect to existing single-threaded display mode; Can carry out time showing faster, improve operational efficiency.
Fig. 3 shows the structure of the picture display system of the embedded device that first embodiment of the invention provides, and for the ease of explanation, only shows the part relevant with first embodiment of the invention.
The picture display system of the embedded device that first embodiment of the invention provides comprises: signal receiving module 11 is used to receive the picture shows signal; Memory module 14, the corresponding picture of picture shows signal that the signal receiving module 11 that is used to prestore receives, the attribute information of the corresponding picture of picture shows signal that signal receiving module 11 receives and the special efficacy display mode of the corresponding picture of picture shows signal that signal receiving module 11 receives; Calling module 12; Be used to call the attribute information and the special efficacy display mode thereof of the corresponding picture of picture shows signal that memory module is 14 that prestore, signal receiving module 11 receives; And according to the attribute information of the picture that calls, call that memory module is 14 that prestore, the picture pixel data of corresponding size is to video memory; Display module 13, the special efficacy display mode that is used for calling with calling module 12 shows the picture pixel data that calls video memory.Attribute information wherein comprises width and the height of the display position coordinate of corresponding picture on display interface, corresponding picture etc.
In the picture display system of the embedded device that first embodiment of the invention provides; When the special efficacy display mode be respectively from left to right show, show from right to left, show from top to bottom, show from top to bottom, from the centre to the right and left, show, show, be rolled to both sides up and down from the left side from the centre the right show, be rolled to from the right the left side show, be rolled to from the top followingly show, when bottom is rolled to the top and shows; The concrete processing procedure of the display module 13 as above image display method part of the embedded device that provides of first embodiment of the invention is said, repeats no more at this.
The picture display system of the embedded device that first embodiment of the invention provides is preset the special efficacy display mode; Display module 13 is after receiving the picture shows signal; With the special efficacy display mode that calls, show corresponding picture pixel data, with respect to prior art; The special efficacy that has realized embedded device shows, has improved display effect and appreciative value.
The embodiment of the invention also provides a kind of embedded device, comprises the as above picture display system of the described embedded device of first embodiment of the invention.This embedded device is an embedded type mobile communication terminal preferably.
Because the picture display system of the embedded device that provides of prior art is to adopt many caching technologys, and many caching technologys generally be the single threaded application program directly with the buffer memory mapping, to the picture of needs demonstration; Be mapped to respective cache; Thereby need between the polylith buffer memory, to switch back and forth, it is low to carry out efficient, has taken simultaneously in the embedded device originally with regard to few memory headroom; Further reduced the execution efficient of equipment integral; Be further head it off, the present invention has opened up a buffer area for the corresponding picture of picture shows signal, shows the structure of the picture display system of the embedded device that second embodiment of the invention provides like Fig. 4; For the ease of explanation, only show the part relevant with first embodiment of the invention.Wherein, memory module 14 is the internal memory of embedded device.
Particularly, the picture display system of the embedded device that second embodiment of the invention provides comprises: memory module 14, the mode with binary data of also the being used for picture that prestores; Signal receiving module 11 is used to receive the picture shows signal; Buffer area is created module 15, is used for opening up a buffer area at internal memory, and the binary data of the corresponding picture of picture shows signal that prestores in the memory module 14 is read in the buffer area of opening up; Pre-processing module 16; Be used for buffer area is created the binary data conversion imaging pixel data that module 15 is read in buffer area; And in buffer area, preserve pixel data and the attribute information of the corresponding picture of picture shows signal after the conversion, this attribute information comprises width and the height of the display position coordinate of corresponding picture on display interface, corresponding picture etc.; Calling module 12; Be used to call the attribute information and the special efficacy display mode thereof of the corresponding picture of picture shows signal that memory module is 14 that prestore, signal receiving module 11 receives; And according to the attribute information of the picture that calls, call that memory module is 14 that prestore, the picture pixel data of corresponding size is to video memory; Display module 13, the special efficacy display mode that is used for calling with calling module 12 shows the picture pixel data that calls video memory.
Wherein, Calling module 12 specifically is to call attribute information and the special efficacy display mode thereof that buffer area is created the corresponding picture of picture shows signal that store, that signal receiving module 11 receives in the buffer area that module 15 opens up; And, call buffer area and create in the buffer area that module 15 opens up picture pixel data that store, corresponding size to video memory according to the attribute information of the picture that calls.
Wherein, When the special efficacy display mode be respectively from left to right show, show from right to left, when showing from top to bottom; The concrete processing procedure of the display module 13 as above image display method part of the embedded device that provides of first embodiment of the invention is said, repeats no more at this.Buffer area is created process that module 15 opens up buffer area, and as above the image display method of the embedded device that provides of second embodiment of the invention is said, repeats no more at this.
The picture display system of the embedded device that second embodiment of the invention provides is on the basis of the picture display system of the embedded device that first embodiment of the invention provides; Also in internal memory, open up a buffer area; And with the corresponding picture-storage of picture shows signal in buffer area, after receiving the picture shows signal, with preset special efficacy display mode; Corresponding picture postponed to deposit read in the district and show; And need not to adopt existing many caching technologys, and saved memory headroom, improved the execution efficient of equipment integral.
In order further to improve the execution efficient of equipment integral, the picture display system of the embedded device that second embodiment of the invention provides has adopted the design of two-wire journey.Particularly, buffer area is created module 15 and is controlled by second thread with pre-processing module 16, to accomplish function corresponding; Calling module 12 is controlled by first thread with display module 13, to accomplish function corresponding.At this moment; The picture shows signal specifically sends to second thread by first thread; And second thread is after control pre-processing module 16 executes corresponding function; Return a message to first thread, first thread begins to control calling module 12 and carries out corresponding function according to this message that this second thread returns.Design through the two-wire journey; Make second thread when opening up buffer area and the corresponding picture that reads in buffer area handled, first thread can be accomplished the demonstration of former frame picture, with respect to existing single-threaded display mode; Can carry out time showing faster, improve operational efficiency.
The embodiment of the invention also provides a kind of embedded device, comprises the as above picture display system of the described embedded device of second embodiment of the invention.This embedded device is an embedded type mobile communication terminal preferably.
The image display method of the embedded device that the embodiment of the invention provides is preset the special efficacy display mode; And after receiving the picture shows signal; With the special efficacy display mode that calls, show corresponding picture pixel data, with respect to prior art; The special efficacy that has realized embedded device shows, has improved display effect and appreciative value.Have again; Different with existing many caching technologys, the image display method of the embedded device that the embodiment of the invention provides can also be opened up a buffer area in internal memory, with the corresponding picture-storage of picture shows signal in this buffer area; When showing corresponding picture; Directly read the pixel data in the buffer area, thereby saved memory headroom, improved the execution efficient of equipment integral.In addition; The image display method of the embedded device that the embodiment of the invention provides can also adopt the design of two-wire journey; Make second thread when opening up buffer area and the corresponding picture that reads in buffer area handled, first thread can be accomplished the demonstration of former frame picture, with respect to existing single-threaded display mode; Can carry out time showing quickly, improve operational efficiency.
One of ordinary skill in the art will appreciate that all or part of step that realizes in the foregoing description method is can control relevant hardware through program to accomplish; Described program can be in being stored in a computer read/write memory medium; Described storage medium is like ROM/RAM, disk, CD etc.
The above is merely preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of within spirit of the present invention and principle, being done, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.