CN104572097B - One kind is taken pictures data readjustment processing method and device - Google Patents
One kind is taken pictures data readjustment processing method and device Download PDFInfo
- Publication number
- CN104572097B CN104572097B CN201410849737.0A CN201410849737A CN104572097B CN 104572097 B CN104572097 B CN 104572097B CN 201410849737 A CN201410849737 A CN 201410849737A CN 104572097 B CN104572097 B CN 104572097B
- Authority
- CN
- China
- Prior art keywords
- function
- exposal model
- class
- data
- readjustment
- 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
- Document Processing Apparatus (AREA)
Abstract
Taken pictures data readjustment processing method and device the invention discloses one kind.Methods described includes:Newly-built exposal model class, wherein, exposal model Similar integral is taken pictures foundation class, function after foundation class of taking pictures includes function before data readjustment, function and data are adjusted back in data readjustment, function includes general character function and specific function after function and data are adjusted back in function, data readjustment before data readjustment, and specific function is do-nothing function;In exposal model class before rewrite data readjustment in function, data readjustment after function and data readjustment in function at least one function specific function, the specificity method of exposal model class is added in specific function;By the mark of exposal model class and exposal model class associated storage into Hash table.
Description
Technical field
The present invention relates to field of terminal, more particularly to one kind is taken pictures data readjustment processing method and device.
Background technology
With the development of terminal technology, the function of terminal taking is also increasingly enriched, and exposal model is also more and more.Have
When, in some terminals, exposal model may up to more than ten.In order to realize this more than ten of exposal model, programmer is in programming
When, it is necessary to which up to more than ten branch judges, each branch writes the corresponding number of taking pictures of each exposal model again under judging
According to readjustment processing method.In this manner, each branch will intactly write once photo taking data readjustment processing method, make
Huge into program, programmed readability is poor, and the maintainability of program is also poor.
The content of the invention
Technical problem to be solved of the embodiment of the present invention is to take pictures data readjustment processing method and dress there is provided one kind
Put, realize the program of taking pictures of simplifying, improve programmed readability and maintainability.
In a first aspect, the embodiments of the invention provide one kind take pictures data readjustment processing method, including:Newly-built exposal model
Class, wherein, the exposal model Similar integral is taken pictures foundation class, and the foundation class of taking pictures includes function, data before data readjustment
Function and the number during function, the data are adjusted back before function after function and data are adjusted back in readjustment, the data readjustment
Include general character function and specific function according to function after readjustment, the specific function is do-nothing function;In the mould of taking pictures
Function before data readjustment is rewritten in formula class, in data readjustment after function and data readjustment at least one in function
The specific function of individual function, the specificity method of the exposal model class is added in the specific function;By institute
The mark and the exposal model class associated storage of exposal model class are stated into Hash table.
Alternatively, the exposal model is panoramic photographing mode or U.S. face exposal model or stays sound exposal model.
Alternatively, before by the mark of the exposal model class and the exposal model class associated storage into Hash table also
Including:Increase the Hash table in mode manager;It is described by the mark of the exposal model class and the exposal model class
Associated storage into Hash table be specially:By increasing mode method by the mark of the exposal model class in mode manager
With the exposal model class associated storage into Hash table.
Alternatively, the mark of the exposal model class and the exposal model class associated storage are gone back afterwards into Hash table
Including:When calling the exposal model class, according to the quick Hash table of the mark of the exposal model class so as to find
The exposal model class;Perform the exposal model class that finds, with according to the general character function in the exposal model class with
And the specific function of the exposal model is completed by the data readjustment processing of taking pictures.
Alternatively, methods described also includes:In the general character function for needing to change, to described in the foundation class of taking pictures
The general character function encapsulated in foundation class of taking pictures is modified.
Alternatively, the mark of the exposal model class and the exposal model class associated storage are gone back afterwards into Hash table
Including:In the specific function in needing to change the exposal model class, the exposal model is changed in the Hash table
Specific function in class.
Second aspect, the embodiments of the invention provide one kind take pictures data readjustment processing unit, including:Newly-built module, is used
In newly-built exposal model class, wherein, the exposal model Similar integral is taken pictures foundation class, and the foundation class of taking pictures includes data and returned
Letter in function, data readjustment before function after function and data are adjusted back in function, data readjustment before adjusting, the data readjustment
Function includes general character function and specific function after several and described data readjustment, and the specific function is do-nothing function;
Rewrite module, for rewritten in the exposal model class in function before data readjustment, the data readjustment function and
After data readjustment in function at least one function specific function, the specificity method of the exposal model class is added
Enter into the specific function;Memory module, for the mark of the exposal model class to be associated with the exposal model class
Store in Hash table.
Alternatively, the exposal model is panoramic photographing mode or U.S. face exposal model or stays sound exposal model.
Alternatively, described device also includes increasing table module, and the increasing table module is used to increase described in mode manager
Hash table;The increase mode method that the memory module is used to pass through in mode manager by the mark of the exposal model class and
The exposal model class associated storage is into Hash table.
Alternatively, described device also includes searching modul and performing module, the searching modul be used for call it is described
During exposal model class, according to the quick Hash table of the mark of the exposal model class so as to find the exposal model class;
The performing module is used to perform the exposal model class that finds, with according to the general character function in the exposal model class with
And the specific function of the exposal model is completed by the data readjustment processing of taking pictures.
Alternatively, described device also includes general character function modified module, and the general module modified module is used to need
During the general character function of modification, the general character function encapsulated in the foundation class of taking pictures is modified in the foundation class of taking pictures.
Alternatively, described device also includes specific function modified module, and the specific function modified module is used for
When needing to change the specific function in the exposal model class, the spy in the exposal model class is changed in the Hash table
Different in nature function.
, can be by the general character processing method in the data readjustment processing of each exposal model by implementing the embodiment of the present invention
All write in the general character function in foundation class of taking pictures, and an empty specific function is set in foundation class of taking pictures.Work as needs
When writing the specificity method of each exposal model, then the specific letter of rewriting in the exposal model class for inheriting foundation class of taking pictures
Number, specificity method is added in specific function.A general character method is write it is achieved thereby that will only need, it is possible to be
Multiple exposal models are used, and simplify program, and the readability of program is strong.In addition, it is desirable to when changing common approach, it is only necessary to
To taking pictures, foundation class is modified, and reaches modification once, you can to the common approach inherited in all exposal model classes
The effect being all modified.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the accompanying drawing used required in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with
Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the flow chart that data of the invention of taking pictures adjust back the embodiment of processing method one;
Fig. 2 is the flow chart that data of the invention of taking pictures adjust back another embodiment of processing method;
Fig. 3 is the structural representation that data of the invention of taking pictures adjust back the embodiment of processing unit one;
Fig. 4 is the structural representation that data of the invention of taking pictures adjust back another embodiment of processing unit.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made
Embodiment, belongs to the scope of protection of the invention.
It should be noted that the term used in embodiments of the present invention is the mesh only merely for description specific embodiment
, and it is not intended to be limiting the present invention." one of singulative used in the embodiment of the present invention and appended claims
Kind ", " described " and "the" are also intended to including most forms, unless context clearly shows that other implications.It is also understood that this
Term "and/or" used herein refers to and comprising one or more associated any or all possible groups that list project
Close.
Referring to Fig. 1, Fig. 1 is the flow chart that data of the invention of taking pictures adjust back the embodiment of processing method one.This method includes:
110:Newly-built exposal model class, wherein, exposal model Similar integral is taken pictures foundation class, and the foundation class of taking pictures includes
Function in function, data readjustment before function after function and data are adjusted back in function, data readjustment before data readjustment, data readjustment
And function includes general character function and specific function after data readjustment, specific function is do-nothing function.
In a particular embodiment, multiple exposal models can be set in terminal, for example, panoramic photographing mode, U.S. face
Exposal model, stay sound exposal model etc..In programming, can be that all exposal models are abstract sets up a basis of taking pictures
Class, is that each exposal model sets up an exposal model class when specific to some exposal model.Wherein, exposal model class after
Hold foundation class of taking pictures.
In each exposal model, it is necessary to which to taking pictures, callback data is handled.Callback data of taking pictures processing can divide
Into three phases, before data readjustment, in data readjustment and after data readjustment.So, can be by whole callback data of taking pictures
The method of reason carries out classification to obtain method and data in the method before data readjustment, data readjustment by these three stages
Method after readjustment.
It is the side after the method before data are adjusted back, the method in data readjustment and data readjustment in foundation class of taking pictures
Function after method sets up function before data readjustment respectively, function and data are adjusted back in data readjustment.For different exposal models
For, also there are different parts the existing identical part of method before data readjustment.So, divide before data readjustment in function
Two subfunctions, general character function and specific function are not set up;Function sets up two subfunctions respectively in data readjustment, altogether
Property function and specific function;Two subfunctions, general character function and specificity are set up respectively in function after data readjustment
Function.
For the ease of management, the common approach before the data readjustment of all exposal models can be abstracted, and write
Before to the data readjustment for foundation class of taking pictures in the general character function of function;By the common approach in the data readjustment of all exposal models
Abstract, and be written in the data for foundation class of taking pictures readjustment in the general character function of function;By the data of all exposal models
Common approach after readjustment is abstracted, and is written to after the data for foundation class of taking pictures readjustment in the general character function of function.Finally,
Order take pictures foundation class data readjustment before function specific function be do-nothing function, order take pictures foundation class data readjustment in function
Specific function be do-nothing function, order take pictures foundation class data readjustment after function specific function also be do-nothing function.
120:Function after function and data are adjusted back in function, data readjustment before rewrite data readjustment in exposal model class
In at least one function specific function, the specificity method of exposal model class is added in specific function.
In a particular embodiment, due to the specific function of function, data before the data readjustment in foundation class of taking pictures
The specific function of function is all do-nothing function after the specific function of function and data are adjusted back in readjustment.So, when need increase
Addend according to the readjustment last stage specific processing method when, it is necessary to rewrite the special of function before data in foundation class of taking pictures are adjusted back
Property function, with foundation class of taking pictures data readjustment before function specific function in increase data readjustment the last stage it is special
Property processing method;When needing to increase the specific processing method in stage in data readjustment, it is necessary to rewrite in foundation class of taking pictures
The specific function of function in data readjustment, to increase in the specific function of function in the data readjustment in foundation class of taking pictures
The specific processing method in stage in data readjustment;When needing to increase the specific processing method in stage after data readjustment, need
The specific function of function after the data readjustment in foundation class of taking pictures is rewritten, with letter after the data readjustment in foundation class of taking pictures
Increase the specific processing method in stage after data readjustment in several specific functions.
130:By the mark of exposal model class and exposal model class associated storage into Hash table.
In a particular embodiment, Hash table is exactly a kind of structure with keyword data storage, is simply entered to be checked
The keyword looked for, you can rapidly find its corresponding value.The mark of exposal model class can be some keywords, can also
It is some characters, even some are digital.Clapped for example, the mark corresponding to panoramic photographing mode can be " panarama " U.S. face
Can be " facebeauty " etc. according to the mark corresponding to pattern.Or, the mark corresponding to panoramic photographing mode can be
Mark corresponding to " p " U.S. face exposal model can be " f " etc..What is more, the mark corresponding to panoramic photographing mode can be with
It is that mark corresponding to " 1 " U.S. face exposal model can be " 2 " etc..For the ease of management, it can increase in mode manager
Plus Hash table, it is then possible to by increasing mode method by the mark and exposal model of exposal model class in mode manager
Class associated storage is into Hash table.It is appreciated that Hash table can also be disposed in other locations, the position set by Hash table
Specific function is not interfered with to realize.
When needing to use some exposal model, it is necessary to the corresponding exposal model class of respective calls.So, when user's choosing
When selecting some exposal model, terminal sends the mark of the exposal model class corresponding to exposal model by under the triggering of user
To Hash table.Hash table quickly positions according to the mark of exposal model class and finds corresponding exposal model class.Then, lookup is performed
The exposal model class arrived, to be completed according to the specific function of the general character function in exposal model class and exposal model by taking pictures
The processing of data readjustment.
, can be by the general character processing method in the data readjustment processing of each exposal model by implementing the embodiment of the present invention
All write in the general character function in foundation class of taking pictures, and an empty specific function is set in foundation class of taking pictures.Work as needs
When writing the specificity method of each exposal model, then the specific letter of rewriting in the exposal model class for inheriting foundation class of taking pictures
Number, specificity method is added in specific function.A general character method is write it is achieved thereby that will only need, it is possible to be
Multiple exposal models are used, and simplify program, and the readability of program is strong.Moreover, the present invention by the mark of exposal model class and
Exposal model class associated storage is into Hash table.Because Hash table is a kind of list for quickly being positioned according to keyword.Institute
With, when needing with certain screening-mode, corresponding exposal model class can be quickly found out according to the mark of this kind of exposal model,
To be completed according to the specific function of the general character function in exposal model class and exposal model by data readjustment processing of taking pictures.And
And, when needing increase exposal model, it is only necessary to accordingly increase corresponding exposal model class in Hash table, extension is very
It is convenient.
Referring to Fig. 2, Fig. 2 is the flow chart that data of the invention of taking pictures adjust back another embodiment of processing method.This method bag
Include:
210:Newly-built exposal model class, wherein, exposal model Similar integral is taken pictures foundation class, and the foundation class of taking pictures includes
Function in function, data readjustment before function after function and data are adjusted back in function, data readjustment before data readjustment, data readjustment
And function includes general character function and specific function after data readjustment, specific function is do-nothing function.
In a particular embodiment, multiple exposal models can be set in terminal, for example, panoramic photographing mode, U.S. face
Exposal model, stay sound exposal model etc..In programming, can be that all exposal models are abstract sets up a basis of taking pictures
Class, is that each exposal model sets up an exposal model class when specific to some exposal model.Wherein, exposal model class after
Hold foundation class of taking pictures.
In each exposal model, it is necessary to which to taking pictures, callback data is handled.Callback data of taking pictures processing can divide
Into three phases, before data readjustment, in data readjustment and after data readjustment.So, can be by whole callback data of taking pictures
The method of reason carries out classification to obtain method and data in the method before data readjustment, data readjustment by these three stages
Method after readjustment.
It is the side after the method before data are adjusted back, the method in data readjustment and data readjustment in foundation class of taking pictures
Function after method sets up function before data readjustment respectively, function and data are adjusted back in data readjustment.For different exposal models
For, also there are different parts the existing identical part of method before data readjustment.So, divide before data readjustment in function
Two subfunctions, general character function and specific function are not set up;Function sets up two subfunctions respectively in data readjustment, altogether
Property function and specific function;Two subfunctions, general character function and specificity are set up respectively in function after data readjustment
Function.
For the ease of management, the common approach before the data readjustment of all exposal models can be abstracted, and write
Before to the data readjustment for foundation class of taking pictures in the general character function of function;By the common approach in the data readjustment of all exposal models
Abstract, and be written in the data for foundation class of taking pictures readjustment in the general character function of function;By the data of all exposal models
Common approach after readjustment is abstracted, and is written to after the data for foundation class of taking pictures readjustment in the general character function of function.Finally,
Order take pictures foundation class data readjustment before function specific function be do-nothing function, order take pictures foundation class data readjustment in function
Specific function be do-nothing function, order take pictures foundation class data readjustment after function specific function also be do-nothing function.
220:Function after function and data are adjusted back in function, data readjustment before rewrite data readjustment in exposal model class
In at least one function specific function, the specificity method of exposal model class is added in specific function.
In a particular embodiment, due to the specific function of function, data before the data readjustment in foundation class of taking pictures
The specific function of function is all do-nothing function after the specific function of function and data are adjusted back in readjustment.So, when need increase
Addend according to the readjustment last stage specific processing method when, it is necessary to rewrite the special of function before data in foundation class of taking pictures are adjusted back
Property function, with foundation class of taking pictures data readjustment before function specific function in increase data readjustment the last stage it is special
Property processing method;When needing to increase the specific processing method in stage in data readjustment, it is necessary to rewrite in foundation class of taking pictures
The specific function of function in data readjustment, to increase in the specific function of function in the data readjustment in foundation class of taking pictures
The specific processing method in stage in data readjustment;When needing to increase the specific processing method in stage after data readjustment, need
The specific function of function after the data readjustment in foundation class of taking pictures is rewritten, with letter after the data readjustment in foundation class of taking pictures
Increase the specific processing method in stage after data readjustment in several specific functions.
230:By the mark of exposal model class and exposal model class associated storage into Hash table.
In a particular embodiment, Hash table is exactly a kind of structure with keyword data storage, is simply entered to be checked
The keyword looked for, you can rapidly find its corresponding value.The mark of exposal model class can be some keywords, can also
It is some characters, even some are digital.Clapped for example, the mark corresponding to panoramic photographing mode can be " panarama " U.S. face
Can be " facebeauty " etc. according to the mark corresponding to pattern.Or, the mark corresponding to panoramic photographing mode can be
Mark corresponding to " p " U.S. face exposal model can be " f " etc..What is more, the mark corresponding to panoramic photographing mode can be with
It is that mark corresponding to " 1 " U.S. face exposal model can be " 2 " etc..For the ease of management, it can increase in mode manager
Plus Hash table, it is then possible to by increasing mode method by the mark and exposal model of exposal model class in mode manager
Class associated storage is into Hash table.It is appreciated that Hash table can also be disposed in other locations, the position set by Hash table
Specific function is not interfered with to realize.
240:Judge needs modification is general character function or specific function.
In a particular embodiment, when needing to modify to exposal model class, judge needs modification is
General character function or specific function.What it is if necessary to modification is general character function, into step 250.It is if necessary to what is changed
Specific function, into step 260.
250:The general character function encapsulated in foundation class of taking pictures is modified in foundation class of taking pictures.
In a particular embodiment, if necessary to before the data of exposal model class readjustment, in data readjustment or number
Modified according to any one after readjustment or a variety of common approach, general character that can be in foundation class of taking pictures to foundation class of taking pictures
Common approach in function is modified.For example, the new common approach of addition, deletes original common approach or changes original
Common approach.If it is understood that common approach is changed, by all exposal model classes for foundation class of being taken pictures to succession
It will impact.
260:The specific function in exposal model class is changed in Hash table.
In a particular embodiment, if necessary to before the data of exposal model class readjustment, in data readjustment or number
Modified according to any one after readjustment or a variety of specificity methods, corresponding exposal model can be found in Hash table
Class, and the specificity method in exposal model class in modification exposal model class.For example, the new specificity method of addition, is deleted
Original specificity method changes original specificity method.It is understood that if specificity method is changed,
Only corresponding exposal model class is changed, and other exposal model classes will not be affected.
, can be by the general character processing method in the data readjustment processing of each exposal model by implementing the embodiment of the present invention
All write in the general character function in foundation class of taking pictures, and an empty specific function is set in foundation class of taking pictures.Work as needs
When writing the specificity method of each exposal model, then the specific letter of rewriting in the exposal model class for inheriting foundation class of taking pictures
Number, specificity method is added in specific function.A general character method is write it is achieved thereby that will only need, it is possible to be
Multiple exposal models are used, and simplify program, and the readability of program is strong.In addition, it is desirable to when changing common approach, it is only necessary to
To taking pictures, foundation class is modified, and reaches modification once, you can to the common approach inherited in all exposal model classes
The effect being all modified.The present invention is also by the mark of exposal model class and exposal model class associated storage into Hash table.
Because Hash table is a kind of list for quickly being positioned according to keyword.So, can be with when needing with certain screening-mode
Corresponding exposal model class is quickly found out according to the mark of this kind of exposal model, with according to the general character function in exposal model class with
And the specific function of exposal model is completed by data readjustment processing of taking pictures.Moreover, when needing increase exposal model, it is only necessary to
Accordingly increase corresponding exposal model class in Hash table, extend very convenient.
The above-mentioned method for illustrating the embodiment of the present invention, following for being easy to preferably implement the embodiment of the present invention
Such scheme, correspondingly, is also provided below the relevant device for implementing such scheme for coordinating.
Refering to Fig. 3, Fig. 3 is the structural representation that data of the invention of taking pictures adjust back the embodiment of processing unit one.This implementation
The data readjustment processing unit of taking pictures of mode includes:Newly-built module 310, rewriting module 320 and memory module 330.
Newly-built module 310 is used for newly-built exposal model class, wherein, the exposal model Similar integral is taken pictures foundation class, described
Function after foundation class of taking pictures includes function before data readjustment, function and data are adjusted back in data readjustment, the data readjustment
Function includes general character function and specific function after function and the data are adjusted back in preceding function, data readjustment,
The specific function is do-nothing function.
Rewriting module 320 is used to rewrite function, data readjustment before the data readjustment in the exposal model class
After middle function and data readjustment in function at least one function specific function, by the spy of the exposal model class
Different in nature method is added in the specific function.
Memory module 330 is used for the mark of the exposal model class and the exposal model class associated storage to Hash table
In.
Alternatively, the exposal model is panoramic photographing mode or U.S. face exposal model or stays sound exposal model.
Alternatively, described device also includes increasing table module 340, and the increasing table module 340 is used to increase in mode manager
Plus the Hash table;The memory module 330 is for passing through the increase mode method in mode manager by the exposal model
The mark of class and the exposal model class associated storage are into Hash table.
Alternatively, described device also includes searching modul 350 and performing module 360, and the searching modul 350 is used for
When calling the exposal model class, taken pictures according to the quick Hash table of the mark of the exposal model class so as to find
Pattern class;The performing module 360 is used to perform the exposal model class found, with according in the exposal model class
The specific function of general character function and the exposal model is completed by the data readjustment processing of taking pictures.
Device shown in Fig. 3 can correspond to all steps in the method performed shown in Fig. 1, specifically refer to Fig. 1 and
Associated description, is no longer repeated one by one herein.
, can be by the general character processing method in the data readjustment processing of each exposal model by implementing the embodiment of the present invention
All write in the general character function in foundation class of taking pictures, and an empty specific function is set in foundation class of taking pictures.Work as needs
When writing the specificity method of each exposal model, then the specific letter of rewriting in the exposal model class for inheriting foundation class of taking pictures
Number, specificity method is added in specific function.A general character method is write it is achieved thereby that will only need, it is possible to be
Multiple exposal models are used, and simplify program, and the readability of program is strong.Moreover, the present invention by the mark of exposal model class and
Exposal model class associated storage is into Hash table.Because Hash table is a kind of list for quickly being positioned according to keyword.Institute
With, when needing with certain screening-mode, corresponding exposal model class can be quickly found out according to the mark of this kind of exposal model,
To be completed according to the specific function of the general character function in exposal model class and exposal model by data readjustment processing of taking pictures.And
And, when needing increase exposal model, it is only necessary to accordingly increase corresponding exposal model class in Hash table, extension is very
It is convenient.
Refering to Fig. 4, Fig. 4 is the structural representation that data of the invention of taking pictures adjust back another embodiment of processing unit.This reality
Applying the data readjustment processing unit of taking pictures of mode includes:General character function modified module 370 and specific function modified module
380。
General character function modified module 370 is used in the general character function for needing to change, to institute in the foundation class of taking pictures
The general character function encapsulated in foundation class of taking pictures is stated to modify.
Specific function modified module 380 is used in the specific function in needing to change the exposal model class,
The specific function in the exposal model class is changed in the Hash table.
Device shown in Fig. 4 can correspond to all steps in the method performed shown in Fig. 1 and Fig. 2, specifically refer to
Fig. 1, Fig. 2 and associated description, are no longer repeated one by one herein.
, can be by the general character processing method in the data readjustment processing of each exposal model by implementing the embodiment of the present invention
All write in the general character function in foundation class of taking pictures, and an empty specific function is set in foundation class of taking pictures.Work as needs
When writing the specificity method of each exposal model, then the specific letter of rewriting in the exposal model class for inheriting foundation class of taking pictures
Number, specificity method is added in specific function.A general character method is write it is achieved thereby that will only need, it is possible to be
Multiple exposal models are used, and simplify program, and the readability of program is strong.In addition, it is desirable to when changing common approach, it is only necessary to
To taking pictures, foundation class is modified, and reaches modification once, you can to the common approach inherited in all exposal model classes
The effect being all modified.The present invention is also by the mark of exposal model class and exposal model class associated storage into Hash table.
Because Hash table is a kind of list for quickly being positioned according to keyword.So, can be with when needing with certain screening-mode
Corresponding exposal model class is quickly found out according to the mark of this kind of exposal model, with according to the general character function in exposal model class with
And the specific function of exposal model is completed by data readjustment processing of taking pictures.Moreover, when needing increase exposal model, it is only necessary to
Accordingly increase corresponding exposal model class in Hash table, extend very convenient.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with
The hardware of correlation is instructed to complete by computer program, described program can be stored in a computer read/write memory medium
In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, RAM) etc..
Above disclosed is only a kind of preferred embodiment of the invention, can not limit the power of the present invention with this certainly
Sharp scope, one of ordinary skill in the art will appreciate that all or part of flow of above-described embodiment is realized, and according to present invention power
Profit requires made equivalent variations, still falls within and invents covered scope.
Claims (12)
1. one kind is taken pictures, data adjust back processing method, it is characterised in that including:
Newly-built exposal model class, wherein, the exposal model Similar integral is taken pictures foundation class, and the foundation class of taking pictures includes data
Before function after function and data are adjusted back in function, data readjustment before readjustment, the data readjustment in function, data readjustment
Function includes general character function and specific function after function and data readjustment, and the specific function is empty letter
Number;
Function and the data in the preceding function of data readjustment, data readjustment are rewritten in the exposal model class to return
The specific function of the function of at least one in function after tune, the spy is added to by the specificity method of the exposal model class
In different in nature function;
By the mark of the exposal model class and the exposal model class associated storage into Hash table.
2. according to the method described in claim 1, it is characterised in that
The exposal model is panoramic photographing mode or U.S. face exposal model or stays sound exposal model.
3. according to the method described in claim 1, it is characterised in that by the mark and the exposal model of the exposal model class
Class associated storage also includes before into Hash table:
Increase the Hash table in mode manager;
It is described to be specially into Hash table by the mark of the exposal model class and the exposal model class associated storage:
The mark of the exposal model class is associated with the exposal model class by the increase mode method in mode manager
Store in Hash table.
4. according to the method described in claim 1, it is characterised in that by the mark and the exposal model of the exposal model class
Class associated storage also includes afterwards into Hash table:
When calling the exposal model class, according to the quick Hash table of the mark of the exposal model class so as to find institute
State exposal model class;
The exposal model class found is performed, with according to the general character function in the exposal model class and the mould of taking pictures
The specific function of formula is completed by the data readjustment processing of taking pictures.
5. according to the method described in claim 1, it is characterised in that methods described also includes:
In the general character function for needing to change, the general character function in the foundation class of taking pictures to being encapsulated in the foundation class of taking pictures
Modify.
6. according to the method described in claim 1, it is characterised in that by the mark and the exposal model of the exposal model class
Class associated storage also includes afterwards into Hash table:
In the specific function in needing to change the exposal model class, the exposal model class is changed in the Hash table
In specific function.
7. one kind is taken pictures, data adjust back processing unit, it is characterised in that including:
Newly-built module, for newly-built exposal model class, wherein, the exposal model Similar integral is taken pictures foundation class, the base of taking pictures
Function after plinth class includes function before data are adjusted back, function and data are adjusted back in data readjustment, the preceding function of data readjustment,
Function includes general character function and specific function after function and the data are adjusted back in the data readjustment, described special
Property function be do-nothing function;
Module is rewritten, for rewriting function in the preceding function of data readjustment, data readjustment in the exposal model class
And after data readjustment in function at least one function specific function, by the specificity side of the exposal model class
Method is added in the specific function;
Memory module, for by the mark of the exposal model class and the exposal model class associated storage into Hash table.
8. device according to claim 7, it is characterised in that
The exposal model is panoramic photographing mode or U.S. face exposal model or stays sound exposal model.
9. device according to claim 7, it is characterised in that described device also includes increasing table module,
The increasing table module is used to increase the Hash table in mode manager;
The memory module, which is used to pass through in mode manager, increases mode method by the mark of the exposal model class and institute
Exposal model class associated storage is stated into Hash table.
10. device according to claim 7, it is characterised in that described device also includes searching modul and performing module,
The searching modul is used for when calling the exposal model class, according to the quick Kazakhstan of the mark of the exposal model class
Uncommon table is so as to find the exposal model class;
The performing module is used to perform the exposal model class found, with according to the general character letter in the exposal model class
The specific function of several and described exposal model is completed by the data readjustment processing of taking pictures.
11. device according to claim 7, it is characterised in that described device also includes general character function modified module,
The general character function modified module is used to, in the general character function for needing to change, clap described in the foundation class of taking pictures
Modified according to the general character function encapsulated in foundation class.
12. device according to claim 7, it is characterised in that described device also includes specific function modified module,
The specific function modified module is used in the specific function in needing to change the exposal model class, described
The specific function in the exposal model class is changed in Hash table.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410849737.0A CN104572097B (en) | 2014-12-30 | 2014-12-30 | One kind is taken pictures data readjustment processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410849737.0A CN104572097B (en) | 2014-12-30 | 2014-12-30 | One kind is taken pictures data readjustment processing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104572097A CN104572097A (en) | 2015-04-29 |
CN104572097B true CN104572097B (en) | 2017-10-17 |
Family
ID=53088263
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410849737.0A Active CN104572097B (en) | 2014-12-30 | 2014-12-30 | One kind is taken pictures data readjustment processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104572097B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107783632A (en) * | 2016-08-25 | 2018-03-09 | 大连楼兰科技股份有限公司 | Car networking low-Power Design in Embedded System method |
CN109144597B (en) * | 2017-06-19 | 2021-09-07 | 武汉斗鱼网络科技有限公司 | Method and device for obtaining callback information of download interface |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1462135A (en) * | 2002-05-28 | 2003-12-17 | 深圳市中兴通讯股份有限公司上海第二研究所 | Communication message treatment equipment based on class template like management apparatus and method |
CN102546682A (en) * | 2010-12-15 | 2012-07-04 | 上海杉达学院 | Control method for interactive rich media interaction system |
CN103873890A (en) * | 2014-03-04 | 2014-06-18 | 深圳市深信服电子科技有限公司 | Flow control method and system for shooting software |
-
2014
- 2014-12-30 CN CN201410849737.0A patent/CN104572097B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1462135A (en) * | 2002-05-28 | 2003-12-17 | 深圳市中兴通讯股份有限公司上海第二研究所 | Communication message treatment equipment based on class template like management apparatus and method |
CN102546682A (en) * | 2010-12-15 | 2012-07-04 | 上海杉达学院 | Control method for interactive rich media interaction system |
CN103873890A (en) * | 2014-03-04 | 2014-06-18 | 深圳市深信服电子科技有限公司 | Flow control method and system for shooting software |
Also Published As
Publication number | Publication date |
---|---|
CN104572097A (en) | 2015-04-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107562775B (en) | Data processing method and device based on block chain | |
EP3561674A1 (en) | Block data check method and apparatus | |
CN109446570B (en) | Business process display method, device, computer equipment and storage medium | |
CN104079613B (en) | Method and system for sharing application program object between multi-tenant | |
CN108959444A (en) | Homepage cluster system management method and device based on tree | |
CN109445784A (en) | Processing method, device, storage medium and the electronic equipment of structured data | |
US9652360B2 (en) | Crawling for extracting a model of a GUI-based application | |
CN107766252A (en) | Test script automated execution method, apparatus, equipment and storage medium | |
CN109214193B (en) | Data encryption and machine learning model training method and device and electronic equipment | |
US9658937B2 (en) | Optimization of hardware monitoring for computing devices | |
CN107656729A (en) | Updating device, method and the computer-readable recording medium of List View | |
CN107343031A (en) | A kind of method, apparatus for automatically updating file, electronic equipment and storage medium | |
CN106293669A (en) | A kind of generation method and apparatus of web pages component | |
CN101414257A (en) | Method, device and terminal for implementing software interface | |
CN104572097B (en) | One kind is taken pictures data readjustment processing method and device | |
CN106484779A (en) | File operation method and device | |
CN107911541A (en) | Multi-camera switching use method and device based on Android system | |
JP6812826B2 (en) | Storage method, storage device and storage program | |
CN104572080B (en) | A kind of photographic method and device | |
CN112632930A (en) | Table data control method and device | |
US20090150430A1 (en) | System for automating the definition of application objects supporting compressing operations | |
CN107391163A (en) | page data loading method, device and application in mobile terminal | |
WO2020113421A1 (en) | Method for mounting file system, terminal device, and storage medium | |
US8560572B2 (en) | System for lightweight objects | |
CN115292169A (en) | UI automation test method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder | ||
CP01 | Change in the name or title of a patent holder |
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 523860 usha Beach Road No. 18 Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd. |