Wind Yuan | 75564b1 | 2015-01-15 06:51:15 -0500 | [diff] [blame] | 1 | /* |
| 2 | * isp_controller.h - isp controller |
| 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 | #ifndef XCAM_ISP_CONTROLLER_H |
| 21 | #define XCAM_ISP_CONTROLLER_H |
| 22 | |
Wind Yuan | 8810a79 | 2015-01-22 15:20:23 +0800 | [diff] [blame] | 23 | #include "xcam_utils.h" |
Wind Yuan | 75564b1 | 2015-01-15 06:51:15 -0500 | [diff] [blame] | 24 | #include "x3a_isp_config.h" |
| 25 | |
| 26 | namespace XCam { |
| 27 | |
| 28 | class V4l2Device; |
| 29 | class X3aIspStatistics; |
| 30 | class X3aIspConfig; |
| 31 | |
| 32 | class IspController { |
| 33 | public: |
| 34 | explicit IspController (SmartPtr<V4l2Device> & device); |
| 35 | ~IspController (); |
| 36 | |
| 37 | XCamReturn get_sensor_mode_data (struct atomisp_sensor_mode_data &sensor_mode_data); |
| 38 | XCamReturn get_isp_parameter (struct atomisp_parm ¶meters); |
| 39 | |
| 40 | XCamReturn get_3a_statistics (SmartPtr<X3aIspStatistics> &stats); |
| 41 | XCamReturn set_3a_config (X3aIspConfig *config); |
| 42 | XCamReturn set_3a_exposure (X3aIspExposureResult *res); |
| 43 | XCamReturn set_3a_exposure (const struct atomisp_exposure &exposure); |
| 44 | XCamReturn set_3a_focus (const XCam3aResultFocus &focus); |
| 45 | |
| 46 | private: |
| 47 | |
| 48 | XCAM_DEAD_COPY (IspController); |
| 49 | |
| 50 | private: |
| 51 | SmartPtr<V4l2Device> _device; |
| 52 | }; |
| 53 | |
| 54 | }; |
| 55 | |
| 56 | #endif //XCAM_ISP_CONTROLLER_H |