1 /* 2 * aiq3a_utils.h - aiq 3a utility: 3 * 4 * Copyright (c) 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 * Author: Shincy Tu <shincy.tu@intel.com> 20 */ 21 22 #ifndef XCAM_AIQ_UTILS_H 23 #define XCAM_AIQ_UTILS_H 24 25 26 #include <xcam_std.h> 27 #include "x3a_result.h" 28 29 #include <base/xcam_3a_stats.h> 30 #include <linux/atomisp.h> 31 32 namespace XCam { 33 bool translate_3a_stats (XCam3AStats *from, struct atomisp_3a_statistics *to); 34 uint32_t translate_3a_results_to_xcam (XCam::X3aResultList &list, 35 XCam3aResultHead *results[], uint32_t max_count); 36 37 void free_3a_result (XCam3aResultHead *result); 38 } 39 40 #endif //XCAM_AIQ_UTILS_H 41