Files
pinesrcbin/utility.h
2021-03-28 22:29:29 +03:00

34 lines
804 B
C

#ifndef UTILITY_H
#define UTILITY_H
struct _GstPineSrcBin;
typedef struct _GstPineSrcBin GstPineSrcBin;
struct device_data
{
char path[261];
int fd;
struct media_v2_topology topology;
struct media_device_info info;
struct media_v2_entity *entities;
size_t num_entities;
struct media_v2_interface *interfaces;
size_t num_interfaces;
struct media_v2_pad *pads;
size_t num_pads;
struct media_v2_link *links;
size_t num_links;
};
enum {
CONTROL_HUE,
CONTROL_SATURATION
};
void gst_pinesrcbin_configure_device(GstPineSrcBin * self, const char *conf_name);
void gst_pinesrcbin_get_gst_caps_data(const char * conf_name,
int *width, int * height, const char **format,
struct v4l2_fract *interval);
void set_camera_control(const char * conf_name, int control, int value);
#endif