summaryrefslogtreecommitdiff
path: root/libavdevice
Commit message (Collapse)AuthorAge
* configure: Do not unconditionally add -D_POSIX_C_SOURCE to CPPFLAGS.Diego Biurrun2011-05-12
| | | | | | | | | | | | | | | | Adding _POSIX_C_SOURCE to CPPFLAGS globally produces all sorts of problems since it causes certain system functions to be hidden on some (BSD) systems. The solution is to only add the flag on systems that really require it, i.e. glibc-based ones. This change makes BSD systems compile out-of-the-box without the need for adding specific flags manually. It also allows dropping a number of flags set manually on a file-per-file basis, but were only present to work around breakage introduced by the presence of _POSIX_C_SOURCE. Also add _XOPEN_SOURCE to CPPFLAGS for glibc systems. We use XSI extensions in several places already, so it is preferable to define it globally instead of littering source files with individual #defines only needed for glibc.
* Replace some commented-out debug printf() / av_log() messages with av_dlog().Diego Biurrun2011-04-29
|
* libavdevice: Define _XOPEN_SOURCE for usleepMartin Storsjö2011-04-21
| | | | | | This hopefully fixes build failures on Dragonfly BSD. Signed-off-by: Martin Storsjö <martin@martin.st>
* Bump major versions of all libraries.Anton Khirnov2011-04-18
| | | | | | They've accumulated enough new APIs and corresponding deprecated cruft. This breaks API and ABI.
* sndio bug fixBrad2011-03-29
| | | | | | | | Since the code already supports both little- and big-endian audio for recording, do not fail just because the endianness is not what we expect. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* framebuffer device demuxerStefano Sabatini2011-03-28
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* sndio support for playback and recordBrad2011-03-27
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-19
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* use LIBAV_LICENSE and LIBAV_VERSION instead of FFMPEG_*Janne Grunau2011-03-16
|
* replace FFMPEG with LIBAV in FFMPEG_CONFIGURATIONJanne Grunau2011-03-16
| | | | also update the multiple inclusion guards in config.h|mak
* 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.
* consolidate .gitignore patters into a single fileJanne Grunau2011-01-18
| | | | Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
* convert svn:ignore properties to .gitignore filesJanne Grunau2011-01-17
| | | | Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
* 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
* Make x11grab cursor drawing suck lessJason Garrett-Glaser2010-11-07
| | | | | | | | | | | | | This new version: 1. Works on 24-bit and 32-bit input, not just 32-bit. 2. Doesn't try to run on 16-bit or 8-bit, instead of outright crashing. 3. Does proper alpha-blending, so cursor shadows look correct. 4. Doesn't swap R and B. Mostly fixes issue 1997. Fixes issue 2056. Originally committed as revision 25690 to svn://svn.ffmpeg.org/ffmpeg/trunk
* vfwcap: add option to print list of supported driversRamiro Polla2010-10-23
| | | | Originally committed as revision 25552 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
* Define macro AV_NE() and use it in libavdevice.Stefano Sabatini2010-08-17
| | | | | | Help further refactoring. Originally committed as revision 24814 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
* Remove non-existing stray arguments from Doxygen function documentation.Diego Biurrun2010-07-02
| | | | Originally committed as revision 23976 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix grammar errors in documentationMåns Rullgård2010-06-30
| | | | Originally committed as revision 23904 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove stray semicolon.Carl Eugen Hoyos2010-06-21
| | | | Originally committed as revision 23691 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove broken BeOS audio interface.Diego Biurrun2010-06-10
| | | | Originally committed as revision 23568 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
* vfwcap: flip RGB rawvideo.Ramiro Polla2010-04-29
| | | | Originally committed as revision 22989 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
* Remove explicit filename from Doxygen @file commands.Diego Biurrun2010-04-20
| | | | | | | | Passing an explicit filename to this command is only necessary if the documentation in the @file block refers to a file different from the one the block resides in. Originally committed as revision 22921 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Replace all remaining occurrences of AVERROR_NOMEM withStefano Sabatini2010-04-03
| | | | | | | | | AVERROR(ENOMEM). AVERROR_NOMEM is deprecated and will be dropped at the next libavutil major bump. Originally committed as revision 22791 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Replace the last occurrance of CODEC_TYPE_ with AVMEDIA_TYPE_Martin Storsjö2010-04-02
| | | | Originally committed as revision 22776 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Replace all occurences of PKT_FLAG_KEY with AV_PKT_FLAG_KEY.Jean-Daniel Dupas2010-03-31
| | | | | | Patch by Jean-Daniel Dupas, devlists shadowlab org Originally committed as revision 22744 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
* Make audio_read_packet() return AVERROR_EOF rather than AVERROR(EOF) =Stefano Sabatini2010-03-25
| | | | | | AVERROR(-1) = 1. Originally committed as revision 22664 to svn://svn.ffmpeg.org/ffmpeg/trunk
* x11grab: AVFormatParameters are always passed from av_open_input_stream(),Ramiro Polla2010-03-23
| | | | | | there is no need to check for it. Originally committed as revision 22651 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Revert removal of _NETBSD_SOURCE definition.Diego Biurrun2010-03-21
| | | | | | It is indeed necessary to compile on NetBSD. Originally committed as revision 22613 to svn://svn.ffmpeg.org/ffmpeg/trunk
* vfwcap: Free remaining packets on vfw_read_close().Ramiro Polla2010-03-17
| | | | Originally committed as revision 22575 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Do not store a copy of AVFormatContext *s in vfw_ctx.Ramiro Polla2010-03-17
| | | | | | Save *s directly in SetWindowLongPtr instead. Originally committed as revision 22574 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Replace all the occurrences of AVERROR_EIO with AVERROR(EIO), and markStefano Sabatini2010-03-13
| | | | | | AVERROR_EIO for deletion at the next major bump. Originally committed as revision 22513 to svn://svn.ffmpeg.org/ffmpeg/trunk