hc
2023-11-22 f743a7adbd6e230d66a6206fa115b59fec2d88eb
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
/*
 
 */
 
#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_