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 24 #include <xcam_std.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 explicit X3aAnalyzerAiq (struct atomisp_sensor_mode_data &sensor_data, const char *cpf_path); 39 ~X3aAnalyzerAiq (); 40 41 private: 42 43 XCAM_DEAD_COPY (X3aAnalyzerAiq); 44 45 protected: 46 virtual SmartPtr<AeHandler> create_ae_handler (); 47 virtual SmartPtr<AwbHandler> create_awb_handler (); 48 virtual SmartPtr<AfHandler> create_af_handler (); 49 virtual SmartPtr<CommonHandler> create_common_handler (); 50 51 virtual XCamReturn internal_init (uint32_t width, uint32_t height, double framerate); 52 virtual XCamReturn internal_deinit (); 53 54 virtual XCamReturn configure_3a (); 55 virtual XCamReturn pre_3a_analyze (SmartPtr<X3aStats> &stats); 56 virtual XCamReturn post_3a_analyze (X3aResultList &results); 57 58 private: 59 SmartPtr <AiqCompositor> _aiq_compositor; 60 61 SmartPtr <IspController> _isp; 62 struct atomisp_sensor_mode_data _sensor_mode_data; 63 bool _sensor_data_ready; 64 char *_cpf_path; 65 }; 66 67 }; 68 #endif //XCAM_3A_ANALYZER_AIQ_H 69