CN102394053A - Method and device for displaying pure monochrome picture - Google Patents

Method and device for displaying pure monochrome picture Download PDF

Info

Publication number
CN102394053A
CN102394053A CN2011101658471A CN201110165847A CN102394053A CN 102394053 A CN102394053 A CN 102394053A CN 2011101658471 A CN2011101658471 A CN 2011101658471A CN 201110165847 A CN201110165847 A CN 201110165847A CN 102394053 A CN102394053 A CN 102394053A
Authority
CN
China
Prior art keywords
picture
pure monochromatic
target area
color value
parameter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2011101658471A
Other languages
Chinese (zh)
Other versions
CN102394053B (en
Inventor
朱吕亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN 201110165847 priority Critical patent/CN102394053B/en
Publication of CN102394053A publication Critical patent/CN102394053A/en
Priority to HK12109045.2A priority patent/HK1168935A1/en
Application granted granted Critical
Publication of CN102394053B publication Critical patent/CN102394053B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method and a device for displaying a pure monochrome picture. The method comprises the following steps: decoding a picture which is to be displayed on a target area; judging if the picture is the pure monochrome picture according to a data of the picture after being decoded; and when the picture is the pure monochrome picture, calling a drawing module rectangular filling interface to fill the target area according to a pure monochrome color value. When the device provided by the embodiment of the invention is used for displaying the pure monochrome picture, a process of displaying one by one according to decoded pixels is unneeded and the drawing module rectangular filling interface is used for wholly filling the target area, thereby saving the time for displaying the pure monochrome picture.

Description

A kind of pure monochromatic picture display packing and device
Technical field
The application relates to technical field of image processing, particularly relates to a kind of pure monochromatic picture display packing and device.
Background technology
The color of each pixel that pure monochromatic picture is often referred to whole picture is all the same, and common pure monochromatic picture shows as a setting.In the prior art, show that pure monochromatic picture is consistent with the process of general picture, when soon picture is shown to the target area; All need decode to original image, the data bitmap that decoding obtains is made up of some pixels, for each pixel; Obtain its corresponding point in the target area according to coordinate conversion; Judge whether this pixel is transparent pixel, if transparent pixel, then keep the color value of the corresponding point in the target area; If not transparent pixel, then the color of the corresponding point in the target area is revised as the color value of this pixel.
The inventor finds in the research process to prior art; Owing to picture is being shown in the process of target area; Need judge that especially for pure monochromatic picture, its all pixels all are same colors to decoded each pixel; Therefore increased the demonstration time, frequent deterministic process also will take a large amount of Installed System Memories space; When Installed System Memory is not enough, need reclaim picture, to discharge the memory headroom that decoding picture takies; But when needs show this picture once more, then need decoding again, when the Installed System Memory wretched insufficiency; Also need discharge the raw data of picture; Cause when needs show this picture once more, need reload picture and decoding, therefore be difficult to make that memory headroom is fully discharged.
Summary of the invention
The application embodiment provides a kind of display packing and device of pure monochromatic picture, shows in the prior art that to solve the pure monochromatic picture time is long, and the problem of occupying system resources.
In order to solve the problems of the technologies described above, the application embodiment discloses following technical scheme:
A kind of display packing of pure monochromatic picture comprises:
Treating the picture that is shown to the target area decodes;
Judge according to decoded view data whether said picture is pure monochromatic picture;
When said picture is pure monochromatic picture, call graphics module rectangle filling interface and said target area is filled according to said pure monochromatic color value, accomplish demonstration to said pure monochromatic picture.
Saidly judge according to decoded view data whether said picture is that pure monochromatic picture comprises:
The color value of each pixel in the view data behind the statistical decoder;
When the color value of said each pixel is consistent, confirm that said picture is pure monochromatic picture.
The said graphics module rectangle that calls is filled interface and according to said pure monochromatic color value said target area is filled and comprise:
When the original size according to said picture shows, obtain the width parameter and the height parameter of said picture;
Calculate the parameter value that is used to represent said target area according to said width parameter and height parameter;
The parameter value of said target area and said pure monochromatic color value are filled the input parameter value of interface as said graphics module rectangle, call said graphics module rectangle and fill interface said pure monochromatic color value is filled into said target area.
The said graphics module rectangle that calls is filled interface and according to said pure monochromatic color value said target area is filled and comprise:
When said picture being amplified the back demonstration, obtain the width parameter and the height parameter of said picture, and said picture is shown to the enlargement factor of said target area;
Width parameter and height parameter according to said enlargement factor and said picture calculate the parameter value that is used to represent said target area;
The parameter value of said target area and said pure monochromatic color value are filled the input parameter value of interface as said graphics module rectangle, call said graphics module rectangle and fill interface said pure monochromatic color value is filled into said target area.
Also comprise:
When system resource during less than first threshold, discharge the shared Installed System Memory of the decoded view data of said pure monochromatic picture, perhaps,, discharge the Installed System Memory that said pure monochromatic picture takies when system resource during less than second threshold value;
Behind the delivery system internal memory, save as the pure monochromatic sign of said pure monochromatic picture setting and the pure monochromatic color value of said pure monochromatic picture.
A kind of display device of pure monochromatic picture comprises:
Decoding unit is used to treat the picture that is shown to the target area and decodes;
Judging unit is used for judging according to decoded view data whether said picture is pure monochromatic picture;
Display unit is used for when the said picture of said judgment unit judges is pure monochromatic picture, calls graphics module rectangle filling interface and according to said pure monochromatic color value said target area is filled, and accomplishes the demonstration to said pure monochromatic picture.
Said judging unit comprises:
Color value statistics subelement is used for the color value of each pixel of the view data behind the statistical decoder;
Pure monochromatic picture is confirmed subelement, is used for when the color value of said each pixel is consistent, confirming that said picture is pure monochromatic picture.
Said display unit comprises:
First obtains subelement, is used for when the original size according to said picture shows, obtains the width parameter and the height parameter of said picture;
First computation subunit is used for calculating the parameter value that is used to represent said target area according to said width parameter and height parameter;
First calls the filling subelement; Be used for the parameter value of said target area and said pure monochromatic color value are filled the input parameter value of interface as said graphics module rectangle, call said graphics module rectangle and fill interface said pure monochromatic color value is filled into said target area.
Said display unit comprises:
Second obtains subelement, is used for when said picture being amplified the back demonstration, obtain the width parameter and the height parameter of said picture, and said picture being shown to the enlargement factor of said target area;
Second computation subunit is used for calculating the parameter value that is used to represent said target area according to the width parameter and the height parameter of said enlargement factor and said picture;
Second calls the filling subelement; Be used for the parameter value of said target area and said pure monochromatic color value are filled the input parameter value of interface as said graphics module rectangle, call said graphics module rectangle and fill interface said pure monochromatic color value is filled into said target area.
Also comprise:
Releasing unit is used for discharging the shared Installed System Memory of the decoded view data of said pure monochromatic picture when system resource during less than first threshold, perhaps, when system resource during less than second threshold value, discharges the Installed System Memory that said pure monochromatic picture takies;
Preserve the unit, be used for behind said releasing unit delivery system internal memory, save as the pure monochromatic sign of said pure monochromatic picture setting and the pure monochromatic color value of said pure monochromatic picture.
Can find out by the foregoing description; Treating the picture that is shown to the target area among the application embodiment decodes; Judge according to decoded view data whether picture is pure monochromatic picture; When picture is pure monochromatic picture, calls graphics module rectangle filling interface and the target area is filled according to pure monochromatic color value.When using the application embodiment and showing pure monochromatic picture, need not to show one by one, but fill interface and the target area is carried out integral-filled, therefore practiced thrift the time that shows pure monochromatic picture through calling the graphics module rectangle according to decoded pixel; When Installed System Memory is not enough; The pure monochromatic sign and the pure monochromatic color value that only need recordable picture; When showing this picture once more; Then only need call the graphics module rectangle once more and fill interface and fill according to the pure monochromatic color value of being preserved and get final product, need not to reload picture and perhaps again picture is decoded, memory headroom is discharged fully.
Description of drawings
In order to be illustrated more clearly in the application embodiment 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; Obviously; For those of ordinary skills, under the prerequisite of not paying creative work property, 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 pure monochromatic picture of the application;
Fig. 2 A is the second embodiment process flow diagram of the display packing of the pure monochromatic picture of the application;
Fig. 2 B is that a kind of picture shows synoptic diagram among Fig. 2 A embodiment;
Fig. 3 A is the 3rd an embodiment process flow diagram of the display packing of the pure monochromatic picture of the application;
Fig. 3 B is that a kind of picture shows synoptic diagram among Fig. 3 A embodiment;
Fig. 4 is the first embodiment block diagram of the display device of the pure monochromatic picture of the application;
Fig. 5 is the second embodiment block diagram of the display device of the pure monochromatic picture of the application.
Embodiment
The following embodiment of the present invention provides a kind of display packing and device of pure monochromatic picture.When showing pure monochromatic picture, through figure module rectangle interface the target area is filled, saved the demonstration time, reduced system's taking to resource.
In order to make those skilled in the art person understand the technical scheme in the embodiment of the invention better; And make the above-mentioned purpose of the embodiment of the invention, feature and advantage can be more obviously understandable, below in conjunction with accompanying drawing technical scheme in the embodiment of the invention done further detailed explanation.
Referring to Fig. 1, be the first embodiment process flow diagram of the display packing of the pure monochromatic picture of the application:
Step 101: treat the picture that is shown to the target area and decode.
After getting access to picture to be shown, this picture is preserved and decoded, generate decoded view data.Original image and decoded view data all need take Installed System Memory.
Step 102: judge according to decoded view data whether this picture is pure monochromatic picture.
Concrete, if the color value of each pixel in the view data after can statistical decoder all consistent when the color value of each pixel, can confirm that then this picture is pure monochromatic picture.
Step 103: when this picture is pure monochromatic picture, calls graphics module rectangle filling interface and the target area is filled, accomplish demonstration to pure monochromatic picture according to pure monochromatic color value.
Concrete; When the original size according to picture shows; Obtain the width parameter and the height parameter of picture; Calculate the parameter value that is used to represent the target area according to width parameter and height parameter, the parameter value of target area and pure monochromatic color value are filled the input parameter value of interface as the graphics module rectangle, call the graphics module rectangle and fill interface pure monochromatic color value is filled into the target area.
When picture being amplified the back demonstration; Obtain the width parameter and the height parameter of picture; And picture is shown to the enlargement factor of target area; Calculate the parameter value that is used to represent the target area according to the width parameter of enlargement factor and picture and height parameter, the parameter value of target area and pure monochromatic color value are filled the input parameter value of interface as the graphics module rectangle, call the graphics module rectangle and fill interface pure monochromatic color value is filled into the target area.
Referring to Fig. 2 A, be the second embodiment process flow diagram of the display packing of the pure monochromatic picture of the application, this embodiment is shown as example with picture according to original size and describes:
Step 201: treat the picture that is shown to the target area and decode.
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, need describe the information of a pixel with four bytes, is respectively alpha (transparent position); Red (redness); Green (green), blue (blueness), the 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, and under the ARGB8888 color format, the shared memory size of decoded view data is: 25 * 35 * 4=3500 byte.
Step 202: the color value of each pixel in the view data behind the statistical decoder.
For each pixel in the decoded view data, can compare the colouring information of the same kind of each pixel respectively, whether the value of red, green and blue of promptly adding up all pixels is consistent.
Step 203: whether the color value of judging each pixel is consistent, if, execution in step 204; Otherwise, execution in step 207.
When the value of red, green and the blue of all pixels is all consistent, explain that then the color value of these pixels is consistent, the picture of being made up of these pixels accordingly is pure monochromatic picture.
Step 204: the width parameter and the height parameter that obtain this picture.
Shown in Fig. 2 B, for a kind of picture is shown to the demonstration synoptic diagram on the screen.Wherein, suppose the wide img_w of being of picture, the height of picture is img_h; Suppose the wide screen_w of being of screen, the height of screen is screen_h, supposes need picture be shown to by original size the point (x of screen; Y) locate; The initial point of screen is 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 picture, and its corresponding relation is as shown in table 1 below:
Table 1
Figure BDA0000069587620000061
According to prior art, need judge the transparent position of decoded each pixel, if transparent, the color value of corresponding point in the display-object zone then, if opaque, then the color value with this pixel is shown on the position of corresponding point in the target area.Hence one can see that, need judge each pixel in the prior art, so the labor time.
Among the application embodiment; Fill interface owing to call the graphics module rectangle; Therefore need not each pixel is judged and filled, but need to obtain the input parameter of graphics module rectangle filling interface, directly the target area is shown filling thereby use this interface.Usually, system can provide graphics module, and this module provides basic drawing interface, comprises setting-out, rectangle filling, draws circle etc.Possibly there is nuance in the interface that different systems provides, but some key parameters are consistent, fills interface for the graphics module rectangle, and its general form can be represented as follows:
fill_rect(int?x,int?y,int?w,int?h,unsigned?int?color)
Wherein, fill_rect is the interface name, and expression is that rectangle is filled interface; X is the horizontal ordinate in the upper left corner of rectangle fill area, and y is the ordinate in the upper left corner, rectangular area, and w is the height of rectangle fill area; H is the height of rectangle fill area, the pure monochromatic color value of color for filling.
Step 205: calculate the parameter value that is used to represent the target area according to width parameter and height parameter.
Picture shows according to original size in the present embodiment, and the width of rectangle fill area and height and the width of picture and highly consistent are therefore according to the width of the picture that obtains in the step 204 and width that highly just can obtain the target area and height.
Step 206: the input parameter value of the parameter value of target area and pure monochromatic color value being filled interface as the graphics module rectangle; Call graphics module rectangle filling interface pure monochromatic color value is filled into the target area, the demonstration of accomplishing pure monochromatic picture finishes current flow process.
Fill parametric form fill_rect (int x, int y, the int w of interface according to rectangle; Int h, unsigned int color), in the input parameter; Picture is shown to the point of screen by original size, and (x y) locates, therefore (x; Y) x and the y in the corresponding above-mentioned parameter, and the width of picture and the w and the h that highly distinguish in the corresponding above-mentioned parameter, color is the pure monochromatic color value of picture.
Step 207: according to existing procedure picture is shown to the target area, finishes current flow process.
When the color value of each pixel when being inconsistent, explain that this picture is not pure monochromatic picture, therefore according to prior art, decoded each pixel is judged and then shown.
Referring to Fig. 3 A, be the 3rd embodiment process flow diagram of the display packing of the pure monochromatic picture of the application, this embodiment shows according to amplifying the back size with picture, and memory headroom is released to example describes:
Step 301: treat the picture that is shown to the target area and decode.
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, need describe the information of a pixel with four bytes, is respectively alpha (transparent position); Red (redness); Green (green), blue (blueness), the 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, and under the ARGB8888 color format, the shared memory size of decoded view data is: 25 * 35 * 4=3500 byte.
Step 302: the color value of each pixel in the view data behind the statistical decoder.
For each pixel in the decoded view data, can compare the colouring information of the same kind of each pixel respectively, whether the value of red, green and blue of promptly adding up all pixels is consistent.
Step 303: when the color value of each pixel is consistent, confirm that picture is pure monochromatic picture.
When the value of red, green and the blue of all pixels is all consistent, explain that then the color value of these pixels is consistent, the picture of being made up of these pixels accordingly is pure monochromatic picture.
Step 304: obtain the width parameter and the height parameter of this picture, and picture is shown to the enlargement factor of target area.
Shown in Fig. 3 B, for another kind of picture is shown to the demonstration synoptic diagram on the screen.Wherein, suppose the wide img_w of being of picture, the height of picture is img_h; Suppose the wide screen_w of being of screen, the height of screen is screen_h, and supposing need be with the two times point (xs that are shown to screen of picture by original size; Y) locate; The initial point of screen is the upper left corner, is to the right x axle positive dirction, is downwards y axle positive dirction.Because the height and the width of picture all amplify two times, so decoded each pixel all corresponds on four points in the screen in the original image, its corresponding relation is as shown in table 2 below:
Table 2
Figure BDA0000069587620000081
Figure BDA0000069587620000091
Usually, system can provide graphics module, and this module provides basic drawing interface, comprises setting-out, rectangle filling, draws circle etc.Possibly there is nuance in the interface that different systems provides, but some key parameters are consistent, fills interface for the graphics module rectangle, and its general form can be represented as follows:
fill_rect(int?x,int?y,int?w,int?h,unsigned?int?color)
Wherein, fill_rect is the interface name, and expression is that rectangle is filled interface; X is the horizontal ordinate in the upper left corner of rectangle fill area, and y is the ordinate in the upper left corner, rectangular area, and w is the width of rectangle fill area; H is the height of rectangle fill area, the pure monochromatic color value of color for filling.
Step 305: width parameter and height parameter according to enlargement factor and picture calculate the parameter value that is used to represent the target area.
Picture shows according to two times of original size in the present embodiment; Therefore the width of rectangle fill area and be highly respectively the width of picture and two times of height just can obtain the width of target area and highly according to the width of the picture that obtains in the step 304 and height.
Step 306: the parameter value of target area and pure monochromatic color value are filled the input parameter value of interface as the graphics module rectangle, call the graphics module rectangle and fill interface pure monochromatic color value is filled into the target area, accomplish demonstration to pure monochromatic picture.
Fill parametric form fill_rect (int x, int y, the int w of interface according to rectangle; Int h, unsigned int color), in the input parameter; Picture is shown to the point of screen by original size, and (x y) locates, therefore (x; Y) x and the y in the corresponding above-mentioned parameter, and w and h in two times of the width of picture two times of corresponding above-mentioned parameters of difference with height, color is the pure monochromatic color value of picture.
Step 307: whether judge system resource less than threshold value, if then execution in step 308; Otherwise, process ends.
Step 308: discharge the shared Installed System Memory of the decoded view data of pure monochromatic picture, perhaps discharge the Installed System Memory that pure monochromatic picture takies.
When Installed System Memory during less than first threshold; Can discharge the shared Installed System Memory of view data after pure monochromatic picture is raised the price earlier; When Installed System Memory during less than second threshold value, can further discharge the Installed System Memory that pure monochromatic picture takies, wherein first threshold is less than second threshold value.
Step 309: save as the pure monochromatic sign of said pure monochromatic picture setting and the pure monochromatic color value of said pure monochromatic picture, finish current flow process.
When Installed System Memory is not enough; The pure monochromatic sign and the pure monochromatic color value that only need recordable picture; When showing this picture once more, then only need call the graphics module rectangle once more and fill interface and fill according to the pure monochromatic color value of being preserved and get final product, need not to reload picture and perhaps again picture is decoded; Memory headroom is discharged fully, therefore be applicable in the application scenarios that same pure monochromatic picture needed repeatedly to show.
Corresponding with the embodiment of the display packing of the pure monochromatic picture of the application, the application also provides the embodiment of the display device of pure monochromatic picture.
Referring to Fig. 4, be the first embodiment block diagram of the display device of the pure monochromatic picture of the application:
This device comprises: decoding unit 410, judging unit 420 and display unit 430.
Wherein, decoding unit 410 is used to treat the picture that is shown to the target area and decodes;
Judging unit 420 is used for judging according to decoded view data whether said picture is pure monochromatic picture;
Display unit 430 is used for when said judging unit 420 judges that said picture is pure monochromatic picture, calling graphics module rectangle filling interface and according to said pure monochromatic color value said target area being filled, and accomplishes the demonstration to said pure monochromatic picture.
Referring to Fig. 5, be the second embodiment block diagram of the display device of the pure monochromatic picture of the application:
This device comprises: decoding unit 510, judging unit 520, display unit 530, releasing unit 540 and preservation unit 550.
Wherein, decoding unit 510 is used to treat the picture that is shown to the target area and decodes;
Judging unit 520 is used for judging according to decoded view data whether said picture is pure monochromatic picture;
Display unit 530 is used for when the said picture of said judgment unit judges is pure monochromatic picture, calls graphics module rectangle filling interface and according to said pure monochromatic color value said target area is filled, and accomplishes the demonstration to said pure monochromatic picture;
Releasing unit 540 is used for discharging the shared Installed System Memory of the decoded view data of said pure monochromatic picture when system resource during less than first threshold, perhaps, when system resource during less than second threshold value, discharges the Installed System Memory that said pure monochromatic picture takies;
Preserve unit 550, be used for behind said releasing unit delivery system internal memory, save as the pure monochromatic sign of said pure monochromatic picture setting and the pure monochromatic color value of said pure monochromatic picture.
Concrete, judging unit 520 can comprise (not shown among Fig. 5):
Color value statistics subelement is used for the color value of each pixel of the view data behind the statistical decoder;
Pure monochromatic picture is confirmed subelement, is used for when the color value of said each pixel is consistent, confirming that said picture is pure monochromatic picture.
Concrete, display unit 530 can comprise (not shown among Fig. 5):
First obtains subelement, is used for when the original size according to said picture shows, obtains the width parameter and the height parameter of said picture;
First computation subunit is used for calculating the parameter value that is used to represent said target area according to said width parameter and height parameter;
First calls the filling subelement; Be used for the parameter value of said target area and said pure monochromatic color value are filled the input parameter value of interface as said graphics module rectangle, call said graphics module rectangle and fill interface said pure monochromatic color value is filled into said target area.
Concrete, display unit 530 also can comprise (not shown among Fig. 5):
Second obtains subelement, is used for when said picture being amplified the back demonstration, obtain the width parameter and the height parameter of said picture, and said picture being shown to the enlargement factor of said target area;
Second computation subunit is used for calculating the parameter value that is used to represent said target area according to the width parameter and the height parameter of said enlargement factor and said picture;
Second calls the filling subelement; Be used for the parameter value of said target area and said pure monochromatic color value are filled the input parameter value of interface as said graphics module rectangle, call said graphics module rectangle and fill interface said pure monochromatic color value is filled into said target area.
Description through to above embodiment can be known; Treating the picture that is shown to the target area among the application embodiment decodes; Judge according to decoded view data whether picture is pure monochromatic picture; When picture is pure monochromatic picture, calls graphics module rectangle filling interface and the target area is filled according to pure monochromatic color value.When using the application embodiment and showing pure monochromatic picture, need not to show one by one, but fill interface and the target area is carried out integral-filled, therefore practiced thrift the time that shows pure monochromatic picture through calling the graphics module rectangle according to decoded pixel; When Installed System Memory is not enough; The pure monochromatic sign and the pure monochromatic color value that only need recordable picture; When showing this picture once more; Then only need call the graphics module rectangle once more and fill interface and fill according to the pure monochromatic color value of being preserved and get final product, need not to reload picture and perhaps again picture is decoded, memory headroom is discharged fully.
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 be come out with the embodied of software product; This computer software product can be stored in the storage medium, like ROM/RAM, magnetic disc, CD etc., comprises 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 the difference with other embodiment.Especially, for system embodiment, because it is basically 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 within spirit of the present invention and principle, being done, be equal to replacement and improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. the display packing of a pure monochromatic picture is characterized in that, comprising:
Treating the picture that is shown to the target area decodes;
Judge according to decoded view data whether said picture is pure monochromatic picture;
When said picture is pure monochromatic picture, call graphics module rectangle filling interface and said target area is filled according to said pure monochromatic color value, accomplish demonstration to said pure monochromatic picture.
2. method according to claim 1 is characterized in that, saidly judges according to decoded view data whether said picture is that pure monochromatic picture comprises:
The color value of each pixel in the view data behind the statistical decoder;
When the color value of said each pixel is consistent, confirm that said picture is pure monochromatic picture.
3. method according to claim 1 is characterized in that, the said graphics module rectangle that calls is filled interface and according to said pure monochromatic color value said target area filled and comprise:
When the original size according to said picture shows, obtain the width parameter and the height parameter of said picture;
Calculate the parameter value that is used to represent said target area according to said width parameter and height parameter;
The parameter value of said target area and said pure monochromatic color value are filled the input parameter value of interface as said graphics module rectangle, call said graphics module rectangle and fill interface said pure monochromatic color value is filled into said target area.
4. method according to claim 1 is characterized in that, the said graphics module rectangle that calls is filled interface and according to said pure monochromatic color value said target area filled and comprise:
When said picture being amplified the back demonstration, obtain the width parameter and the height parameter of said picture, and said picture is shown to the enlargement factor of said target area;
Width parameter and height parameter according to said enlargement factor and said picture calculate the parameter value that is used to represent said target area;
The parameter value of said target area and said pure monochromatic color value are filled the input parameter value of interface as said graphics module rectangle, call said graphics module rectangle and fill interface said pure monochromatic color value is filled into said target area.
5. method according to claim 1 is characterized in that, also comprises:
When system resource during less than first threshold, discharge the shared Installed System Memory of the decoded view data of said pure monochromatic picture, perhaps,, discharge the Installed System Memory that said pure monochromatic picture takies when system resource during less than second threshold value;
Behind the delivery system internal memory, save as the pure monochromatic sign of said pure monochromatic picture setting and the pure monochromatic color value of said pure monochromatic picture.
6. the display device of a pure monochromatic picture is characterized in that, comprising:
Decoding unit is used to treat the picture that is shown to the target area and decodes;
Judging unit is used for judging according to decoded view data whether said picture is pure monochromatic picture;
Display unit is used for when the said picture of said judgment unit judges is pure monochromatic picture, calls graphics module rectangle filling interface and according to said pure monochromatic color value said target area is filled, and accomplishes the demonstration to said pure monochromatic picture.
7. device according to claim 6 is characterized in that, said judging unit comprises:
Color value statistics subelement is used for the color value of each pixel of the view data behind the statistical decoder;
Pure monochromatic picture is confirmed subelement, is used for when the color value of said each pixel is consistent, confirming that said picture is pure monochromatic picture.
8. device according to claim 6 is characterized in that, said display unit comprises:
First obtains subelement, is used for when the original size according to said picture shows, obtains the width parameter and the height parameter of said picture;
First computation subunit is used for calculating the parameter value that is used to represent said target area according to said width parameter and height parameter;
First calls the filling subelement; Be used for the parameter value of said target area and said pure monochromatic color value are filled the input parameter value of interface as said graphics module rectangle, call said graphics module rectangle and fill interface said pure monochromatic color value is filled into said target area.
9. device according to claim 6 is characterized in that, said display unit comprises:
Second obtains subelement, is used for when said picture being amplified the back demonstration, obtain the width parameter and the height parameter of said picture, and said picture being shown to the enlargement factor of said target area;
Second computation subunit is used for calculating the parameter value that is used to represent said target area according to the width parameter and the height parameter of said enlargement factor and said picture;
Second calls the filling subelement; Be used for the parameter value of said target area and said pure monochromatic color value are filled the input parameter value of interface as said graphics module rectangle, call said graphics module rectangle and fill interface said pure monochromatic color value is filled into said target area.
10. device according to claim 6 is characterized in that, also comprises:
Releasing unit is used for discharging the shared Installed System Memory of the decoded view data of said pure monochromatic picture when system resource during less than first threshold, perhaps, when system resource during less than second threshold value, discharges the Installed System Memory that said pure monochromatic picture takies;
Preserve the unit, be used for behind said releasing unit delivery system internal memory, save as the pure monochromatic sign of said pure monochromatic picture setting and the pure monochromatic color value of said pure monochromatic picture.
CN 201110165847 2011-06-20 2011-06-20 Method and device for displaying pure monochrome picture Active CN102394053B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN 201110165847 CN102394053B (en) 2011-06-20 2011-06-20 Method and device for displaying pure monochrome picture
HK12109045.2A HK1168935A1 (en) 2011-06-20 2012-09-14 A method and device for displaying a monochrome image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201110165847 CN102394053B (en) 2011-06-20 2011-06-20 Method and device for displaying pure monochrome picture

Publications (2)

Publication Number Publication Date
CN102394053A true CN102394053A (en) 2012-03-28
CN102394053B CN102394053B (en) 2013-08-14

Family

ID=45861354

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201110165847 Active CN102394053B (en) 2011-06-20 2011-06-20 Method and device for displaying pure monochrome picture

Country Status (2)

Country Link
CN (1) CN102394053B (en)
HK (1) HK1168935A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104504107A (en) * 2014-12-30 2015-04-08 百度在线网络技术(北京)有限公司 Search picture display method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1649384A (en) * 2004-01-19 2005-08-03 株式会社理光 Image processing apparatus, image processing program and storage medium
US20060176403A1 (en) * 2005-01-05 2006-08-10 Hillcrest Laboratories, Inc. Distributed software construction for user interfaces
CN101052131A (en) * 2006-04-06 2007-10-10 株式会社尼康 Imaging apparatus
JP2010081540A (en) * 2008-09-29 2010-04-08 Sharp Corp Moving image reproducing apparatus and moving image reproducing method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1649384A (en) * 2004-01-19 2005-08-03 株式会社理光 Image processing apparatus, image processing program and storage medium
US20060176403A1 (en) * 2005-01-05 2006-08-10 Hillcrest Laboratories, Inc. Distributed software construction for user interfaces
CN101052131A (en) * 2006-04-06 2007-10-10 株式会社尼康 Imaging apparatus
JP2010081540A (en) * 2008-09-29 2010-04-08 Sharp Corp Moving image reproducing apparatus and moving image reproducing method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104504107A (en) * 2014-12-30 2015-04-08 百度在线网络技术(北京)有限公司 Search picture display method and device

Also Published As

Publication number Publication date
CN102394053B (en) 2013-08-14
HK1168935A1 (en) 2013-01-11

Similar Documents

Publication Publication Date Title
US10410398B2 (en) Systems and methods for reducing memory bandwidth using low quality tiles
CN101499172A (en) ActiveX drafting method and device
US20160132284A1 (en) Systems and methods for performing display mirroring
US20170127012A1 (en) Updating regions for display based on video decoding mode
CN107315275B (en) Display method and device and computer equipment
TW201519156A (en) Video data compression format
US20090256852A1 (en) Character display apparatus
US7432937B2 (en) System and method for concave polygon rasterization
CN108470547B (en) Backlight control method of display panel, computer readable medium and display device
CN110782387B (en) Image processing method and device, image processor and electronic equipment
CN108924557B (en) Image processing method, image processing device, electronic equipment and storage medium
CN112184538B (en) Image acceleration method, related device, equipment and storage medium
CN111787240A (en) Video generation method, device and computer readable storage medium
CN102394053B (en) Method and device for displaying pure monochrome picture
CN112714357A (en) Video playing method, video playing device, electronic equipment and storage medium
US20230214963A1 (en) Data processing method and apparatus, and electronic device
US8564612B2 (en) Deep pixel pipeline
CN108509112B (en) Menu display method and device, display equipment and storage medium
US10475164B2 (en) Artifact detection in a contrast enhanced output image
WO2022022086A1 (en) Image processing method, image processing apparatus, electronic device, and image display system
US8515166B2 (en) Method of compressing a block-based binary image
US20100171760A1 (en) Method and apparatus for presenting overlay images
US9317891B2 (en) Systems and methods for hardware-accelerated key color extraction
CN102098451A (en) Image segmentation display method based on synthetic video
JP2017097120A (en) Display controller, multi-display system, and display method of multi-display system

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: 1168935

Country of ref document: HK

C14 Grant of patent or utility model
GR01 Patent grant
REG Reference to a national code

Ref country code: HK

Ref legal event code: GR

Ref document number: 1168935

Country of ref document: HK