summaryrefslogtreecommitdiff
path: root/v4l2-apps/lib
AgeCommit message (Collapse)Author
2007-10-11Remove obsolete VIDIOC_S/G_MPEGCOMP ioctlsHans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Remove the obsolete VIDIOC_G_MPEGCOMP and VIDIOC_S_MPEGCOMP ioctls from the V4L2 API as per the removal schedule (October 2007). Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2007-05-07Add capability to test VIDIOC_[S|G]_FREQUENCY on driver-testMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-05-012_driver.c:v4l2_enum_stds: erroneously always returns failureMauro Carvalho Chehab
From: David Warman <dwarman@davidwarman.net> v4l2_driver.c:v4l2_enum_stds: erroneously always returns failure because errno is +ve, needs inverting for use as a v4l error code. The diff command actually produced patched for two fixes; I separated them manually into these two reports. Signed-off-by: David Warman <dwarman@davidwarman.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-12-20Improved error handling at driver-test.cMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-12-01Fix G_PARM outputMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-12-01Fix driver_test for a non-compliance on bttv driverMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> bttv driver presents a non-compliance: When S_FMT is called, pix.sizeimage reports a different size than when QUERYBUF is called, for the same S_FMT. The current code can work fine with this non-compliance, but an error should be reported. Those are the reports from bttv driver, by running driver-test: FMT SET: 640x480, fourcc=YVU9, 640 bytes/line, 345600 bytes/frame, colorspace=0x00000000 <snip/> QUERYBUF: 00:00:00.00000000 index=0, type=video-cap, bytesused=0, flags=0x00000000, field=any, sequence=0, memory=mmap, offset=0x00000000, length=348160 TIMECODE: 00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000 QUERYBUF: ERROR: VIDIOC_S_FMT said buffer should have 345600 size, but received 348160 from QUERYBUF! Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-12-01Added a TODO for missing ioctls at the libraryMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-12-01Implement mmapped streaming receptionMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Add capabilities to the library and to the driver to receive video streams. Library will use a callback, called every time a new buffer is reported by dqbuf. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-12-01Fix free buffer handlingMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> There is a non-compliance on video-buf implementation about calling REQBUFS with count=0. According with API, this should free all buffers, but video-buf returns, instead, -EINVAL. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-12-01It seems that ioctl might fail without actually running the codeMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Using the same approach as capture_exampe.c Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-12-01Start adding mmap streaming into driver-testMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-12-01Added a function to free buffers (v4l2_free_bufs)Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-11-16Fix v4l2_mmap_bufs and add checks for memory allocationMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-11-16Start adding v4l2_mmap_bufs to prepare for streamMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> This method requests buffers and maps it into a mmaped memory. Still under testing. Still need other stuff to make stream to work. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-11-15Improved v4l2_driverMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> - Better presentation of version - Make v4l2_enum_fmt generic for all types - Added v4l2_gettryset_fmt_cap to GET/TRY/SET fmt on capture - driver-test now sets a video format Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-11-15Initiated v4l-apps/lib V4L2 functionsMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> - Created v4l2_driver.c with some basic functions to: . Enum STD, INPUT and FORMAT . GET/SET STD and INPUT . GET PARAM - ioctl-test reverted back to a simple "brute-force" all ioctl call; - driver-test created to: . test V4L2 kernel drivers; . implement all functions provided by v4l2 library - driver-test should grow following the changes at v4l2-apps/lib Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-10-26Fix South African frequency table.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2006-07-01Update copyrights in library.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Fix the copyright lines in the v4l2 library. Also explicitly add the Nathan's SOB for frequency.c. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Nathan Laredo <laredo@gnu.org>
2006-07-01Add ISO-V4L2_STD mapping.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2006-07-01Fix makefiles, start with libv4l2.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2006-07-01Move test to v4l2-apps/test.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>