1 /* 2 3 */ 4 5 #ifndef DEMO_H_ 6 #define DEMO_H_ 7 //�ڴ˴���������ͷ�ļ� 8 #include "stdio.h" 9 #include "string.h" 10 #include "stdlib.h" 11 #include "math.h" 12 13 #include "demo_define.h" 14 #include "tool.h" 15 #include "inital_alg_params_ynr.h" 16 #include "inital_alg_params_gic.h" 17 #include "inital_alg_params_lsc.h" 18 #include "inital_alg_params_lsc2.h" 19 #include "inital_alg_params_rk_shapren_HW.h" 20 #include "inital_alg_params_rk_edgefilter.h" 21 22 #include "initial_alg_params_bayernr.h" 23 24 #include "inital_alg_params_rkuvnr.h" 25 #include "inital_alg_params_rk_cnr.h" 26 27 #include "inital_alg_params_mfnr.h" 28 #include "rk_aiq_awb_algo_v200.h" 29 #define FILE_RAW_EXT ".raw" 30 #define FILE_YUV_EXT ".yuv" 31 #define FILE_DAT_EXT ".dat" 32 33 typedef enum YUV_FILE_FMT 34 { 35 F_YUV_420SP = 0x00, 36 F_YUV_420P = 0x01, 37 F_YUV_422I = 0x02, 38 F_YUV_422SP = 0x03, 39 F_YUV_422P = 0x04, 40 F_YUV_444I = 0x05, 41 42 F_YUV_MAX = 0x10, 43 }YUV_FILE_FMT_t; 44 45 typedef enum INPUT_FILE_FMT 46 { 47 F_IN_FMT_RAW = 0x00, 48 F_IN_FMT_YUV, 49 50 51 F_IN_FMT_MAX = 0x10, 52 }INPUT_FILE_FMT_t; 53 54 55 56 //�˴�������� 57 typedef struct tag_config_com 58 { 59 int exp_info_en ; 60 int framenum ; 61 int rawwid ; 62 int rawhgt ; 63 int rawbit ; 64 int bayerfmt ; 65 int yuvbit ; 66 int yuvfmt ; 67 }tag_config_com; 68 69 typedef struct tag_config_txt 70 { 71 tag_config_com config_com; 72 73 int framecnt ; 74 int iso ; 75 int exptime[3] ; 76 int expgain[3] ; 77 int rgain ; 78 int bgain ; 79 int grgain ; 80 int gbgain ; 81 int dGain ; 82 int lux ; 83 }tag_config_txt; 84 85 typedef struct tag_ST_DEMO_INPUT_PARAMS 86 { 87 int width; //rawͼ�� 88 int height; //rawͼ�� 89 int bayerPattern; //bayer pattern��ʽ:0--BGGR,1--GBRG,2--GRBG,3--RGGB 90 int yuvFmt; //yuv file ��ʽ: YUV_FILE_FMT_t 91 int bitValue; //raw����λ�� 92 int hdr_framenum; 93 float expGain[MAX_HDR_FRM_NUM]; // 94 float expTime[MAX_HDR_FRM_NUM]; //�ع�ʱ�� 95 int rGain; //wb rgain 96 int bGain; //wb bgain 97 int grGain; //wb grgain 98 int gbGain; //wb gbgain 99 int dGain; //wb gbgain 100 int fileFmt; //input file format:INPUT_FILE_FMT_t 101 int width_full; //rawͼ�� 102 int height_full; //rawͼ�� 103 int crop_width; 104 int crop_height; 105 int crop_xoffset; 106 int crop_yoffset; 107 108 char pathFileCfg[256];//config�ļ�·�� 109 char pathRawData[256];//rawͼ·�� 110 char nameRawData[256];//rawͼ���� 111 char pathExpInfo[256];//exp_info�ļ�·�� 112 char pathReslut[256];//��������ļ���·�� 113 char suffix[256]; // ����ļ����ַ� 114 char pathRtlin[256]; //rtl in path 115 int skip_num; 116 int frame_end; 117 118 int hdr_proc_mode; 119 int out_mode; 120 121 122 char dbgFlg[1024]; // must > ISP_CAP_MAX 123 int config_full; 124 125 int exp_info_en; 126 int file_info_en; 127 FILE *fp_exp_info; 128 }ST_DEMO_INPUT_PARAMS; 129 130 131 132 //�˴��������� 133 134 135 136 #endif // DEMO_H_ 137