hc
2024-08-16 a24a44ff9ca902811b99aa9663d697cf452e08ef
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
#ifndef _RK_AIQ_OFFLINE_RAW_H_
#define _RK_AIQ_OFFLINE_RAW_H_
 
#define START_TAG           0xFF00
#define FORMAT_TAG          0xFF01
#define NORMAL_RAW_TAG      0xFF02
#define HDR_S_RAW_TAG       0xFF03
#define HDR_M_RAW_TAG       0xFF04
#define HDR_L_RAW_TAG       0xFF05
#define STATS_TAG           0xFF06
#define ISP_REG_FMT_TAG     0xFF07
#define ISP_REG_TAG         0xFF08
#define ISPP_REG_FMT_TAG    0xFF09
#define ISPP_REG_TAG        0xFF0A
#define PLATFORM_TAG        0xFF0B
#define END_TAG             0x00FF
 
#define TAG_BYTE_LEN        (2)
#define BLOCK_BYTE_LEN      (4)
 
struct _block_header {
    unsigned short block_id;
    unsigned int block_length;
}__attribute__ ((packed));
 
struct _st_addrinfo
{
    unsigned int fd;
    unsigned int haddr;
    unsigned int laddr;
    unsigned int size;
}__attribute__ ((packed));
 
struct _raw_format
{
    unsigned short tag;
    unsigned int size;
    unsigned short vesrion;
    char sensor[32];
    char scene[32];
    unsigned int frame_id;
    unsigned short width;
    unsigned short height;
    unsigned char bit_width;
    unsigned char bayer_fmt;
    unsigned char hdr_mode;
    unsigned char buf_type;
    unsigned short line_length;
    unsigned short acive_line_length;
    unsigned char byte_order;
}__attribute__ ((packed));
 
struct _frame_info
{
    unsigned short tag;
    unsigned int size;
    unsigned short vesrion;
    unsigned int frame_id;
 
    float normal_exp;
    float normal_gain;
    unsigned int normal_exp_reg;
    unsigned int normal_gain_reg;
 
    float hdr_exp_l;
    float hdr_gain_l;
    unsigned int hdr_exp_l_reg;
    unsigned int hdr_gain_l_reg;
 
    float hdr_exp_m;
    float hdr_gain_m;
    unsigned int hdr_gain_m_reg;
    unsigned int hdr_exp_m_reg;
 
    float hdr_exp_s;
    float hdr_gain_s;
    unsigned int hdr_exp_s_reg;
    unsigned int hdr_gain_s_reg;
 
    float awg_rgain;
    float awg_bgain;
}__attribute__ ((packed));
 
#endif