Pass expected output width
This commit is contained in:
parent
7f4619a312
commit
facd1fa41e
@ -58,15 +58,14 @@ camera_t *camera_open(camera_options_t *options)
|
|||||||
}
|
}
|
||||||
|
|
||||||
camera->camera->opts.allow_dma = camera->options.allow_dma;
|
camera->camera->opts.allow_dma = camera->options.allow_dma;
|
||||||
|
camera->camera->opts.width = camera->options.width;
|
||||||
|
camera->camera->opts.height = camera->options.height;
|
||||||
|
|
||||||
if (strstr(camera->camera->bus_info, "usb")) {
|
if (strstr(camera->camera->bus_info, "usb")) {
|
||||||
LOG_INFO(camera, "Disabling DMA since device uses USB (which is likely not working properly).");
|
LOG_INFO(camera, "Disabling DMA since device uses USB (which is likely not working properly).");
|
||||||
camera->camera->opts.allow_dma = false;
|
camera->camera->opts.allow_dma = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: mpad format
|
|
||||||
// device_set_pad_format(camera->camera, camera->options.width, camera->options.height, 0);
|
|
||||||
|
|
||||||
if (device_open_buffer_list(camera->camera, true, camera->options.width, camera->options.height, camera->options.format, 0, camera->options.nbufs, true) < 0) {
|
if (device_open_buffer_list(camera->camera, true, camera->options.width, camera->options.height, camera->options.format, 0, camera->options.nbufs, true) < 0) {
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user