summaryrefslogtreecommitdiff
path: root/libavdevice/v4l2.c
Commit message (Collapse)AuthorAge
* Make device_open() store the VIDIOC_QUERYCAP ioctl errno, and in caseStefano Sabatini2010-05-01
| | | | | | | of failure return the stored value rather than the current errno, which may be overwritten by a following call to close(). Originally committed as revision 23001 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Check the return value of device_try_init() immediately after calling such aLuca Abeni2010-04-28
| | | | | | | | function. Avoids the following warning: libavdevice/v4l2.c: In function ‘v4l2_read_header’: libavdevice/v4l2.c:586: warning: ‘codec_id’ may be used uninitialized in this function Originally committed as revision 22986 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix weird brace placement.Stefano Sabatini2010-04-27
| | | | Originally committed as revision 22982 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Reduce the verbosity of the v4l2 input deviceLuca Abeni2010-04-27
| | | | Originally committed as revision 22980 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Simplify some output messages in the v4l2 input deviceLuca Abeni2010-04-27
| | | | Originally committed as revision 22979 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Implement v4l2 input size autodetection in v4l2_read_header().Stefano Sabatini2010-04-26
| | | | | | | | | Move check on frame size after the device is opened and after device_try_init() is attempted. If the provided size value is 0x0, perform a VIDIOC_G_FMT ioctl() on the device, which sets size to the current settings. Originally committed as revision 22971 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Return meaningful error codes, rather than always -1.Stefano Sabatini2010-04-26
| | | | Originally committed as revision 22966 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove unnecessary width and height variables from v4l2_read_header().Stefano Sabatini2010-04-25
| | | | Originally committed as revision 22963 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Define AVMediaType enum, and use it instead of enum CodecType, whichStefano Sabatini2010-03-30
| | | | | | is deprecated and will be dropped at the next major bump. Originally committed as revision 22735 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Avoid using deprecated AVFormatParameters::[audio|video]_codec_id field.Jai Menon2010-01-28
| | | | Originally committed as revision 21511 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Define device_try_init() as static in libavdevice/v4l2.c.Reinhard Tartler2010-01-03
| | | | | | Patch by Reinhard Tartler (siretart AT tauware DOT de). Originally committed as revision 21004 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Support compressed formats in the V4L2 input device.Luca Abeni2009-12-14
| | | | | | Patch by klchxbec AT freenet DOT de. Originally committed as revision 20858 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add support for V4L2 compressed formats in the table used for convertingLuca Abeni2009-12-14
| | | | | | | between V4L2 formats and ffmpeg's formats/codecs. Patch by klchxbec AT freenet DOT de. Originally committed as revision 20857 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use the correct type for the V4L2 format.Luca Abeni2009-12-14
| | | | Originally committed as revision 20856 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Return pkt->size in v4l2_read_packet().Luca Abeni2009-12-14
| | | | | | | mmap_read_frame() takes care of ensuring that the packet size is correct. Originally committed as revision 20855 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Cast a __u64 variable to uint64_t so that it can be printed without warningsLuca Abeni2009-02-15
| | | | Originally committed as revision 17325 to svn://svn.ffmpeg.org/ffmpeg/trunk
* If AVPacket->data == NULL, the packet does not contain any buffer toLuca Abeni2009-01-30
| | | | | | | be freed. This fixes a double free on exit. Originally committed as revision 16857 to svn://svn.ffmpeg.org/ffmpeg/trunk
* cosmetics: Remove pointless period after copyright statement non-sentences.Diego Biurrun2009-01-19
| | | | Originally committed as revision 16684 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Change semantic of CONFIG_*, HAVE_* and ARCH_*.Aurelien Jacobs2009-01-13
| | | | | | They are now always defined to either 0 or 1. Originally committed as revision 16590 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove the frame rate from struct video_data, and allow using a variableLuca Abeni2009-01-07
| | | | | | frame rate for video4linux2 input Originally committed as revision 16464 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use avcodec_check_dimensions() for checking the frame size validity.Stefano Sabatini2008-12-28
| | | | | | | The v4l.c check is moved after the eventual automatic size detection, so the check in that case is performed on the new set values. Originally committed as revision 16370 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use more descriptive long_names for Video4Linux input devices.Stefano Sabatini2008-12-26
| | | | Originally committed as revision 16322 to svn://svn.ffmpeg.org/ffmpeg/trunk
* uses FF_ARRAY_ELEMS() where appropriateAurelien Jacobs2008-10-21
| | | | Originally committed as revision 15662 to svn://svn.ffmpeg.org/ffmpeg/trunk
* The v4l2 driver can silently change the pixel format in theJens Rosenboom2008-10-21
| | | | | | | | VIDIOC_S_FMT ioctl(). In this case, device_init() should fail so that a different pixel format is tried. Patch by Jens Rosenboom (jens DOT rosenboom AT eu DOT panasonic DOT com) Originally committed as revision 15660 to svn://svn.ffmpeg.org/ffmpeg/trunk
* V4L2 support for OpenBSD, patch by Brad, brad comstyle comBrad2008-09-21
| | | | Originally committed as revision 15376 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add support for the RGB32 pixel format in video4linux2 devicesJean Delvare2008-09-05
| | | | | | Patch by Jean Delvare (khali AT linux-fr DOT org) Originally committed as revision 15219 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add support for the PIX_FMT_RGB555 and PIX_FMT_RGB565 pixel formats inJean Delvare2008-09-05
| | | | | | | video4linux2 devices. Patch by Jean Delvare (khali AT linux-fr DOT org) Originally committed as revision 15218 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Workaround bug in types.h that has typedef __u64 under #ifndef __STRICT_ANSI__.Michael Niedermayer2008-08-19
| | | | Originally committed as revision 14852 to svn://svn.ffmpeg.org/ffmpeg/trunk
* strcasecmp() requires #include <strings.h>Aurelien Jacobs2008-08-13
| | | | Originally committed as revision 14728 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Cosmetics: make a v4l2 error message consistent with r14647.Stefano Sabatini2008-08-08
| | | | Originally committed as revision 14664 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Distinguish the error reporting for the cases of wrong size and wrongStefano Sabatini2008-08-06
| | | | | | timebase in the video4linux2 v4l2_read_header() function. Originally committed as revision 14647 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make v4l2_read_header() don't free a stream in case of failure whenStefano Sabatini2008-07-15
| | | | | | | | reading its header. The stream will be freed later in av_open_input_stream(). Fix a segmentation fault due to a double free on the same pointer. Originally committed as revision 14247 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make long_names in lavf/lavdev optional depending on CONFIG_SMALL.Stefano Sabatini2008-06-03
| | | | | | | patch by Stefano Sabatini, stefano.sabatini-lala poste.it along with some spelling/consistency fixes for the long names by me Originally committed as revision 13649 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Replace some occurrences of -1 with PIX_FMT_NONE.Carl Eugen Hoyos2008-05-11
| | | | | | Fixes icc warning #188: enumerated type mixed with another type Originally committed as revision 13130 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use full path for #includes from another directory.Diego Biurrun2008-05-09
| | | | Originally committed as revision 13098 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove #ifdef HAVE_SYS_MMAN_H around sys/mman.h #include.Diego Biurrun2008-03-24
| | | | | | Without the #include compilation fails. Originally committed as revision 12568 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Only #include sys/mman.h if configure set HAVE_SYS_MMAN_H.Diego Biurrun2008-03-20
| | | | Originally committed as revision 12521 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Clarify the error message when video width, height, or framerate are notMichel Bardiaux2008-01-17
| | | | | | | specified. Patch by Michel Bardiaux (mbardiaux AT mediaxim DOT be) Originally committed as revision 11551 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Introduce libavdeviceLuca Abeni2007-11-22
Originally committed as revision 11077 to svn://svn.ffmpeg.org/ffmpeg/trunk