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

Method and device for displaying pure monochrome picture Download PDF

Info

Publication number
CN102394053B
CN102394053B CN 201110165847 CN201110165847A CN102394053B CN 102394053 B CN102394053 B CN 102394053B CN 201110165847 CN201110165847 CN 201110165847 CN 201110165847 A CN201110165847 A CN 201110165847A CN 102394053 B CN102394053 B CN 102394053B
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.)
Active
Application number
CN 201110165847
Other languages
Chinese (zh)
Other versions
CN102394053A (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

Landscapes

  • Image Generation (AREA)
  • Controls And Circuits For Display Device (AREA)

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 original image is decoded, 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, the color value that then keeps the corresponding point in the target area if not transparent pixel, then is revised as the color of the corresponding point in the target area 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 decoded each pixel, especially for pure monochromatic picture, its all pixels all are same colors, therefore increased the demonstration time, deterministic process also will take a large amount of Installed System Memories space frequently; 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 again, then need to decode again, when the Installed System Memory wretched insufficiency, also need to discharge the raw data of picture, cause when needs show this picture again, need reload picture and decoding, therefore be difficult to make that memory headroom is fully discharged.
Summary of the invention
The embodiment of the present application 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 embodiment of the present application 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 described picture is pure monochromatic picture;
When described picture is pure monochromatic picture, call graphics module rectangle filling interface and according to described pure monochromatic color value described target area is filled, finish the demonstration to described pure monochromatic picture.
Describedly judge according to decoded view data whether described 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 described each pixel is consistent, determine that described picture is pure monochromatic picture.
The described graphics module rectangle that calls is filled interface and according to described pure monochromatic color value described target area is filled and comprise:
When the original size according to described picture shows, obtain width parameter and the height parameter of described picture;
Calculate the parameter value that is used for the described target area of expression according to described width parameter and height parameter;
The parameter value of described target area and described pure monochromatic color value are filled the input parameter value of interface as described graphics module rectangle, call described graphics module rectangle and fill interface described pure monochromatic color value is filled into described target area.
The described graphics module rectangle that calls is filled interface and according to described pure monochromatic color value described target area is filled and comprise:
When described picture being amplified the back demonstration, obtain width parameter and the height parameter of described picture, and described picture is shown to the enlargement factor of described target area;
Width parameter and height parameter according to described enlargement factor and described picture calculate the parameter value that is used for the described target area of expression;
The parameter value of described target area and described pure monochromatic color value are filled the input parameter value of interface as described graphics module rectangle, call described graphics module rectangle and fill interface described pure monochromatic color value is filled into described target area.
Also comprise:
When system resource during less than first threshold, discharge the shared Installed System Memory of the decoded view data of described pure monochromatic picture, perhaps, when system resource during less than second threshold value, discharge the Installed System Memory that described pure monochromatic picture takies;
Behind the delivery system internal memory, save as the pure monochromatic sign of described pure monochromatic picture setting and the pure monochromatic color value of described pure monochromatic picture.
A kind of display device of pure monochromatic picture comprises:
Decoding unit is used for treating the picture that is shown to the target area and decodes;
Judging unit is used for judging according to decoded view data whether described picture is pure monochromatic picture;
Display unit is used for when the described picture of described judgment unit judges is pure monochromatic picture, calls graphics module rectangle filling interface and according to described pure monochromatic color value described target area is filled, and finishes the demonstration to described pure monochromatic picture.
Described 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 determined subelement, is used for determining that described picture is pure monochromatic picture when the color value of described each pixel is consistent.
Described display unit comprises:
First obtains subelement, is used for obtaining width parameter and the height parameter of described picture when the original size according to described picture shows;
First computation subunit is used for calculating the parameter value that is used for the described target area of expression according to described width parameter and height parameter;
First calls the filling subelement, be used for the parameter value of described target area and described pure monochromatic color value are filled the input parameter value of interface as described graphics module rectangle, call described graphics module rectangle and fill interface described pure monochromatic color value is filled into described target area.
Described display unit comprises:
Second obtains subelement, is used for obtain width parameter and the height parameter of described picture, and described picture being shown to the enlargement factor of described target area when described picture being amplified the back demonstration;
Second computation subunit is used for calculating the parameter value that is used for the described target area of expression according to width parameter and the height parameter of described enlargement factor and described picture;
Second calls the filling subelement, be used for the parameter value of described target area and described pure monochromatic color value are filled the input parameter value of interface as described graphics module rectangle, call described graphics module rectangle and fill interface described pure monochromatic color value is filled into described target area.
Also comprise:
Releasing unit is used for discharging the shared Installed System Memory of the decoded view data of described 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 described pure monochromatic picture takies;
Preserve the unit, be used for behind described releasing unit delivery system internal memory, save as the pure monochromatic sign of described pure monochromatic picture setting and the pure monochromatic color value of described pure monochromatic picture.
As can be seen from the above-described embodiment, treating the picture that is shown to the target area in the embodiment of the present application 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 according to pure monochromatic color value the target area is filled.When using the embodiment of the present application and showing pure monochromatic picture, need not to show one by one according to decoded pixel, but fill interface and the target area is carried out integral-filled by calling the graphics module rectangle, therefore saved the time that shows pure monochromatic picture; 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 again, then only need call the graphics module rectangle again fills interface and fills according to the pure monochromatic color value of preserving and get final product, need not to reload picture or again picture is decoded, memory headroom is discharged fully.
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 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 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, by figure module rectangle interface the target area is filled, saved the demonstration time, reduced system's taking resource.
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 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 to 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 determine that then this picture is pure monochromatic picture.
Step 103: when this picture is pure monochromatic picture, calls graphics module rectangle filling interface and according to pure monochromatic color value the target area is filled, finish the demonstration to pure monochromatic picture.
Concrete, when the original size according to picture shows, obtain width parameter and the height parameter of picture, calculate the parameter value that is used for the expression 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 width parameter and the height parameter of picture, and picture is shown to the enlargement factor of target area, width parameter and height parameter according to enlargement factor and picture calculate the parameter value that is used for the expression target area, 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 is described:
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.Be example with the ARGB8888 color format, 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 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 namely adding up red, the green of all pixels and blue 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, the green of all pixels and blue is all consistent, the color value unanimity of these pixels then is described, 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 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 picture to 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
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, needs in the prior art each pixel is judged, therefore expends the plenty of time.
In the embodiment of the present application, 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.May there be 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 expressed 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 for the expression 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 the 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 finishing pure monochromatic picture finishes current flow process.
Fill parametric form fill_rect (the int x of interface according to rectangle, int y, int w, 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, illustrate 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 is described:
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.Be example with the ARGB8888 color format, 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 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 namely adding up red, the green of all pixels and blue is consistent.
Step 303: when the color value of each pixel is consistent, determine that picture is pure monochromatic picture.
When the value of red, the green of all pixels and blue is all consistent, the color value unanimity of these pixels then is described, the picture of being made up of these pixels accordingly is pure monochromatic picture.
Step 304: obtain 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 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 height and the width of picture all amplify two times, so decoded each pixel corresponds on four points in the screen in the original image, and 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.May there be 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 expressed 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 for the expression 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, the width that just can obtain the target area according to width and the height of the picture that obtains in the step 304 and highly.
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, finish the demonstration to pure monochromatic picture.
Fill parametric form fill_rect (the int x of interface according to rectangle, int y, int w, 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 corresponding above-mentioned parameters of difference of two times of the width of picture and 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 described pure monochromatic picture setting and the pure monochromatic color value of described 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 again, then only need call the graphics module rectangle again fills interface and fills according to the pure monochromatic color value of preserving and get final product, need not to reload picture or 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 for treating the picture that is shown to the target area and decodes;
Judging unit 420 is used for judging according to decoded view data whether described picture is pure monochromatic picture;
Display unit 430 is used for calling graphics module rectangle filling interface and according to described pure monochromatic color value described target area being filled when described judging unit 420 judges that described picture is pure monochromatic picture, finishes the demonstration to described 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 for treating the picture that is shown to the target area and decodes;
Judging unit 520 is used for judging according to decoded view data whether described picture is pure monochromatic picture;
Display unit 530 is used for when the described picture of described judgment unit judges is pure monochromatic picture, calls graphics module rectangle filling interface and according to described pure monochromatic color value described target area is filled, and finishes the demonstration to described pure monochromatic picture;
Releasing unit 540 is used for discharging the shared Installed System Memory of the decoded view data of described 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 described pure monochromatic picture takies;
Preserve unit 550, be used for behind described releasing unit delivery system internal memory, save as the pure monochromatic sign of described pure monochromatic picture setting and the pure monochromatic color value of described 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 determined subelement, is used for determining that described picture is pure monochromatic picture when the color value of described each pixel is consistent.
Concrete, display unit 530 can comprise (not shown among Fig. 5):
First obtains subelement, is used for obtaining width parameter and the height parameter of described picture when the original size according to described picture shows;
First computation subunit is used for calculating the parameter value that is used for the described target area of expression according to described width parameter and height parameter;
First calls the filling subelement, be used for the parameter value of described target area and described pure monochromatic color value are filled the input parameter value of interface as described graphics module rectangle, call described graphics module rectangle and fill interface described pure monochromatic color value is filled into described target area.
Concrete, display unit 530 also can comprise (not shown among Fig. 5):
Second obtains subelement, is used for obtain width parameter and the height parameter of described picture, and described picture being shown to the enlargement factor of described target area when described picture being amplified the back demonstration;
Second computation subunit is used for calculating the parameter value that is used for the described target area of expression according to width parameter and the height parameter of described enlargement factor and described picture;
Second calls the filling subelement, be used for the parameter value of described target area and described pure monochromatic color value are filled the input parameter value of interface as described graphics module rectangle, call described graphics module rectangle and fill interface described pure monochromatic color value is filled into described target area.
By to the description of above embodiment as can be known, treating the picture that is shown to the target area in the embodiment of the present application 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 according to pure monochromatic color value the target area is filled.When using the embodiment of the present application and showing pure monochromatic picture, need not to show one by one according to decoded pixel, but fill interface and the target area is carried out integral-filled by calling the graphics module rectangle, therefore saved the time that shows pure monochromatic picture; 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 again, then only need call the graphics module rectangle again fills interface and fills according to the pure monochromatic color value of preserving and get final product, need not to reload picture or 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 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 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 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 restriction to protection domain of the present invention.Any modification of doing 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 (8)

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 described picture is pure monochromatic picture;
When described picture is pure monochromatic picture, call graphics module rectangle filling interface and according to the color value of described pure monochrome described target area is filled, finish the demonstration to described pure monochromatic picture;
When system resource during less than first threshold, discharge the shared Installed System Memory of the decoded view data of described pure monochromatic picture, perhaps, when system resource during less than second threshold value, discharge the Installed System Memory that described pure monochromatic picture takies;
Behind the delivery system internal memory, save as the pure monochromatic sign of described pure monochromatic picture setting and the pure monochromatic color value of described pure monochromatic picture.
2. method according to claim 1 is characterized in that, describedly judges according to decoded view data whether described 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 described each pixel is consistent, determine that described picture is pure monochromatic picture.
3. method according to claim 1 is characterized in that, the described graphics module rectangle that calls is filled interface and according to described pure monochromatic color value described target area filled and comprise:
When the original size according to described picture shows, obtain width parameter and the height parameter of described picture;
Calculate the parameter value that is used for the described target area of expression according to described width parameter and height parameter;
The parameter value of described target area and described pure monochromatic color value are filled the input parameter value of interface as described graphics module rectangle, call described graphics module rectangle and fill interface described pure monochromatic color value is filled into described target area.
4. method according to claim 1 is characterized in that, the described graphics module rectangle that calls is filled interface and according to described pure monochromatic color value described target area filled and comprise:
When described picture being amplified the back demonstration, obtain width parameter and the height parameter of described picture, and described picture is shown to the enlargement factor of described target area;
Width parameter and height parameter according to described enlargement factor and described picture calculate the parameter value that is used for the described target area of expression;
The parameter value of described target area and described pure monochromatic color value are filled the input parameter value of interface as described graphics module rectangle, call described graphics module rectangle and fill interface described pure monochromatic color value is filled into described target area.
5. the display device of a pure monochromatic picture is characterized in that, comprising:
Decoding unit is used for treating the picture that is shown to the target area and decodes;
Judging unit is used for judging according to decoded view data whether described picture is pure monochromatic picture;
Display unit is used for when the described picture of described judgment unit judges is pure monochromatic picture, calls graphics module rectangle filling interface and according to described pure monochromatic color value described target area is filled, and finishes the demonstration to described pure monochromatic picture;
Releasing unit is used for discharging the shared Installed System Memory of the decoded view data of described 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 described pure monochromatic picture takies;
Preserve the unit, be used for behind described releasing unit delivery system internal memory, save as the pure monochromatic sign of described pure monochromatic picture setting and the pure monochromatic color value of described pure monochromatic picture.
6. device according to claim 5 is characterized in that, described 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 determined subelement, is used for determining that described picture is pure monochromatic picture when the color value of described each pixel is consistent.
7. device according to claim 5 is characterized in that, described display unit comprises:
First obtains subelement, is used for obtaining width parameter and the height parameter of described picture when the original size according to described picture shows;
First computation subunit is used for calculating the parameter value that is used for the described target area of expression according to described width parameter and height parameter;
First calls the filling subelement, be used for the parameter value of described target area and described pure monochromatic color value are filled the input parameter value of interface as described graphics module rectangle, call described graphics module rectangle and fill interface described pure monochromatic color value is filled into described target area.
8. device according to claim 5 is characterized in that, described display unit comprises:
Second obtains subelement, is used for obtain width parameter and the height parameter of described picture, and described picture being shown to the enlargement factor of described target area when described picture being amplified the back demonstration;
Second computation subunit is used for calculating the parameter value that is used for the described target area of expression according to width parameter and the height parameter of described enlargement factor and described picture;
Second calls the filling subelement, be used for the parameter value of described target area and described pure monochromatic color value are filled the input parameter value of interface as described graphics module rectangle, call described graphics module rectangle and fill interface described pure monochromatic color value is filled into described target area.
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 CN102394053A (en) 2012-03-28
CN102394053B true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104504107B (en) * 2014-12-30 2018-07-13 百度在线网络技术(北京)有限公司 The methods of exhibiting and device of search pictures
CN111862271B (en) * 2020-07-24 2024-04-26 广州市百果园信息技术有限公司 Display area filling method, device, equipment and storage medium

Citations (2)

* 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
CN101052131A (en) * 2006-04-06 2007-10-10 株式会社尼康 Imaging apparatus

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1834491A4 (en) * 2005-01-05 2010-06-02 Hillcrest Lab Inc Distributed software construction for user interfaces
JP5350728B2 (en) * 2008-09-29 2013-11-27 シャープ株式会社 Movie playback apparatus and movie playback method

Patent Citations (2)

* 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
CN101052131A (en) * 2006-04-06 2007-10-10 株式会社尼康 Imaging apparatus

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
JP特开2010-81540A 2010.04.08

Also Published As

Publication number Publication date
CN102394053A (en) 2012-03-28
HK1168935A1 (en) 2013-01-11

Similar Documents

Publication Publication Date Title
CN110377263B (en) Image synthesis method, image synthesis device, electronic equipment and storage medium
US10410398B2 (en) Systems and methods for reducing memory bandwidth using low quality tiles
US20040233217A1 (en) Adaptive pixel-based blending method and system
US8532436B2 (en) Method and apparatus for scaling an image in segments
US9883137B2 (en) Updating regions for display based on video decoding mode
US20160132284A1 (en) Systems and methods for performing display mirroring
WO2018000372A1 (en) Picture display method and terminal
CN107315275B (en) Display method and device and computer equipment
US8044960B2 (en) Character display apparatus
US11321812B2 (en) Display method, display device, virtual reality display device, virtual reality device, and storage medium
CN112714357A (en) Video playing method, video playing device, electronic equipment and storage medium
CN102394053B (en) Method and device for displaying pure monochrome picture
CN108924557B (en) Image processing method, image processing device, electronic equipment and storage medium
CN108470547B (en) Backlight control method of display panel, computer readable medium and display device
CN112184538B (en) Image acceleration method, related device, equipment and storage medium
US20230214963A1 (en) Data processing method and apparatus, and electronic device
CN104883477B (en) A kind of video data predistortion processing method, device and head-mounted display
US10475164B2 (en) Artifact detection in a contrast enhanced output image
US20080030520A1 (en) Deep Pixel Pipeline
US8515166B2 (en) Method of compressing a block-based binary image
US20100171760A1 (en) Method and apparatus for presenting overlay images
KR20180037837A (en) Method and apparatus for determining the number of bits assigned a channel based on a variation of the channel
CN101661730A (en) Method and device for reducing color gradation of image display
CN105472106A (en) Background display method and device
CN105468312B (en) Image display method and device

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