summaryrefslogtreecommitdiff
path: root/libavdevice/v4l2.c
Commit message (Collapse)AuthorAge
* lavdev: improve feedback in case of invalid frame rate/sizeStefano Sabatini2011-06-23
| | | | | | | | | | Show the invalid string in the error message. While at it also prefer "Could not" over "Couldn't", plain forms are preferred over contractions (simplify readability, especially for non English-savvy people). Signed-off-by: Anton Khirnov <anton@khirnov.net>
* v4l2: prefer "framerate_q" over "fps" in v4l2_set_parameters()Stefano Sabatini2011-06-23
| | | | | | | The variable is used for containing the parsed value of framerate, using a lexically consistent name eases readability/understanding. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* v4l2: do not force NTSC as standardLuca Barbato2011-06-05
| | | | Setting a standard is meaningful only for analog capture devices.
* lavf,lavc: free avoptions in a generic way.Anton Khirnov2011-06-05
| | | | | | It's simpler and less error-prone. Fixes some memleaks along the way.
* fbdev,v4l2: remove some forgotten uses of AVFormatParameters.time_base.Anton Khirnov2011-06-04
|
* v4l2: remove one forgotten use of AVFormatParameters.pix_fmt.Anton Khirnov2011-06-02
|
* v4l2: add a framerate private option.Anton Khirnov2011-06-02
|
* v4l2: don't leak video standard string on error.Anton Khirnov2011-05-29
|
* v4l2: add a pixel_format private option.Anton Khirnov2011-05-27
|
* v4l2: add video_size private option.Anton Khirnov2011-05-27
|
* v4l2: factorize returning error codes.Anton Khirnov2011-05-27
| | | | This will be useful in the following commit.
* lavf: deprecate AVFormatParameters.channel.Anton Khirnov2011-05-25
|
* v4l2: reindent.Anton Khirnov2011-05-25
|
* v4l2: add a private option for channel.Anton Khirnov2011-05-25
|
* lavf: deprecate AVFormatParameters.standard.Anton Khirnov2011-05-25
|
* v4l2: add a private option for video standard.Anton Khirnov2011-05-25
|
* Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-19
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Merge libavcore into libavutilReinhard Tartler2011-02-15
| | | | | | | | | | | | It is pretty hopeless that other considerable projects will adopt libavutil alone in other projects. Projects that need small footprint are better off with more specialized libraries such as gnulib or rather just copy the necessary parts that they need. With this in mind, nobody is helped by having libavutil and libavcore split. In order to ease maintenance inside and around FFmpeg and to reduce confusion where to put common code, avcore's functionality is merged (back) to avutil. Signed-off-by: Reinhard Tartler <siretart@tauware.de>
* Prefix all _demuxer, _muxer, _protocol from libavformat and libavdevice.Diego Elio Pettenò2011-01-26
| | | | | This also lists the objects from those two libraries as internal (by adding the ff_ prefix) so that they can then be hidden via linker scripts.
* Factorize common code in v4l2_set_parameters().Stefano Sabatini2011-01-05
| | | | Originally committed as revision 26225 to svn://svn.ffmpeg.org/ffmpeg/trunk
* In video4linux2, in the case the timebase value in ap is 0/0, read theStefano Sabatini2011-01-05
| | | | | | | | | | timebase value already set in the driver, and set it back in the codec stream, rather than leaving the invalid value of 0/0. In particular, fix ffmpeg grabbing timestamps when the timebase value is not set through the CLI. Originally committed as revision 26224 to svn://svn.ffmpeg.org/ffmpeg/trunk
* In the video4linux2 output device, log an error description in case ofStefano Sabatini2011-01-04
| | | | | | ioctl failure in mmap_release_buffer(). Originally committed as revision 26214 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Allow to set the frame rate in v4l2 devicesJosé Miguel Gonçalves2010-09-23
| | | | | | Patch by José Miguel Gonçalves (jose DOT goncalves AT inov DOT pt) Originally committed as revision 25159 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Cosmetics: simplify layout of fmt_conversion_table, make it shorterStefano Sabatini2010-09-12
| | | | | | and more readable. Originally committed as revision 25108 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Cosmetics: apply minor style fixes.Stefano Sabatini2010-09-11
| | | | Originally committed as revision 25106 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use new imgutils.h API names, fix deprecation warnings.Stefano Sabatini2010-09-07
| | | | Originally committed as revision 25058 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add a mapping for the V4L2_PIX_FMT_NV12 format to PIX_FMT_NV12 forPete Eberlein2010-08-11
| | | | | | | video4linux2 devices. This is used by Sensoray Model 2253 cards. Patch by Pete Eberlein (pete AT sensoray DOT com) Originally committed as revision 24759 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove use of the deprecated function avcodec_check_dimensions(), useStefano Sabatini2010-08-06
| | | | | | av_check_image_size() instead. Originally committed as revision 24711 to svn://svn.ffmpeg.org/ffmpeg/trunk
* 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