Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
For prior art Problems existing, the image display method of the embedded device that the embodiment of the present invention provides presets Special display effect pattern, and after receiving picture display, with the Special display effect pattern 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 picture display.
In step s 102, call attribute information and the Special display effect pattern thereof of the corresponding picture of picture display prestored, and according to the attribute information of the picture called, call the picture pixels data of that prestore, corresponding size to video memory.This attribute information comprise the display position horizontal ordinate of corresponding picture on display interface, display position ordinate, corresponding picture display width and display height etc.
In step s 103, the picture pixels data of video memory are called with the Special display effect pattern called display.
In first embodiment of the invention, the Special display effect pattern prestored from left to right showing, showing from right to left, show from top to bottom, shows from top to bottom, shows from centre to the right and left, shows from centre to upper and lower both sides, is rolled to the right display from the left side, is rolled to left side display from the right, is rolled to following display from top or shows from being rolled to top below.Step S103 can comprise the following steps again: from initial pixel point in the process of pixel of getting full picture, utilize the iterative algorithm that Special display effect pattern is corresponding, constantly obtain the display position horizontal ordinate of picture on display interface, the display position ordinate of picture on display interface, the display width of picture and the display height of picture; According to the display width of the picture obtained and the display height of picture, obtain a rectangular area of picture as region to be shown; Along with the display width of picture and the display real-time update highly of picture, the picture pixels data of respective calls to video memory are redrawn in display interface.
Particularly, suppose that the coordinate axis of display interface is positive dirction to the right, then when preset Special display effect pattern be from left to right show time, the step of step S103 can comprise the following steps again: arrange a picture address side-play amount, and using the initial value of the display width of picture in the attribute information that calls as this picture address side-play amount; With a pixel wide for step-length reduces this picture address side-play amount; The display width of picture in the attribute information called and photo current address offset amount are done difference, obtains the corresponding display width of picture; According to the picture address side-play amount after reducing and the corresponding display width that calculates, constantly the picture pixels data calling video memory are redrawn in display interface, picture Special display effect effect from left to right can be obtained.
Such as, suppose that the display width of picture in the attribute information called is width, in the attribute information called, the display of picture is highly height, 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 display represents for (x, y, width, height), then according to this attribute information, can x=0, y=0 is origin coordinates, in the picture prestored, display width is width, display is highly that the picture pixels data call of height is to video memory.Afterwards, suppose that picture address side-play amount is offset, the corresponding display width of photo current address offset gauge nomogram sheet is width ', then give picture address side-play amount offset after initial value using the width width of picture in the attribute information called, repeat in turn:
width′=width-offset
offset=offset-1
Can make that picture address side-play amount offset is reduced to 0 from picture width width gradually, the corresponding display width width ' of picture is increased to picture width width gradually from 0, thus defines picture display effect from left to right.
When the Special display effect pattern preset be show from right to left time, the step of step S103 can comprise the following 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 using the initial value of the width of picture in the attribute information that calls as this picture address side-play amount; With a pixel wide for step-length reduces this picture address side-play amount; Photo current address offset amount and horizontal ordinate initial value are sued for peace, obtains the current display position horizontal ordinate of picture on display interface; The width of picture in the attribute information called and photo current address offset amount are done difference, obtains the corresponding display width of picture; According to picture address side-play amount, the corresponding display width calculated and the current display position horizontal ordinate of picture on display interface after reduction, constantly the picture pixels data calling video memory are redrawn in display interface, picture Special display effect effect from right to left can be obtained.
Such as, suppose that the display width of picture in the attribute information called is width, in the attribute information called, the display of picture is highly height, 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 display represents for (x, y, width, height), then according to this attribute information, can x=0, y=0 is origin coordinates, in the picture prestored, display width is width, display is highly that the picture pixels data call of height is to video memory.Afterwards, suppose that picture address side-play amount is offset, the corresponding display width of photo current address offset gauge nomogram sheet is width ', the current display position horizontal ordinate of picture on display interface is x ', then give picture address side-play amount offset as initial value using the display width width of picture in the attribute information called, and give 0 the display position horizontal ordinate of picture on display interface in attribute information be x after initial value, repeat in turn:
x′=offset+x
width′=width-offset
offset=offset-1
Can make that picture address side-play amount offset is reduced to 0 from picture display width width gradually, 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, thus defines picture display effect from right to left.
Suppose that the coordinate axis of display interface is positive dirction downwards, then when preset Special display effect pattern be show from top to bottom time, the step of step S103 can comprise the following steps again: arrange a picture address side-play amount, and using the initial value of the display of picture in the attribute information that calls height as this picture address side-play amount; With a pixel wide for step-length reduces this picture address side-play amount; The display of picture in the attribute information called height and photo current address offset amount are done difference, obtains the corresponding display height of picture; According to the picture address side-play amount after reducing and the corresponding display that calculates highly, constantly the picture pixels data calling video memory are redrawn in display interface, picture Special display effect effect from top to bottom can be obtained.
Suppose that the display width of picture in the attribute information called is width, in the attribute information called, the display of picture is highly height, 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 display represents for (x, y, width, height), then according to this attribute information, can x=0, y=0 is origin coordinates, and in the picture prestored, display width is that width, display are highly for the picture pixels data call of height is to video memory.Afterwards, suppose that picture address side-play amount is offset, the corresponding display of photo current address offset gauge nomogram sheet is highly height ', then by the display of picture in the attribute information that calls height height, give picture address side-play amount offset as after initial value, repeat in turn:
height′=height-offset
offset=offset-1
Can make that picture address side-play amount offset is reduced to 0 from picture width height gradually, the corresponding display height height ' of picture is increased to picture display height height gradually from 0, thus defines picture display effect from top to bottom.
When the Special display effect pattern preset be show from top to bottom time, the step of step S103 can comprise the following 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 using the initial value of the height of picture in the attribute information that calls as this picture address side-play amount; With a pixel wide for step-length reduces this picture address side-play amount; Photo current address offset amount and ordinate initial value are sued for peace, obtains the current display position ordinate of picture on display interface; The height of picture in the attribute information called and photo current address offset amount are done difference, obtains the corresponding display height of picture; According to the picture address side-play amount after reduction, the corresponding display height calculated and the current display position ordinate of picture on display interface, constantly the picture pixels data calling video memory are redrawn in display interface, picture Special display effect effect from top to bottom can be obtained.
Such as, suppose that the display width of picture in the attribute information called is width, in the attribute information called, the display of picture is highly height, 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 display represents for (x, y, width, height), then according to this attribute information, can x=0, y=0 is origin coordinates, in the picture prestored, display width is width, display is highly that the picture pixels data call of height is to video memory.Afterwards, suppose that picture address side-play amount is offset, the corresponding display of photo current address offset gauge nomogram sheet is highly height ', the current display position ordinate of picture on display interface is y ', then give picture address side-play amount offset as initial value using the display height height of picture in the attribute information called, and give 0 the display position ordinate of picture on display interface in attribute information be y after initial value, repeat in turn:
y′=offset+y
height′=height-offset
offset=offset-1
Can make that picture address side-play amount offset is reduced to 0 from picture display height height gradually, the corresponding display height height ' of picture is increased to picture display highly height gradually from 0, the current display position ordinate y ' of picture on display interface is reduced to 0 gradually, thus defines picture display effect from top to bottom.
When the Special display effect pattern preset be show from centre to the right and left time, the step of step S103 can comprise the following 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 using the initial value of the width of picture in the attribute information that calls as this picture address side-play amount; With a pixel wide for step-length reduces this picture address side-play amount; The half of photo current address offset amount and horizontal ordinate initial value are sued for peace, obtains the current display position horizontal ordinate of picture on display interface; The width of picture in the attribute information called and photo current address offset amount are done difference, obtains the corresponding display width of picture; According to picture address side-play amount, the corresponding display width calculated and the current display position horizontal ordinate of picture on display interface after reduction, constantly the picture pixels data calling video memory are redrawn in display interface, the Special display effect effect of picture from centre to the right and left can be obtained.
Such as, suppose that the display width of picture in the attribute information called is width, in the attribute information called, the display of picture is highly height, 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 display represents for (x, y, width, height), then according to this attribute information, can x=0, y=0 is origin coordinates, in the picture prestored, display width is width, display is highly that the picture pixels data call of height is to video memory.Afterwards, suppose that picture address side-play amount is offset, the corresponding display width of photo current address offset gauge nomogram sheet is width ', the current display position horizontal ordinate of picture on display interface is x ', then give picture address side-play amount offset as initial value using the display width width of picture in the attribute information called, and give 0 the display position horizontal ordinate of picture on display interface in attribute information be x after initial value, repeat in turn:
x′=offset/2+x
width′=width-offset
offset=offset-1
Can make that picture address side-play amount offset is reduced to 0 from picture display width width gradually, 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, thus defines picture from the display effect from centre to the right and left.
When the Special display effect pattern preset is from centre to upper and lower both sides display, the step of step S103 can comprise the following steps again: give the display position ordinate one ordinate initial value of picture on display interface in the attribute information called; One picture address side-play amount is set, and using the initial value of the height of picture in the attribute information that calls as this picture address side-play amount; With a pixel wide for step-length reduces this picture address side-play amount; The half of photo current address offset amount and ordinate initial value are sued for peace, obtains the current display position ordinate of picture on display interface; The height of picture in the attribute information called and photo current address offset amount are done difference, obtains the corresponding display height of picture; According to the picture address side-play amount after reduction, the corresponding display height calculated and the current display position ordinate of picture on display interface, constantly the picture pixels data calling video memory are redrawn in display interface, can obtain picture from centre the Special display effect effect to upper and lower both sides.
Such as, suppose that the display width of picture in the attribute information called is width, in the attribute information called, the display of picture is highly height, 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 display represents for (x, y, width, height), then according to this attribute information, can x=0, y=0 is origin coordinates, in the picture prestored, display width is width, display is highly that the picture pixels data call of height is to video memory.Afterwards, suppose that picture address side-play amount is offset, the corresponding display of photo current address offset gauge nomogram sheet is highly height ', the current display position ordinate of picture on display interface is y ', then give picture address side-play amount offset as initial value using the display height height of picture in the attribute information called, and give 0 the display position ordinate of picture on display interface in attribute information be y after initial value, repeat in turn:
y′=offset/2+y
height′=height-offset
offset=offset-1
Can make that picture address side-play amount offset is reduced to 0 from picture display height height gradually, the corresponding display height height ' of picture is increased to picture display highly height gradually from 0, the current display position ordinate y ' of picture on display interface is reduced to 0 gradually from the intermediate altitude of picture, thus defines picture from from centre to the display effect on upper and lower both sides.
When the Special display effect pattern preset is that when being rolled to the right display from the left side, the step of step S103 can comprise the following steps again: give the display position horizontal ordinate one horizontal ordinate initial value of picture on display interface in the attribute information called; One picture address side-play amount is set, and using the initial value of the display width of picture in the attribute information that calls as this picture address side-play amount; With a pixel wide for step-length reduces this picture address side-play amount; Photo current address offset amount and horizontal ordinate initial value are sued for peace, obtains the current display position horizontal ordinate of picture on display interface; The display width of picture in the attribute information called and photo current address offset amount are done difference, obtains the corresponding display width of picture; According to picture address side-play amount, the corresponding display width calculated and the current display position horizontal ordinate of picture on display interface after reduction, constantly the picture pixels data calling video memory are redrawn the corresponding viewing area in display interface, the attribute information of this corresponding viewing area can be expressed as (dx=0, y, width ', height), picture is rolled to the right Special display effect effect from the left side can be obtained.
Such as, suppose that the display width of picture in the attribute information called is width, in the attribute information called, the display of picture is highly height, 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 display represents for (sx, y, width, height), then according to this attribute information, can sx=0, y=0 is origin coordinates, in the picture prestored, display width is width, display is highly that the picture pixels data call of height is to video memory.Afterwards, suppose that picture address side-play amount is offset, the corresponding display width of photo current address offset gauge nomogram sheet is width ', the current display position horizontal ordinate of picture on display interface is sx ', then give picture address side-play amount offset as initial value using the display width width of picture in the attribute information called, and give 0 the display position horizontal ordinate of picture on display interface in attribute information be sx after initial value, repeat in turn:
sx′=offset+sx
width′=width-offset
offset=offset-1
Can make that picture address side-play amount offset is reduced to 0 from picture display width width gradually, the current display position horizontal ordinate sx ' of picture on display interface is 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 so corresponding viewing area (dx=0 picture pixels data calling video memory redrawn in display interface, y, width ', height), thus define picture from be rolled to from the left side the right display effect.This display effect is similar to and is pushed out on the right of display interface by the picture on the display interface left side, and therefore first the right-hand component of picture is presented on the position of dx.
When the Special display effect pattern preset is that when being rolled to left side display from the right, the step of step S103 can comprise the following steps again: give position, the corresponding viewing area horizontal ordinate one horizontal ordinate initial value on display interface; One picture address side-play amount is set, and using the initial value of the display width of picture in the attribute information that calls as this picture address side-play amount; With a pixel wide for step-length reduces this picture address side-play amount; Photo current address offset amount and horizontal ordinate initial value are sued for peace, obtains the current display position horizontal ordinate of the position, corresponding viewing area on display interface; The display width of picture in the attribute information called and photo current address offset amount are done difference, obtains the corresponding display width of picture; According to the current display position horizontal ordinate of the position, corresponding viewing area on picture address side-play amount, the corresponding display width calculated and the display interface after reduction, constantly the picture pixels data calling video memory are redrawn the corresponding viewing area in display interface, picture is rolled to left side Special display effect effect from the right can be obtained.
Such as, suppose that the display width of picture in the attribute information called is width, in the attribute information called, the display of picture is highly height, position, corresponding viewing area horizontal ordinate on display interface is dx, the current display position horizontal ordinate of the position, corresponding viewing area on display interface is dx ', 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 display represents for (sx, y, width, height), then according to this attribute information, can sx=0, y=0 is origin coordinates, in the picture prestored, display width is width, display is highly that the picture pixels data call of height is to video memory.Afterwards, suppose that picture address side-play amount is offset, the corresponding display width of photo current address offset gauge nomogram sheet is width ', then give picture address side-play amount offset as initial value using the display width width of picture in the attribute information called, and give 0 the display position horizontal ordinate of picture on display interface in attribute information be dx after initial value, repeat in turn:
dx′=offset+dx
width′=width-offset
offset=offset-1
Picture address side-play amount offset can be made to be reduced to 0 from picture display width width gradually, the current display position horizontal ordinate of the position, corresponding viewing area on 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 gradually from 0, constantly like this picture pixels data (sx=0 of video memory will be called, y, width, height) the corresponding viewing area (dx in display interface is redrawn, y, width ', height), thus define picture from the display effect being rolled to the left side from the right.The picture that this display effect is similar on the right of by display interface pushs out toward the display interface left side, and therefore first the left-hand component of picture be presented on the position of dx.
When the Special display effect pattern preset be rolled to from top show below time, the step of step S103 can comprise the following 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 using the initial value of the display width of picture in the attribute information that calls as this picture address side-play amount; With a pixel wide for step-length reduces this picture address side-play amount; Photo current address offset amount and ordinate initial value are sued for peace, obtains the current display position ordinate of picture on display interface; The display of picture in the attribute information called height and photo current address offset amount are done difference, obtains the corresponding display height of picture; According to the picture address side-play amount after reduction, the corresponding display height calculated and the current display position ordinate of picture on display interface, constantly the picture pixels data calling video memory are redrawn the corresponding viewing area in display interface, the attribute information of this corresponding viewing area can be expressed as (x, dy=0, width, height '), picture can be obtained and be rolled to following Special display effect effect from top.
Such as, suppose that the display width of picture in the attribute information called is width, in the attribute information called, the display of picture is highly height, the display position horizontal ordinate of picture on display interface is x, the display position ordinate of picture on display interface is sy, that is to say, the attribute information of the corresponding picture of picture display represents for (x, sy, width, height), then according to this attribute information, can x=0, sy=0 is origin coordinates, in the picture prestored, display width is width, display is highly that the picture pixels data call of height is to video memory.Afterwards, suppose that picture address side-play amount is offset, the corresponding display of photo current address offset gauge nomogram sheet is highly height ', the current display position ordinate of picture on display interface is sy ', then give picture address side-play amount offset as initial value using the display height height of picture in the attribute information called, and give 0 the display position ordinate of picture on display interface in attribute information be sy after initial value, repeat in turn:
sy′=offset+sy
height′=height-offset
offset=offset-1
Can make that picture address side-play amount offset is reduced to 0 from picture display height height gradually, the current display position ordinate sy ' of picture on display interface is reduced to 0 from picture display height height, and the corresponding display height height ' of picture is increased to picture display height height gradually from 0, the continuous so corresponding viewing area (x picture pixels data calling video memory redrawn in display interface, dy=0, width, height '), thus define picture and be rolled to following display effect from from top.This display effect is similar to and is pushed out below toward display interface by the picture of display interface top, and therefore first the lower portion of picture is presented on the position of dy.
When the Special display effect pattern preset is that the step of step S103 can comprise the following steps again: give position, the corresponding viewing area ordinate one ordinate initial value on display interface from when being rolled to top display below; One picture address side-play amount is set, and using the initial value of the display of picture in the attribute information that calls height as this picture address side-play amount; With a pixel wide for step-length reduces this picture address side-play amount; Photo current address offset amount and ordinate initial value are sued for peace, obtains the current display position ordinate of the position, corresponding viewing area on display interface; The display of picture in the attribute information called height and photo current address offset amount are done difference, obtains the corresponding display height of picture; According to the current display position ordinate of the position, corresponding viewing area on the picture address side-play amount after reduction, the corresponding display height calculated and display interface, constantly the picture pixels data calling video memory are redrawn the corresponding viewing area in display interface, picture can be obtained from the Special display effect effect being rolled to top below.
Such as, suppose that the display width of picture in the attribute information called is width, in the attribute information called, the display of picture is highly height, position, corresponding viewing area ordinate on display interface is y, the current display position ordinate of the position, corresponding viewing area on display interface is dy ', 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 display represents for (x, y, width, height), then according to this attribute information, can x=0, y=0 is origin coordinates, in the picture prestored, display width is width, display is highly that the picture pixels data call of height is to video memory.Afterwards, suppose that picture address side-play amount is offset, the corresponding display of photo current address offset gauge nomogram sheet is highly height ', then give picture address side-play amount offset as initial value using the display height height of picture in the attribute information called, and give 0 the display position ordinate of picture on display interface in attribute information be dy after initial value, repeat in turn:
dy′=offset+dy
height′=height-offset
offset=offset-1
Picture address side-play amount offset can be made to be reduced to 0 from picture display height height gradually, the current display position ordinate dy ' of the position, corresponding viewing area on display interface is reduced to 0 from picture display height height, and the corresponding display height height ' of picture is increased to picture display height height gradually from 0, constantly like this picture pixels data (x of video memory will be called, y, width, height) the corresponding viewing area (x in display interface is redrawn, dy, width, height '), thus define picture from from the display effect being rolled to top below.This display effect is similar to and is pushed out toward display interface top by picture following for display interface, and therefore first the top part of picture is presented on the position of dy.
The image display method of the embedded device that first embodiment of the invention provides presets Special display effect pattern, and after receiving picture display, with the Special display effect pattern called, show corresponding picture pixels data, relative to prior art, achieve the Special display effect of embedded device, improve display effect and appreciative value.
The image display method of the embedded device provided due to prior art adopts multi-buffer technique, and multi-buffer technique be generally single threaded application program directly and buffer memory mapping, for the picture needing display, be mapped to respective cache, thus need to switch between polylith buffer memory back and forth, execution efficiency is low, occupy this just few memory headroom in embedded device simultaneously, reduce further the execution efficiency of Whole Equipment, for further head it off, the present invention is that a buffer area opened up by the corresponding picture of picture display, the flow process of the image display method of embedded device that theres is provided of second embodiment of the invention as shown in Figure 2.
In step s 201, picture display is received.
In step S202, in internal memory, open up a buffer area, the binary data of the corresponding picture of picture display prestored in internal memory is read in the buffer area opened up.
Particularly, the step of opening up a buffer area in internal memory comprises the following steps again: by the width of picture in the attribute information of the corresponding picture of picture display prestored in internal memory be highly multiplied, obtain the size of buffer area; According to the size of the buffer area obtained and the start address of default buffer area, in internal memory, open up a buffer area.
In step S203, convert the binary data reading in buffer area to pixel data, and the attribute information of the pixel data preserved in buffer area after conversion and the corresponding picture of picture display.This attribute information comprise the display position coordinate of corresponding picture on display interface, corresponding picture display width and display height etc.
In step S204, call attribute information and the Special display effect pattern thereof of the corresponding picture of picture display prestored, and according to the attribute information of the picture called, call the picture pixels data of that prestore, corresponding size to video memory.
Particularly, step S204 is: call attribute information that store in buffer area, the corresponding picture of picture display and Special display effect pattern thereof, and according to the attribute information of the picture called, call the picture pixels data of that store in buffer area, corresponding size to video memory.
Call the picture pixels data of video memory with the Special display effect pattern called display in step S205.When Special display effect pattern is from left to right show, show from right to left, show from top to bottom, show from top to bottom, show from centre to the right and left, show from centre to upper and lower both sides, be rolled to the right display from the left side, be rolled to left side display from the right, be rolled to following display from top, from when being rolled to top display below respectively, step S205 concrete steps as above described in first embodiment of the invention part, do not repeat them here.
Different from first embodiment of the invention, the image display method of the embedded device that second embodiment of the invention provides is on the basis of first embodiment of the invention, also in internal memory, open up a buffer area, and by corresponding for picture display picture-storage in this buffer area, when showing corresponding picture, directly read the pixel data in buffer area, and without the need to adopting existing multi-buffer technique, save memory headroom, improve the execution efficiency of Whole Equipment.
In order to improve the execution efficiency of Whole Equipment further, the image display method of the embedded device that second embodiment of the invention provides have employed two threaded design.Particularly, step S204, step S205 are performed by First Line process control; Step S202, step S203 are performed by the second Thread control; Picture display in step S201 specifically sends to the second thread by the first thread, and the second thread is after execution step S203, return a message to the first thread, this message that the first thread returns according to this second thread, start to perform step S204.By the design of two-wire journey, the second thread is made to open up buffer area and while processing the corresponding picture reading in buffer area, the first thread can complete the display of former frame picture, relative to existing single-threaded display mode, time showing can be carried out 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 convenience of explanation, illustrate only the part relevant to 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, for receiving picture display; Memory module 14, the Special display effect pattern of the corresponding picture of picture display that the attribute information of the corresponding picture of picture display that the corresponding picture of picture display received for the signal receiving module 11 that prestores, signal receiving module 11 receive and signal receiving module 11 receive; Calling module 12, for calling attribute information and the Special display effect pattern thereof of the corresponding picture of picture display that memory module 14 prestores, signal receiving module 11 receives, and according to the attribute information of the picture called, call the picture pixels data of that memory module 14 prestores, corresponding size to video memory; Display module 13, the picture pixels data of video memory are called in the Special display effect pattern display for calling with calling module 12.Attribute information wherein comprise the display position coordinate of corresponding picture on display interface, corresponding picture width and height etc.
In the picture display system of the embedded device that first embodiment of the invention provides, when Special display effect pattern is from left to right show respectively, show from right to left, show from top to bottom, show from top to bottom, show from centre to the right and left, show from centre to upper and lower both sides, the right display is rolled to from the left side, left side display is rolled to from the right, following display is rolled to from top, from when being rolled to top display below, described in the concrete processing procedure of the display module 13 image display method part of embedded device that as above first embodiment of the invention provides, do not repeat them here.
The picture display system of the embedded device that first embodiment of the invention provides presets Special display effect pattern, display module 13 is after receiving picture display, with the Special display effect pattern called, show corresponding picture pixels data, relative to prior art, achieve the Special display effect of embedded device, improve display effect and appreciative value.
The embodiment of the present invention additionally provides a kind of embedded device, comprises the picture display system of an embedded device as above described in first embodiment of the invention.This embedded device is preferably an embedded type mobile communication terminal.
The picture display system of the embedded device provided due to prior art adopts multi-buffer technique, and multi-buffer technique be generally single threaded application program directly and buffer memory mapping, for the picture needing display, be mapped to respective cache, thus need to switch between polylith buffer memory back and forth, execution efficiency is low, occupy this just few memory headroom in embedded device simultaneously, reduce further the execution efficiency of Whole Equipment, for further head it off, the present invention is that a buffer area opened up by the corresponding picture of picture display, the structure of the picture display system of the embedded device that second embodiment of the invention provides is shown as Fig. 4, for convenience of explanation, illustrate only the part relevant to 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, also for the picture that prestores in the mode of binary data; Signal receiving module 11, for receiving picture display; Buffer area creation module 15, for opening up a buffer area in internal memory, reads in the buffer area opened up by the binary data of the corresponding picture of picture display prestored in memory module 14; Pretreatment module 16, binary data for buffer area creation module 15 being read in buffer area converts pixel data to, and the pixel data preserved in buffer area after conversion and the attribute information of the corresponding picture of picture display, this attribute information comprises the display position coordinate of corresponding picture on display interface, the width of corresponding picture and height etc.; Calling module 12, for calling attribute information and the Special display effect pattern thereof of the corresponding picture of picture display that memory module 14 prestores, signal receiving module 11 receives, and according to the attribute information of the picture called, call the picture pixels data of that memory module 14 prestores, corresponding size to video memory; Display module 13, the picture pixels data of video memory are called in the Special display effect pattern display for calling with calling module 12.
Wherein, calling module 12 specifically calls attribute information and the Special display effect pattern thereof of that store in the buffer area that buffer area creation module 15 opens up, that signal receiving module 11 the receives corresponding picture of picture display, and according to the attribute information of the picture called, call picture pixels data that store in the buffer area that buffer area creation module 15 opens up, corresponding size to video memory.
Wherein, when Special display effect pattern be respectively from left to right show, from right to left show, show from top to bottom time, described in the concrete processing procedure of the display module 13 image display method part of embedded device that as above first embodiment of the invention provides, do not repeat them here.Described in the process image display method of embedded device that as above second embodiment of the invention provides that buffer area creation module 15 opens up buffer area, do not repeat them here.
On the basis of the picture display system of the embedded device that the picture display system of the embedded device that second embodiment of the invention provides provides in first embodiment of the invention, also in internal memory, open up a buffer area, and by corresponding for picture display picture-storage in buffer area, after receiving picture display, with the Special display effect pattern preset, corresponding picture is read from buffer area and shows, and without the need to adopting existing multi-buffer technique, save memory headroom, improve the execution efficiency of Whole Equipment.
In order to improve the execution efficiency of Whole Equipment further, the picture display system of the embedded device that second embodiment of the invention provides have employed two threaded design.Particularly, buffer area creation module 15 and pretreatment module 16 by the second Thread control, to complete corresponding function; Calling module 12 and display module 13 by First Line process control, to complete corresponding function.Now, picture display specifically sends to second thread by the first thread, and the second thread is after control pretreatment module 16 executes corresponding function, a message is returned to the first thread, this message that first thread returns according to this second thread, starts to control calling module 12 and performs corresponding function.By the design of two-wire journey, the second thread is made to open up buffer area and while processing the corresponding picture reading in buffer area, the first thread can complete the display of former frame picture, relative to existing single-threaded display mode, time showing can be carried out faster, improve operational efficiency.
The embodiment of the present invention additionally provides a kind of embedded device, comprises the picture display system of the embedded device as above described in second embodiment of the invention.This embedded device is preferably an embedded type mobile communication terminal.
The image display method of the embedded device that the embodiment of the present invention provides presets Special display effect pattern, and after receiving picture display, with the Special display effect pattern called, show corresponding picture pixels data, relative to prior art, achieve the Special display effect of embedded device, improve display effect and appreciative value.Have again, different from existing multi-buffer technique, the image display method of the embedded device that the embodiment of the present invention provides can also open up a buffer area in internal memory, by corresponding for picture display picture-storage in this buffer area, when showing corresponding picture, pixel data in direct reading buffer area, thus save memory headroom, improve the execution efficiency of Whole Equipment.In addition, the image display method of the embedded device that the embodiment of the present invention provides can also adopt two threaded design, the second thread is made to open up buffer area and while processing the corresponding picture reading in buffer area, first thread can complete the display of former frame picture, relative to existing single-threaded display mode, time showing can be carried out quickly, improve operational efficiency.
One of ordinary skill in the art will appreciate that all or part of step realized in above-described embodiment method is that the hardware that can control to be correlated with by program completes, described program can be stored in a computer read/write memory medium, described storage medium, as ROM/RAM, disk, CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.