1 /* 2 * xcam_smart_result.h - smart result(meta data) 3 * 4 * Copyright (c) 2016-2017 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 C_XCAM_SMART_RESULT_H 22 #define C_XCAM_SMART_RESULT_H 23 24 #include <stdlib.h> 25 #include <stdint.h> 26 #include <stddef.h> 27 #include <base/xcam_3a_result.h> 28 29 XCAM_BEGIN_DECLARE 30 31 typedef struct _XCamFaceInfo { 32 uint32_t id; 33 uint32_t pos_x; 34 uint32_t pos_y; 35 uint32_t width; 36 uint32_t height; 37 uint32_t factor; 38 uint32_t landmark[128]; 39 } XCamFaceInfo; 40 41 /* 42 * Face detection result 43 * head.type = XCAM_3A_RESULT_FACE_DETECTION; 44 * head.process_type = XCAM_IMAGE_PROCESS_POST; 45 * head.destroy = free fd result. 46 */ 47 48 typedef struct _XCamFDResult { 49 XCam3aResultHead head; 50 uint32_t face_num; 51 XCamFaceInfo faces[0]; 52 } XCamFDResult; 53 54 /* 55 * Digital Video Stabilizer result 56 * head.type = XCAM_3A_RESULT_DVS; 57 * head.process_type = XCAM_IMAGE_PROCESS_POST; 58 * head.destroy = free dvs result. 59 */ 60 61 typedef struct _XCamDVSResult { 62 XCam3aResultHead head; 63 int frame_id; 64 int frame_width; 65 int frame_height; 66 double proj_mat[9]; 67 } XCamDVSResult; 68 69 XCAM_END_DECLARE 70 71 #endif //C_XCAM_SMART_RESULT_H 72 73