Optimise usage of videodev2.h header

This commit is contained in:
Kamil Trzcinski
2022-04-10 14:41:00 +02:00
parent b21ddd2519
commit cae3087116
32 changed files with 131 additions and 158 deletions

View File

@ -3,7 +3,6 @@
#include <stdbool.h>
#include <stdint.h>
#include <stddef.h>
#include <linux/videodev2.h>
typedef struct buffer_s buffer_t;
typedef struct buffer_list_s buffer_list_t;
@ -19,6 +18,10 @@ typedef struct buffer_s {
size_t length;
int dma_fd;
struct {
bool is_keyframe : 1;
} flags;
struct {
unsigned flags;
} v4l2;