golanggohlsrtmpwebrtcmedia-serverobs-studiortcprtmp-proxyrtmp-serverrtprtsprtsp-proxyrtsp-relayrtsp-serversrtstreamingwebrtc-proxy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
940 B
51 lines
940 B
#ifndef __PARAMETERS_H__ |
|
#define __PARAMETERS_H__ |
|
|
|
#include <stdbool.h> |
|
|
|
#include "roi.h" |
|
#include "sensor_mode.h" |
|
|
|
typedef struct { |
|
unsigned int camera_id; |
|
unsigned int width; |
|
unsigned int height; |
|
bool h_flip; |
|
bool v_flip; |
|
float brightness; |
|
float contrast; |
|
float saturation; |
|
float sharpness; |
|
const char *exposure; |
|
const char *awb; |
|
const char *denoise; |
|
unsigned int shutter; |
|
const char *metering; |
|
float gain; |
|
float ev; |
|
roi_t *roi; |
|
const char *tuning_file; |
|
sensor_mode_t *mode; |
|
unsigned int fps; |
|
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_load(parameters_t *params); |
|
|
|
#ifdef __cplusplus |
|
} |
|
#endif |
|
|
|
#endif
|
|
|