liyujie
2025-08-28 d9927380ed7c8366f762049be9f3fee225860833
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
 
/*
 ******************************************************************************
 *
 * isp_3a_md.h
 *
 * Hawkview ISP - isp_3a_md.h module
 *
 * Copyright (c) 2016 by Allwinnertech Co., Ltd.  http://www.allwinnertech.com
 *
 * Version          Author         Date            Description
 *
 *   3.0          Yang Feng       2016/03/31    VIDEO INPUT
 *
 *****************************************************************************
 */
 
#ifndef _ISP_3A_MD_H_
#define _ISP_3A_MD_H_
 
#define ISP_LIB_USE_MD        0
 
enum direction {
   MD_LEFT = 0,
   MD_RIGHT,
   MD_UP,
   MD_DOWN,
   MD_BACKWARD,
   MD_FORWARD,
   MD_NO_MOTION,
};
 
typedef enum isp_md_param_type {
   ISP_MD_PARAM_TYPE_MAX,
} md_param_type_t;
 
 
typedef struct md_test_config {
   HW_S32 isp_test_mode;
} md_test_config_t;
 
typedef struct isp_md_param {
   md_param_type_t type;
   HW_S32 isp_platform_id;
   HW_S32 md_frame_id;
   HW_S32 af_scene_motion_th;
   isp_sensor_info_t md_sensor_info;
   md_test_config_t test_cfg;
} md_param_t;
 
typedef struct isp_md_stats {
   struct isp_md_stats_s *md_stats;
 
} md_stats_t;
 
typedef struct isp_md_result {
   HW_S32 motion_flag;
   enum direction motion_dir;
} md_result_t;
 
typedef struct isp_md_core_ops {
   HW_S32 (*isp_md_set_params)(void *md_core_obj, md_param_t *param, md_result_t *result);
   HW_S32 (*isp_md_get_params)(void *md_core_obj, md_param_t **param);
   HW_S32 (*isp_md_run)(void *md_core_obj, md_stats_t *stats, md_result_t *result);
} isp_md_core_ops_t;
 
void* md_init(isp_md_core_ops_t **md_core_ops);
void  md_exit(void *md_core_obj);
 
 
#endif /*_ISP_3A_MD_H_*/