This is an automatic generated email to let you know that the following patch were queued at the http://git.linuxtv.org/cgit.cgi/v4l-utils.git tree:
Subject: v4l2grab: don't try to convert formats on raw mode Author: Mauro Carvalho Chehab <[email protected]> Date: Mon Nov 1 07:08:30 2021 +0000 If the device is in raw mode, it shouln't touch the image, just store it as-is. Signed-off-by: Mauro Carvalho Chehab <[email protected]> contrib/test/v4l2grab.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id=76a4f5d3dfd0c229876804bbbf2d16efd4e3d3f2 diff --git a/contrib/test/v4l2grab.c b/contrib/test/v4l2grab.c index 04cd6653ebf4..4d7e0c3c13e0 100644 --- a/contrib/test/v4l2grab.c +++ b/contrib/test/v4l2grab.c @@ -491,7 +491,7 @@ static int read_capture_loop(int fd, struct buffer *buffers, fprintf(fout, "P6\n%d %d 255\n", fmt->fmt.pix.width, fmt->fmt.pix.height); - if (!out_buf) { + if (!ppm_output || !out_buf) { out_buf = buffers[0].start; } else { size = convert_to_rgb24(fmt, buffers[0].start, out_buf); @@ -566,7 +566,7 @@ static int userptr_capture_loop(int fd, struct buffer *buffers, fprintf(fout, "P6\n%d %d 255\n", fmt->fmt.pix.width, fmt->fmt.pix.height); - if (!out_buf) { + if (!ppm_output || !out_buf) { out_buf = buffers[buf.index].start; size = buf.bytesused; } else { @@ -764,7 +764,7 @@ static int mmap_capture_threads(int fd, struct buffer *buffers, buf = buf_queue.buffers[buf_queue.read_pos % buf_queue.buffers_size]; - if (!out_buf) { + if (!ppm_output || !out_buf) { out_buf = buffers[buf.index].start; size = buf.bytesused; } else { _______________________________________________ linuxtv-commits mailing list [email protected] https://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits
