Martin Storsjö
e6153f173a
avopt: Store defaults for AV_OPT_TYPE_INT in the i64 union member
...
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Martin Storsjö
124134e424
avopt: Store defaults for AV_OPT_TYPE_CONST in the i64 union member
...
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Anton Khirnov
36ef5369ee
Replace all CODEC_ID_* with AV_CODEC_ID_*
12 years ago
Mans Rullgard
6501dcfb5e
Remove unnecessary inclusions of [sys/]time.h
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Anton Khirnov
6e9651d106
lavf: remove AVFormatParameters from AVFormatContext.read_header signature
13 years ago
Luca Barbato
b6db385922
v4l2: use C99 struct initializer
...
Remove some unneeded memsets.
13 years ago
Luca Barbato
0efd48dfd1
v4l2: poll the file descriptor
...
Instead of busy waiting use poll();
13 years ago
Luca Barbato
b8c310cb0a
v4l2: support compressed formats
...
Let pass the codec name to -pixel_format and introduce -input_format.
13 years ago
Janne Grunau
f13a9ca906
v4l2: use V4L2_FMT_FLAG_EMULATED only if it is defined
...
V4L2_FMT_FLAG_EMULATED was added in 2.6.32.
13 years ago
Luca Barbato
a6a4793d04
v4l2: list available formats
...
Make use of the experimental framesize enumeration ioctl if available.
13 years ago
Luca Barbato
cd2bbad303
v4l2: set the proper codec_tag
...
Unbreak direct streamcopy.
13 years ago
Luca Barbato
eb89b4fc09
v4l2: refactor device_open
...
Check capabilities directly in the function, further simplify the code.
13 years ago
Luca Barbato
246007d370
v4l2: simplify away io_method
...
Only mmap is supported.
13 years ago
Luca Barbato
a896d7f45a
v4l2: cosmetics
13 years ago
Luca Barbato
21aa6ae4fb
v4l2: uniform and format options
13 years ago
Luca Barbato
af7123b2ad
v4l2: do not force interlaced mode
...
Video4linux2 supports both interlaced and non-interlaced mode, do not
ask for interlaced if not necessary.
13 years ago
Janne Grunau
1adba23cec
v4l2: remove unneded linux specific asm/types.h include
13 years ago
Anton Khirnov
c3f9ebf743
lavf: make av_set_pts_info private.
...
It's supposed to be called only from (de)muxers.
13 years ago
Reimar Döffinger
bb3244dee2
Replace all usage of strcasecmp/strncasecmp
...
All current usages of it are incompatible with localization.
For example strcasecmp("i", "I") != 0 is possible, but would
break many of the places where it is used.
Instead use our own implementations that always treat the data
as ASCII.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Anton Khirnov
3b3bbdd3e6
lavf,lavd: replace av_new_stream->avformat_new_stream part I.
...
Trivial replacements with sed are done in this commit:
sed 's/av_new_stream(\([^)]*\), 0)/avformat_new_stream(\1, NULL)/'
13 years ago
Anton Khirnov
145f741e11
AVOptions: rename FF_OPT_TYPE_* => AV_OPT_TYPE_*
13 years ago
Diego Biurrun
30b4ee7901
Use explicit struct initializers for AVOutputFormat/AVInputFormat declarations.
13 years ago
Anton Khirnov
c14fe6bc99
lavf,lavd: remove all usage of AVFormatParameters from demuxers.
...
AVFormatParameters are converted into corresponding private options in
av_open_input_file/stream() compat wrappers, so accessing them from
demuxers is redundant.
13 years ago
Stefano Sabatini
41b68dce4d
lavdev: improve feedback in case of invalid frame rate/size
...
Show the invalid string in the error message.
While at it also prefer "Could not" over "Couldn't", plain forms are
preferred over contractions (simplify readability, especially for non
English-savvy people).
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Stefano Sabatini
e60068baeb
v4l2: prefer "framerate_q" over "fps" in v4l2_set_parameters()
...
The variable is used for containing the parsed value of framerate,
using a lexically consistent name eases readability/understanding.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Luca Barbato
2c6fb9f032
v4l2: do not force NTSC as standard
...
Setting a standard is meaningful only for analog capture devices.
14 years ago
Anton Khirnov
367732832f
lavf,lavc: free avoptions in a generic way.
...
It's simpler and less error-prone.
Fixes some memleaks along the way.
14 years ago
Anton Khirnov
a3b15e411d
fbdev,v4l2: remove some forgotten uses of AVFormatParameters.time_base.
14 years ago
Anton Khirnov
fefa67d536
v4l2: remove one forgotten use of AVFormatParameters.pix_fmt.
14 years ago
Anton Khirnov
c21324eeb6
v4l2: add a framerate private option.
14 years ago
Anton Khirnov
7a70e01b26
v4l2: don't leak video standard string on error.
14 years ago
Anton Khirnov
d576bbf3eb
v4l2: add a pixel_format private option.
14 years ago
Anton Khirnov
8fe7b6443f
v4l2: add video_size private option.
14 years ago
Anton Khirnov
82b5aa0add
v4l2: factorize returning error codes.
...
This will be useful in the following commit.
14 years ago
Anton Khirnov
d20576d01b
lavf: deprecate AVFormatParameters.channel.
14 years ago
Anton Khirnov
3d2a418605
v4l2: reindent.
14 years ago
Anton Khirnov
a02fd06ab7
v4l2: add a private option for channel.
14 years ago
Anton Khirnov
fc68a8f703
lavf: deprecate AVFormatParameters.standard.
14 years ago
Anton Khirnov
b3da269211
v4l2: add a private option for video standard.
14 years ago
Mans Rullgard
2912e87a6c
Replace FFmpeg with Libav in licence headers
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Reinhard Tartler
737eb5976f
Merge libavcore into libavutil
...
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>
14 years ago
Diego Elio Pettenò
c6610a216e
Prefix all _demuxer, _muxer, _protocol from libavformat and libavdevice.
...
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.
14 years ago
Stefano Sabatini
5d3d238f82
Factorize common code in v4l2_set_parameters().
...
Originally committed as revision 26225 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Stefano Sabatini
8621a37d9f
In video4linux2, in the case the timebase value in ap is 0/0, read the
...
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
14 years ago
Stefano Sabatini
bd7d9e45a4
In the video4linux2 output device, log an error description in case of
...
ioctl failure in mmap_release_buffer().
Originally committed as revision 26214 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
14 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
14 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
14 years ago