CN105139333B - A kind of picture loading display method and device - Google Patents
A kind of picture loading display method and device Download PDFInfo
- Publication number
- CN105139333B CN105139333B CN201510613732.2A CN201510613732A CN105139333B CN 105139333 B CN105139333 B CN 105139333B CN 201510613732 A CN201510613732 A CN 201510613732A CN 105139333 B CN105139333 B CN 105139333B
- Authority
- CN
- China
- Prior art keywords
- color
- picture
- variance
- values
- loading method
- 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
Links
Landscapes
- Image Processing (AREA)
Abstract
The embodiment of the invention discloses a kind of picture loading display method and devices.This method comprises: calculating the color amplitude of picture to be shown;According to the corresponding relationship of preset color amplitude and picture loading method, select the corresponding picture loading method of color amplitude being calculated, wherein, in the corresponding relationship of the preset color amplitude and picture loading method, color amplitude is bigger, and the color bits digit of corresponding picture loading method is bigger;The picture to be shown is loaded using selected picture loading method, to realize the display of the picture to be shown.Picture to be shown is loaded according to such picture loading method, the color of the picture after display is not easy to be distorted, and also avoids the problem that memory overhead causes greatly operational efficiency low due to color change is small.
Description
Technical field
The present invention relates to image processing technology more particularly to a kind of picture loading display methods and device.
Background technique
In smart machine, many media resources are presented by way of thumbnail.Currently, for the color of thumbnail
It has been shown that, the picture loading method for generalling use fixed number of bits load picture to be shown to realize the aobvious of picture to be shown
Show, such as common RGB (Red Green Blue, RGB) _ 565, this processing mode, the color information that can be indicated is solid
Fixed.For picture that is rich in color, changing greatly, color that the picture loading method of fixed number of bits can indicate
Multimedia message is fewer than color information actually required, and the picture after display is easy to appear color distortion;It is lesser for color change
For picture, the color information that the picture loading method of fixed number of bits can indicate is than color information actually required
Problems more, that memory overhead causes greatly operational efficiency low.
Summary of the invention
The purpose of the embodiment of the present invention is that provide a kind of picture loading display method and device, for solving using fixed
The picture loading method of number of bits loads picture to be shown, and the picture after display is easy to appear color distortion or memory overhead
The problem for causing operational efficiency low greatly.
The purpose of the embodiment of the present invention is that be achieved through the following technical solutions:
A kind of picture loading display method, comprising:
Calculate the color amplitude of picture to be shown;
According to the corresponding relationship of preset color amplitude and picture loading method, the color amplitude being calculated is selected
Corresponding picture loading method, wherein in the corresponding relationship of the preset color amplitude and picture loading method, color
Amplitude is bigger, and the color bits digit of corresponding picture loading method is bigger;
The picture to be shown is loaded using selected picture loading method, to realize the aobvious of the picture to be shown
Show.
A kind of picture loaded and displayed device, comprising:
Color magnitude computation module, is used for: calculating the color amplitude of picture to be shown;
Picture loading method selecting module, is used for: corresponding with picture loading method according to preset color amplitude
Relationship selects the corresponding picture loading method of the color amplitude being calculated, wherein the preset color amplitude and figure
In the corresponding relationship of piece loading method, color amplitude is bigger, and the color bits digit of corresponding picture loading method is bigger;
Loaded and displayed module, is used for: the picture to be shown is loaded using selected picture loading method, to realize
State the display of picture to be shown.
The embodiment of the present invention has the beneficial effect that:
Since the color of some pictures is relatively abundant, the color change of entire picture is larger, when loading picture to be shown, institute
Color information represented by the picture loading method of use is more, can more actually reflect the color of picture to be shown.Phase
More in the prior art using the picture loading method of fixed number of bits, in the embodiment of the present invention, the color of picture to be shown
Coloured silk is abundant, color change is bigger, and color amplitude is bigger, and the biggish picture loading method of number of bits is selected to load figure to be shown
Piece readily satisfies its demand to color information, and the picture after allowing for display is more clear, and the color of picture is not easy to be distorted.Phase
It answers, the color change of picture to be shown is smaller, and color amplitude is smaller, and the number of bits of the picture loading method of selection is smaller,
In this way, guarantee to meet picture clearly is shown to the needs of color information under the premise of, moreover it is possible to avoid memory overhead from leading greatly
The problem for causing operational efficiency low.
Detailed description of the invention
Fig. 1 is a kind of picture loading display method flow chart provided in an embodiment of the present invention;
Fig. 2 is a kind of stratified sampling method schematic diagram provided in an embodiment of the present invention;
Fig. 3 is another picture loading display method flow chart provided in an embodiment of the present invention;
Fig. 4 is a kind of picture loaded and displayed schematic device provided in an embodiment of the present invention.
Specific embodiment
A kind of picture loading display method provided by the invention and device are carried out with reference to the accompanying drawings and examples more detailed
Carefully illustrate.
As shown in Figure 1, the embodiment of the present invention provides a kind of picture loading display method, specific implementation is as follows:
Step 110: calculating the color amplitude of picture to be shown.
Wherein, which reflects the color change degree of picture, and color amplitude is bigger, and color change degree is got over
Greatly.
Step 120: according to the corresponding relationship of preset color amplitude and picture loading method, selecting to be calculated
The corresponding picture loading method of color amplitude, wherein the corresponding relationship of preset the color amplitude and picture loading method
In, color amplitude is bigger, and the color bits digit of corresponding picture loading method is bigger.
Step 130: picture to be shown being loaded using selected picture loading method, to realize the aobvious of picture to be shown
Show.
Since the color of some pictures is relatively abundant, the color change of entire picture is larger, when loading picture to be shown, institute
Color information represented by the picture loading method of use is more, can more actually reflect the color of picture to be shown.Phase
More in the prior art using the picture loading method of fixed number of bits, in the embodiment of the present invention, the color of picture to be shown
Coloured silk is abundant, color change is bigger, and color amplitude is bigger, and the biggish picture loading method of number of bits is selected to load figure to be shown
Piece readily satisfies its demand to color information, and the picture after allowing for display is more clear, and the color of picture is not easy to be distorted.Phase
It answers, the color change of picture to be shown is smaller, and color amplitude is smaller, and the number of bits of the picture loading method of selection is smaller,
In this way, guarantee to meet picture clearly is shown to the needs of color information under the premise of, moreover it is possible to avoid memory overhead from leading greatly
The problem for causing operational efficiency low.
Optionally, calculate the color amplitude of picture to be shown in above-mentioned steps 110, a kind of implementation include: treat it is aobvious
Diagram piece carries out pixel point sampling, obtains the color-values of all sampled points;The variance of the color-values of all sampled points is calculated, the color
The variance of color value reflects color amplitude.
Wherein, there are many implementations that pixel point sampling is carried out to picture to be shown, one of implementation: will be to
Display picture is divided into N number of region, and in each area to pixel stochastical sampling, q sampled point is always obtained.This sampling side
Formula, referred to as stratified sampling, each region are one layer.
A kind of implementation of stratified sampling is specifically introduced below: according to the ruler to be shown of picture to be shown
Very little (long * wide) S1 and aspect ratio x determines the coordinate (x0, y0) of central pixel point and the pixel size of minimum delamination area
(Area), wherein a kind of method of determination of minimum delamination area is the length of minimum delamination area: the length of picture to be shown is divided by x
Multiplied by parameter alpha, the width of minimum delamination area: the width of picture to be shown is divided by x multiplied by parameter, wherein parameter alpha is based on experience value
Determining;Total number of sample points amount q is determined according to the display size of picture to be shown;According to the position of (x0, y0) and Area, with
It is layered outward centered on (x0, y0), picture to be shown region to be sampled is layered according to the default number of plies and every layer of weight, it is each
The weight of layer is bigger, and the block number for assigning to the minimum delamination area of this layer is more, as shown in Fig. 2, the default number of plies is 5 layers, every layer
Weight is respectively as follows: a, b, c, d, e, the block number of every layer of corresponding minimum delamination area are as follows: f1, f2, f3, f4, f5;Determine each layer
The quantity of middle sampled point are as follows: the weight of this layer is multiplied by the block number of this layer of corresponding minimum delamination area multiplied by q;In each layer,
The sampled point of quantification is obtained to pixel stochastical sampling.
The above is only the citings to pixel sample mode and non-limiting.
In above-described embodiment, sampled point is obtained to the pixel point sampling of picture to be shown by the way of stratified sampling, this
Sample, it is ensured that obtained sampling point distributions are uniform, and all sampled points is avoided to concentrate on some region, are not easy to be distorted.
In the embodiment of the present invention, figure to be shown can be loaded based on RGB (Red Green Blue, RGB) color space
Piece can also load picture to be shown based on YUV color space, or load picture to be shown based on other color spaces, etc.
Deng.
In the present embodiment, for based on rgb color space, to the color-values for calculating all sampled points in above-described embodiment
Variance be illustrated.In rgb color space, color-values include red (Red, R) value, green (Green, G) value, (Blue,
B) value, then calculating the specific implementation of the variance of the color-values of all sampled points are as follows: calculate the red R value of all sampled points
Variance;Calculate the variance of the green G value of all sampled points;Calculate the variance of the blue B value of all sampled points;According to the R value
Variance, the variance of the variance of G value and B value the variances 4 of the color-values is calculated.
Specifically, sampling to obtain q sampled point in the way of the sampling mentioned in above-mentioned related embodiment, acquisition is adopted
The color-values of sampling point j are Mj(R, G, B), { j=1,2 ..., q }.Color-values MjThe components R value of (R, G, B) is Mj_ R, component G value
For Mj_ G, component B value are Mj_B.Calculate the variance of average value Ma_R, the R value of the R value of all sampled points are as follows:
Pa_R=(1/q) * sum { (M1_R-Ma_R)2+(M2_R-Ma_R)2+……+(Mq_R-Ma_R)2}(1);
Calculate the variance of average value Ma_G, the G value of the G value of all sampled points are as follows:
Pa_G=(1/q) * sum { (M1_G-Ma_G)2+(M2_G-Ma_G)2+……+(Mq_G-Ma_G)2}(2);
Calculate the variance of average value Ma_B, the B value of the B value of all sampled points are as follows:
Pa_B=(1/q) * sum { (M1_B-Ma_B)2+(M2_B-Ma_B)2+……+(Mq_B-Ma_B)2}(3);
The variance Pa (R, G, B) of color-values is calculated according to Pa_R, Pa_G, Pa_B:
Pa (R, G, B)=1/3*sqrt (Pa_R+Pa_G+Pa_B) (4);
Alternatively,
Pa (R, G, B)=1/3* (Pa_R+Pa_G+Pa_B) (5).
Optionally, in above-mentioned each embodiment, there are many types of picture loading method, for example, may include: transparency
(ALPHA) _ 8, transparency RGB (Alpha Red Green Blue, ARGB) _ 4444, RGB_565 and ARGB_8888, etc.
Deng.Wherein, the number of bits for color information being indicated in ALPHA_8 is 8, and the bit of color information is indicated in ARGB_4444
Number is 12, indicates that the number of bits of color information is 16 in RGB_565, the bit of color information is indicated in ARGB_8888
Digit is 24.
If using several picture loading method enumerated in above-described embodiment, the variance and picture loading method of color-values
Corresponding relationship, comprising:
For the variance of color-values less than the first preset threshold, corresponding picture loading method is transparency ALPHA_8;
The variance of color-values is more than or equal to the first preset threshold, and less than the second preset threshold, corresponding picture adds
Support method is transparency RGB ARGB_4444;
The variance of color-values is more than or equal to the second preset threshold, and is less than third predetermined threshold value, and corresponding picture adds
Support method is RGB RGB_565;
The variance of color-values is greater than third predetermined threshold value, and corresponding picture loading method is ARGB_8888;
Wherein, the first preset threshold is less than third predetermined threshold value less than the second preset threshold, the second preset threshold.
In the present embodiment, the first preset threshold, the second preset threshold and third predetermined threshold value are can based on experience value really
Fixed.
Correspondingly, a kind of specific implementation of above-mentioned steps 120 may is that the variance for the color-values that judgement is calculated
Whether less than the first preset threshold, if so, determining that the corresponding picture loading method of variance for the color-values being calculated is
Otherwise ALPHA_8 judges the variance for the color-values being calculated whether less than the second preset threshold, if so, determination calculates
The corresponding picture loading method of the variance of the color-values arrived is otherwise ARGB_4444 judges the variance of color-values being calculated
Whether it is less than third predetermined threshold value, determines that the corresponding picture loading method of variance for the color-values being calculated is RGB_565, it is no
Then, the variance for the color-values being calculated is determined, if so, determining the corresponding picture load of the variance for the color-values being calculated
Method is ARGB_8888.Alternatively, the another kind of above-mentioned steps 120 is achieved in that: searching the variance for the color-values being calculated
The variance range of the above-mentioned color-values at place determines that the variance for the color-values being calculated corresponds to picture loading method are as follows: search
The corresponding picture loading method of the variance range of the color-values arrived.
Optionally, in above-mentioned each embodiment, can also judge before the color amplitude for calculating picture to be shown to aobvious
Whether the size to be shown of diagram piece is less than preset value, if so, determining that picture loading method is the picture load side of default
Method (without calculating the color amplitude of picture to be shown).Correspondingly, the specific implementation of above-mentioned steps 110 is: if it is determined that
The size to be shown of picture to be shown is not less than preset value out, calculates the color amplitude of picture to be shown.
Since human eye is insensitive to the lesser picture of size, therefore, it is not necessary to pay close attention to whether its color is distorted, in order to save
About memory source can directly determine picture loading method and be the picture loading method of default, load in this way, can be improved to aobvious
The treatment effeciency of diagram piece.
Optionally, in above-described embodiment, the picture loading method of default is the picture loading method of the smallest number of bits.
For example, the picture loading method of default is ALPHA_8.
Below based on rgb color space, as shown in figure 3, to a kind of picture loaded and displayed side provided in an embodiment of the present invention
Method is explained in more detail.
Step 310: when smart machine receives the request message for loading picture to be shown, judging to apply in request message
The size to be shown of picture to be shown whether be less than preset value, if so, executing step 320, otherwise, execute step 330.
Step 320: selecting picture loading method for the picture loading method RGB_565 of default, execute step 3120.
Step 330: sampled point being obtained to picture to be shown progress pixel point sampling by the way of stratified sampling and is obtained
The color-values of all sampled points execute step 340.
Specifically, determining the coordinate of central pixel point according to the size S1 and aspect ratio x to be shown of picture to be shown
The pixel size Area of (x0, y0) and minimum delamination area;Determine that sampled point is total according to the size to be shown of picture to be shown
Quantity q;It according to the position of (x0, y0) and Area, is layered outward centered on (x0, y0), by picture to be shown region to be sampled
According to the default number of plies and the layering of every layer of weight, each layer of weight is bigger, and the block number for assigning to the minimum delamination area of this layer is got over
More, as shown in Fig. 2, the default number of plies is 5 layers, every layer of weight is respectively as follows: a, b, c, d, e, every layer of corresponding minimum delamination area
Block number are as follows: f1, f2, f3, f4, f5;Determine the quantity of sampled point in each layer are as follows: the weight of this layer multiplied by this layer it is corresponding most
The block number of small delamination area is multiplied by q;In each layer, the sampled point of quantification is obtained to pixel stochastical sampling and obtains institute
There are the color-values of sampled point.
Step 340: calculating the variance Pa_R of the R value of all sampled points;Calculate the variance Pa_G of the G value of all sampled points;
Calculate the variance Pa_B of the B value of all sampled points;According to the variance Pa_B of variance Pa_G and the B value of variance Pa_R, the G value of R value
The variance Pa (R, G, B) of color-values is calculated, executes step 350.
Optionally, shown in the variance of the color-values obtained such as above-mentioned formula (4).
Step 350: judging the Pa (R, G, B) being calculated whether less than the first preset threshold, if so, executing step
360, otherwise, execute step 370.
Optionally, in the present embodiment, the first preset threshold is 0.5.
Step 360: selecting the corresponding picture loading method of Pa (R, G, B) being calculated is ALPHA_8, executes step
3120。
Step 370: judging the Pa (R, G, B) being calculated whether less than the second preset threshold, if so, executing step
380, otherwise, execute step 390.
Optionally, in the present embodiment, the second preset threshold is 24.
Step 380: determining that (R, G, B) the corresponding picture loading method being calculated is ARGB_4444, execute step
3120。
Step 390: judging whether the Pa (R, G, B) being calculated is less than third predetermined threshold value, if so, executing step
3100, otherwise, execute step 3110.
Optionally, in the present embodiment, third predetermined threshold value 81.
Step 3100: selecting the corresponding picture loading method of Pa (R, G, B) being calculated is RGB_565, executes step
3120。
Step 3110: selecting the corresponding picture loading method of Pa (R, G, B) being calculated is ARGB_8888, executes step
Rapid 3120.
In the present embodiment, the maximal bit digit of picture loading method is 24, i.e. ARGB_8888.Therefore, be not required to followed by
Continuous judgement.
Step 3120: picture to be shown being loaded using the picture loading method of selection, to realize the display of picture to be shown.
It should be pointed out that the timing of above-mentioned steps 350,370 and 390 is only citing, and non-limiting.
Based on same inventive concept, as shown in figure 4, the embodiment of the present invention provides a kind of picture loaded and displayed device, packet
Include color magnitude computation module 401, picture loading method selecting module 402 and picture loaded and displayed module 403.
Color magnitude computation module 401, is used for: calculating the color amplitude of picture to be shown;
Picture loading method selecting module 402, is used for: according to pair of preset color amplitude and picture loading method
It should be related to, select the corresponding picture loading method of the color amplitude being calculated, wherein the preset color amplitude and figure
In the corresponding relationship of piece loading method, color amplitude is bigger, and the color bits digit of corresponding picture loading method is bigger;
Picture loaded and displayed module 403, is used for: picture to be shown is loaded using selected picture loading method, with reality
The display of existing picture to be shown.
Since the color of some pictures is relatively abundant, the color change of entire picture is larger, when loading picture to be shown, institute
Color information represented by the picture loading method of use is more, can more actually reflect the color of picture to be shown.Phase
More in the prior art using the picture loading method of fixed number of bits, in the embodiment of the present invention, the color of picture to be shown
Coloured silk is abundant, color change is bigger, and color amplitude is bigger, and the biggish picture loading method of number of bits is selected to load figure to be shown
Piece readily satisfies its demand to color information, and the picture after allowing for display is more clear, and the color of picture is not easy to be distorted.Phase
It answers, the color change of picture to be shown is smaller, and color amplitude is smaller, and the number of bits of the picture loading method of selection is smaller,
In this way, guarantee to meet picture clearly is shown to the needs of color information under the premise of, moreover it is possible to avoid memory overhead from leading greatly
The problem for causing operational efficiency low.
Optionally, color magnitude computation module 401 is specifically used for:
Pixel point sampling is carried out to picture to be shown, obtains the color-values of all sampled points;
The variance of the color-values of all sampled points is calculated, the variance of color-values reflects color amplitude.
Optionally, when calculating the variance of the color-values of all sampled points, color magnitude computation module 401 is specifically used for:
Calculate the variance of the red R value of all sampled points;
Calculate the variance of the green G value of all sampled points;
Calculate the variance of the blue B value of all sampled points;
The variance of the color-values is calculated according to the variance of the variance of the R value, the variance of G value and B value.
Optionally, the corresponding relationship of preset color amplitude and picture loading method, comprising:
For the variance of color-values less than the first preset threshold, corresponding picture loading method is transparency ALPHA_8;
The variance of color-values is more than or equal to the first preset threshold, and less than the second preset threshold, corresponding picture adds
Support method is transparency RGB ARGB_4444;
The variance of color-values is more than or equal to the second preset threshold, and is less than third predetermined threshold value, and corresponding picture adds
Support method is RGB RGB_565;
The variance of color-values is greater than third predetermined threshold value, and corresponding picture loading method is ARGB_8888;
Wherein, the first preset threshold is less than third predetermined threshold value less than the second preset threshold, the second preset threshold.
Optionally, when carrying out pixel point sampling to picture to be shown, color magnitude computation module 401 is specifically used for:
Picture to be shown is divided into N number of region;
In each area to pixel stochastical sampling, q sampled point is always obtained.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention
Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more,
The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces
The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic
Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as
It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to include these modifications and variations.
Claims (10)
1. a kind of picture loading display method characterized by comprising
Calculate the color amplitude of picture to be shown;The color amplitude is used to reflect the color change degree of picture, color amplitude
Bigger, color change degree is bigger;
According to the corresponding relationship of preset color amplitude and picture loading method, select the color amplitude being calculated corresponding
Picture loading method, wherein in the corresponding relationship of the preset color amplitude and picture loading method, color amplitude
Bigger, the color bits digit of corresponding picture loading method is bigger;
The picture to be shown is loaded using selected picture loading method, to realize the display of the picture to be shown.
2. the method according to claim 1, wherein calculating the color amplitude of picture to be shown, comprising:
Pixel point sampling is carried out to the picture to be shown, obtains the color-values of all sampled points;
The variance of the color-values of all sampled points is calculated, the variance of the color-values reflects the color amplitude.
3. according to the method described in claim 2, it is characterized in that, calculating the variance of the color-values of all sampled points, comprising:
Calculate the variance of the red R value of all sampled points;
Calculate the variance of the green G value of all sampled points;
Calculate the variance of the blue B value of all sampled points;
The variance of the color-values is calculated according to the variance of the variance of the R value, the variance of G value and B value.
4. according to the method described in claim 3, it is characterized in that, the preset color amplitude and picture loading method
Corresponding relationship, comprising:
For the variance of the color-values less than the first preset threshold, corresponding picture loading method is transparency ALPHA_8;
The variance of the color-values is more than or equal to the first preset threshold, and less than the second preset threshold, corresponding picture adds
Support method is transparency RGB ARGB_4444;
The variance of the color-values is more than or equal to the second preset threshold, and is less than third predetermined threshold value, and corresponding picture adds
Support method is RGB RGB_565;
The variance of the color-values is greater than third predetermined threshold value, and corresponding picture loading method is ARGB_8888;
Wherein, first preset threshold is less than second preset threshold, and it is pre- that second preset threshold is less than the third
If threshold value.
5. according to the method described in claim 2, it is characterized in that, carrying out pixel point sampling to the picture to be shown, comprising:
The picture to be shown is divided into N number of region, in each area to pixel stochastical sampling, q sampling is always obtained
Point.
6. a kind of picture loaded and displayed device characterized by comprising
Color magnitude computation module, is used for: calculating the color amplitude of picture to be shown;The color amplitude is for reflecting picture
Color change degree, color amplitude is bigger, and color change degree is bigger;
Picture loading method selecting module, is used for: according to the corresponding relationship of preset color amplitude and picture loading method,
Select the corresponding picture loading method of color amplitude being calculated, wherein the preset color amplitude adds with picture
In the corresponding relationship of support method, color amplitude is bigger, and the color bits digit of corresponding picture loading method is bigger;
Picture loaded and displayed module, is used for: the picture to be shown is loaded using selected picture loading method, to realize
State the display of picture to be shown.
7. device according to claim 6, which is characterized in that the color magnitude computation module is specifically used for:
Pixel point sampling is carried out to the picture to be shown, obtains the color-values of all sampled points;
The variance of the color-values of all sampled points is calculated, the variance of the color-values reflects the color amplitude.
8. device according to claim 7, which is characterized in that described when calculating the variance of the color-values of all sampled points
Color magnitude computation module is specifically used for:
Calculate the variance of the red R value of all sampled points;
Calculate the variance of the green G value of all sampled points;
Calculate the variance of the blue B value of all sampled points;
The variance of the color-values is calculated according to the variance of the variance of the R value, the variance of G value and B value.
9. device according to claim 8, which is characterized in that the preset color amplitude and picture loading method
Corresponding relationship, comprising:
For the variance of the color-values less than the first preset threshold, corresponding picture loading method is transparency ALPHA_8;
The variance of the color-values is more than or equal to the first preset threshold, and less than the second preset threshold, corresponding picture adds
Support method is transparency RGB ARGB_4444;
The variance of the color-values is more than or equal to the second preset threshold, and is less than third predetermined threshold value, and corresponding picture adds
Support method is RGB RGB_565;
The variance of the color-values is greater than third predetermined threshold value, and corresponding picture loading method is ARGB_8888;
Wherein, first preset threshold is less than second preset threshold, and it is pre- that second preset threshold is less than the third
If threshold value.
10. device according to claim 7, which is characterized in that when carrying out pixel point sampling to the picture to be shown, institute
Color magnitude computation module is stated to be specifically used for:
The picture to be shown is divided into N number of region, in each area to pixel stochastical sampling, q sampling is always obtained
Point.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510613732.2A CN105139333B (en) | 2015-09-23 | 2015-09-23 | A kind of picture loading display method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510613732.2A CN105139333B (en) | 2015-09-23 | 2015-09-23 | A kind of picture loading display method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105139333A CN105139333A (en) | 2015-12-09 |
CN105139333B true CN105139333B (en) | 2019-05-24 |
Family
ID=54724666
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510613732.2A Active CN105139333B (en) | 2015-09-23 | 2015-09-23 | A kind of picture loading display method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105139333B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107368430B (en) * | 2017-07-12 | 2020-02-18 | 青岛海信移动通信技术股份有限公司 | Method and device for reducing video memory |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101645260A (en) * | 2008-08-08 | 2010-02-10 | 鸿富锦精密工业(深圳)有限公司 | Electronic photo frame and method capable of adjusting pictures |
CN103076954A (en) * | 2012-12-27 | 2013-05-01 | 北京小米科技有限责任公司 | Method and device for adjusting display effect |
CN104217700A (en) * | 2013-06-03 | 2014-12-17 | 天钰科技股份有限公司 | Display control system and method |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8204333B2 (en) * | 2007-10-15 | 2012-06-19 | Intel Corporation | Converting video and image signal bit depths |
EP2362962A1 (en) * | 2008-12-01 | 2011-09-07 | Marvell World Trade Ltd. | Bit resolution enhancement |
US8897580B2 (en) * | 2012-07-30 | 2014-11-25 | Apple Inc. | Error diffusion with color conversion and encoding |
-
2015
- 2015-09-23 CN CN201510613732.2A patent/CN105139333B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101645260A (en) * | 2008-08-08 | 2010-02-10 | 鸿富锦精密工业(深圳)有限公司 | Electronic photo frame and method capable of adjusting pictures |
CN103076954A (en) * | 2012-12-27 | 2013-05-01 | 北京小米科技有限责任公司 | Method and device for adjusting display effect |
CN104217700A (en) * | 2013-06-03 | 2014-12-17 | 天钰科技股份有限公司 | Display control system and method |
Also Published As
Publication number | Publication date |
---|---|
CN105139333A (en) | 2015-12-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10437541B2 (en) | Graphics engine and environment for efficient real time rendering of graphics that are not pre-known | |
Kähler et al. | Hierarchical voxel block hashing for efficient integration of depth images | |
KR101650999B1 (en) | Rendering mode selection in graphics processing units | |
CN110990516B (en) | Map data processing method, device and server | |
US8068116B2 (en) | Methods, systems, and data structures for generating a rasterizer | |
CN109949693B (en) | Map drawing method and device, computing equipment and storage medium | |
CN104394422A (en) | Video segmentation point acquisition method and device | |
CN104995660B (en) | Redundant sub-pixels mitigate | |
US10068370B2 (en) | Render-time linking of shaders | |
CN103294428A (en) | Information display method and electronic equipment | |
CN103295217B (en) | Pictorial information disposal route and device | |
CN104731855A (en) | Method and device for displaying image resources of WeChat friend circle | |
CN116672704A (en) | Image processing method, electronic equipment and storage medium | |
CN110727825A (en) | Animation playing control method, device, server and storage medium | |
KR102089471B1 (en) | Method and apparatus for tile based rendering | |
KR20130097886A (en) | Apparatus and method for rendering | |
CN105139333B (en) | A kind of picture loading display method and device | |
CN105893578A (en) | Method and device for selecting photos | |
CN105654540A (en) | Method and apparatus for data display in 3D scene | |
CN104754181B (en) | A kind of video noise estimation method and device | |
CN103593822B (en) | The method and apparatus that frosted special effect processing is carried out to data image | |
CN114170359A (en) | Volume fog rendering method, device and equipment and storage medium | |
CN106131638B (en) | Information display method and equipment | |
CN109829956A (en) | Data display method, device and electronic equipment | |
CN104079915A (en) | Parallel virtual view point synthetizing method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |