hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
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
#ifndef _RKAIQ_ONLINE_PROTOCOL_H__
#define _RKAIQ_ONLINE_PROTOCOL_H__
 
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
 
#include "logger/log.h"
#include "rkaiq_cmdid.h"
#include "rkaiq_common.h"
 
#define TAG_OL_PC_TO_DEVICE RKID_ISP_ON
#define TAG_OL_DEVICE_TO_PC RKID_ISP_ON
 
#pragma pack(1)
typedef struct Capture_Yuv_Params_s {
    uint32_t gain;
    uint32_t time;
    uint8_t fmt;
    uint8_t framenumber;
} Capture_Yuv_Params_t;
#pragma pack()
 
#pragma pack(1)
typedef struct Sensor_Yuv_Params_s {
    uint8_t data_id;
    uint16_t width;
    uint16_t height;
    uint8_t format;
} Sensor_Yuv_Params_t;
#pragma pack()
 
#pragma pack(1)
typedef struct Sensor_Online_Raw_Params_s {
    uint8_t data_id;
    uint16_t width;
    uint16_t height;
    uint32_t bits;
    uint16_t sensorImageFormat;
} Sensor_Online_Raw_Params_t;
#pragma pack()
 
class RKAiqOLProtocol
{
  public:
    RKAiqOLProtocol() = default;
    virtual ~RKAiqOLProtocol() = default;
    static void HandlerOnLineMessage(int sockfd, char* buffer, int size);
};
 
#endif