WIP
This commit is contained in:
4
device.c
4
device.c
@@ -48,7 +48,7 @@ void device_close(device_t *dev) {
|
||||
free(dev);
|
||||
}
|
||||
|
||||
int device_open_buffer_list(device_t *dev, bool do_capture, unsigned width, unsigned height, unsigned format, int nbufs)
|
||||
int device_open_buffer_list(device_t *dev, bool do_capture, unsigned width, unsigned height, unsigned format, int nbufs, bool allow_dma)
|
||||
{
|
||||
unsigned type;
|
||||
char name[64];
|
||||
@@ -70,7 +70,7 @@ int device_open_buffer_list(device_t *dev, bool do_capture, unsigned width, unsi
|
||||
}
|
||||
} else {
|
||||
buf_list = &dev->output_list;
|
||||
//do_mmap = true;
|
||||
do_mmap = !allow_dma;
|
||||
|
||||
if (dev->v4l2_cap.capabilities & V4L2_CAP_VIDEO_OUTPUT) {
|
||||
type = V4L2_BUF_TYPE_VIDEO_OUTPUT;
|
||||
|
||||
Reference in New Issue
Block a user