Commit Graph

21 Commits

Author SHA1 Message Date
Stefano Sabatini
df2a3f2714 Use more descriptive long_names for Video4Linux input devices.
Originally committed as revision 16322 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-26 11:23:50 +00:00
Stefano Sabatini
7274a48035 Check that the device is a capture device immediately after opening
the device.

Originally committed as revision 16318 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-26 10:12:57 +00:00
Stefano Sabatini
f233d34821 Remove unnecessary temporary variable "frame_size" from
grab_read_header().

Originally committed as revision 16317 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-26 09:31:21 +00:00
Stefano Sabatini
fd867ffd43 Add missing check on the result of a VIDIOCCAPTURE ioctl.
Originally committed as revision 16316 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-26 09:12:12 +00:00
Stefano Sabatini
c40432d30c Cosmetics: put a space after each comma, improve consistency and
readability.

Originally committed as revision 16315 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-26 09:07:51 +00:00
Stefano Sabatini
7bbacf9a0c Implement size autodetection if one of the width and height
AVFormatParameters for grab_read_header() is non-positive.

Originally committed as revision 16199 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-17 23:58:28 +00:00
Stefano Sabatini
406c580854 Replace the width and height fields in VideoData with a struct
video_window video_win field.

Originally committed as revision 16198 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-17 23:51:19 +00:00
Stefano Sabatini
9580ba2676 Replace frame_rate and frame_rate_base fields in VideoData with an
AVRational time_base field.

Originally committed as revision 16197 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-17 23:43:56 +00:00
Stefano Sabatini
b9f382c8ef Remove unnecessary ret variable.
Originally committed as revision 16033 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-07 22:52:32 +00:00
Aurelien Jacobs
37d3e0667a uses FF_ARRAY_ELEMS() where appropriate
Originally committed as revision 15662 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-10-21 21:40:24 +00:00
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
2008-08-19 21:20:39 +00:00
Aurelien Jacobs
ea452b54f0 strcasecmp() requires #include <strings.h>
Originally committed as revision 14728 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-13 17:22:53 +00:00
Stefano Sabatini
e78d651f06 Distinguish the error reporting for the cases of wrong size and wrong
timebase in the video4linux grab_read_header() function.

Originally committed as revision 14646 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-06 18:20:04 +00:00
Stefano Sabatini
7c1d608ece Make v4l_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 14246 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-15 20:39:20 +00:00
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
2008-06-03 16:20:54 +00:00
Diego Biurrun
245976da2a Use full path for #includes from another directory.
Originally committed as revision 13098 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-09 11:56:36 +00:00
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
2008-03-24 10:54:01 +00:00
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
2008-03-20 19:07:24 +00:00
Diego Pettenò
1411f55b63 Make v4l.c's video_formats constant and static.
Patch by Diego 'Flameeyes' Pettenò flameeyes ¤ gmail ! com

Originally committed as revision 11443 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-01-07 12:42:02 +00:00
Michael Niedermayer
3ab64e46e2 Remove AIW support code, it is unfit for ffmpeg svn, doing usleep() and
colorspace convertion and deinterlacing in the demuxer. Whoever wants
AIW support has to implement this cleanly!

Originally committed as revision 11335 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-28 03:30:23 +00:00
Luca Abeni
c721d803cb Introduce libavdevice
Originally committed as revision 11077 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-11-22 16:10:02 +00:00