137 lines
2.9 KiB
C
137 lines
2.9 KiB
C
|
/*
|
|||
|
|
|||
|
*/
|
|||
|
|
|||
|
#ifndef DEMO_H_
|
|||
|
#define DEMO_H_
|
|||
|
//<2F>ڴ˴<DAB4><CBB4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͷ<EFBFBD>ļ<EFBFBD>
|
|||
|
#include "stdio.h"
|
|||
|
#include "string.h"
|
|||
|
#include "stdlib.h"
|
|||
|
#include "math.h"
|
|||
|
|
|||
|
#include "demo_define.h"
|
|||
|
#include "tool.h"
|
|||
|
#include "inital_alg_params_ynr.h"
|
|||
|
#include "inital_alg_params_gic.h"
|
|||
|
#include "inital_alg_params_lsc.h"
|
|||
|
#include "inital_alg_params_lsc2.h"
|
|||
|
#include "inital_alg_params_rk_shapren_HW.h"
|
|||
|
#include "inital_alg_params_rk_edgefilter.h"
|
|||
|
|
|||
|
#include "initial_alg_params_bayernr.h"
|
|||
|
|
|||
|
#include "inital_alg_params_rkuvnr.h"
|
|||
|
#include "inital_alg_params_rk_cnr.h"
|
|||
|
|
|||
|
#include "inital_alg_params_mfnr.h"
|
|||
|
#include "rk_aiq_awb_algo_v200.h"
|
|||
|
#define FILE_RAW_EXT ".raw"
|
|||
|
#define FILE_YUV_EXT ".yuv"
|
|||
|
#define FILE_DAT_EXT ".dat"
|
|||
|
|
|||
|
typedef enum YUV_FILE_FMT
|
|||
|
{
|
|||
|
F_YUV_420SP = 0x00,
|
|||
|
F_YUV_420P = 0x01,
|
|||
|
F_YUV_422I = 0x02,
|
|||
|
F_YUV_422SP = 0x03,
|
|||
|
F_YUV_422P = 0x04,
|
|||
|
F_YUV_444I = 0x05,
|
|||
|
|
|||
|
F_YUV_MAX = 0x10,
|
|||
|
}YUV_FILE_FMT_t;
|
|||
|
|
|||
|
typedef enum INPUT_FILE_FMT
|
|||
|
{
|
|||
|
F_IN_FMT_RAW = 0x00,
|
|||
|
F_IN_FMT_YUV,
|
|||
|
|
|||
|
|
|||
|
F_IN_FMT_MAX = 0x10,
|
|||
|
}INPUT_FILE_FMT_t;
|
|||
|
|
|||
|
|
|||
|
|
|||
|
//<2F>˴<EFBFBD><CBB4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
typedef struct tag_config_com
|
|||
|
{
|
|||
|
int exp_info_en ;
|
|||
|
int framenum ;
|
|||
|
int rawwid ;
|
|||
|
int rawhgt ;
|
|||
|
int rawbit ;
|
|||
|
int bayerfmt ;
|
|||
|
int yuvbit ;
|
|||
|
int yuvfmt ;
|
|||
|
}tag_config_com;
|
|||
|
|
|||
|
typedef struct tag_config_txt
|
|||
|
{
|
|||
|
tag_config_com config_com;
|
|||
|
|
|||
|
int framecnt ;
|
|||
|
int iso ;
|
|||
|
int exptime[3] ;
|
|||
|
int expgain[3] ;
|
|||
|
int rgain ;
|
|||
|
int bgain ;
|
|||
|
int grgain ;
|
|||
|
int gbgain ;
|
|||
|
int dGain ;
|
|||
|
int lux ;
|
|||
|
}tag_config_txt;
|
|||
|
|
|||
|
typedef struct tag_ST_DEMO_INPUT_PARAMS
|
|||
|
{
|
|||
|
int width; //rawͼ<77><CDBC>
|
|||
|
int height; //rawͼ<77><CDBC>
|
|||
|
int bayerPattern; //bayer pattern<72><6E>ʽ:0--BGGR,1--GBRG,2--GRBG,3--RGGB
|
|||
|
int yuvFmt; //yuv file <20><>ʽ: YUV_FILE_FMT_t
|
|||
|
int bitValue; //raw<61><77><EFBFBD><EFBFBD>λ<EFBFBD><CEBB>
|
|||
|
int hdr_framenum;
|
|||
|
float expGain[MAX_HDR_FRM_NUM]; //
|
|||
|
float expTime[MAX_HDR_FRM_NUM]; //<2F>ع<EFBFBD>ʱ<EFBFBD><CAB1>
|
|||
|
int rGain; //wb rgain
|
|||
|
int bGain; //wb bgain
|
|||
|
int grGain; //wb grgain
|
|||
|
int gbGain; //wb gbgain
|
|||
|
int dGain; //wb gbgain
|
|||
|
int fileFmt; //input file format:INPUT_FILE_FMT_t
|
|||
|
int width_full; //rawͼ<77><CDBC>
|
|||
|
int height_full; //rawͼ<77><CDBC>
|
|||
|
int crop_width;
|
|||
|
int crop_height;
|
|||
|
int crop_xoffset;
|
|||
|
int crop_yoffset;
|
|||
|
|
|||
|
char pathFileCfg[256];//config<69>ļ<EFBFBD>·<EFBFBD><C2B7>
|
|||
|
char pathRawData[256];//rawͼ·<CDBC><C2B7>
|
|||
|
char nameRawData[256];//rawͼ<77><CDBC><EFBFBD><EFBFBD>
|
|||
|
char pathExpInfo[256];//exp_info<66>ļ<EFBFBD>·<EFBFBD><C2B7>
|
|||
|
char pathReslut[256];//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD>·<EFBFBD><C2B7>
|
|||
|
char suffix[256]; // <20><><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD>ַ<EFBFBD>
|
|||
|
char pathRtlin[256]; //rtl in path
|
|||
|
int skip_num;
|
|||
|
int frame_end;
|
|||
|
|
|||
|
int hdr_proc_mode;
|
|||
|
int out_mode;
|
|||
|
|
|||
|
|
|||
|
char dbgFlg[1024]; // must > ISP_CAP_MAX
|
|||
|
int config_full;
|
|||
|
|
|||
|
int exp_info_en;
|
|||
|
int file_info_en;
|
|||
|
FILE *fp_exp_info;
|
|||
|
}ST_DEMO_INPUT_PARAMS;
|
|||
|
|
|||
|
|
|||
|
|
|||
|
//<2F>˴<EFBFBD><CBB4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
#endif // DEMO_H_
|