Wind Yuan | 75564b1 | 2015-01-15 06:51:15 -0500 | [diff] [blame] | 1 | /* |
| 2 | * x3a_analyzer_aiq.h - 3a analyzer from AIQ |
| 3 | * |
| 4 | * Copyright (c) 2014-2015 Intel Corporation |
| 5 | * |
| 6 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | * you may not use this file except in compliance with the License. |
| 8 | * You may obtain a copy of the License at |
| 9 | * |
| 10 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | * |
| 12 | * Unless required by applicable law or agreed to in writing, software |
| 13 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | * See the License for the specific language governing permissions and |
| 16 | * limitations under the License. |
| 17 | * |
| 18 | * Author: Wind Yuan <feng.yuan@intel.com> |
| 19 | */ |
| 20 | |
| 21 | #ifndef XCAM_3A_ANALYZER_AIQ_H |
| 22 | #define XCAM_3A_ANALYZER_AIQ_H |
| 23 | |
Wind Yuan | 75564b1 | 2015-01-15 06:51:15 -0500 | [diff] [blame] | 24 | #include "xcam_utils.h" |
| 25 | #include "x3a_analyzer.h" |
| 26 | #include <linux/atomisp.h> |
| 27 | |
| 28 | namespace XCam { |
| 29 | |
| 30 | class AiqCompositor; |
| 31 | class IspController; |
| 32 | |
| 33 | class X3aAnalyzerAiq |
| 34 | : public X3aAnalyzer |
| 35 | { |
| 36 | public: |
| 37 | explicit X3aAnalyzerAiq (SmartPtr<IspController> &isp, const char *cpf_path); |
| 38 | ~X3aAnalyzerAiq (); |
| 39 | |
| 40 | private: |
| 41 | |
| 42 | XCAM_DEAD_COPY (X3aAnalyzerAiq); |
| 43 | |
| 44 | protected: |
| 45 | virtual SmartPtr<AeHandler> create_ae_handler (); |
| 46 | virtual SmartPtr<AwbHandler> create_awb_handler (); |
| 47 | virtual SmartPtr<AfHandler> create_af_handler (); |
| 48 | virtual SmartPtr<CommonHandler> create_common_handler (); |
| 49 | |
Wind Yuan | 60aa8ce | 2015-01-26 16:56:09 +0800 | [diff] [blame] | 50 | virtual XCamReturn internal_init (uint32_t width, uint32_t height, double framerate); |
Wind Yuan | 75564b1 | 2015-01-15 06:51:15 -0500 | [diff] [blame] | 51 | virtual XCamReturn internal_deinit (); |
| 52 | |
| 53 | virtual XCamReturn configure_3a (); |
Wind Yuan | 1d5f5ce | 2015-04-15 19:59:28 +0800 | [diff] [blame] | 54 | virtual XCamReturn pre_3a_analyze (SmartPtr<X3aStats> &stats); |
Wind Yuan | 75564b1 | 2015-01-15 06:51:15 -0500 | [diff] [blame] | 55 | virtual XCamReturn post_3a_analyze (X3aResultList &results); |
| 56 | |
| 57 | private: |
| 58 | SmartPtr <AiqCompositor> _aiq_compositor; |
| 59 | |
| 60 | SmartPtr <IspController> _isp; |
| 61 | struct atomisp_sensor_mode_data _sensor_mode_data; |
| 62 | char *_cpf_path; |
| 63 | }; |
| 64 | |
| 65 | }; |
| 66 | #endif //XCAM_3A_ANALYZER_AIQ_H |