Motion - Bug Report 2008x 01x 21x 043812
You are here: Foswiki>Motion Web>BugReports>BugReport2008x01x21x043812 (18 May 2008, AngelCarpintero)Edit Attach
When choosing a palette I had the problem that the selected palette wasn't chosen, but instead a 'higher' supported palette. My camera supports V4L2 _PIX_FMT_MJPEG (2) and V4L2 _PIX_FMT_YUYV (6). Even when selecting MJPEG in the config, the actual used palette is the 'higher' YUYV. I'm not sure, but it seems an oversight in the code to me. It's also possible that this is intended behaviour of course.

See attachments.

The break statement in the for loop breaks from the for and not from the while. In my case I set 2 and although that is selected, the final chosen palette is 6, because that is also supported and higher. In other words; the search for supported palettes goes on even though the requested palette is already found and set. The attached new code (if on line 45) seems to remedy this behaviour.
-----

* video2.c: Trunk rev306 code

* video2_new.c: Proposed new code


Thanks , commited to trunk and 3.2.10 branch

-- AngelCarpintero - 27 Jan 2008
I Attachment Action Size Date Who Comment
video2.cc video2.c manage 1 K 21 Jan 2008 - 05:48 UnknownUser Excerpt of trunk rev306 code
video2_new.cc video2_new.c manage 1 K 21 Jan 2008 - 05:48 UnknownUser Proposed new code
Topic revision: r3 - 18 May 2008, AngelCarpintero
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Please do not email Kenneth for support questions (read why). Use the Support Requests page or join the Mailing List.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.