This commit is contained in:
Kamil Trzcinski
2022-04-04 14:55:16 +02:00
parent d5fe55d2e0
commit ac9831bd1a
8 changed files with 202 additions and 75 deletions

View File

@ -8,14 +8,17 @@ typedef struct buffer_s {
int index;
void *start;
size_t offset;
size_t used;
size_t length;
struct v4l2_buffer v4l2_buffer;
struct v4l2_plane v4l2_plane;
int dma_fd;
bool enqueued;
int mmap_reflinks;
struct buffer_s *mmap_source;
} buffer_t;
buffer_t *buffer_open(const char *name, struct buffer_list_s *buf_list, int buffer);
void buffer_close(buffer_t *buf);
bool buffer_output_dequeue(buffer_t *buf);
bool buffer_capture_enqueue(buffer_t *buf);
bool buffer_consumed(buffer_t *buf);