CN103442172A - Camera image quality adjusting method, system and mobile terminal based on android platform - Google Patents

Camera image quality adjusting method, system and mobile terminal based on android platform Download PDF

Info

Publication number
CN103442172A
CN103442172A CN2013103571984A CN201310357198A CN103442172A CN 103442172 A CN103442172 A CN 103442172A CN 2013103571984 A CN2013103571984 A CN 2013103571984A CN 201310357198 A CN201310357198 A CN 201310357198A CN 103442172 A CN103442172 A CN 103442172A
Authority
CN
China
Prior art keywords
image quality
module
quality attribute
layer
attribute
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
CN2013103571984A
Other languages
Chinese (zh)
Other versions
CN103442172B (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.)
TCL Corp
Original Assignee
TCL Corp
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 TCL Corp filed Critical TCL Corp
Priority to CN201310357198.4A priority Critical patent/CN103442172B/en
Publication of CN103442172A publication Critical patent/CN103442172A/en
Application granted granted Critical
Publication of CN103442172B publication Critical patent/CN103442172B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention is applied to the technical field of mobile terminals, and particularly relates to a camera image quality adjusting method, system and mobile terminal based on an android platform. According to the camera image quality adjusting method, system and mobile terminal based on the android platform, an image quality adjusting request is received through an application layer, the image quality property and an adjusting parameter value of the image quality property are sent to a frame layer, and the image quality property and the adjusting parameter value are contained in the request; the frame layer receives the image quality property and the adjusting parameter value and transmits the image quality property and the adjusting parameter value to a hardware abstraction layer; the hardware abstraction layer receives the image quality property and the adjusting parameter value which are transmitted by the frame layer and transmits the image quality property and the adjusting parameter value to a driving layer; the driving layer receives the image quality property and the adjusting parameter value transmitted by the hardware abstraction layer and adjusts the image property of a hardware camera to be the adjusting parameter value of the image property, so that adjustment of the image property of the camera is achieved, the existing camera application function developed on the basis of the android system is improved, and the user experience effect is improved.

Description

A kind of camera image quality control method, system and mobile terminal based on the android platform
Technical field
The invention belongs to technical field of mobile terminals, relate in particular to a kind of camera image quality control method, system and mobile terminal based on the android platform.
Background technology
The Android platform is the mobile terminal operating system of increasing income based on the Linux platform of google company exploitation.It comprises the required whole softwares of mobile terminal work such as operating system, user interface and application program.Google company is by with each side such as operator, equipment manufacturers, developers, forming profound partnership relation, wishes to form an open ecosystem by Criterion, open mobile terminal software platform in mobile industry.
It is more and more abundanter that the camera applications function of now developing above based on Android system has become, but the restriction due to the framework of Android system own, the function that the attribute at the image quality interface that the camera application program of exploitation does not have realization to obtain camera is regulated, such as the contrast that can not obtain camera easily, brightness, the parameters such as saturation are adjusted, need the developer to improve voluntarily the adjustment of this camera parameter, the camera applications function is perfect not, and user's experience effect is good not.
Summary of the invention
The object of the present invention is to provide a kind of by obtaining the image quality attribute information, regulate the camera image quality control method based on the android platform of camera attribute according to the attribute information obtained, be intended to solve the existing camera applications function of developing above based on Android system perfect not, the imperfect problem of user's experience effect.
The invention provides a kind of camera image quality control method based on the android platform, comprising:
Application layer receives image quality and regulates request, and the image quality attribute that comprises in described request and the adjusting parameter value of described image quality attribute are sent to ccf layer;
Ccf layer receives the adjusting parameter value of described image quality attribute and described image quality attribute, and it is transferred to hardware abstraction layer;
The described image quality attribute of hardware abstraction layer sink block rack-layer transmission and the adjusting parameter value of described image quality attribute, and it is transferred to and drives layer;
Drive layer to receive the described image quality attribute of hardware abstraction layer transmission and the adjusting parameter value of described image quality attribute, and the described image quality attribute of hardware camera is adjusted to the adjusting parameter value of described image quality attribute.
Another purpose of the present invention is to provide a kind of camera image quality regulating system based on the android platform, comprising:
First receives sending module, the first interface module, and second receives sending module, adjustment module 34;
Described first receives sending module, receives image quality for application layer and regulates request, and the image quality attribute that comprises in described request and the adjusting parameter value of described image quality attribute are sent to ccf layer;
Described first interface module, receive the adjusting parameter value of described image quality attribute and described image quality attribute, and it be transferred to hardware abstraction layer for ccf layer;
Described second receives sending module, for the described image quality attribute of hardware abstraction layer sink block rack-layer transmission and the adjusting parameter value of described image quality attribute, and it is transferred to and drives layer;
Described adjustment module, receive the described image quality attribute of hardware abstraction layer transmission and the adjusting parameter value of described image quality attribute for driving layer, and the described image quality attribute of hardware camera be adjusted to the adjusting parameter value of described image quality attribute.
The present invention also provides a kind of mobile terminal based on the android platform, and described terminal comprises camera image quality regulating system.
In embodiments of the present invention, receive image quality by application layer and regulate request, and the image quality attribute that comprises in described request and the adjusting parameter value of described image quality attribute are sent to ccf layer; Ccf layer receives described image quality attribute and regulates parameter value, and it is transferred to hardware abstraction layer; The image quality attribute of hardware abstraction layer sink block rack-layer transmission and with regulate parameter value, and it is transferred to and drives layer; Drive layer receive the image quality attribute of hardware abstraction layer transmission and regulate parameter value, and the described image quality attribute of hardware camera is adjusted to the adjusting parameter value of described image quality attribute, the perfect existing camera applications function of developing above based on Android system, improved user's experience effect.
The accompanying drawing explanation
Fig. 1 is the primary camera shooting of Android system frame construction drawing;
Fig. 2 is the realization flow figure of the camera image quality control method based on the android platform that provides of the embodiment of the present invention;
Fig. 3 be the embodiment of the present invention provide obtain the realization flow figure of camera attribute information method from the hardware camera;
Fig. 4 is the structured flowchart of the camera image quality regulating system based on the android platform that provides of the embodiment of the present invention.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer, 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, is not intended to limit the present invention.
Fig. 1 is the primary camera shooting of Android system framework, be divided into from top to bottom: application layer 11, ccf layer 12, hardware abstraction layer 13 and driving layer 14, usually by Binder, call back function or system call contact, described driving layer 14 contacts by I/O control command and hardware device between layers.Described ccf layer 12 comprises the Parameter(parameter) function module 121, described hardware abstraction layer comprises Camera Parameter module (camera parameter) 131 and CameraHal interface 132.
The present invention is under the primary camera shooting of the existing Android system as shown in figure mono-framework, makes improvement, realizes the adjusting to the image quality attribute.
Fig. 2 shows the realization flow of a kind of camera image quality control method based on the android platform that the embodiment of the present invention 1 provides, and details are as follows:
Step 201, application layer receive image quality and regulate request, and the image quality attribute that comprises in described request and the adjusting parameter value of described image quality attribute are sent to ccf layer.
Concrete, application layer receives user's image quality and regulates request, the adjusting parameter value that described request comprises image quality attribute and described image quality attribute, described image quality attribute comprises contrast, brightness, saturation etc., described adjusting parameter value comprises that the user regulates fixed number value really is set by application program.
Application layer receives user's image quality regulate request after, the image quality attribute that comprises in described request and the adjusting parameter value of image quality attribute are sent to ccf layer.
Step 202, ccf layer receive the adjusting parameter value of described image quality attribute and described image quality attribute, and it is transferred to hardware abstraction layer.
Preferably, in the Parameter of ccf layer module (parameter module) 121, create the first interface module, described first interface module is interface function module (such as the setControlParamete function module), described interface function module is transmitted two parameters, one is the image quality attribute, and one is the adjusting parameter value that the user arranges.Described interface function receives the adjusting parameter value of described image quality attribute and image quality attribute.Parameters setParameters module in the development hardware level of abstraction in the CameraHal interface, the attribute information of the hardware camera that needs are regulated adds in this function.Described first interface module, by calling the parameters module of described expansion, is transferred to hardware abstraction layer by the adjusting parameter value of described image quality attribute and described image quality attribute.
The described image quality attribute of step 203, the transmission of hardware abstraction layer sink block rack-layer and the adjusting parameter value of described image quality attribute, and it is transferred to and drives layer.
Preferably, in the camera parameter Camera of camera hardware abstraction layer Parameter module, create the first sign (such as the KEY_XXX_VALUE sign) and the first module (such as the getControlParameterValue function module).Be transferred to the image quality attribute of hardware abstraction layer and the adjusting parameter value of described image quality attribute by described the first sign indicia framing rack-layer, described the first sign is what in the camera parameter Camera of hardware abstraction layer Parameter module, to create.The parameters module of described expansion is obtained the image quality attribute of described the first sign institute mark and the adjusting parameter value of described image quality attribute by calling described the first module.Driving layer to create the second module (such as the v4l2SetControl function module), the parameters module of described expansion is again by calling the second module that drives layer, and the adjusting parameter value of the image quality attribute of described the first sign institute mark of obtaining and described image quality attribute is transferred to and drives layer.
Step 204, driving layer receive the described image quality attribute of hardware abstraction layer transmission and the adjusting parameter value of described image quality attribute, and the described image quality attribute of hardware camera are adjusted to the adjusting parameter value of described image quality attribute.
Drive layer to receive the described image quality attribute of hardware abstraction layer transmission and the adjusting parameter value of described image quality attribute by the second module, and the described image quality attribute of hardware camera is adjusted to the adjusting parameter value of described image quality attribute, thereby complete the adjusting of the image quality attribute that camera is obtained.
Just realize the adjusting to camera image quality attribute by above-mentioned steps, improved the application function of camera, increased user's experience effect.
Further also comprise the image quality attribute information that obtains the hardware camera from the hardware camera before described step 201, comprise parameter value corresponding to described image quality attribute that image quality attribute and hardware camera are supported.Described parameter value comprises currency, maximum, minimum value, step-length, reaches default value, and in order to describe this acquisition process in detail, the embodiment of the present invention two 3 is done following detailed description by reference to the accompanying drawings:
Step 301, driving layer obtain hardware camera image quality attribute and the parameter value corresponding with described image quality attribute.
Preferably, driving layer to create the 3rd module (such as the v4l2GetControl function module), the standard interface v4l2_control defined by described the 3rd module and video drive layer, and I/O interface control command obtains current camera image quality attribute, and the currency corresponding with described image quality attribute.Described v4l2_control is the normal structure body that the original system interface definition is good, and the inside comprises the sign of id(attribute) and the currency of this attribute of value().Described sign is corresponding with attribute (such as contrast, saturation, brightness).The 3rd module is transmitted two parameters, and a Parametric Representation arranges the sign of image quality attribute, and another parameter is currency.Further, driving layer to create four module (such as the v4l2QueryControl function module), described four module is for obtaining maximum, minimum value, step-length and the default value etc. corresponding with described image quality attribute.The standard interface v4l2_queryctrl defined by described four module (such as the v4l2QueryControl function module) and video drive layer, and I/O interface control command obtains all relevant criterion of the some image quality attributes of current hardware camera.Described relevant criterion refers to maximum, minimum value, default value, step-length of the attribute that the hardware camera supports etc.The parameter that described four module need to transmit is two, and one is attribute-bit, and another is the pointer of v4l2_queryctrl, is used for storing acquisition hardware attributes object afterwards.Such as: v4l2QueryControl(int contrast, v4l2_queryctrl*queryctrl) after then calling I/O interface control command, will obtain maximum, minimum value, default value and the step-length of contrast attribute in queryctrl, keyword contrast represents contrast.
Step 302, hardware abstraction layer obtain and drive the described hardware camera image quality that layer obtains to belong to and the parameter value corresponding with described image quality attribute, and by its its, are written in the camera parameter attribute list of hardware abstraction layer.
Preferably, in hardware abstraction layer camera parameter Camera Parameter module, create the second sign (such as the KEY_XXX_SCOPE keyword) and the 5th module (such as the setControlParameterScope function module).The image quality attribute that drives layer to obtain by the second sign mark and the parameter value corresponding with described image quality attribute, described the second sign is what in the camera parameter Camera of hardware abstraction layer Parameter module, to create.The getParameters module that gets parms in the development hardware level of abstraction in the CameraHal interface, the getParameters module that gets parms of described expansion is called five of described moulds, and described the 3rd module and four module, described the 5th module is transmitted 6 parameters, one is exactly the sign of second in above-mentioned KEY_XXX_SCOPE sign, other 5 values are to obtain the currency of the attribute corresponding with the second sign by the 3rd module in step 201 and four module, maximum, minimum value, step-length, and default value.So just obtain described current camera image quality attribute and the parameter value corresponding with described image quality attribute.After obtaining successfully, these values will be written in the middle of the attribute list of photographing module cameraParamerters of hardware abstraction layer.Primary framework is not made like this modification of logic level, just added and needed the attribute information added.
Step 303, ccf layer obtain hardware camera image quality attribute in described hardware abstraction layer attribute list and the parameter value corresponding with described image quality attribute.
Preferably, in ccf layer Parameter module, create a class (such as the ControlParameterScope class), described class, for defining the image quality property parameters, wherein mainly comprises maximum, minimum value, default value, currency, step-length.The example of definition class, and create the second interface module (such as the getControlParameterScope interface module) in ccf layer, the module that gets parms of calling described expansion by described the second interface module is obtained hardware camera image quality attribute in described hardware abstraction layer attribute list and the parameter value corresponding with described attribute, and maximum, minimum value, default value, the step-length of Gong the adjusting that described image quality attribute is corresponding be set according to described parameter value, and by described maximum for regulating, minimum value, default value, step-length attribute as an example.So just realized obtaining image quality attribute and corresponding parameter value thereof from the hardware camera, and be available for the maximum, minimum value, default value, step-length etc. of the image quality attribute regulated according to the described image quality attribute obtained and parameter value setting thereof.
Fig. 4 shows the structured flowchart of a kind of camera image quality regulating system based on the android platform that the embodiment of the present invention three provides, this system can run on the various terminals based on the android platform, include but not limited to mobile phone, pocket computer (Pocket Personal Computer, PPC), palmtop PC, computer, notebook computer, personal digital assistant (Personal Digital Assistant, PDA) etc.For convenience of explanation, only show the part relevant to the present embodiment.
With reference to Fig. 4, this camera image quality regulating system comprises: first receives sending module 41, and first interface module 42, the second receives sending module 43, adjustment module 44.
Described first receives sending module 41, receives image quality for application layer and regulates request, and the image quality attribute that comprises in described request and the adjusting parameter value of described image quality attribute are sent to ccf layer.Concrete, application layer receives user's image quality and regulates request, the adjusting parameter value that described request comprises image quality attribute and described image quality attribute, described image quality attribute comprises contrast, brightness, saturation etc., described adjusting parameter value comprises the step value of determined value or adjusting.Application layer receives user's image quality regulate request after, the image quality attribute that comprises in described request and the adjusting parameter value of image quality attribute are sent to ccf layer.
Described first interface module 42, receive the adjusting parameter value of described image quality attribute and described image quality attribute, and it be transferred to hardware abstraction layer for ccf layer.Described first interface module 42 is interface function module (such as the setControlParamete function module), and described first interface module 42 is transmitted two parameters, and one is the image quality attribute, and one is the adjusting parameter value that the user arranges.Described first interface module receives the adjusting parameter value of described image quality attribute and image quality attribute, and it is transferred to hardware abstraction layer.
Described second receives sending module 43, for the described image quality attribute of hardware abstraction layer sink block rack-layer transmission and the adjusting parameter value of described image quality attribute, and it is transferred to and drives layer.
Described adjustment module 44, receive the described image quality attribute of hardware abstraction layer transmission and the adjusting parameter value of described image quality attribute for driving layer, and the described image quality attribute of hardware camera be adjusted to the adjusting parameter value of described image quality attribute.
Further, described the second reception sending module 43 also comprises: the first sign 431, the first module 432, the first expansion modules 433; Described adjustment module 44 also comprises the second module 441.Described the first sign 431(is such as KEY_XXX_VALUE identifies), be transferred to the image quality attribute of hardware abstraction layer and the adjusting parameter value of described image quality attribute for the indicia framing rack-layer, described the first sign is what in the camera parameter Camera of hardware abstraction layer Parameter module, to create; Described expansion module 433, for the parameters setParameters module of the CameraHal interface of development hardware level of abstraction, the attribute information of the hardware camera that needs are regulated adds in this function.Described first interface module 42, by calling the parameters module of described expansion, is transferred to hardware abstraction layer by the adjusting parameter value of described image quality attribute and described image quality attribute.The parameters module of described expansion is by calling the first module 432, obtain the image quality attribute of described the first sign institute mark and the adjusting parameter value of described image quality attribute, described the first module is to create in the camera parameter Camera of hardware abstraction layer Parameter module; The parameters module of described expansion is by calling the second module 441 in the adjustment module 44 that drives layer, the adjusting parameter value of described the first sign image quality attribute of 431 marks of obtaining and described image quality attribute is transferred to and drives layer, and described the second module 441 is driving layer to create.
Further, described system also comprises: the first acquisition module 45, the second acquisition module 46, the three acquisition modules 47.
Described the first acquisition module 45, obtain hardware camera image quality attribute and the parameter value corresponding with described image quality attribute for driving layer.Further, described the first acquisition module 45 also comprises: the 3rd module 451, the four modules 452; The standard interface v4l2_control that described the 3rd module and video drive layer define, and I/O interface control command obtains current camera image quality attribute, and the currency corresponding with described image quality attribute.Described v4l2_control is the normal structure body that the original system interface definition is good, and the inside comprises the sign of id(attribute) and the currency of this attribute of value().Described sign is corresponding with attribute (such as contrast, saturation, brightness).The v4l2GetControl module is transmitted two parameters, and a Parametric Representation arranges the sign of image quality attribute, and another parameter is currency.Further, driving layer to create four module (such as the v4l2QueryControl function module), described four module is for obtaining maximum, minimum value, step-length and the default value etc. corresponding with described image quality attribute.The standard interface v4l2_queryctrl defined by described four module (such as the v4l2QueryControl function module) and video drive layer, and I/O interface control command obtains all relevant criterion of the some image quality attributes of current hardware camera.Described relevant criterion refers to maximum, minimum value, default value of the attribute that the hardware camera supports etc.Described four module need to transmit two parameters, and one is attribute-bit, and another is the pointer of v4l2_queryctrl, is used for storing acquisition hardware attributes object afterwards.Such as: v4l2QueryControl(int contrast, v4l2_queryctrl*queryctrl) after then calling I/O interface control command, will obtain maximum, minimum value, the default value of contrast attribute in queryctrl and can supply the step-length of regulating, keyword contrast represents contrast.
Described the second acquisition module 46, obtain and drive layer described hardware camera image quality attribute obtained and the parameter value corresponding with described image quality attribute for hardware abstraction layer, and be written in the camera parameter attribute list of hardware abstraction layer.Further, described the second acquisition module 46 also comprises: the second sign 461, the five module 462, the second expansion modules 463.Concrete, described the second sign 461(is such as KEY_XXX_SCOPE identifies), the image quality attribute that drives layer to obtain for mark and the parameter value corresponding with described image quality attribute, described the second sign is what in the camera parameter Camera of hardware abstraction layer Parameter module, to create.Described the second expansion module 463, for the getParameters module that gets parms in development hardware level of abstraction CameraHal interface, the getParameters module that gets parms of described expansion is called described the 5th module 462, and described the 3rd module 451 and four module 452, described the 5th module 462 is transmitted 6 parameters, one is exactly the sign of second in above-mentioned KEY_XXX_SCOPE sign, other 5 values are currencys that the 3rd module and four module obtain the attribute corresponding with the second sign, maximum, minimum value, step-length, and default value.So just obtain described current camera image quality attribute and the parameter value corresponding with described image quality attribute.After obtaining successfully, these values will be written in the middle of the attribute list of camera model cameraParamerters of hardware abstraction layer.
Described the 3rd acquisition module 47, obtain the hardware camera image quality attribute of described hardware abstraction layer attribute list and the parameter value corresponding with described image quality attribute for ccf layer.Further, described the 3rd acquisition module 47 also comprises: class 471, definition arranges module 472, the second interface modules 473.Described class 471(is such as the ControlParameterScope class) for defining the image quality property parameters, wherein mainly comprise maximum, minimum value, default value, currency.Described class creates in ccf layer Parameter function.Described definition arranges module 472, for defining the example of class.Described the second interface module 473, obtain the hardware camera image quality attribute of described hardware abstraction layer attribute list and the parameter value corresponding with described attribute for the module that gets parms of calling described expansion, and maximum, minimum value, default value, the step-length of Gong the adjusting that described image quality attribute is corresponding be set according to described parameter value, and by described maximum for regulating, minimum value, default value, step-length attribute as an example.So just realized obtaining image quality attribute and corresponding parameter value thereof from the hardware camera, and be available for the maximum, minimum value, default value, step-length etc. of the image quality attribute regulated according to the described image quality attribute obtained and parameter value setting thereof, and then the user can set a property for maximum, minimum value, default value, the step-length of the image quality attribute of regulating and regulate parameter value and be regulated attribute according to these.
The present invention also provides a kind of mobile terminal based on the android platform, and described terminal comprises the described system of embodiment tri-.
The embodiment of the present invention does not change the primary camera shooting of Android system overall framework, just its application layer, ccf layer, hardware abstraction layer and driving layer are done to corresponding improvement, thereby realize hardware camera image quality attribute is regulated, improved user's experience, realize simple, with low cost.
It should be noted that, for aforesaid each embodiment of the method, for simple description, therefore it all is expressed as to a series of combination of actions, but those skilled in the art should know, the present invention is not subject to the restriction of described sequence of movement, because according to the present invention, some step can adopt other orders or carry out simultaneously.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any modifications of doing within the spirit and principles in the present invention, be equal to and replace and improvement etc., within all should being included in protection scope of the present invention.

Claims (14)

1. the camera image quality control method based on the android platform, is characterized in that, comprises the following steps:
Application layer receives image quality and regulates request, and the image quality attribute that comprises in described request and the adjusting parameter value of described image quality attribute are sent to ccf layer;
Ccf layer receives the adjusting parameter value of described image quality attribute and described image quality attribute, and it is transferred to hardware abstraction layer;
The described image quality attribute of hardware abstraction layer sink block rack-layer transmission and the adjusting parameter value of described image quality attribute, and it is transferred to and drives layer;
Drive layer to receive the described image quality attribute of hardware abstraction layer transmission and the adjusting parameter value of described image quality attribute, and the described image quality attribute of hardware camera is adjusted to the adjusting parameter value of described image quality attribute.
2. the method for claim 1, is characterized in that, described ccf layer receives the adjusting parameter value of described image quality attribute and described image quality attribute, and it is transferred to hardware abstraction layer, comprising:
Ccf layer receives the adjusting parameter value of described image quality attribute and described image quality attribute by the first interface module, described first interface module creates at ccf layer;
Parameters module in the CameraHal interface of development hardware level of abstraction;
Described first interface module, by calling the parameters module of described expansion, is transferred to hardware abstraction layer by the adjusting parameter value of described image quality attribute and described image quality attribute.
3. the method for claim 1, is characterized in that, the described image quality attribute of described hardware abstraction layer sink block rack-layer transmission and the adjusting parameter value of described image quality attribute, and it is transferred to and drives layer, comprising:
Be transferred to the image quality attribute of hardware abstraction layer and the adjusting parameter value of described image quality attribute by the first sign indicia framing rack-layer, described the first sign is what in the camera parameter Camera of hardware abstraction layer Parameter module, to create;
The parameters module of described expansion is by calling the first module, obtain the image quality attribute of described the first sign institute mark and the adjusting parameter value of described image quality attribute, described the first module is to create in the camera parameter Camera of hardware abstraction layer Parameter module;
The parameters module of described expansion is by calling the second module that drives layer, and the adjusting parameter value of the image quality attribute of described the first sign institute mark of obtaining and described image quality attribute is transferred to and drives layer, and described the second module is driving layer to create.
4. the method for claim 1, is characterized in that, before described step, also comprises:
Drive layer to obtain hardware camera image quality attribute and the parameter value corresponding with described image quality attribute;
Hardware abstraction layer obtains and drives layer described hardware camera image quality attribute obtained and the parameter value corresponding with described image quality attribute, and by its its, is written in the camera parameter attribute list of hardware abstraction layer;
Ccf layer obtains hardware camera image quality attribute in described hardware abstraction layer attribute list and the parameter value corresponding with described image quality attribute.
5. method as claimed in claim 4, is characterized in that, described driving layer, by obtaining hardware camera image quality attribute and the parameter value corresponding with described image quality attribute, comprising:
Obtain hardware camera image quality attribute and the currency corresponding with described image quality attribute by the 3rd module, described the 3rd module is driving layer to create;
Obtain maximum, minimum value, step-length, the default value corresponding with described image quality attribute by four module, described four module is driving layer to create.
6. method as claimed in claim 4, it is characterized in that, obtain the described hardware camera image quality attribute and the parameter value corresponding with described attribute that drive layer to obtain in hardware abstraction layer, and be written in the camera parameter attribute list of hardware abstraction layer, comprising:
The described hardware camera image quality attribute that drives layer to obtain by the second sign mark and the parameter value corresponding with described image quality attribute, described the second sign is what in the camera parameter Camera of hardware abstraction layer Parameter module, to create;
The module that gets parms in the development hardware level of abstraction in the CameraHal interface, the module that gets parms of described expansion is obtained image quality attribute that the driving layer of described the second sign mark obtains and the parameter value corresponding with described attribute by calling the 5th module and described the 3rd module, four module, and it is written in the camera parameter attribute list of hardware abstraction layer, described the 5th module creates at hardware abstraction layer.
7. method as described as one of claim 4-6, is characterized in that, described ccf layer obtains camera image quality attribute in described hardware abstraction layer attribute list and the parameter value corresponding with described attribute, comprising:
Regulate image quality attribute and the parameter value corresponding with described attribute by class definition, described class creates in ccf layer Parameter function;
The example of definition class;
The module that gets parms of calling described expansion by the second interface module is obtained hardware camera image quality attribute in described hardware abstraction layer attribute list and the parameter value corresponding with described attribute, and maximum, minimum value, default value, the step-length of Gong the adjusting that described image quality attribute is corresponding be set according to described parameter value, and, by described maximum for regulating, minimum value, default value, step-length attribute as an example, described the second interface module creates at ccf layer.
8. the camera image quality regulating system based on the android platform, is characterized in that, comprising:
First receives sending module, the first interface module, and second receives sending module, adjustment module;
Described first receives sending module, receives image quality for application layer and regulates request, and the image quality attribute that comprises in described request and the adjusting parameter value of described image quality attribute are sent to ccf layer;
Described first interface module, receive the adjusting parameter value of described image quality attribute and described image quality attribute, and it be transferred to hardware abstraction layer for ccf layer;
Described second receives sending module, for the described image quality attribute of hardware abstraction layer sink block rack-layer transmission and the adjusting parameter value of described image quality attribute, and it is transferred to and drives layer;
Described adjustment module, receive the described image quality attribute of hardware abstraction layer transmission and the adjusting parameter value of described image quality attribute for driving layer, and the described image quality attribute of hardware camera be adjusted to the adjusting parameter value of described image quality attribute.
9. system as claimed in claim 8, is characterized in that, described second receives sending module also comprises: the first sign, the first module, the first expansion module; Described adjustment module also comprises: the second module;
Described the first sign, be transferred to the image quality attribute of hardware abstraction layer and the adjusting parameter value of described image quality attribute for the indicia framing rack-layer, and described the first sign is what in the camera parameter Camera of hardware abstraction layer Parameter module, to create;
Described the first expansion module, the parameters module that is used for the CameraHal interface of development hardware level of abstraction, the parameters module of described expansion is by calling the first module, obtain the image quality attribute of described the first sign institute mark and the adjusting parameter value of described image quality attribute, described the first module is to create in the camera parameter Camera of hardware abstraction layer Parameter module; The parameters module of described expansion is by the second module in described calling module, and the adjusting parameter value of the image quality attribute of described the first sign institute mark of obtaining and described image quality attribute is transferred to and drives layer, and described the second module is driving layer to create.
10. system as claimed in claim 8, is characterized in that, described system also comprises:
The first acquisition module, the second acquisition module, the 3rd acquisition module;
Described the first acquisition module, obtain hardware camera image quality attribute and the parameter value corresponding with described image quality attribute for driving layer;
Described the second acquisition module, obtain and drive layer described hardware camera image quality attribute obtained and the parameter value corresponding with described image quality attribute for hardware abstraction layer, and be written in the camera parameter attribute list of hardware abstraction layer;
Described the 3rd acquisition module, obtain the hardware camera image quality attribute of described hardware abstraction layer attribute list and the parameter value corresponding with described image quality attribute for ccf layer.
11. system as claimed in claim 10, is characterized in that, described the first acquisition module also comprises:
The 3rd module, four module;
Described the 3rd module, for obtaining hardware camera image quality attribute and the currency corresponding with described image quality attribute, described the 3rd module is driving layer to create;
Described four module, for obtaining maximum, minimum value, step-length, the default value corresponding with described image quality attribute, described four module is driving layer to create.
12. system as claimed in claim 10, is characterized in that, described the second acquisition module also comprises:
The second sign, the 5th module, the second expansion module;
Described the second sign, the image quality attribute that drives layer to obtain for mark and the parameter value corresponding with described image quality attribute, described the second sign is what in the camera parameter Camera of hardware abstraction layer Parameter module, to create;
Described the second expansion module, for the module that gets parms in development hardware level of abstraction CameraHal interface, the module that gets parms of described expansion is obtained the image quality attribute of described the second sign mark and the parameter value corresponding with described attribute by calling described the 5th module and described the 3rd module, four module, and it is written in the camera parameter attribute list of hardware abstraction layer, described the 5th module creates at hardware abstraction layer.
13. system as described as one of claim 10-12, is characterized in that, described the 3rd acquisition module also comprises: class, and definition arranges module, the second interface module;
Described class, for defining image quality attribute and the parameter value corresponding with described attribute, described class creates in ccf layer Parameter function;
Described definition arranges module, for defining the example of class;
Described the second interface module, obtain the hardware camera image quality attribute of described hardware abstraction layer attribute list and the parameter value corresponding with described attribute for the module that gets parms of calling described expansion, and maximum, minimum value, default value, the step-length of Gong the adjusting that described image quality attribute is corresponding be set according to described parameter value, and by described maximum for regulating, minimum value, default value, step-length attribute as an example.
14. the mobile terminal that comprises one of claim 8-13 system based on the android platform.
CN201310357198.4A 2013-08-15 2013-08-15 A kind of camera image quality adjusting method, system and mobile terminal based on Android platform Expired - Fee Related CN103442172B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310357198.4A CN103442172B (en) 2013-08-15 2013-08-15 A kind of camera image quality adjusting method, system and mobile terminal based on Android platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310357198.4A CN103442172B (en) 2013-08-15 2013-08-15 A kind of camera image quality adjusting method, system and mobile terminal based on Android platform

Publications (2)

Publication Number Publication Date
CN103442172A true CN103442172A (en) 2013-12-11
CN103442172B CN103442172B (en) 2017-09-19

Family

ID=49695833

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310357198.4A Expired - Fee Related CN103442172B (en) 2013-08-15 2013-08-15 A kind of camera image quality adjusting method, system and mobile terminal based on Android platform

Country Status (1)

Country Link
CN (1) CN103442172B (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104657956A (en) * 2015-03-16 2015-05-27 龙旗电子(惠州)有限公司 Method for realizing smart phone picture beautifying function
CN105426197A (en) * 2015-12-30 2016-03-23 北京迪创伟业科技有限公司 Hierarchical design method for embedded product
CN105549994A (en) * 2015-12-09 2016-05-04 惠州Tcl移动通信有限公司 Mobile terminal camera calibration parameter writing method and system and mobile terminal
WO2017076199A1 (en) * 2015-11-04 2017-05-11 阿里巴巴集团控股有限公司 Image preview method and apparatus for camera application, and camera application system
CN106899795A (en) * 2015-12-17 2017-06-27 阿里巴巴集团控股有限公司 A kind of camera hardware parameter call, method to set up, device and camera applications system
WO2019056242A1 (en) * 2017-09-21 2019-03-28 深圳传音通讯有限公司 Camera photographing parameter setting method for smart terminal, setting device, and smart terminal
CN110769096A (en) * 2019-10-21 2020-02-07 Oppo(重庆)智能科技有限公司 Motor vibration method, terminal and storage medium
CN110933313A (en) * 2019-12-09 2020-03-27 Oppo广东移动通信有限公司 Dark light photographing method and related equipment
CN112866768A (en) * 2020-08-21 2021-05-28 海信视像科技股份有限公司 Display device and information prompting method
CN113347378A (en) * 2021-06-02 2021-09-03 展讯通信(天津)有限公司 Video recording method and device
CN113890998A (en) * 2021-10-26 2022-01-04 Oppo广东移动通信有限公司 Image data processing method and device, electronic equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101060590A (en) * 2007-04-29 2007-10-24 北京中星微电子有限公司 A cam device
CN103024279A (en) * 2012-12-27 2013-04-03 上海华勤通讯技术有限公司 Camera brightness regulating device and implementation method thereof

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101060590A (en) * 2007-04-29 2007-10-24 北京中星微电子有限公司 A cam device
CN103024279A (en) * 2012-12-27 2013-04-03 上海华勤通讯技术有限公司 Camera brightness regulating device and implementation method thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈丽娜: "基于Android系统的Camera应用程序的设计及优化", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104657956A (en) * 2015-03-16 2015-05-27 龙旗电子(惠州)有限公司 Method for realizing smart phone picture beautifying function
WO2017076199A1 (en) * 2015-11-04 2017-05-11 阿里巴巴集团控股有限公司 Image preview method and apparatus for camera application, and camera application system
CN105549994A (en) * 2015-12-09 2016-05-04 惠州Tcl移动通信有限公司 Mobile terminal camera calibration parameter writing method and system and mobile terminal
CN106899795A (en) * 2015-12-17 2017-06-27 阿里巴巴集团控股有限公司 A kind of camera hardware parameter call, method to set up, device and camera applications system
CN105426197A (en) * 2015-12-30 2016-03-23 北京迪创伟业科技有限公司 Hierarchical design method for embedded product
WO2019056242A1 (en) * 2017-09-21 2019-03-28 深圳传音通讯有限公司 Camera photographing parameter setting method for smart terminal, setting device, and smart terminal
CN110769096A (en) * 2019-10-21 2020-02-07 Oppo(重庆)智能科技有限公司 Motor vibration method, terminal and storage medium
CN110933313A (en) * 2019-12-09 2020-03-27 Oppo广东移动通信有限公司 Dark light photographing method and related equipment
CN112866768A (en) * 2020-08-21 2021-05-28 海信视像科技股份有限公司 Display device and information prompting method
CN112866768B (en) * 2020-08-21 2022-09-30 海信视像科技股份有限公司 Display device and information prompting method
CN113347378A (en) * 2021-06-02 2021-09-03 展讯通信(天津)有限公司 Video recording method and device
CN113890998A (en) * 2021-10-26 2022-01-04 Oppo广东移动通信有限公司 Image data processing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN103442172B (en) 2017-09-19

Similar Documents

Publication Publication Date Title
CN103442172A (en) Camera image quality adjusting method, system and mobile terminal based on android platform
WO2020244500A1 (en) Method for touch control in screen casting scenario, and electronic apparatus
WO2021027476A1 (en) Method for voice controlling apparatus, and electronic apparatus
CN108681436A (en) Image quality parameter adjusting method, device, terminal and storage medium
US10019782B2 (en) Method and apparatus for displaying content
US10284705B2 (en) Method and apparatus for controlling smart device, and computer storage medium
WO2018082412A1 (en) Electronic equipment control method, device and electronic equipment
CN104281478B (en) The method and device of more new application
CN103200196B (en) A kind of access method, system and device between subscriber equipment and access target
CN104081374A (en) Hierarchical display-server system and method
CN103034401B (en) The method to set up of terminal and associated picture
CN106331749A (en) Video request method and system
CN108604106A (en) The autoplacement of side channel-aware and wiring
CN113190362A (en) Service calling method and device, computer equipment and storage medium
CN115113751A (en) Method and device for adjusting numerical range of recognition parameter of touch gesture
CN114385280A (en) Parameter determination method and electronic equipment
CN110868471A (en) Novel equipment construction method and device and storage medium
CN114040319B (en) Method, device, equipment and medium for optimizing playback quality of terminal equipment
CN114449171B (en) Method for controlling camera, terminal device, storage medium and program product
CN104267875A (en) Photo mode display method and device
JP2010288243A (en) Content generation and distribution system for mobile information terminal
US20230351665A1 (en) Animation Processing Method and Related Apparatus
WO2022206600A1 (en) Screen projection method and system, and related apparatus
KR102475351B1 (en) Method and server providing online news service platform based on gui
WO2023179682A1 (en) Device collaboration method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20170919