-
Notifications
You must be signed in to change notification settings - Fork 1
/
parameters.h
66 lines (58 loc) · 1.29 KB
/
parameters.h
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
#ifndef __PARAMETERS_H__
#define __PARAMETERS_H__
#include <stdint.h>
#include <stdbool.h>
#include "window.h"
#include "sensor_mode.h"
typedef struct {
char *log_level;
unsigned int camera_id;
unsigned int width;
unsigned int height;
bool h_flip;
bool v_flip;
float brightness;
float contrast;
float saturation;
float sharpness;
char *exposure;
char *awb;
float awb_gain_red;
float awb_gain_blue;
char *denoise;
unsigned int shutter;
char *metering;
float gain;
float ev;
window_t *roi;
bool hdr;
char *tuning_file;
sensor_mode_t *mode;
float fps;
char *af_mode;
char *af_range;
char *af_speed;
float lens_position;
window_t *af_window;
unsigned int flicker_period;
bool text_overlay_enable;
char *text_overlay;
char *codec;
unsigned int idr_period;
unsigned int bitrate;
unsigned int profile;
unsigned int level;
// private
unsigned int buffer_count;
unsigned int capture_buffer_count;
} parameters_t;
#ifdef __cplusplus
extern "C" {
#endif
const char *parameters_get_error();
bool parameters_unserialize(parameters_t *params, const uint8_t *buf, size_t buf_size);
void parameters_destroy(parameters_t *params);
#ifdef __cplusplus
}
#endif
#endif