More work on memory

Add explicit DMABUF memory because we can't use it like an fd in v4l2.
mmap random fd memory and use userptr in v4l2 to use it.
Allocate buffer data memory in memfd when no node can allocate.
Improve debug some more
This commit is contained in:
Wim Taymans 2016-10-04 15:56:33 +02:00
parent d828073bb8
commit b8f693ceea
14 changed files with 425 additions and 329 deletions

View file

@ -47,7 +47,7 @@ reset_v4l2_source_props (SpaV4l2SourceProps *props)
props->props.unset_mask = 7;
}
#define MAX_BUFFERS 256
#define MAX_BUFFERS 64
typedef struct _V4l2Buffer V4l2Buffer;
@ -57,6 +57,8 @@ struct _V4l2Buffer {
bool outstanding;
struct v4l2_buffer v4l2_buffer;
V4l2Buffer *next;
void *ptr;
size_t size;
};
typedef struct _V4l2Format V4l2Format;