CN104407832A - Data processing method, data processing device and terminal - Google Patents

Data processing method, data processing device and terminal Download PDF

Info

Publication number
CN104407832A
CN104407832A CN201410715300.8A CN201410715300A CN104407832A CN 104407832 A CN104407832 A CN 104407832A CN 201410715300 A CN201410715300 A CN 201410715300A CN 104407832 A CN104407832 A CN 104407832A
Authority
CN
China
Prior art keywords
color
page data
data
filtration
coefficient
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
CN201410715300.8A
Other languages
Chinese (zh)
Other versions
CN104407832B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201410715300.8A priority Critical patent/CN104407832B/en
Publication of CN104407832A publication Critical patent/CN104407832A/en
Application granted granted Critical
Publication of CN104407832B publication Critical patent/CN104407832B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

An embodiment of the invention is applicable to the communication field and provides a data processing method, a data processing device and a terminal. The data processing method comprises the following steps of obtaining page data which is corresponding to an application program; obtaining a color filtration coefficient of the application program, wherein the color filtration coefficient comprises a blue component filtration coefficient; filtering the obtained page data according to the color filtration coefficient of the application program; outputting the page data after filtration. The data processing method can reduce damage to human eyes from the blue components of the web data.

Description

Data processing method, data processing equipment and terminal
Technical field
The embodiment of the present invention belongs to the communications field, particularly relates to a kind of data processing method, data processing equipment and terminal.
Background technology
Along with the develop rapidly of mobile Internet, smart machine is also in the development of diversification, as the main carriers of mobile Internet-----smart machine (as mobile phone, computer etc.), in our life, play more and more important role, we can be surfed the Net by smart machine, photos and sending messages, play games, do shopping etc., but smart machine is with too and is served healthy hidden danger while offering convenience to us: because user is for a long time in the face of smart machine, therefore produce certain injury to human eye.This is because, compared with other color, blue ray can cause than green light, red light more obviously uncomfortable and disability glare, this is because red light and green light can focus on accurately on the retina, and the focal position of blue ray can be front in retina a little, thus result in the distinctive halation of blue ray.
To sum up, how to reduce the injury of blue ray to human eye and become the problem that is needed badly solution.
Summary of the invention
Embodiments provide a kind of data processing method, data processing equipment and terminal, be intended to solve user when long-time viewing screen, the problem that the injury that the blue ray that screen produces causes human eye is excessive.
First aspect, provides a kind of data processing method, and described method comprises:
Obtain the page data that application program is corresponding;
Obtain the color filtering coefficient of described application program, described color filtering coefficient comprises blue component filtration coefficient;
According to the color filtering coefficient of described application program, filtration treatment is carried out to the described page data obtained;
Export the page data after described filtration treatment.
In conjunction with first aspect, in the first possible implementation of first aspect, the described described page data to obtaining carries out filtration treatment, comprising:
The color data matrix that described page data is corresponding is determined according to screen display resolution, wherein, the color data pixel value of each pixel that page data is corresponding described in described color data matrix representation, wherein said color data pixel value comprises red input pixels value, green-component pixel values and blue-component pixels value, or comprises red input pixels value, green-component pixel values, blue-component pixels value and transparency pixel value;
According to described color data matrix and filtration coefficient matrix corresponding to described color filtering coefficient, determine the color data matrix after filtering, wherein, the filtration coefficient that described filtration coefficient matrix representation is corresponding to each color component that described application program is corresponding, the color data pixel value after the filtration of each pixel that page data is corresponding described in the color data matrix representation after described filtration;
According to the color data matrix after described filtration, determine the page data after described filtration.
In conjunction with the first possible implementation of first aspect, in the implementation that the second of first aspect is possible, the color filtering coefficient of described application program meets the following conditions:
0.6≤Sb≤0.9,0.75≤Sr≤0.9,0.7≤Sg≤1; Wherein, Sb is blue component filtration coefficient, Sr is red component filtration coefficient, Sg is green component filtration coefficient, and Sb is filtration coefficient minimum in color filtering coefficient.
In conjunction with first aspect, or the first possible implementation of first aspect, or the implementation that the second of first aspect is possible, in the third possible implementation of first aspect, before the described described page data to obtaining carries out filtration treatment, described method also comprises:
At the data layout of the color data of described page data neither RGB rgb format, neither RGB transparency RGBA form time, be rgb format by the Data Format Transform of described color data, or, be converted to RGBA form.
In conjunction with first aspect, or the first possible implementation of first aspect, or the implementation that the second of first aspect is possible, or the third possible implementation of first aspect, in the 4th kind of possible implementation of first aspect, the color filtering coefficient of the described application program of described acquisition, comprising:
When storing the color filtering coefficient of described application program, obtain the color filtering coefficient of the described application program stored;
When not storing the color filtering coefficient of described application program, presenting prompting frame by display device, receiving user according to the color filtering coefficient of described prompting frame to described application setting, to obtain the color filtering coefficient of described application program.
In conjunction with first aspect, or the first possible implementation of first aspect, or the implementation that the second of first aspect is possible, or the third possible implementation of first aspect, or the 4th of first aspect the kind of possible implementation, in the 5th kind of possible implementation of first aspect, after the page data of described output after described filtration treatment, described method also comprises:
The reseting of color filtering coefficient receiving the page data after described filtration determines instruction, resets fixed color filtering coefficient to obtain;
Reset fixed color filtering coefficient according to described page data before described filtration treatment is filtered again;
Export the page data after again filtering.
In conjunction with first aspect, or the first possible implementation of first aspect, or the implementation that the second of first aspect is possible, or the third possible implementation of first aspect, or the 4th of first aspect the kind of possible implementation, in the 6th kind of possible implementation of first aspect, after the page data of described output after described filtration treatment, described method also comprises:
Again filter according to the page data of described color filtering coefficient to described filtration treatment;
Export the page data after again filtering.
Second aspect, provides a kind of data processing equipment, and described device comprises:
Page data acquiring unit, for obtaining page data corresponding to application program;
Filtration coefficient acquiring unit, for obtaining the color filtering coefficient of described application program, described color filtering coefficient comprises blue component filtration coefficient;
Page data filter element, for the color filtering coefficient of the application program according to described filtration coefficient acquiring unit acquisition, carries out filtration treatment to the described page data that described page data acquiring unit obtains;
Page data output unit after filtration, for exporting the page data after described page data filter element filtration treatment.
In conjunction with second aspect, in the first possible implementation of second aspect, described page data filter element comprises:
Color data matrix deciding module before filtering, for determining the matrix of the color data that described page data is corresponding according to screen display resolution, wherein, the color data pixel value of each pixel that page data is corresponding described in described color data matrix representation, wherein said color data pixel value comprises red input pixels value, green-component pixel values and blue-component pixels value, or comprises red input pixels value, green-component pixel values, blue-component pixels value and transparency pixel value;
Color data matrix deciding module after filtering, for according to described color data matrix and filtration coefficient matrix corresponding to described color filtering coefficient, determine the color data matrix after filtering, wherein, the filtration coefficient that described filtration coefficient matrix representation is corresponding to each color component that described application program is corresponding, the color data pixel value after the filtration of each pixel that page data is corresponding described in the color data matrix representation after described filtration;
Page data determination module after filtering, for according to the color data matrix after described filtration, determines the page data after described filtration.
In conjunction with second aspect, or the first possible implementation of second aspect, in the implementation that the second of second aspect is possible, described device comprises:
Data Format Transform unit, for the data layout of the color data at described page data neither RGB rgb format, neither RGB transparency RGBA form time, be rgb format by the Data Format Transform of described color data, or, be converted to RGBA form.
In conjunction with second aspect, or the first possible implementation of second aspect, or the implementation that the second of second aspect is possible, in the third possible implementation of second aspect, described filtration coefficient acquiring unit comprises:
First color filtering coefficient acquisition module, for when storing the color filtering coefficient of described application program, obtains the color filtering coefficient of the described application program stored;
Second color filtering coefficient acquisition module, for when not storing the color filtering coefficient of described application program, prompting frame is presented by display device, receive user according to the color filtering coefficient of described prompting frame to described application setting, to obtain the color filtering coefficient of described application program.
In conjunction with second aspect, or the first possible implementation of second aspect, or the implementation that the second of second aspect is possible, or the third possible implementation of second aspect, in the 4th kind of possible implementation of second aspect, described device comprises:
Reset and determine instruction reception unit, the reseting of color filtering coefficient for the page data after receiving described filtration determines instruction, resets fixed color filtering coefficient to obtain;
Page data heavy filtration unit, filters the page data before described filtration treatment again for reseting the fixed color filtering coefficient of reseting determining instruction reception unit reception described in basis;
Heavy filtration page data output unit, for export described page data heavy filtration unit again filter after page data.
In conjunction with second aspect, or the first possible implementation of second aspect, or the implementation that the second of second aspect is possible, or the third possible implementation of second aspect, in the 5th kind of possible implementation of second aspect, described device comprises:
Page data is filter element again, for again filtering according to the page data of described color filtering coefficient to described filtration treatment;
Filtering page data outputting unit again, for exporting the page data after again filtering.
In conjunction with second aspect, or the first possible implementation of second aspect, or the implementation that the second of second aspect is possible, or the third possible implementation of second aspect, or the 4th of second aspect the kind of possible implementation, or the 5th of second aspect the kind of possible implementation, in the 6th kind of possible implementation of second aspect, described device is digital signal processing dsp chip.
The third aspect, provides a kind of terminal, and described terminal comprises above-mentioned data processing equipment.
In conjunction with the third aspect, in the first possible implementation of the third aspect, described terminal is smart mobile phone or panel computer.
In embodiments of the present invention, obtain the page data of application program, and obtain the color filtering coefficient of application program, color filtering coefficient comprises blue filtered coefficient, therefore, can according to the blue component of blue filtered coefficient filtering page data, and the page data of output filtering blue component, thus user can the browse filtration page data of blue component, therefore reduces the injury of blue component to human eye of page data.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of a kind of data processing method that first embodiment of the invention provides;
Fig. 2 is the structural drawing of a kind of data processing equipment that second embodiment of the invention provides.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
In the embodiment of the present invention, obtain the page data that application program is corresponding, and obtain the color filtering coefficient of this application program, wherein, color filtering coefficient comprises blue filtered coefficient, according to the color filtering coefficient of this application program, filtration treatment is carried out to the page data obtained again, finally export the page data after process after filtration.
In order to technical scheme of the present invention is described, be described below by specific embodiment.
embodiment one:
Fig. 1 shows the process flow diagram of a kind of data processing method that first embodiment of the invention provides, in the embodiment of the present invention, by the blue component of dsp interface and/or abstract software interface filtering page data out, thus when user browses the page data of filtering blue component, reduce the blue ray of blue component formation to the injury of human eye, details are as follows:
Step S11, obtains the page data that application program is corresponding.
In this step, application program can be the application such as Netease's news, microblogging, and page data refers to that user is about to the page data of the page opened or watching.
Step S12, obtains the color filtering coefficient of this application program, and this color filtering coefficient comprises blue component filtration coefficient.
The blue component B (Blue) that this color filtering coefficient comprises the page data of application programs carries out the filtration coefficient Sb filtered, the filtration coefficient of the filtration of the non-blue component B of the page data of application programs can also be comprised, the filtration coefficient Sg etc. that the filtration coefficient Sr filtered red component R (Red) as comprised and/or green component G (Green) filters.Wherein, the span of Sr, Sg, Sb is [0,1], but Sb is less than Sr, and is less than Sg.
Alternatively, the step of the color filtering coefficient of this this application program of acquisition specifically comprises:
A1, when storing the color filtering coefficient of this application program, obtain the color filtering coefficient of this application program stored.Particularly, can set up a mapping table in advance, this mapping table is for the corresponding relation of the unique identification and color filtering coefficient that store application program.When setting up this mapping table, can according to the corresponding color filtering coefficient of the type set of application program, such as, the application program higher to color requirements, the color filtering coefficient setting its correspondence is less than 1, but as far as possible close to 1 (between 0.8 to 1), to reduce the color component of filtering, thus the page data before ensureing the page data after filtering and filtering changes not quite, this kind of application program can be plays the program of video or the program of game; On the contrary; the application program lower to color requirements; the color filtering coefficient then setting its correspondence is less than 1; but keep off 1 (between 0.6 to 0.8); to increase the color component of filtering, make the color component of filtration more, particularly make the blue component of filtration more; thus protect eyes better, this kind of application program can be browser supervisor.Certainly, if system does not set up the mapping table of an application program and its color filtering coefficient, but system by the page data of application program by exporting after the interface of dsp chip, and on dsp chip, be provided with the color filtering coefficient of application program, at this moment, system is also defaulted as the color filtering coefficient storing application program.
A2, when not storing the color filtering coefficient of this application program, presenting prompting frame by display device, receiving user according to the color filtering coefficient of described prompting frame to this application setting, to obtain the color filtering coefficient of this application program.When system does not store the color filtering coefficient of application program, prompting user inputs the color filtering coefficient of application program, user is again at the color filtering coefficient of the prompting frame input application program of display, as color filtering coefficient comprise Sr, Sg and Sb time, then input 3 numerical value, the symbol adopting space or comma etc. to preset between numerical value is distinguished.Or when system does not store the color filtering coefficient of application program, multiple options of Show Color filtration coefficient are selected for user.After the color filtering coefficient receiving the setting of user's application programs, store the color filtering coefficient of this application program.
In steps A 2, by arranging all color filtering coefficients of application program on dsp chip, thus the filtration of blue component can be carried out to the page data that user browses according to all color filtering coefficients dsp chip being arranged application program.But in order to better debug the filter effect of page data, can abstract a set of software interface, so that user is judging that color component (comprising blue component and non-blue component) filters less, or time more, by abstract software interface, single or multiple color filtering coefficient is adjusted, with adjust filter color component number, during as filtered less in redness, the color filtering coefficient S r of the red component for filtering page data can be reduced, to adopt the red component of Sr to page data reduced to filter.Particularly, abstraction interface is by realizing with under type:
(1) define at C/C++ layer but be not limited to following structure, and enable interface:
Struct Filter_color{
...........
uint32Sr;
uint32Sg;
uint32Sb;
.............
}filter_color;
By being used for the filtration coefficient of filter red component, green component and blue component in the definition of C/C++ layer: Sr, Sg and Sb, make system can realize the adjustment of single or multiple color filtering coefficient at jni layer, kernel layer.
(2) at the member variable that java layer is defined as follows:
class FilterColor{
...........
uint32Sr;
uint32Sg;
uint32Sb;
.............
}
By defining the color filtering coefficient for filter red component, green component and blue component at java layer: Sr, Sg and Sb, make system can realize the adjustment of single or multiple color filtering coefficient at javal layer.
Wherein, system is maximum by time of color filtering coefficient of java layer adjustment application program, jni level it, kernle layer is minimum.During by java layer, jni layer, kernle layer adjustable colors filtration coefficient, the function interface adopted and variable can be consistent.
Step S13, according to the color filtering coefficient of described application program, carries out filtration treatment to the described page data obtained.
Alternatively, this specifically comprises the step that this page data obtained carries out filtration treatment according to the color filtering coefficient of this application program:
B1, determine according to screen display resolution the color data matrix that this page data is corresponding, wherein, the color data pixel value of each pixel that this this page data of color data matrix representation is corresponding, wherein this color data pixel value comprises red input pixels value, green-component pixel values and blue-component pixels value, or comprises red input pixels value, green-component pixel values, blue-component pixels value and transparency pixel value.Such as, suppose that the data layout of color data is rgb format, the display resolution of screen is H*W, then include in color data matrix [R, G, the B] of H*W group, here R is adopted, G, B refer to each color data at R, G, the pixel value of B tri-components, do not limit each color data all equal at the pixel value of R, G, B tri-components.
B2, according to described color data matrix and filtration coefficient matrix corresponding to described color filtering coefficient, determine the color data matrix after filtering, wherein, the filtration coefficient that described filtration coefficient matrix representation is corresponding to each color component that described application program is corresponding, the color data pixel value after the filtration of each pixel that page data is corresponding described in the color data matrix representation after described filtration.Such as, the color data matrix before filtration is [R, G, B], and the matrix of color filtering coefficient is [Sr, Sg, Sb, Sa], then the color data matrix after filtering is:
[ R , G , B , A ] * [ Sr Sg Sb Sa ] = Sr * R Sg * G Sb * B Sa * A . Wherein, Sa is the value of filtering A component, and the span of this Sa is [0,1], and Sa is greater than Sb.
B3, according to the color data matrix after described filtration, determine the page data after described filtration.
What relate to due to above-mentioned computing is all the matrix operation of rule, and the display delayed impact therefore for power consumption and page data is very low.In addition, due to Sr, Sg, Sb, the span of Sa is all [0,1], and Sb is minimum, therefore, the pixel value of the color data before filtration is less than according to the pixel value of the color data after the filtration that above-mentioned formula obtains, and it is larger to ensure that blue component declines, thus can blue component effectively in filter colors data, reduce the blue ray of blue component formation to the injury of human eye.
Preferably, Sb between 0.6 to 0.9, as 0.75 time, ensure filter blue component basis on, also reduce the degree of distortion of the page data of display, make the impact of display effect minimum.
Preferably, Sr is between 0.75 to 0.9, as 0.9 time, the page data of display is more attractive in appearance.
Preferably, when Sg is between 0.7 to 1, also can reduce the degree of distortion of the page data of display.
Preferably, in step B1, this comprises before determining according to screen display resolution the color data matrix that this page data is corresponding:
At the data layout of this color data neither rgb format, neither RGBA form time, be rgb format by the Data Format Transform of this color data, or, be converted to RGBA form.Data layout due to color data has multiple, as the CMYK form be made up of blue or green (Cyan, C), pinkish red (Magenta, M), the yellow color such as (Yellow, Y), black (Key Plate, K); The YCBCR form etc. be made up of the concentration excursion amount CR of brightness Y, blue concentration excursion amount CB and redness, therefore, when the data layout of color data is non-RGB and non-RGBA, needs the data layout of color data to change accordingly.
Step S14, exports the page data after described filtration treatment.
In this step, the output filtering page data of part or all of blue component.
Alternatively, in step S14, after the page data after this output processes after filtration, comprising:
The reseting of color filtering coefficient receiving the page data after this filtration determines instruction, resets fixed color filtering coefficient to obtain; Reset fixed color filtering coefficient according to this page data before this filtration treatment is filtered again; Export the page data after again filtering.Wherein, this is reseted and determines instruction and comprise and reset fixed instruction at least one color filtering coefficient of the page data after this filtration.In this step, after the page data of the filtration coefficient application programs of the application program according to the N time setting filters, if user finds that filtration result is not good, as very few in found blue component filtering, or there is larger distortion in the page data presented after finding filtering operation, then can perform the operation of filtering again to the page data not performing N filtering operation, and export the page data after performing the operation of filtering again.
Certainly, except by reset determine color filtering coefficient again filter original page data adjust color component filter number except, again realization can also be filtered to the page data after filtration treatment by original color filtering coefficient, such as, at page data after filtration treatment, if user finds that color filtering is less, then realize by following step:
Again filter according to the page data of described color filtering coefficient to described filtration treatment; Export the page data after again filtering.
In the first embodiment of the invention, obtain the page data that application program is corresponding, and obtain the color filtering coefficient of this application program, wherein, color filtering coefficient comprises blue filtered coefficient, according to the color filtering coefficient of this application program, filtration treatment is carried out to the page data obtained again, finally export the page data after process after filtration.Because this color filtering coefficient comprises the filtration coefficient filtered blue component, therefore, can according to the blue component of blue filtered coefficient filtering page data, and the page data of output filtering blue component, thus user can the browse filtration page data of blue component, therefore reduces the injury of blue component to human eye of page data.
Should be understood that in embodiments of the present invention, the size of the sequence number of above-mentioned each process does not also mean that the priority of execution sequence, and the execution sequence of each process should be determined with its function and internal logic, and should not form any restriction to the implementation process of the embodiment of the present invention.
embodiment two:
Fig. 2 shows the structural drawing of a kind of data processing equipment that second embodiment of the invention provides, this data processing equipment can be applied in terminal, this terminal can comprise carries out through wireless access network RAN and one or more core net the subscriber equipment that communicates, this subscriber equipment can be mobile phone (or being called " honeycomb " phone), have the computing machine etc. of mobile device, such as, subscriber equipment can also be portable, pocket, hand-held, built-in computer or vehicle-mounted mobile device, they and wireless access network switched voice and/or data.Again such as, this mobile device can comprise smart mobile phone, panel computer, personal digital assistant PDA, point-of-sale terminal POS or vehicle-mounted computer etc.For convenience of explanation, illustrate only the part relevant to the embodiment of the present invention.
This data processing equipment comprises: the page data output unit 24 after page data acquiring unit 21, filtration coefficient acquiring unit 22, page data filter element 23, filtration.Wherein:
Page data acquiring unit 21, for obtaining page data corresponding to application program.
Wherein, page data refers to that user is about to the page data of the page opened or watching.When the page data of application program has multiple, normally obtain the page data of the homepage of this application program.
Filtration coefficient acquiring unit 22, for obtaining the color filtering coefficient of this application program, described color filtering coefficient comprises blue component filtration coefficient.
Wherein, the B component that this color filtering coefficient comprises the page data of application programs carries out the filtration coefficient Sb filtered, and the R component that can also comprise the page data of application programs carries out the filtration coefficient Sg etc. that the filtration coefficient Sr that filters and/or G component carry out filtering.Wherein, the span of Sr, Sg, Sb is [0,1], but Sb is less than Sr, and is less than Sg.
Alternatively, this filtration coefficient acquiring unit 22 comprises:
First color filtering coefficient acquisition module, for when storing the color filtering coefficient of described application program, obtains the color filtering coefficient of the described application program stored.Particularly, according to the mapping table of the corresponding relation of the unique identification storing application program set up and color filtering coefficient, can judge whether application program has stored color filtering coefficient.
Second color filtering coefficient acquisition module, for when not storing the color filtering coefficient of described application program, prompting frame is presented by display device, receive user according to the color filtering coefficient of described prompting frame to described application setting, to obtain the color filtering coefficient of described application program.Particularly, when system does not store the color filtering coefficient of application program, prompting user inputs the color filtering coefficient of application program, user is again at the color filtering coefficient of the prompting frame input application program of display, as color filtering coefficient comprise Sr, Sg and Sb time, then input 3 numerical value, the symbol adopting space or comma etc. to preset between numerical value is distinguished.Or when system does not store the color filtering coefficient of application program, multiple options of Show Color filtration coefficient are selected for user.After the color filtering coefficient receiving the setting of user's application programs, store the color filtering coefficient of this application program.
Page data filter element 23, for the color filtering coefficient of application program obtained according to this filtration coefficient acquiring unit, carries out filtration treatment to this page data that this page data acquiring unit obtains.
Alternatively, this page data filter element 23 comprises:
Color data matrix deciding module before filtering, for determining the matrix of the color data that this page data is corresponding according to screen display resolution, wherein, the color data pixel value of each pixel that page data is corresponding described in described color data matrix representation, wherein said color data pixel value comprises red input pixels value, green-component pixel values and blue-component pixels value, or comprises red input pixels value, green-component pixel values, blue-component pixels value and transparency pixel value.Suppose that the data layout of color data is rgb format, the display resolution of screen is H*W, then include [the R of H*W group in the matrix of color data, G, B], adopt R here, G, B refers to each color data at R, the pixel value of G, B tri-components, does not limit each color data at R, the pixel value of G, B tri-components is all equal.
Color data matrix deciding module after filtering, for according to described color data matrix and filtration coefficient matrix corresponding to described color filtering coefficient, determine the color data matrix after filtering, wherein, the filtration coefficient that described filtration coefficient matrix representation is corresponding to each color component that described application program is corresponding, the color data pixel value after the filtration of each pixel that page data is corresponding described in the color data matrix representation after described filtration.
Page data determination module after filtering, for according to the color data matrix after described filtration, determines the page data after described filtration.
What relate to due to above-mentioned computing is all the matrix operation of rule, and the display delayed impact therefore for power consumption and page data is very low.In addition, due to Sr, Sg, Sb, the span of Sa is all [0,1], and Sb is minimum, therefore, the pixel value of the color data before filtration is less than according to the pixel value of the color data after the filtration that above-mentioned formula obtains, and it is larger to ensure that blue component declines, thus can blue component effectively in filter colors data, reduce the blue ray of blue component formation to the injury of human eye.
When the matrix of color filtering coefficient comprises Sa, the span of this Sa is [0,1], and Sa is greater than Sb.
Preferably, Sb is between 0.6 to 0.9.
Preferably, Sr is between 0.75 to 0.9.
Preferably, Sg is between 0.7 to 1.
Alternatively, this data processing equipment comprises:
Data Format Transform unit, for the data layout of the color data at described page data neither RGB rgb format, neither RGB transparency RGBA form time, be rgb format by the Data Format Transform of described color data, or, be converted to RGBA form.
Page data output unit 24 after filtration, for exporting the page data after this page data filter element filtration treatment.
Alternatively, this data processing equipment comprises:
Reset and determine instruction reception unit, the reseting of color filtering coefficient for the page data after receiving this filtration determines instruction, resets fixed color filtering coefficient to obtain.Wherein, this is reseted and determines instruction and comprise and reset fixed instruction at least one color filtering coefficient of the page data after this filtration.
Page data heavy filtration unit, for according to this reset determine instruction reception unit receive fixed color filtering coefficient of reseting the page data before this filtration treatment is filtered again.
Heavy filtration page data output unit, for export this page data heavy filtration unit again filter after page data.
Certainly, except by reset determine color filtering coefficient again filter original page data adjust color component filter number except, again can also filter realization by original color filtering coefficient to the page data after filtration treatment, at this moment, this data processing equipment comprises:
Page data is filter element again, for again filtering according to the page data of described color filtering coefficient to described filtration treatment.
Filtering page data outputting unit again, for exporting the page data after again filtering.
Alternatively, this data processing equipment is digital signal processing dsp chip.
In second embodiment of the invention, because this color filtering coefficient comprises blue component filtration coefficient, therefore, can according to the blue component of blue filtered coefficient filtering page data, and the page data of output filtering blue component, thus user can the browse filtration page data of blue component, therefore reduces the injury of blue component to human eye of page data.
Those of ordinary skill in the art can recognize, in conjunction with unit and the algorithm steps of each example of embodiment disclosed herein description, can realize with the combination of electronic hardware or computer software and electronic hardware.These functions perform with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel can use distinct methods to realize described function to each specifically should being used for, but this realization should not thought and exceeds scope of the present invention.
Those skilled in the art can be well understood to, and for convenience and simplicity of description, the specific works process of the system of foregoing description, device and unit, with reference to the corresponding process in preceding method embodiment, can not repeat them here.
In several embodiments that the application provides, should be understood that disclosed system, apparatus and method can realize by another way.Such as, device embodiment described above is only schematic, such as, the division of described unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of device or unit or communication connection can be electrical, machinery or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.
If described function using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part of the part that technical scheme of the present invention contributes to prior art in essence in other words or this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, ROM (read-only memory) (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. various can be program code stored medium.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should described be as the criterion with the protection domain of claim.

Claims (16)

1. a data processing method, is characterized in that, described method comprises:
Obtain the page data that application program is corresponding;
Obtain the color filtering coefficient of described application program, described color filtering coefficient comprises blue component filtration coefficient;
According to the color filtering coefficient of described application program, filtration treatment is carried out to the described page data obtained;
Export the page data after described filtration treatment.
2. the method for claim 1, is characterized in that, the described described page data to obtaining carries out filtration treatment, comprising:
The color data matrix that described page data is corresponding is determined according to screen display resolution, wherein, the color data pixel value of each pixel that page data is corresponding described in described color data matrix representation, wherein said color data pixel value comprises red input pixels value, green-component pixel values and blue-component pixels value, or comprises red input pixels value, green-component pixel values, blue-component pixels value and transparency pixel value;
According to described color data matrix and filtration coefficient matrix corresponding to described color filtering coefficient, determine the color data matrix after filtering, wherein, the filtration coefficient that described filtration coefficient matrix representation is corresponding to each color component that described application program is corresponding, the color data pixel value after the filtration of each pixel that page data is corresponding described in the color data matrix representation after described filtration;
According to the color data matrix after described filtration, determine the page data after described filtration.
3. method as claimed in claim 2, it is characterized in that, the color filtering coefficient of described application program meets the following conditions:
0.6≤Sb≤0.9,0.75≤Sr≤0.9,0.7≤Sg≤1; Wherein, Sb is blue component filtration coefficient, Sr is red component filtration coefficient, Sg is green component filtration coefficient, and Sb is filtration coefficient minimum in color filtering coefficient.
4. method as claimed any one in claims 1 to 3, is characterized in that, before the described described page data to obtaining carries out filtration treatment, described method also comprises:
At the data layout of the color data of described page data neither RGB rgb format, neither RGB transparency RGBA form time, be rgb format by the Data Format Transform of described color data, or, be converted to RGBA form.
5. the method according to any one of Claims 1-4, is characterized in that, the color filtering coefficient of the described application program of described acquisition, comprising:
When storing the color filtering coefficient of described application program, obtain the color filtering coefficient of the described application program stored;
When not storing the color filtering coefficient of described application program, presenting prompting frame by display device, receiving user according to the color filtering coefficient of described prompting frame to described application setting, to obtain the color filtering coefficient of described application program.
6. the method as described in any one of claim 1 to 5, is characterized in that, after the page data of described output after described filtration treatment, described method also comprises:
The reseting of color filtering coefficient receiving the page data after described filtration determines instruction, resets fixed color filtering coefficient to obtain;
Reset fixed color filtering coefficient according to described page data before described filtration treatment is filtered again;
Export the page data after again filtering.
7. the method as described in any one of claim 1 to 5, is characterized in that, after the page data of described output after described filtration treatment, described method also comprises:
Again filter according to the page data of described color filtering coefficient to described filtration treatment;
Export the page data after again filtering.
8. a data processing equipment, is characterized in that, described device comprises:
Page data acquiring unit, for obtaining page data corresponding to application program;
Filtration coefficient acquiring unit, for obtaining the color filtering coefficient of described application program, described color filtering coefficient comprises blue component filtration coefficient;
Page data filter element, for the color filtering coefficient of the application program according to described filtration coefficient acquiring unit acquisition, carries out filtration treatment to the described page data that described page data acquiring unit obtains;
Page data output unit after filtration, for exporting the page data after described page data filter element filtration treatment.
9. device as claimed in claim 8, it is characterized in that, described page data filter element comprises:
Color data matrix deciding module before filtering, for determining the matrix of the color data that described page data is corresponding according to screen display resolution, wherein, the color data pixel value of each pixel that page data is corresponding described in described color data matrix representation, wherein said color data pixel value comprises red input pixels value, green-component pixel values and blue-component pixels value, or comprises red input pixels value, green-component pixel values, blue-component pixels value and transparency pixel value;
Color data matrix deciding module after filtering, for according to described color data matrix and filtration coefficient matrix corresponding to described color filtering coefficient, determine the color data matrix after filtering, wherein, the filtration coefficient that described filtration coefficient matrix representation is corresponding to each color component that described application program is corresponding, the color data pixel value after the filtration of each pixel that page data is corresponding described in the color data matrix representation after described filtration;
Page data determination module after filtering, for according to the color data matrix after described filtration, determines the page data after described filtration.
10. the device as described in any one of claim 8 or 9, it is characterized in that, described device comprises:
Data Format Transform unit, for the data layout of the color data at described page data neither RGB rgb format, neither RGB transparency RGBA form time, be rgb format by the Data Format Transform of described color data, or, be converted to RGBA form.
11. devices as described in any one of claim 8 to 10, it is characterized in that, described filtration coefficient acquiring unit comprises:
First color filtering coefficient acquisition module, for when storing the color filtering coefficient of described application program, obtains the color filtering coefficient of the described application program stored;
Second color filtering coefficient acquisition module, for when not storing the color filtering coefficient of described application program, prompting frame is presented by display device, receive user according to the color filtering coefficient of described prompting frame to described application setting, to obtain the color filtering coefficient of described application program.
12. devices as described in any one of claim 8 to 11, it is characterized in that, described device comprises:
Reset and determine instruction reception unit, the reseting of color filtering coefficient for the page data after receiving described filtration determines instruction, resets fixed color filtering coefficient to obtain;
Page data heavy filtration unit, filters the page data before described filtration treatment again for reseting the fixed color filtering coefficient of reseting determining instruction reception unit reception described in basis;
Heavy filtration page data output unit, for export described page data heavy filtration unit again filter after page data.
13. devices as described in any one of claim 8 to 11, it is characterized in that, described device comprises:
Page data is filter element again, for again filtering according to the page data of described color filtering coefficient to described filtration treatment;
Filtering page data outputting unit again, for exporting the page data after again filtering.
14. devices according to any one of claim 8 to 13, it is characterized in that, described device is digital signal processing dsp chip.
15. 1 kinds of terminals, is characterized in that, described terminal comprises the data processing equipment as described in any one of claim 8 to 13.
16. terminals as claimed in claim 15, it is characterized in that, described terminal is smart mobile phone or panel computer.
CN201410715300.8A 2014-11-28 2014-11-28 Data processing method, data processing device and terminal Active CN104407832B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410715300.8A CN104407832B (en) 2014-11-28 2014-11-28 Data processing method, data processing device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410715300.8A CN104407832B (en) 2014-11-28 2014-11-28 Data processing method, data processing device and terminal

Publications (2)

Publication Number Publication Date
CN104407832A true CN104407832A (en) 2015-03-11
CN104407832B CN104407832B (en) 2017-05-24

Family

ID=52645465

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410715300.8A Active CN104407832B (en) 2014-11-28 2014-11-28 Data processing method, data processing device and terminal

Country Status (1)

Country Link
CN (1) CN104407832B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109215613A (en) * 2018-09-20 2019-01-15 珠海市君天电子科技有限公司 A kind of method, apparatus, electronic equipment and storage medium reducing blue light strength

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0413483B1 (en) * 1989-08-14 1994-11-02 International Business Machines Corporation A display system
CN104007950A (en) * 2014-06-10 2014-08-27 北京掌中浩阅科技有限公司 Method of protecting eye for intelligent equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0413483B1 (en) * 1989-08-14 1994-11-02 International Business Machines Corporation A display system
CN104007950A (en) * 2014-06-10 2014-08-27 北京掌中浩阅科技有限公司 Method of protecting eye for intelligent equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109215613A (en) * 2018-09-20 2019-01-15 珠海市君天电子科技有限公司 A kind of method, apparatus, electronic equipment and storage medium reducing blue light strength

Also Published As

Publication number Publication date
CN104407832B (en) 2017-05-24

Similar Documents

Publication Publication Date Title
JP7226851B2 (en) Image processing method, apparatus and device
CN104333708B (en) Photographic method, camera arrangement and terminal
CN109961453B (en) Image processing method, device and equipment
CN104683702B (en) A kind of method, apparatus of light filling when taking pictures and a kind of mobile terminal
CN107423699B (en) Biopsy method and Related product
CN104967784B (en) Mobile terminal calls the method and mobile terminal of the substrate features pattern of camera function
CN103927142A (en) Information processing method, protecting jacket and electronic equipment
CN105809644B (en) Image border fake color inhibition method and device
JP5896497B2 (en) Method and wireless handheld device for determining the hue of an image
CN104902088A (en) Method and device for adjusting screen brightness of mobile terminal
CN105432069A (en) Image processing device, image capture device, image processing method, and program
US9483853B2 (en) Systems and methods to display rendered images
CN104331524A (en) Page displaying method, device and terminal
AU2018287567B2 (en) Method for adjusting color temperature based on RGB optical spectral energy reconstruction, non-transitory computer-readable storage medium and terminal device
CN105469357B (en) Image processing method, device and terminal
CN108280813A (en) A kind of image processing method, terminal and computer readable storage medium
CN106506795A (en) A kind of mobile terminal and image processing method
CN105959663A (en) Video interframe signal continuity optimizing method and system and shooting terminal
CN104796625A (en) Picture synthesizing method and device
CN106162303A (en) Information processing method, information processor and subscriber equipment
CN104464683B (en) Method for displaying image, image display device and terminal
CN105224936B (en) A kind of iris feature information extracting method and device
CN106780359A (en) A kind of data editing method, device and mobile terminal
CN106600524A (en) Image processing method and terminal
CN106911937A (en) The collocation method and system of a kind of live middle present banner background colour

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
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd.

Address before: Changan town in Guangdong province Dongguan 523841 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd.