Initial commit: TXW82x FPV v2.7.0.7-42229 SDK + project sources
This commit is contained in:
18
sdk/include/lib/video/isp/isp_dev.h
Normal file
18
sdk/include/lib/video/isp/isp_dev.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#ifndef _ISP_DEV_H_
|
||||
#define _ISP_DEV_H_
|
||||
|
||||
#include "hal/isp.h"
|
||||
typedef struct sensor_isp_info {
|
||||
struct list_head list;
|
||||
uint16 sensor_src;
|
||||
uint16 sensor_type;
|
||||
uint16 sensor_dev_id;
|
||||
uint16 sensor_opt_cmd;
|
||||
uint32 sensor_config;
|
||||
} SENSOR_BASIC_INFO;
|
||||
|
||||
void isp_cfg_dev();
|
||||
void sensor_info_init();
|
||||
void sensor_info_destory();
|
||||
void sensor_info_add(enum sensor_type type, enum isp_input_dat_src sensor_src, uint32 sensor_config, uint32 iic_id, uint32 opt_cmd);
|
||||
#endif
|
||||
92
sdk/include/lib/video/isp/isp_ircut.h
Normal file
92
sdk/include/lib/video/isp/isp_ircut.h
Normal file
@@ -0,0 +1,92 @@
|
||||
#ifndef _ISP_IRCUT_H_
|
||||
#define _ISP_IRCUT_H_
|
||||
|
||||
#include "hal/isp.h"
|
||||
#include "osal/work.h"
|
||||
|
||||
#define IR_ABS(x) ((x) < 0 ? -(x) : (x))
|
||||
|
||||
typedef struct {
|
||||
float curr_bv;
|
||||
uint16_t r_mean, g_mean, b_mean;
|
||||
uint16_t r_gain, b_gain;
|
||||
uint16_t saturation;
|
||||
} ISP_IRCUT_STAT;
|
||||
|
||||
typedef struct ircut_info{
|
||||
uint8 ircut_opt_status;
|
||||
uint8 whiteled_status; // whiteled status flag( on : open whiteled)
|
||||
uint8 irled_status; // irled status flag( on : open irled)
|
||||
uint8 ircut_status; // ircut status flag( on : open ircut)
|
||||
uint8 irdet_status; // ircut status flag( on : open ircut)
|
||||
uint8 irled_detect_mode; // irled detece select
|
||||
uint8 sw_state;
|
||||
uint8 isp_mode;
|
||||
uint8 frame_cnt;
|
||||
uint8 frame_to_switch;
|
||||
uint8 ircut_en; // ircut_hardware config gpio
|
||||
uint8 action_status;
|
||||
uint8 action_type;
|
||||
uint8 ircut_gpio_en, irled_gpio_en, irdet_gpio_en, whiteled_gpio_en;
|
||||
uint8 switch_cnt, switch_max;
|
||||
uint16 last_r_gain,last_b_gain;
|
||||
uint16 to_day_sat,to_day_diff_rb_gain,to_day_diff_b_gain;
|
||||
float to_day_bv,to_day_bv_max, to_night_bv;
|
||||
struct os_work ircut_action_work;
|
||||
struct isp_device *dev;
|
||||
}IRCUT_INFO;
|
||||
|
||||
enum {
|
||||
IRLED_OFF = 0,
|
||||
IRLED_ON,
|
||||
};
|
||||
|
||||
enum {
|
||||
IRDET_OFF = 0,
|
||||
IRDET_ON,
|
||||
};
|
||||
|
||||
enum {
|
||||
WHITELED_OFF = 0,
|
||||
WHITELED_ON,
|
||||
};
|
||||
|
||||
enum {
|
||||
IRCUT_OPT_STATE_IDLE,
|
||||
IRCUT_OPT_STATE_SW_ON,
|
||||
IRCUT_OPT_STATE_SW_OFF,
|
||||
IRCUT_OPT_STATE_ON,
|
||||
IRCUT_OPT_STATE_OFF,
|
||||
};
|
||||
|
||||
enum {
|
||||
IRCUT_OFF,
|
||||
IRCUT_ON,
|
||||
};
|
||||
|
||||
enum {
|
||||
IRCUT_ACTION_STOP,
|
||||
IRCUT_ACTION_START,
|
||||
};
|
||||
|
||||
enum {
|
||||
IRCUT_DET_MODE_SW,
|
||||
IRCUT_DET_MODE_HW,
|
||||
IRCUT_DET_MODE_MANUAL,
|
||||
};
|
||||
|
||||
enum {
|
||||
ISP_MODE_DAY_COLOR = 0,
|
||||
ISP_MODE_NIGHT_COLOR = 1,
|
||||
ISP_MODE_NIGHT_MONO = 2,
|
||||
};
|
||||
|
||||
enum {
|
||||
IRCUT_STAT_DAY_TO_NIGHT,
|
||||
IRCUT_STAT_WB_REC,
|
||||
IRCUT_STAT_NIGHT_TO_DAY,
|
||||
};
|
||||
|
||||
void ircut_init();
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user