Ramiro Polla
1973e1018e
vfwcap: add option to print list of supported drivers
...
Originally committed as revision 25552 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
José Miguel Gonçalves
70f77361d8
Allow to set the frame rate in v4l2 devices
...
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
14 years ago
Stefano Sabatini
0105889358
Cosmetics: simplify layout of fmt_conversion_table, make it shorter
...
and more readable.
Originally committed as revision 25108 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Stefano Sabatini
680861ca73
Cosmetics: apply minor style fixes.
...
Originally committed as revision 25106 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Stefano Sabatini
e16f217ceb
Use new imgutils.h API names, fix deprecation warnings.
...
Originally committed as revision 25058 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Stefano Sabatini
4f2d2e4ed9
Define macro AV_NE() and use it in libavdevice.
...
Help further refactoring.
Originally committed as revision 24814 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Pete Eberlein
b4f81b7429
Add a mapping for the V4L2_PIX_FMT_NV12 format to PIX_FMT_NV12 for
...
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
15 years ago
Stefano Sabatini
6ce9b4310c
Remove use of the deprecated function avcodec_check_dimensions(), use
...
av_check_image_size() instead.
Originally committed as revision 24711 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Diego Biurrun
09f6a45dc2
Remove non-existing stray arguments from Doxygen function documentation.
...
Originally committed as revision 23976 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
49bd8e4b84
Fix grammar errors in documentation
...
Originally committed as revision 23904 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Carl Eugen Hoyos
33e7febdbe
Remove stray semicolon.
...
Originally committed as revision 23691 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Diego Biurrun
c1b85795cb
Remove broken BeOS audio interface.
...
Originally committed as revision 23568 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Stefano Sabatini
50f852186f
Make device_open() store the VIDIOC_QUERYCAP ioctl errno, and in case
...
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
15 years ago
Ramiro Polla
faa2989e0f
vfwcap: flip RGB rawvideo.
...
Originally committed as revision 22989 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Luca Abeni
b01dba14f3
Check the return value of device_try_init() immediately after calling such a
...
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
15 years ago
Stefano Sabatini
6e25b78001
Fix weird brace placement.
...
Originally committed as revision 22982 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Luca Abeni
1ace15f58c
Reduce the verbosity of the v4l2 input device
...
Originally committed as revision 22980 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Luca Abeni
4f54d924bc
Simplify some output messages in the v4l2 input device
...
Originally committed as revision 22979 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Stefano Sabatini
932d775fa2
Implement v4l2 input size autodetection in v4l2_read_header().
...
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
15 years ago
Stefano Sabatini
c57a8fefd9
Return meaningful error codes, rather than always -1.
...
Originally committed as revision 22966 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Stefano Sabatini
18225025ff
Remove unnecessary width and height variables from v4l2_read_header().
...
Originally committed as revision 22963 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Diego Biurrun
ba87f0801d
Remove explicit filename from Doxygen @file commands.
...
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
15 years ago
Stefano Sabatini
2874c81cc8
Replace all remaining occurrences of AVERROR_NOMEM with
...
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
15 years ago
Martin Storsjö
fea9bb2f31
Replace the last occurrance of CODEC_TYPE_ with AVMEDIA_TYPE_
...
Originally committed as revision 22776 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Jean-Daniel Dupas
cc947f04cc
Replace all occurences of PKT_FLAG_KEY with AV_PKT_FLAG_KEY.
...
Patch by Jean-Daniel Dupas, devlists shadowlab org
Originally committed as revision 22744 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Stefano Sabatini
72415b2adb
Define AVMediaType enum, and use it instead of enum CodecType, which
...
is deprecated and will be dropped at the next major bump.
Originally committed as revision 22735 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Stefano Sabatini
bd01c39330
Make audio_read_packet() return AVERROR_EOF rather than AVERROR(EOF) =
...
AVERROR(-1) = 1.
Originally committed as revision 22664 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Ramiro Polla
85f273c7ca
x11grab: AVFormatParameters are always passed from av_open_input_stream(),
...
there is no need to check for it.
Originally committed as revision 22651 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Diego Biurrun
e547328b18
Revert removal of _NETBSD_SOURCE definition.
...
It is indeed necessary to compile on NetBSD.
Originally committed as revision 22613 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Ramiro Polla
ad8eede7b1
vfwcap: Free remaining packets on vfw_read_close().
...
Originally committed as revision 22575 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Ramiro Polla
ce03ed4df1
Do not store a copy of AVFormatContext *s in vfw_ctx.
...
Save *s directly in SetWindowLongPtr instead.
Originally committed as revision 22574 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Stefano Sabatini
5ae092ee34
Replace all the occurrences of AVERROR_EIO with AVERROR(EIO), and mark
...
AVERROR_EIO for deletion at the next major bump.
Originally committed as revision 22513 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Diego Biurrun
4f4e40085f
Replace BSD-specific integer types by their POSIX equivalents.
...
Mark bktr_init function as av_cold.
Tested to work by Michael Kostylev on the NetBSD FATE box.
Originally committed as revision 22487 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Diego Biurrun
2138dc99fc
Add _XOPEN_SOURCE=600 to CPPFLAGS on NetBSD.
...
This make NetBSD compile out of the box at the cost of a hack, but a
locally contained one that is preferable to the one used in the wild.
Currently the NetBSD FATE box adds -D_NETBSD_SOURCE to CPPFLAGS to work
around broken system headers. Since it is unlikely for NetBSD to fix their
headers, it is better to use a standard flag instead of a system-specific one.
As a sideeffect, this allows getting rid of a local _NETBSD_SOURCE definition.
Originally committed as revision 22486 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Ramiro Polla
e24080f00e
vfwcap: Add support for UYVY pixel format.
...
Originally committed as revision 22424 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
c26e58e32c
Add some missing #includes
...
Originally committed as revision 22258 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Jorge Acereda
d5963ee64a
Add _NETBSD_SOURCE definition to fix compilation on NetBSD.
...
NetBSD is unlikely to fix their headers and the FATE box passes it
as -D_NETBSD_SOURCE on the command line anyway. In this case, it's
better to keep the hack well-contained within this file.
Closes issue 886.
patch by Jorge Acereda, jacereda brainstorm es
Originally committed as revision 22164 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Nash Tsai
d7a4961e53
vfwcap: support MJPG compressed streams.
...
Patch by Nash Tsai <nash dot tsai at gmail dot com>
Originally committed as revision 22004 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Ramiro Polla
802da0b490
Indent.
...
Originally committed as revision 21933 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Stefano Sabatini
1dc5c35809
Satisfy style nits.
...
Originally committed as revision 21648 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Jai Menon
90d0379f5e
Avoid using deprecated AVFormatParameters::[audio|video]_codec_id field.
...
Originally committed as revision 21511 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
kemuri
420755dd28
vfwcap: Include windows.h before vfw.h since the latter requires defines
...
from the former.
Patch by kemuri <kemuri9 at gmail dot com>
Originally committed as revision 21411 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
a482e61bd6
Add symbol versioning for shared libraries
...
Based on patch by Reinhard Tartler <siretart tauware de>
Originally committed as revision 21236 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Reinhard Tartler
8040c3b250
Define device_try_init() as static in libavdevice/v4l2.c.
...
Patch by Reinhard Tartler (siretart AT tauware DOT de).
Originally committed as revision 21004 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Carl Eugen Hoyos
3d1ebac8f7
Define _XOPEN_SOURCE as 600 before including a XSI extension header.
...
Originally committed as revision 20871 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Carl Eugen Hoyos
1f15747fc9
Use enum PixelFormat as type for input_pixfmt to avoid one icc warning.
...
Originally committed as revision 20859 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Luca Abeni
3db77ccf38
Support compressed formats in the V4L2 input device.
...
Patch by klchxbec AT freenet DOT de.
Originally committed as revision 20858 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Luca Abeni
9eb6e9d9d3
Add support for V4L2 compressed formats in the table used for converting
...
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
15 years ago
Luca Abeni
9202218e5d
Use the correct type for the V4L2 format.
...
Originally committed as revision 20856 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Luca Abeni
158aa9f2db
Return pkt->size in v4l2_read_packet().
...
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
15 years ago