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
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
Luca Abeni
1c787b1043
Cast a __u64 variable to uint64_t so that it can be printed without warnings
...
Originally committed as revision 17325 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Luca Abeni
5449a787c9
If AVPacket->data == NULL, the packet does not contain any buffer to
...
be freed.
This fixes a double free on exit.
Originally committed as revision 16857 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Diego Biurrun
406792e7b0
cosmetics: Remove pointless period after copyright statement non-sentences.
...
Originally committed as revision 16684 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Aurelien Jacobs
b250f9c66d
Change semantic of CONFIG_*, HAVE_* and ARCH_*.
...
They are now always defined to either 0 or 1.
Originally committed as revision 16590 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Luca Abeni
e7b987dc2f
Remove the frame rate from struct video_data, and allow using a variable
...
frame rate for video4linux2 input
Originally committed as revision 16464 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Stefano Sabatini
5d91e92853
Use avcodec_check_dimensions() for checking the frame size validity.
...
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
16 years ago
Stefano Sabatini
df2a3f2714
Use more descriptive long_names for Video4Linux input devices.
...
Originally committed as revision 16322 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Aurelien Jacobs
37d3e0667a
uses FF_ARRAY_ELEMS() where appropriate
...
Originally committed as revision 15662 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Jens Rosenboom
3d0d9a5e3b
The v4l2 driver can silently change the pixel format in the
...
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
16 years ago
Brad
1b6e8b734c
V4L2 support for OpenBSD, patch by Brad, brad comstyle com
...
Originally committed as revision 15376 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Jean Delvare
92d04e765e
Add support for the RGB32 pixel format in video4linux2 devices
...
Patch by Jean Delvare (khali AT linux-fr DOT org)
Originally committed as revision 15219 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Jean Delvare
97a290efcb
Add support for the PIX_FMT_RGB555 and PIX_FMT_RGB565 pixel formats in
...
video4linux2 devices.
Patch by Jean Delvare (khali AT linux-fr DOT org)
Originally committed as revision 15218 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
e9d4b8a533
Workaround bug in types.h that has typedef __u64 under #ifndef __STRICT_ANSI__.
...
Originally committed as revision 14852 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Aurelien Jacobs
ea452b54f0
strcasecmp() requires #include <strings.h>
...
Originally committed as revision 14728 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Stefano Sabatini
3241ec1d6f
Cosmetics: make a v4l2 error message consistent with r14647.
...
Originally committed as revision 14664 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Stefano Sabatini
99423fa0ee
Distinguish the error reporting for the cases of wrong size and wrong
...
timebase in the video4linux2 v4l2_read_header() function.
Originally committed as revision 14647 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Stefano Sabatini
deaab5fc32
Make v4l2_read_header() don't free a stream in case of failure when
...
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
17 years ago
Stefano Sabatini
bde15e74de
Make long_names in lavf/lavdev optional depending on CONFIG_SMALL.
...
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
17 years ago
Carl Eugen Hoyos
eacced45c4
Replace some occurrences of -1 with PIX_FMT_NONE.
...
Fixes icc warning #188 : enumerated type mixed with another type
Originally committed as revision 13130 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Diego Biurrun
245976da2a
Use full path for #includes from another directory.
...
Originally committed as revision 13098 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Diego Biurrun
0e58bf670d
Remove #ifdef HAVE_SYS_MMAN_H around sys/mman.h #include.
...
Without the #include compilation fails.
Originally committed as revision 12568 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Diego Biurrun
b00675499c
Only #include sys/mman.h if configure set HAVE_SYS_MMAN_H.
...
Originally committed as revision 12521 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michel Bardiaux
48f7e1aeee
Clarify the error message when video width, height, or framerate are not
...
specified.
Patch by Michel Bardiaux (mbardiaux AT mediaxim DOT be)
Originally committed as revision 11551 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Luca Abeni
c721d803cb
Introduce libavdevice
...
Originally committed as revision 11077 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Benoit Fouet
411f5c6abd
Forward error code when reading a v4l2 frame
...
Patch by Benoit Fouet (benoit.fouet AT purplelabs DOT com)
Originally committed as revision 10487 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Panagiotis Issaris
6f3e0b2174
Replace all occurrences of AVERROR_IO with AVERROR(EIO).
...
Originally committed as revision 9760 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Luca Abeni
653387d8f0
Support for the AVFMT_FLAG_NONBLOCK flag (non-blocking input) in v4l2.c
...
Originally committed as revision 9496 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Luca Abeni
e4dd03f395
Reindent code after last commit
...
Originally committed as revision 8973 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Limin Wang
0d6c07329e
Allow avoid setting the video standard and input when capturing v4l2 video.
...
Patch by Limin Wang, edited by me
Originally committed as revision 8971 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Limin Wang
f5ad81f527
Allow setting v4l2 input and video standard.
...
Patch by Limin Wang (lance.lmwang AT gmail DOT com)
Originally committed as revision 8542 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Ramiro Polla
cc58300e30
implement new grabbing interface, as described here:
...
ttp://thread.gmane.org/gmane.comp.video.ffmpeg.devel/42920
patch by Ramiro Polla % ramiro A lisha P ufsc P br %
Original thread:
Date: Jan 31, 2007 8:56 PM
Subject: [Ffmpeg-devel] [PATCH] New grabbing interface
Originally committed as revision 7983 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Luca Abeni
41536a6078
Pass the v4l2 buffer into the AVPacket, instead of allocating a new buffer
...
and copying the frame into it (remove a memcpy())
Originally committed as revision 7981 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
François Revol
8fa36ae09d
This fixes error handling for BeOS, removing the need for some ifdefs.
...
AVERROR_ defines are moved to avcodec.h as they are needed in there as well. Feel free to move that to avutil/common.h.
Bumped up avcodec/format version numbers as though it's binary compatible we will want to rebuild apps as error values changed.
Please from now on use return AVERROR(EFOO) instead of the ugly return -EFOO in your code.
This also removes the need for berrno.h.
Originally committed as revision 7965 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Luca Abeni
c7238c72cb
Pass a proper context to av_log()
...
Originally committed as revision 7946 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Diego Biurrun
71e445fca3
Replace deprecated PIX_FMT names by the newer variants.
...
Originally committed as revision 7867 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Måns Rullgård
8da9266cea
use the standard INT64_C() macro for 64-bit constants
...
Originally committed as revision 7240 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Luca Abeni
7c7e7464e3
Make read_packet fail is the v4l2 driver returns an unexpected frame size
...
(driver's bug? If not, we will have to support this in some way)
Originally committed as revision 6756 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Diego Biurrun
b78e7197a8
Change license headers to say 'FFmpeg' instead of 'this program/this library'
...
and fix GPL/LGPL version mismatches.
Originally committed as revision 6577 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Måns Rullgård
ff70e60176
allow individual selection of muxers and demuxers
...
Originally committed as revision 5707 to svn://svn.ffmpeg.org/ffmpeg/trunk
19 years ago
Måns Rullgård
d2a067d1d9
give AVInput/OutputFormat structs consistent names
...
Originally committed as revision 5697 to svn://svn.ffmpeg.org/ffmpeg/trunk
19 years ago
R. Brian Anderson
eaddc4717b
Fix segfault
...
Patch by R. Brian Anderson (andersrb AT cliftonlabs DOT com)
Originally committed as revision 5480 to svn://svn.ffmpeg.org/ffmpeg/trunk
19 years ago
Luca Abeni
f743a06236
Include the correct video4linux2 header
...
Originally committed as revision 5430 to svn://svn.ffmpeg.org/ffmpeg/trunk
19 years ago
Luca Abeni
60023e3234
Do not be too verbose
...
Originally committed as revision 5161 to svn://svn.ffmpeg.org/ffmpeg/trunk
19 years ago
Michael Niedermayer
c04c3282b4
simplify AVFormatParameters NULL checks
...
Originally committed as revision 5146 to svn://svn.ffmpeg.org/ffmpeg/trunk
19 years ago
Luca Abeni
24300af416
Add support for drivers that can change the capture size on VIDIOC_S_FMT
...
Originally committed as revision 5076 to svn://svn.ffmpeg.org/ffmpeg/trunk
19 years ago