CN102253818A - Background picture display method and device - Google Patents

Background picture display method and device Download PDF

Info

Publication number
CN102253818A
CN102253818A CN2011101753758A CN201110175375A CN102253818A CN 102253818 A CN102253818 A CN 102253818A CN 2011101753758 A CN2011101753758 A CN 2011101753758A CN 201110175375 A CN201110175375 A CN 201110175375A CN 102253818 A CN102253818 A CN 102253818A
Authority
CN
China
Prior art keywords
unit
picture
subregion
row
unit area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2011101753758A
Other languages
Chinese (zh)
Inventor
朱吕亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Ipanel TV Inc
Original Assignee
Shenzhen Ipanel TV Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Ipanel TV Inc filed Critical Shenzhen Ipanel TV Inc
Priority to CN2011101753758A priority Critical patent/CN102253818A/en
Publication of CN102253818A publication Critical patent/CN102253818A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Controls And Circuits For Display Device (AREA)

Abstract

The embodiment of the invention discloses a background picture display method and a background picture display device. The method comprises the following steps of: decoding a unit picture to obtain the decoded pixel data; dividing a target display area of a background picture into a plurality of unit areas according to the size of the unit picture, and transversely dividing each unit area into a plurality of rows of subareas; for the plurality of unit areas, increasingly copying corresponding pixel data in the horizontal direction according to the power of two, and filling in each row of subareas; and copying the pixel data in the whole row of subareas in the vertical direction to display the background picture. When the background picture is displayed, because the unit pictures are not needed to be tiled according to line pixels of the unit pictures, the frequency of filling the pixel data by a call interface is reduced; therefore, the display speed of the background picture is improved.

Description

A kind of display packing of background picture and device
Technical field
The application relates to technical field of image processing, particularly relates to a kind of display packing and device of background picture.
Background technology
When showing the background picture of being made up of the unit picture, with the mode display unit picture of tiling, the unit picture of some tilings is formed complete background picture usually.When carrying out the demonstration of background picture,, therefore can save picture-storage space, perhaps network latency because the unit picture is less with tiling unit picture.
When prior art tiles with the demonstration of realization background picture to the unit picture, system can provide special picture module that the unit picture is decoded, and provide the interface that shows according to unit picture original size size, when tiling unit picture, application module calls this interface, circulation display unit picture, big or small consistent up to the picture that shows and target background zone.The width of supposing the unit picture is image_w, highly is image_h, and the horizontal ordinate of the upper left corner of hypothetical target background area on screen is x, and ordinate is y, and the width in target background zone is w, highly is h.The target background that then the unit picture tiled can be carried out following flow process during the zone: at first, computing unit picture cycle index count_x=w/image_w in the horizontal direction, and the computing unit picture is at the cycle index count_y=h/image_h of vertical direction, the quantity of the unit picture that then tiles in the target background zone is the product of count_x and count_y, and then the number of times that the image display interface is called is the product of count_x and count_y; Secondly, for each unit picture, its capable pixel according to the component units picture in the tiling process tiles, and promptly is the unit picture of 10px (pixel) for an image_w and image_h, then needs to call image_h internal memory and duplicates interface.To sum up, when finishing a unit picture and tile in the target background zone, the total degree that image display interface that need call and internal memory duplicate interface is count_x * count_y * image_h.
The inventor finds that in the research process to prior art in finishing the process of sub-cell picture tiling with the demonstration of realization background picture, the total degree that needs calling interface is count_x * count_y * image_h.Hence one can see that, when finishing the background picture demonstration in the prior art, need frequent calling graph duplicate interface as display interface and internal memory, so calculated amount is bigger, causes the background picture display speed slower.
Summary of the invention
The embodiment of the present application provides a kind of display packing and device of background picture, when finishing background picture and show by tiling unit picture to solve in the prior art, needs frequent calling interface, causes the slower problem of background picture display speed.
In order to solve the problems of the technologies described above, the embodiment of the present application discloses following technical scheme:
A kind of display packing of background picture comprises:
The decoding unit picture obtains decoded pixel data;
The target viewing area of background picture is divided into some unit areas according to the size of described unit picture, and each described unit area laterally is divided into the several rows subregion;
For described some unit areas, the pixel data of correspondence is increased progressively according to two inferior power duplicate in the horizontal direction, be filled in each row subregion;
In the vertical direction carries out duplicating of pixel data in the full line subregion, finishes the demonstration of background picture.
Describedly background picture target viewing area be divided into some unit areas according to the size of unit picture comprise:
Obtain the width parameter and the height parameter of described unit picture, and the width parameter and the height parameter of the target viewing area of described background picture;
Calculate first quotient of the width parameter of described target viewing area, and the height parameter of described target viewing area is divided by second quotient of the height parameter of described unit picture divided by the width parameter of described unit picture;
Described target viewing area is divided according to described first quotient in the horizontal direction, and in the vertical direction is divided according to described second quotient, generates the consistent unit area of product quantity with described first quotient and described second quotient.
Describedly each unit area laterally be divided into the several rows subregion comprise:
Obtain the height parameter of described unit picture, the value of described height parameter is consistent with the pixel number of described unit picture on short transverse;
Each unit area laterally is divided into the capable subregion consistent with described pixel number.
The described in the horizontal direction pixel data of correspondence being increased progressively according to two inferior power duplicated, and is filled in each row subregion to comprise:
For the capable subregion of N of row unit area, first in described some unit areas, the capable pixel data of the decoded N of unit picture is filled into the capable subregion of N of first unit area in the described first row unit area;
And the capable pixel data of described N increased progressively to duplicate according to two inferior power be filled in the capable subregion of N that removes the residue unit area in first module zone in the described first row unit area, the span of described N is the number of the 1 capable subregion of dividing to described each unit area.
Described in the vertical direction carries out that duplicating of pixel data comprises in the full line subregion:
The capable subregion of N in other each row unit area of removing the first row unit area in described some unit areas carries out full line according to the pixel data of having filled in the capable unit area of N in the described first row unit area and duplicates.
A kind of display device of background picture comprises:
Decoding unit is used for the decoding unit picture and obtains decoded pixel data;
Division unit is used for the target viewing area of background picture is divided into some unit areas according to the size of described unit picture, and each described unit area laterally is divided into the several rows subregion;
Horizontal filler cells is used for for described some unit areas, the pixel data of correspondence is increased progressively according to two inferior power duplicate in the horizontal direction, is filled in each row subregion;
Vertically filler cells is used in the vertical direction and carries out duplicating of full line subregion pixel data, finishes the demonstration of background picture.
Described division unit comprises the unit area division unit, and this unit area division unit comprises:
First parameter acquiring unit is used to obtain the width parameter and the height parameter of described unit picture and the width parameter and the height parameter of the target viewing area of described background picture;
Parameter calculation unit be used to calculate first quotient of the width parameter of described target viewing area divided by the width parameter of described unit picture, and the height parameter of described target viewing area is divided by second quotient of the height parameter of described unit picture;
Divide generation unit, be used for described target viewing area is divided according to described first quotient in the horizontal direction, in the vertical direction is divided according to described second quotient, generates the consistent unit area of product quantity with described first quotient and described second quotient.
Described division unit comprises capable subregion division unit, and this row subregion division unit comprises:
Second parameter acquiring unit is used to obtain the height parameter of described unit picture, and the value of described height parameter is consistent with the pixel number of described unit picture on short transverse;
Lateral rows subregion division unit is used for each unit area laterally is divided into the capable subregion consistent with described pixel number.
Described horizontal filler cells comprises:
Row subregion data filler cells, be used for the capable subregion of N, the capable pixel data of the decoded N of unit picture be filled into the capable subregion of N of first unit area in the described first row unit area for the first row unit area of described some unit areas;
Increase progressively and duplicate filler cells, be used for the capable pixel data of described N increased progressively according to two inferior power and duplicate in the capable subregion of N that is filled into the residue unit area of removing the described first row first module zone, unit area, the span of described N is the number of the 1 capable subregion of dividing to described each unit area.
Described vertical filler cells, specifically be used for removing the capable subregion of N in other each row unit area of the first row unit area, carry out full line according to the pixel data of having filled in the capable unit area of N in the described first row unit area and duplicate for described some unit areas.
As can be seen from the above-described embodiment, the decoding unit picture obtains decoded pixel data in the embodiment of the present application, the target viewing area of background picture is divided into some unit areas according to the size of unit picture, and each unit area laterally is divided into the several rows subregion, for some unit areas, in the horizontal direction the pixel data of correspondence is increased progressively according to two inferior power and duplicate, be filled in each row subregion, in the vertical direction carries out duplicating of pixel data in the full line subregion, finishes the demonstration of background picture.When application the embodiment of the present application is carried out the background picture demonstration, owing to need not each unit picture is tiled according to its row pixel, duplicate but increase progressively increasing progressively of pixel data according to two inferior power in the horizontal direction, vertical direction carries out duplicating of pixel data according to full line, therefore reduce calling interface and carried out the number of times that pixel data is filled, calculated amount reduces, and has improved the display speed of background picture thus.With the width of unit picture with highly be 10px, the width in target background zone and highly to be 200px be example, the total degree that needs calling interface in the prior art is (200 ÷ 10) * (200 ÷ 10) * 10=4000 time, and the number of times of calling interface only is in the embodiment of the present application
Figure BDA0000071566620000041
Inferior, hence one can see that, and compared with prior art, the application's background picture shows that embodiment can greatly reduce the call number of docking port.
Description of drawings
In order to be illustrated more clearly in the embodiment of the present application or technical scheme of the prior art, to do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below, apparently, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the first embodiment process flow diagram of the display packing of the application's background picture;
Fig. 2 is the second embodiment process flow diagram of the display packing of the application's background picture;
Fig. 3 A is the synoptic diagram that a kind of unit picture is shown to the target viewing area;
Fig. 3 B is for being divided into the synoptic diagram of capable subregion to row unit area, first in the target viewing area among Fig. 3 A;
Fig. 3 C carries out the synoptic diagram that pixel data is filled for the first row subregion to the first row unit area, target viewing area;
Fig. 4 is the embodiment block diagram of the display device of the application's background picture.
Embodiment
The following embodiment of the present invention provides a kind of display packing and device of background picture.These embodiment duplicate by carrying out increasing progressively of pixel data according to two inferior power in the horizontal direction, vertical direction carries out duplicating of pixel data according to full line, therefore reduce calling interface and carried out the number of times that pixel data is filled, improved the display speed of background picture.
In order to make those skilled in the art person understand technical scheme in the embodiment of the invention better, and the above-mentioned purpose of the embodiment of the invention, feature and advantage can be become apparent more, below in conjunction with accompanying drawing technical scheme in the embodiment of the invention is described in further detail.
Referring to Fig. 1, be the first embodiment process flow diagram of the display packing of the application's background picture:
Step 101: the decoding unit picture obtains decoded pixel data.
Step 102: the target viewing area of background picture is divided into some unit areas according to the size of unit picture, and each unit area laterally is divided into the several rows subregion.
Concrete, when the division unit zone, the width parameter of acquiring unit picture and height parameter, and the width parameter and the height parameter of the target viewing area of background picture, calculate first quotient of the width parameter of target viewing area, and the height parameter of target viewing area is divided by second quotient of the height parameter of unit picture divided by the width parameter of unit picture; The target viewing area is divided according to first quotient in the horizontal direction, and in the vertical direction is divided according to second quotient, generates the consistent unit area of product quantity with first quotient and second quotient.
Concrete, when dividing the row subregion, the height parameter of acquiring unit picture, the value of height parameter is consistent with the pixel number of unit picture on short transverse, and each unit area laterally is divided into the capable subregion consistent with the pixel number.
Step 103: for some unit areas, the pixel data of correspondence is increased progressively according to two inferior power duplicate in the horizontal direction, be filled in each row subregion.
Concrete, the capable subregion of N for row unit area, first in some unit areas, the capable pixel data of the decoded N of unit picture is filled into the capable subregion of N of first unit area in the described first row unit area, the capable pixel data of N increased progressively to duplicate according to two inferior power be filled in the capable subregion of N that removes the residue unit area in first module zone in the first row unit area, wherein the span of N is the number of the 1 capable subregion of dividing to each unit area.
Step 104: in the vertical direction carries out duplicating of pixel data in the full line subregion, finishes the demonstration of background picture.
Concrete, the capable subregion of N in other each row unit area of removing the first row unit area in some unit areas carries out full line according to the pixel data of having filled in the capable unit area of N in the first row unit area and duplicates.
Referring to Fig. 2, be the second embodiment process flow diagram of the display packing of the application's background picture:
Step 201: the decoding unit picture obtains decoded pixel data.
Before picture is shown, must decode to it earlier, decoded results is some data bitmaps, these data bitmaps are at the just corresponding internal memory of computer-internal.With the ARGB8888 color format is example, the information of a pixel need be described with four bytes, be respectively alpha (transparent position), red (redness), green (green), blue (blueness), formula below the shared memory size of the decoded view data of picture satisfies: the height of the wide * picture of the shared memory size=picture of the decoded data * needed byte number of each pixel, for example: to one wide be 25, height is 35 picture, under the ARGB8888 color format, the shared memory size of decoded view data is: 25 * 35 * 4=3500 byte.
Step 202: the target viewing area of background picture is divided into some unit areas according to the size of unit picture.
Concrete, the width parameter of acquiring unit picture and height parameter, and the width parameter and the height parameter of the target viewing area of background picture, calculate first quotient of the width parameter of target viewing area, and the height parameter of target viewing area is divided by second quotient of the height parameter of unit picture divided by the width parameter of unit picture; The target viewing area is divided according to first quotient in the horizontal direction, and in the vertical direction is divided according to second quotient, generates the consistent unit area of product quantity with first quotient and second quotient.
As shown in Figure 3A, be shown to the synoptic diagram of target viewing area for a kind of unit picture.Wherein, suppose the wide img_w of being of picture, the height of picture is img_h, and the wide of screen is screen_w, and the height of screen is screen_h, and the wide of target viewing area is w, and the height of target viewing area is h.Supposing need be with the unit picture by the point (x of original size from the target viewing area, y) locate beginning, tiling is presented in the target viewing area, then as shown in Figure 3A, supposes that img_w and img_h are 10px, w is 30px, h is 20px, then needs three unit pictures of tile horizontally in the target viewing area, two unit pictures of tile vertical, totally six unit pictures, promptly the target viewing area can be divided into six unit areas.Wherein, the initial point of supposing screen is the point in the upper left corner, is to the right x axle positive dirction, is downwards y axle positive dirction.Then each pixel can correspond on the respective point in the screen in the unit picture, with from point (x, y) Ping Pu first unit picture is an example, its corresponding relation is as shown in table 1 below:
Table 1
Figure BDA0000071566620000071
Step 203: each unit area laterally is divided into the several rows subregion.
Concrete, the height parameter of acquiring unit picture, the value of height parameter is consistent with the pixel number of unit picture on short transverse, and each unit area laterally is divided into the capable subregion consistent with the pixel number.
Referring to Fig. 3 B, for row unit area, first in the target viewing area among Fig. 3 A being divided into the synoptic diagram of capable subregion.Wherein, still the img_w and the img_h that suppose the unit picture are 10px, then the wide and height of corresponding each unit area also is 10px, according to the unit area height is 10px, the unit area laterally is divided into 10 capable subregions, and shown in Fig. 3 B, three unit areas in the first row unit area laterally are being divided into ten capable subregions, it is consistent with the first row unit area that the row subregion is divided in the second row unit area, no longer gives unnecessary details by diagram at this.
Step 204:, the capable pixel data of the decoded N of unit picture is filled into the capable subregion of N of first unit area in the first row unit area for the capable subregion of N of row unit area, first in some unit areas.
In the realization pixel data tiles target viewing area process, the tiling interface of a special use can externally be provided, the width and the height of target viewing area are passed to this tiling interface as parameter, this interface can be as follows: image_display_tiled (void*img, int x, int y, int w, int h);
Wherein, img represents the handle of the picture of actual needs demonstration, can obtain the width and the height of flat picture by this handle; X is the horizontal ordinate of the upper left corner, target viewing area on screen, and y is the ordinate of the upper left corner, target viewing area on screen; W is the wide of target viewing area, and h is the height of target viewing area.
Step 205: the capable pixel data of N increased progressively to duplicate according to two inferior power be filled in the capable subregion of N that removes the residue unit area in first module zone in the first row unit area, the span of N is the number of the 1 capable subregion of dividing to each unit area.
By as can be known aforementioned, the img_w and the img_h of the decoded pixel data of unit picture are 10px, and therefore decoded pixel data has ten row pixel datas.Shown in Fig. 3 C, wherein show the first row subregion of the first row unit area, target viewing area, in order to clearly demonstrate the process of the embodiment of the present application filler pixels data, the width of target viewing area shown in Fig. 3 C is 200px, therefore comprise 20 unit areas in its first row unit area, therefore the first row subregion comprises 20 capable subregions altogether.Among Fig. 3 C, laterally expression row subregion vertically represents to fill number of times.Below in conjunction with Fig. 3 C, describe the first row subregion carried out the process that increasing progressively of pixel data duplicated filling according to two inferior power:
Among Fig. 3 C, the target viewing area is divided into 20 equal-sized capable subregions by image_w, it is numbered from 1 to 20 respectively.Duplicate for the 1st time, the first row pixel data of the decoded data of unit picture is copied to be numbered in 1 the capable subregion; Duplicate for the 2nd time, copy to and be numbered in 2 the capable subregion being numbered pixel data in 1 the capable subregion; Duplicate for the 3rd time, copy to and be numbered in 3 and 4 the capable subregion being numbered pixel data in 1 and 2 the capable subregion; The 4th is duplicated, and copies to and is numbered in 5 to 8 the capable subregion being numbered pixel data in 1 to 4 the capable subregion; The 5th is duplicated, and copies to and is numbered in 9 to 16 the capable subregion being numbered pixel data in 1 to 8 the capable subregion; Duplicate for the 6th time, owing to only remain four capable subregions, therefore only needs will be numbered pixel data in 1 to 4 the capable subregion and copy to be numbered in 17 to 20 the capable subregion and get final product.The capable subregion that black is filled among Fig. 3 C is represented the pixel data of filling each time, hence one can see that, duplicate for preceding 5 times, all be that the pixel data in the first row subregion is enlarged two times, promptly increase progressively filling according to two inferior power, duplicate for the last time, because two times of 16 capable subregions that residue row subregion has once been filled before the deficiency, therefore directly go the quantity of subregion and carry out duplicating of pixel data by residue.
By aforementioned description as can be known, the reproduction process of the pixel data of first row in the subregion number of times that needs invoke memory to duplicate interface is
Figure BDA0000071566620000091
Being the wide merchant of the wide of target viewing area and unit picture, is to take the logarithm at the end with 2, rounds up again, adds one at last, wherein symbol
Figure BDA0000071566620000092
Expression rounds up.
In like manner, also fill, finish the filling of the first row unit area with this according to the mode that the aforementioned first row subregion is described for other the nine row subregion in the first row unit area.Hence one can see that, and the internal memory that finishing the picture tiling in the first row unit area needs duplicates the interface interchange number of times and is:
Figure BDA0000071566620000093
Figure BDA0000071566620000094
Be that each row subregion invoke memory duplicates the number of times of interface and the product of the capable subregion number that the first row unit area is divided, the unit picture is according to the division of the capable subregion of unit picture element after will decoding in the present embodiment, and therefore the data of row subregion are consistent with the value of the image_h of unit picture.
Step 206: the capable subregion of N in other each row unit area of removing the first row unit area in some unit areas, carry out full line according to the pixel data of having filled in the capable unit area of N in the first row unit area and duplicate.
After the tiling of unit picture, duplicating of vertical direction data based on first pixel data of arranging after duplicating, directly carried out full line and duplicated in finishing the first row unit area.
With the second row unit area is example, the population size of the unit picture that it is filled is all the same with the first seniority among brothers and sisters subregion, therefore its capable subregion quantity of dividing is consistent with the first row unit area, promptly also be divided into ten capable subregions, carrying out full line when duplicating, pixel data full line in the first row subregion in the first row unit area is copied in the second first row subregion of arranging in the unit area, pixel data full line in the second row subregion in the first row unit area is copied in the second second row subregion of arranging in the unit area, the rest may be inferred, in the tenth row subregion that the pixel data full line in the tenth row subregion in the first row unit area is copied in the second row unit area.
In like manner, for each the row unit area in the ten row unit areas, the 3rd row unit area to the, all carry out the pixel data filling, thereby finish the demonstration of background picture according to above-mentioned full line copy mode.
Hence one can see that, except that the first row unit area, each row subregion all is to carry out the entire row of pixels data to duplicate in other row unit area, so other row unit area finishes that to fill the number of times need invoke memory to duplicate interface be (h ÷ image_h-1) * image_h=h-image_h in the target viewing area.To sum up, carrying out the total degree that background picture shows that required invoke memory duplicates interface by the embodiment of the present application is
Figure BDA0000071566620000101
Figure BDA0000071566620000102
As seen from the above-described embodiment, owing to need not each unit picture is tiled according to its row pixel, duplicate but increase progressively increasing progressively of pixel data according to two inferior power in the horizontal direction, vertical direction carries out duplicating of pixel data according to full line, therefore reduce calling interface and carried out the number of times that pixel data is filled, calculated amount reduces, and has improved the display speed of background picture thus.Still with unit picture width with highly be 10px, the target viewing area of tiling width and highly being 200px is an example, the number of times that adopts the prior art scheme to need invoke memory to duplicate interface is w * h ÷ image w=200 * 200 ÷ 10=4000 time, and the internal memory that the employing present embodiment need call duplicates the interface number of times and is
Figure BDA0000071566620000103
Inferior, hence one can see that, and the application's background picture shows that embodiment can greatly reduce the call number of internal memory being duplicated interface, has improved the display speed of background picture.
Corresponding with the embodiment of the display packing of the application's background picture, the application also provides the embodiment of the display device of background picture.
Referring to Fig. 4, be the embodiment block diagram of the display device of the application's background picture:
This display device comprises: decoding unit 410, division unit 420, horizontal filler cells 430 and vertical filler cells 440.
Wherein, decoding unit 410 is used for the decoding unit picture and obtains decoded pixel data;
Division unit 420 is used for the target viewing area of background picture is divided into some unit areas according to the size of described unit picture, and each described unit area laterally is divided into the several rows subregion;
Horizontal filler cells 430 is used for for described some unit areas, the pixel data of correspondence is increased progressively according to two inferior power duplicate in the horizontal direction, is filled in each row subregion;
Vertically filler cells 440 is used in the vertical direction and carries out duplicating of full line subregion pixel data, finishes the demonstration of background picture.
Concrete, division unit 420 can comprise unit area division unit and row subregion division unit (not shown among Fig. 4).Wherein, the unit area division unit comprises:
First parameter acquiring unit is used to obtain the width parameter and the height parameter of described unit picture and the width parameter and the height parameter of the target viewing area of described background picture;
Parameter calculation unit be used to calculate first quotient of the width parameter of described target viewing area divided by the width parameter of described unit picture, and the height parameter of described target viewing area is divided by second quotient of the height parameter of described unit picture;
Divide generation unit, be used for described target viewing area is divided according to described first quotient in the horizontal direction, in the vertical direction is divided according to described second quotient, generates the consistent unit area of product quantity with described first quotient and described second quotient.
Row subregion division unit comprises:
Second parameter acquiring unit is used to obtain the height parameter of described unit picture, and the value of described height parameter is consistent with the pixel number of described unit picture on short transverse;
Lateral rows subregion division unit is used for each unit area laterally is divided into the capable subregion consistent with described pixel number.
Concrete, described horizontal filler cells 430 can comprise (not shown among Fig. 4):
Row subregion data filler cells, be used for the capable subregion of N, the capable pixel data of the decoded N of unit picture be filled into the capable subregion of N of first unit area in the described first row unit area for the first row unit area of described some unit areas;
Increase progressively and duplicate filler cells, be used for the capable pixel data of described N increased progressively according to two inferior power and duplicate in the capable subregion of N that is filled into the residue unit area of removing the described first row first module zone, unit area, the span of described N is the number of the 1 capable subregion of dividing to described each unit area.
Wherein, described vertical filler cells 440, specifically be used for removing the capable subregion of N in other each row unit area of the first row unit area, carry out full line according to the pixel data of having filled in the capable unit area of N in the described first row unit area and duplicate for described some unit areas.
By as can be known to the description of above embodiment, the decoding unit picture obtains decoded pixel data in the embodiment of the present application, the target viewing area of background picture is divided into some unit areas according to the size of unit picture, and each unit area laterally is divided into the several rows subregion, for some unit areas, in the horizontal direction the pixel data of correspondence is increased progressively according to two inferior power and duplicate, be filled in each row subregion, in the vertical direction carries out duplicating of pixel data in the full line subregion, finishes the demonstration of background picture.When application the embodiment of the present application is carried out the background picture demonstration, owing to need not each unit picture is tiled according to its row pixel, duplicate but increase progressively increasing progressively of pixel data according to two inferior power in the horizontal direction, vertical direction carries out duplicating of pixel data according to full line, therefore reduce calling interface and carried out the number of times that pixel data is filled, calculated amount reduces, and has improved the display speed of background picture thus.With the width of unit picture with highly be 10px, the width in target background zone and highly to be 200px be example, the total degree that needs calling interface in the prior art is (200 ÷ 10) * (200 ÷ 10) * 10=4000 time, and the number of times of calling interface only is in the embodiment of the present application
Figure BDA0000071566620000121
Inferior, hence one can see that, and compared with prior art, the application's background picture shows that embodiment can greatly reduce the call number of docking port.
The technology that those skilled in the art can be well understood in the embodiment of the invention can realize by the mode that software adds essential general hardware platform.Based on such understanding, the part that technical scheme in the embodiment of the invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product can be stored in the storage medium, as ROM/RAM, magnetic disc, CD etc., comprise that some instructions are with so that a computer equipment (can be a personal computer, server, the perhaps network equipment etc.) carry out the described method of some part of each embodiment of the present invention or embodiment.
Each embodiment in this instructions all adopts the mode of going forward one by one to describe, and identical similar part is mutually referring to getting final product between each embodiment, and each embodiment stresses all is difference with other embodiment.Especially, for system embodiment, because it is substantially similar in appearance to method embodiment, so description is fairly simple, relevant part gets final product referring to the part explanation of method embodiment.
Above-described embodiment of the present invention does not constitute the qualification to protection domain of the present invention.Any modification of being done within the spirit and principles in the present invention, be equal to and replace and improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. the display packing of a background picture is characterized in that, comprising:
The decoding unit picture obtains decoded pixel data;
The target viewing area of background picture is divided into some unit areas according to the size of described unit picture, and each described unit area laterally is divided into the several rows subregion;
For described some unit areas, the pixel data of correspondence is increased progressively according to two inferior power duplicate in the horizontal direction, be filled in each row subregion;
In the vertical direction carries out duplicating of pixel data in the full line subregion, finishes the demonstration of background picture.
2. method according to claim 1 is characterized in that, describedly background picture target viewing area is divided into some unit areas according to the size of unit picture comprises:
Obtain the width parameter and the height parameter of described unit picture, and the width parameter and the height parameter of the target viewing area of described background picture;
Calculate first quotient of the width parameter of described target viewing area, and the height parameter of described target viewing area is divided by second quotient of the height parameter of described unit picture divided by the width parameter of described unit picture;
Described target viewing area is divided according to described first quotient in the horizontal direction, and in the vertical direction is divided according to described second quotient, generates the consistent unit area of product quantity with described first quotient and described second quotient.
3. method according to claim 1 is characterized in that, describedly each unit area laterally is divided into the several rows subregion comprises:
Obtain the height parameter of described unit picture, the value of described height parameter is consistent with the pixel number of described unit picture on short transverse;
Each unit area laterally is divided into the capable subregion consistent with described pixel number.
4. method according to claim 1 is characterized in that, the described in the horizontal direction pixel data of correspondence being increased progressively according to two inferior power duplicated, and is filled in each row subregion to comprise:
For the capable subregion of N of row unit area, first in described some unit areas, the capable pixel data of the decoded N of unit picture is filled into the capable subregion of N of first unit area in the described first row unit area;
And the capable pixel data of described N increased progressively to duplicate according to two inferior power be filled in the capable subregion of N that removes the residue unit area in first module zone in the described first row unit area, the span of described N is the number of the 1 capable subregion of dividing to described each unit area.
5. method according to claim 4 is characterized in that, described in the vertical direction carries out that duplicating of pixel data comprises in the full line subregion:
The capable subregion of N in other each row unit area of removing the first row unit area in described some unit areas carries out full line according to the pixel data of having filled in the capable unit area of N in the described first row unit area and duplicates.
6. the display device of a background picture is characterized in that, comprising:
Decoding unit is used for the decoding unit picture and obtains decoded pixel data;
Division unit is used for the target viewing area of background picture is divided into some unit areas according to the size of described unit picture, and each described unit area laterally is divided into the several rows subregion;
Horizontal filler cells is used for for described some unit areas, the pixel data of correspondence is increased progressively according to two inferior power duplicate in the horizontal direction, is filled in each row subregion;
Vertically filler cells is used in the vertical direction and carries out duplicating of full line subregion pixel data, finishes the demonstration of background picture.
7. device according to claim 6 is characterized in that described division unit comprises the unit area division unit, and this unit area division unit comprises:
First parameter acquiring unit is used to obtain the width parameter and the height parameter of described unit picture and the width parameter and the height parameter of the target viewing area of described background picture;
Parameter calculation unit be used to calculate first quotient of the width parameter of described target viewing area divided by the width parameter of described unit picture, and the height parameter of described target viewing area is divided by second quotient of the height parameter of described unit picture;
Divide generation unit, be used for described target viewing area is divided according to described first quotient in the horizontal direction, in the vertical direction is divided according to described second quotient, generates the consistent unit area of product quantity with described first quotient and described second quotient.
8. device according to claim 6 is characterized in that, described division unit comprises capable subregion division unit, and this row subregion division unit comprises:
Second parameter acquiring unit is used to obtain the height parameter of described unit picture, and the value of described height parameter is consistent with the pixel number of described unit picture on short transverse; Lateral rows subregion division unit is used for each unit area laterally is divided into the capable subregion consistent with described pixel number.
9. device according to claim 6 is characterized in that, described horizontal filler cells comprises:
Row subregion data filler cells, be used for the capable subregion of N, the capable pixel data of the decoded N of unit picture be filled into the capable subregion of N of first unit area in the described first row unit area for the first row unit area of described some unit areas;
Increase progressively and duplicate filler cells, be used for the capable pixel data of described N increased progressively according to two inferior power and duplicate in the capable subregion of N that is filled into the residue unit area of removing the described first row first module zone, unit area, the span of described N is the number of the 1 capable subregion of dividing to described each unit area.
10. device according to claim 6, it is characterized in that, described vertical filler cells, specifically be used for removing the capable subregion of N in other each row unit area of the first row unit area, carry out full line according to the pixel data of having filled in the capable unit area of N in the described first row unit area and duplicate for described some unit areas.
CN2011101753758A 2011-06-27 2011-06-27 Background picture display method and device Pending CN102253818A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011101753758A CN102253818A (en) 2011-06-27 2011-06-27 Background picture display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011101753758A CN102253818A (en) 2011-06-27 2011-06-27 Background picture display method and device

Publications (1)

Publication Number Publication Date
CN102253818A true CN102253818A (en) 2011-11-23

Family

ID=44981101

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011101753758A Pending CN102253818A (en) 2011-06-27 2011-06-27 Background picture display method and device

Country Status (1)

Country Link
CN (1) CN102253818A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103699411A (en) * 2013-12-23 2014-04-02 乐视网信息技术(北京)股份有限公司 Dialog box display method and device
CN104020972A (en) * 2014-05-15 2014-09-03 小米科技有限责任公司 Background display method and device and electronic device
CN104463818A (en) * 2013-09-25 2015-03-25 北大方正集团有限公司 Method and system for fast drawing background
CN106648348A (en) * 2016-09-18 2017-05-10 天脉聚源(北京)传媒科技有限公司 Picture display method and apparatus
CN110555445A (en) * 2018-06-04 2019-12-10 株式会社电装 Feature extraction method and device and object recognition device
CN113096045A (en) * 2021-04-14 2021-07-09 深圳市元征科技股份有限公司 Bitmap stretching method, bitmap stretching device and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040008214A1 (en) * 2002-07-11 2004-01-15 Sun Microsystems, Inc., A Delaware Corporation Tagging repeating images for improved compression
CN101192129A (en) * 2006-11-30 2008-06-04 重庆优腾信息技术有限公司 Table top background control method, device and system
US20080165200A1 (en) * 2007-01-05 2008-07-10 Raymond Chow Hardware Background Tile Generation

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040008214A1 (en) * 2002-07-11 2004-01-15 Sun Microsystems, Inc., A Delaware Corporation Tagging repeating images for improved compression
CN101192129A (en) * 2006-11-30 2008-06-04 重庆优腾信息技术有限公司 Table top background control method, device and system
US20080165200A1 (en) * 2007-01-05 2008-07-10 Raymond Chow Hardware Background Tile Generation

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104463818A (en) * 2013-09-25 2015-03-25 北大方正集团有限公司 Method and system for fast drawing background
CN103699411A (en) * 2013-12-23 2014-04-02 乐视网信息技术(北京)股份有限公司 Dialog box display method and device
CN104020972A (en) * 2014-05-15 2014-09-03 小米科技有限责任公司 Background display method and device and electronic device
CN106648348A (en) * 2016-09-18 2017-05-10 天脉聚源(北京)传媒科技有限公司 Picture display method and apparatus
CN110555445A (en) * 2018-06-04 2019-12-10 株式会社电装 Feature extraction method and device and object recognition device
CN110555445B (en) * 2018-06-04 2024-06-25 株式会社电装 Feature extraction method and device and object recognition device
CN113096045A (en) * 2021-04-14 2021-07-09 深圳市元征科技股份有限公司 Bitmap stretching method, bitmap stretching device and electronic equipment

Similar Documents

Publication Publication Date Title
CN102253818A (en) Background picture display method and device
CN104112763B (en) A kind of pixel arrangement structure, display device and its display methods
CN101727815B (en) Local black insertion method for dynamic image and display device
CN102262867A (en) Liquid crystal display and method of driving the same
CN105528207A (en) Virtual reality system, and method and apparatus for displaying Android application images therein
CN101610423A (en) A kind of method and apparatus of rendering image
CN107978289A (en) Driving method and driving device of display device
CN102427511B (en) Multi-channel digital video image processing method and device
CN102622979A (en) LCD (Liquid Crystal Display) controller and display control method thereof
CN101261740A (en) An image storage and processing method
EP3373237A1 (en) Method and apparatus for scaling down a bayer domain image
CN107863083A (en) Driving method and driving device of display device
CN101908216B (en) Method and device for realizing vector fonts
CN104678670A (en) Array substrate, display panel and display device
CN105467603B (en) A kind of 3 d display device
CN101183521A (en) Image scaling device, method and image display device
CN104103228B (en) Display floater and the method for display image thereof
CN202584692U (en) LCD controller
CN102654830B (en) Method for optimizing video memory space in texture discharge manner
TWI540495B (en) Electronic device capable of simulating real page flip effect
CN116597789B (en) Picture display method, device and equipment of color ink screen and storage medium
CN108243355A (en) Set-top box users interface loading method and system
CN101630501B (en) Method and system for displaying image
CN105261324A (en) Display method and display panel using the same
CN106303496B (en) Picture format determines method and device, display equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1163295

Country of ref document: HK

C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20111123

REG Reference to a national code

Ref country code: HK

Ref legal event code: WD

Ref document number: 1163295

Country of ref document: HK