/*
|
|
*/
|
|
#ifndef DEMO_H_
|
#define DEMO_H_
|
//ÔÚ´Ë´¦°üº¬ÆäËüÍ·Îļþ
|
#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;
|
|
|
|
//´Ë´¦¶¨Òå²ÎÊý
|
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ͼ¿í
|
int height; //rawͼ¸ß
|
int bayerPattern; //bayer pattern¸ñʽ:0--BGGR,1--GBRG,2--GRBG,3--RGGB
|
int yuvFmt; //yuv file ¸ñʽ: YUV_FILE_FMT_t
|
int bitValue; //rawÊý¾Ýλ¿í
|
int hdr_framenum;
|
float expGain[MAX_HDR_FRM_NUM]; //
|
float expTime[MAX_HDR_FRM_NUM]; //ÆØ¹âʱ¼ä
|
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ͼ¿í
|
int height_full; //rawͼ¸ß
|
int crop_width;
|
int crop_height;
|
int crop_xoffset;
|
int crop_yoffset;
|
|
char pathFileCfg[256];//configÎļþ·¾¶
|
char pathRawData[256];//rawͼ·¾¶
|
char nameRawData[256];//rawͼÃû³Æ
|
char pathExpInfo[256];//exp_infoÎļþ·¾¶
|
char pathReslut[256];//½á¹û±£´æÎļþ¼Ð·¾¶
|
char suffix[256]; // Êä³öÎļþºó׺×Ö·û
|
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;
|
|
|
|
//´Ë´¦ÉùÃ÷º¯Êý
|
|
|
|
#endif // DEMO_H_
|