dma_fd in frame

This commit is contained in:
Maxim Devaev
2021-11-19 01:23:09 +03:00
parent 7732841cdf
commit 52478df3cf
8 changed files with 22 additions and 19 deletions

View File

@@ -27,6 +27,7 @@ frame_s *frame_init(void) {
frame_s *frame;
A_CALLOC(frame, 1);
frame_realloc_data(frame, 512 * 1024);
frame->dma_fd = -1;
return frame;
}

View File

@@ -38,6 +38,7 @@ typedef struct {
uint8_t *data;
size_t used;
size_t allocated;
int dma_fd;
unsigned width;
unsigned height;