Media interface implementation

This commit is contained in:
Sergey Lapin
2021-03-27 21:52:03 +03:00
parent 7d1a9fe59b
commit 1050492058
5 changed files with 756 additions and 353 deletions

26
utility.h Normal file
View File

@@ -0,0 +1,26 @@
#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;
};
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);
#endif