summaryrefslogtreecommitdiff
path: root/yavta.c
AgeCommit message (Collapse)Author
2014-04-16Make struct for buffer type and name mapping usable elsewhereSakari Ailus
Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>
2014-04-16Separate querying capabilities and determining buffer queue typeSakari Ailus
Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>
2014-04-16Provide functions for setting the buffer type and checking its validitySakari Ailus
Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>
2014-04-16Separate device object initialisation and openingSakari Ailus
Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>
2014-04-01Print timestamp source (start-of-exposure or end-of-frame)Sakari Ailus
Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>
2014-04-01Add YV420M supportLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2014-04-01Add NV16M and NV61M supportLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2014-04-01Add NV12M and NV21M supportLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2014-04-01Support multiplanar buffers verificationLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2014-04-01Load multiplane filesDetlev Casanova
Signed-off-by: Detlev Casanova <detlev.casanova@gmail.com>
2014-04-01Add multi-plane supportDetlev Casanova
Signed-off-by: Detlev Casanova <detlev.casanova@gmail.com>
2014-04-01Add video_is_output() and video_is_capture() helper functionsLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2014-04-01Use format information structure directlyLaurent Pinchart
Replace the v4l2_format_code() function by functions to retrieve format information by fourcc or name, and access the format information structure directly. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2014-04-01Make buffer structure multiplane awareDetlev Casanova
Signed-off-by: Detlev Casanova <detlev.casanova@gmail.com>
2014-01-09Mark current menu value with a (*) when querying controlsLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2013-12-05Integer64 and string controls can't be accessed using VIDIOC_[GS]_CTRLSakari Ailus
So don't even try. Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2013-12-05Make VIDIOC_[GS]_CTRL workSakari Ailus
v4l2_control.value was left uninitialised for the VIDIOC_S_CTRL IOCTL. Fix that. Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2013-12-04Support additional dpcm compressed bayer formats.Sakari Ailus
Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2013-08-22Support device capsLaurent Pinchart
Use the V4L2 video device caps instead of the global caps when available. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2013-06-25Truncate existing files when writing frames to memoryLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2013-06-25Add support for VYUY and YVYU formatsLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2012-11-28Print v4l2_buffer timestamp typeSakari Ailus
Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2012-11-27Update kernel header filesSakari Ailus
Update videodev2.h and move it under include/linux. v4l2-common.h and v4l2-controls.h are now required by videodev2.h as well --- they're really the reason for moving videodev2.h. The two required headers are added, too. Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2012-04-16Support extended controls, including 64-bit integersSakari Ailus
Fall back to regular S_CTRL / G_CTRL if extended controls aren't available. Also don't try to get value for classes. Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2012-04-16Support integer menusSakari Ailus
Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2012-04-16Add videodev2.h to allow building on systems without latest kernel headersSakari Ailus
Add videodev2.h as part of yavta. The file is to be updated from linux-media tree manually in the future. Remove existing format definitions in yavta.c since they are no longer needed. Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2012-01-25Add --stride argumentLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2012-01-25warn if written size is different to original oneAndy Shevchenko
This patch also eliminates compiler warning: yavta.c: In function ‘video_save_image’: yavta.c:974:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> [Print different messages depending on whether the return value is negative or positive] Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2012-01-24Add NV pixel formatsJacob Pan
Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> [Add NV21, NV16, NV61, NV24 and NV42 formats] Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2011-12-21Add support for Y10 and Y12 pixel formatsLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2011-12-09Add missing header file sys/stat.hGiorgio Vazzana
This file defines the initial permission flags used by open when we create a file using O_CREAT flag. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2011-11-25Support writing all frames to a single fileLaurent Pinchart
When using the -F/--file argument to capture frames to files, the file name given as argument is now a pattern. If the pattern contains '#', the first '#' character will be expanded to the frame number. Otherwise all frames will be written to the same file. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2011-10-25Exit when VIDIOC_STREAMON fails.Laurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2011-10-25Print both error text and error code in error messages.Laurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2011-10-25Use monotonic clock to retrieve timestampsLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2011-10-25Add support for RGB formatsLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2011-08-10Add buffer overrun checksLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2011-07-11Free userspace buffers when freeing video buffersLaurent Pinchart
Memory allocated with posix_memalign() must be freed with free(). Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2011-07-11Add --realtime option to switch to RR schedulingLaurent Pinchart
The optional argument selects the static priority. If omitted, the priority is set to 1. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2011-05-14Add support for missing Bayer formatsLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2011-05-04Print class controls as headersLaurent Pinchart
This improves the controls list readability. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2011-05-04Ignore failed VIDIOC_QUERYCAP.Sakari Ailus
This is not a fatal error, and especially subdevs do not support it. If VIDIOC_QUERY returns an error, assume the device is a V4L2 subdev and set the --no-query option. Signed-off-by: Sakari Ailus <sakari.ailus@maxwell.research.nokia.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2011-04-30Support holes in menu indicesLaurent Pinchart
When querying menu entries, don't stop at the first error returned by the driver but loop over the [min,max] range and print supported menu entries only. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2011-03-21Support pattern files for compressed formatsLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2011-01-23Display the instant frame rate for each frame during captureLaurent Pinchart
This helps debugging framerate related problems. Thanks to Martin Hostettler for submitting a first version of this patch. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2011-01-23Add support for GREY/Y8 formatMartin Hostettler
2010-12-23Fix an off-by-one bug in frame countLaurent Pinchart
Thanks to Stefan Steuerwald for pointing out the issue and providing an initial patch. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2010-12-03Add support for the V4L2_PIX_FMT_SGRBG12 formatLaurent Pinchart
The format isn't available in the mainline kernel yet, so guard it with conditional compilation. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2010-11-26Add support for SGRBG10_DPCM8 formatLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2010-11-26Add struct buffer objectLaurent Pinchart
Use the new buffer object to hold the buffer size and memory pointer. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>