Commit Graph

14 Commits

Author SHA1 Message Date
DagErlandsson
5f6341a779 Changed so precap_buffer is flushed at end of event. Moved all "picture"
dependent data from global context into a image_data structure. In 
global context there is a pointer, current_image, that points to the 
image that is active at this moment. It can be a image from the 
pre_capture buffer or the newly captured image.
Also changed that all images have a locate rectangle (if configured), 
and not as before when the first minimum_motion_frames-1 didn't have 
it.
2007-08-30 20:01:27 +00:00
AngelCarpintero
1f49c28544 Adapted patch from http://www.lavrsen.dk/twiki/bin/view/Motion/MjpegToYUV420pPatch to fix MJPEG color issue, now configure checks for mjpegtools. 2007-08-09 03:18:58 +00:00
AngelCarpintero
6e98f43793 Fix gcc warnings , remove unused variables & make some variable cast. 2007-07-08 18:07:58 +00:00
AngelCarpintero
cc453cc8bc Patch that fix a weird issue with bayer rgb ( that i think is not best way but it works ). TODO: check that users using bayer rgb have no problem with this patch , if some issue appears then a new config option is needed to let users choose between bayer rgb and bayer bgr. http://www.lavrsen.dk/twiki/bin/view/Motion/BugReport2007x06x05x012249 2007-07-04 02:17:37 +00:00
AngelCarpintero
63ebe2da3e Fix compilation issue when DWITHOUT_V4L flag is used by passing --without-v4l to configure 2007-04-29 13:55:59 +00:00
AngelCarpintero
320abd7f10 Fix previous commit , fixing colors for uyvyto420p 2007-02-05 22:04:28 +00:00
AngelCarpintero
88352421fe Added support for V4L2_PIX_FMT_UYVY and a conversion function from uyvy to yuv420p 2007-02-03 01:47:12 +00:00
AngelCarpintero
6d24b529f0 Update width and height when size of image is adjusted in V4L2 2007-01-26 22:25:23 +00:00
AngelCarpintero
de504a489c Krzysztof fix a corruption memory in mjpeg and ident de code. 2007-01-20 02:33:35 +00:00
AngelCarpintero
18c981e665 Big commit for V4L2, many things won't work but that's the only way to test them. Added experimental MJPEG support for V4L2 using libavcodec. Change the order of palettes, use V4L2_PIX_FMT_SBGGR8 ( bayer ) before than V4L2_PIX_FMT_SN9C10X ( that is compressed ). Add video standard support for bttv cards (VIDIOC_G_STD). Increased the number of buffers to use and the minumun for V4L2. Change the HAVE_V4L2 by MOTION_V4L2 as Kenneth reported .Add a info message in V4L to show the palette used that will made easier to add support for more palettes and handle problems. Increase the size of cnt->imgs.common_buffer that was only used by despeckle , now is used by MJPEG ( it will be reviewed ). 2007-01-18 02:35:34 +00:00
AngelCarpintero
f96f60a996 A second approach to detect videodev2.h for V4L2 support. Added a xioclt function like V4L2 API explain. Implemente vid_close for V4L2 as separate function to implement stop capturing as V4L2 explain. 2007-01-15 04:01:07 +00:00
AngelCarpintero
af6fe9d2c6 Added experimental support for V4L2_PIX_FMT_SBGGR8 ( bayer ), V4L2_PIX_FMT_SN9C10X using code from sonix driver ( TODO : remplace bayer2rgb24 by bayer2yuv420) and V4L2_PIX_FMT_MJPEG. 2007-01-14 06:54:55 +00:00
AngelCarpintero
6daec25e7c First approach to fix the problem to compile motion if v4l2 is not supported 2007-01-11 00:51:43 +00:00
AngelCarpintero
619cad48f7 Merge V4L2 patch , seems that some distro with old kernels fails to compile , so a patch is needed in configure.in to find videodev2.h 2007-01-10 00:45:27 +00:00