Commit Graph

99 Commits

Author SHA1 Message Date
Daniel Verkamp
cf6bae6883 Change codec_id type to enum CodecID, fix warning.
Patch by Daniel Verkamp daniel @ drv @ nu.

Originally committed as revision 18768 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-06 22:38:21 +00:00
Carl Eugen Hoyos
08982bb466 Cosmetics: Split long line.
Originally committed as revision 18516 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-14 22:33:46 +00:00
Carl Eugen Hoyos
899f38df62 Fix two icc warnings #188: enumerated type mixed with another type.
Originally committed as revision 18515 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-14 22:30:11 +00:00
Carl Eugen Hoyos
34bcada424 Fix icc warning #188: enumerated type mixed with another type.
Originally committed as revision 18514 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-14 22:21:53 +00:00
Carl Eugen Hoyos
5c463aacb2 Fix icc warning #188: enumerated type mixed with another type.
Originally committed as revision 18513 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-14 22:19:43 +00:00
Olivier Guilyardi
80ff8a16f5 Implement JACK input device.
Patch by Olivier Guilyardi list samalyse com.
See the thread: "[FFmpeg-devel] [PATCH] libavdevice: JACK demuxer".

Originally committed as revision 18322 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-02 23:53:47 +00:00
Luca Abeni
3cac2f1301 Fix AVFMT_FLAG_NONBLOCK in alsa
Originally committed as revision 17863 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-07 18:17:13 +00:00
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
2009-02-15 14:32:09 +00:00
Diego Biurrun
b17e0f065c Remove file name from file headers.
It provides no useful information and breaks on renames.

Originally committed as revision 17097 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-09 11:17:54 +00:00
Diego Biurrun
f8a32581fa Add necessary #includes to pass 'make checkheaders'.
Originally committed as revision 16933 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-02 09:22:06 +00:00
Diego Biurrun
bad5537e2c Use full internal pathname in doxygen @file directives.
Otherwise doxygen complains about ambiguous filenames when files exist
under the same name in different subdirectories.

Originally committed as revision 16912 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-01 02:00:19 +00:00
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
2009-01-30 12:41:44 +00:00
Nicolas George
35fd81224a Add ALSA support in libavdevice.
Patch by Nicolas George: name surname normalesup org
Original thread: [FFmpeg-devel] [PATCH] ALSA for libavdevice
Date: 12/09/2008 07:17 PM

Originally committed as revision 16800 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-26 09:16:09 +00:00
Benoit Fouet
33054e35e3 Rename audio.c to oss_audio.c in libavdevice.
Originally committed as revision 16707 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-21 08:43:38 +00:00
Benoit Fouet
0c26e964e9 Use avf context in av_log, instead of NULL.
Originally committed as revision 16695 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-20 08:01:32 +00:00
Benoit Fouet
d99b81664b Pass avf context to audio_open().
Originally committed as revision 16694 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-20 08:00:59 +00:00
Diego Biurrun
406792e7b0 cosmetics: Remove pointless period after copyright statement non-sentences.
Originally committed as revision 16684 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-19 15:46:40 +00:00
Aurelien Jacobs
49fb20cb8a replace all occurrence of ENABLE_ by the corresponding CONFIG_, HAVE_ or ARCH_
and remove all ENABLE_ definitions.

Originally committed as revision 16600 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-14 17:19:17 +00:00
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
2009-01-13 23:44:16 +00:00
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
2009-01-07 13:34:29 +00:00
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
2008-12-28 14:41:19 +00:00
Stefano Sabatini
df77a6daab Make the VIDIOCMCAPTURE ioctl error message consistent with the other ones.
Originally committed as revision 16361 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-27 11:44:56 +00:00
Stefano Sabatini
faf67322dc Add missing check on the return value of the VIDIOCSWIN ioctl.
Originally committed as revision 16360 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-27 11:40:07 +00:00
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
Diego Biurrun
616deed28f Do not invade _t POSIX namespace.
Originally committed as revision 16109 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-13 18:16:06 +00:00
Reimar Döffinger
eb857782e7 Define _BSD_SOURCE in bktr.c, dev/ic/bt8xx.h needs the u_short etc. typedefs,
which sys/types.h will not generate without this.

Originally committed as revision 16089 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-13 09:16:12 +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
Ramiro Polla
bc4b722143 mingw: update w32api to 3.13
Originally committed as revision 16029 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-07 05:17:57 +00:00
Måns Rullgård
c87348a922 Use OBJS variable for all object files
There is no longer any need to differentiate the object files
by source type.

Originally committed as revision 15708 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-10-25 14:00:28 +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
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
2008-10-21 07:59:41 +00:00
Alexis Ballier
d84b1cb3da Add missing sys/select.h #include, fixes compilation on FreeBSD 7.0.
patch by Alexis Ballier, alexis.ballier gmail com

Originally committed as revision 15649 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-10-20 05:26:52 +00:00
Diego Pettenò
fb65d2ca84 Use enum typers instead of int.
Patch by Diego 'Flameeyes' Pettenò: flameeyes gmail

Originally committed as revision 15517 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-10-02 16:03:00 +00:00
Baptiste Coudurier
a3250d073d sync to latest mingw api, remove unneeded struct definitions
Originally committed as revision 15423 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-09-26 03:20:35 +00:00
Brad
1b6e8b734c V4L2 support for OpenBSD, patch by Brad, brad comstyle com
Originally committed as revision 15376 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-09-21 22:47:52 +00:00
Baptiste Coudurier
00adc1e5dc set bits_per_coded_sample according to new lavc api
Originally committed as revision 15289 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-09-09 18:32:50 +00:00
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
2008-09-05 20:40:50 +00:00
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
2008-09-05 20:36:42 +00:00
Stefano Sabatini
987903826b Globally rename the header inclusion guard names.
Consistently apply this rule: the guard name is obtained from the
filename by stripping the leading "lib", converting '/' and '.'  to
'_' and uppercasing the resulting name. Guard names in the root
directory have to be prefixed by "FFMPEG_".

Originally committed as revision 15120 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-31 07:39:47 +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
Diego Biurrun
29a717aef2 Use '#include <poll.h>' instead of '#include <sys/poll.h>'.
It is the standard location as defined by the Open Group.

Originally committed as revision 14761 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-14 15:50:31 +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
b3b990b659 Implement avdevice_version().
Originally committed as revision 14668 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-08 18:42:31 +00:00