summaryrefslogtreecommitdiffstats
path: root/cmdutils.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove libpostproc.Diego Biurrun2012-02-231-6/+0
| | | | | | | | This library does not fit into Libav as a whole and its code is just a maintenance burden. Furthermore it is now available as an external project, which completely obviates any reason to keep it around. URL: http://git.videolan.org/?p=libpostproc.git
* cmdutils: update copyright year to 2012.Ronald S. Bultje2012-02-081-1/+1
|
* cmdutils: fix options starting with 'no'.Alexandra Khirnova2012-01-271-4/+2
| | | | | | E.g. non_linear_quant mpeg2video private option. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* Drop unnecessary prefix from *sink* variable and struct names.Diego Biurrun2012-01-251-10/+10
|
* cosmetics: Rename ffsink to avsink.Diego Biurrun2012-01-191-10/+10
|
* No longer build libpostproc by defaultReinhard Tartler2012-01-111-0/+4
| | | | | | | update documentation to inform developers that it may be removed in a later release. Signed-off-by: Reinhard Tartler <siretart@tauware.de>
* cmdutils: K&R reformatting cosmeticsAneesh Dogra2012-01-031-160/+196
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* cosmetics: Drop unnecessary parentheses around return values.Diego Biurrun2011-12-301-2/+3
|
* lavc: add a sample_aspect_ratio field to AVFrameStefano Sabatini2011-12-251-0/+1
| | | | | | | The sample aspect ratio is a per-frame property, so it makes sense to define it in AVFrame rather than in the codec/stream context. Simplify application-level sample aspect ratio information extraction, and allow further simplifications.
* Add libavutil/mathematics.h #includes for INFINITYMans Rullgard2011-11-221-0/+1
| | | | | | This fixes build errors in some environments. Signed-off-by: Mans Rullgard <mans@mansr.com>
* cmdutils: Rename read_file to cmdutils_read_fileMartin Storsjö2011-10-311-1/+1
| | | | | | | This symbol name clashes with a symbol in gnutls, if linking statically to that library. Signed-off-by: Martin Storsjö <martin@martin.st>
* cmdutils: check fread() return valueJanne Grunau2011-10-301-3/+15
|
* cmdutils/avtools: simplify show_help() by using av_opt_child_class_next()Anton Khirnov2011-10-121-0/+10
|
* AVOptions: rename FF_OPT_TYPE_* => AV_OPT_TYPE_*Anton Khirnov2011-10-121-1/+1
|
* Remove all uses of deprecated AVOptions API.Anton Khirnov2011-10-121-1/+1
|
* avtools: add -v as alias for -loglevelMans Rullgard2011-10-091-0/+2
| | | | | | This saves a bit of typing. Signed-off-by: Mans Rullgard <mans@mansr.com>
* avconv: add support for copying attachments.Anton Khirnov2011-09-271-1/+2
|
* cmdutils: replace fprintf() by av_log()Anton Khirnov2011-09-261-36/+37
| | | | | | | This way, all messages can be easily disabled with -loglevel. Behavior change -- configuration is printed with AV_LOG_VERBOSE, so it's not shown by default.
* avtools: parse loglevel before all the other options.Anton Khirnov2011-09-261-0/+35
| | | | | This way it can be applied to cmdutils too -- e.g. showing the banner and printing startup messages.
* cmdutils: move grow_array out of #if CONFIG_AVFILTERJanne Grunau2011-09-231-2/+2
| | | | fixes programs linking with --disable-avfilter
* cmdutils: add support for programs in check_stream_specifier()Anton Khirnov2011-09-111-0/+20
| | | | Remove now redundant (and broken/undocumented) opt_programid.
* avconv: move audio_sample_fmt to options context.Anton Khirnov2011-09-111-0/+9
| | | | | Also document it and replace undocumented and inconsistent '-sample_fmt list' syntax with -sample_fmts.
* avconv: move ts scale to options context.Anton Khirnov2011-09-051-0/+2
|
* avconv: move start_time, recording_time and input_ts_offset to options contextAnton Khirnov2011-09-041-0/+2
|
* cmdutils: allow storing per-stream/chapter/.... options in a generic wayAnton Khirnov2011-09-041-1/+12
|
* cmdutils: split per-option code out of parse_options().Anton Khirnov2011-09-041-52/+60
| | | | | This allows options like -target, which are just shortcuts for other options, to work without dummy function for all options they invoke.
* cmdutils: add support for caller-provided option context.Anton Khirnov2011-09-041-5/+9
| | | | This is the first step to removing the globals plague from avtools.
* cmdutils: declare only one pointer type in OptionDefAnton Khirnov2011-09-041-5/+7
| | | | This will be useful in the following commit.
* cmdutils: move grow_array() from avconv to cmdutils.Anton Khirnov2011-09-041-0/+19
|
* cmdutils: move exit_program() declaration to cmdutils from avconvAnton Khirnov2011-09-041-7/+8
| | | | Allows cmdutils to call each tool's own cleanup function.
* cmdutils: get rid of dummy contexts for examining AVOptions.Anton Khirnov2011-09-031-18/+9
| | | | Replace it with newly introduced libavutil API.
* cmdutils: allow precisely specifying a stream for AVOptions.Anton Khirnov2011-08-121-5/+55
|
* cmdutils: allow ':'-separated modifiers in option names.Anton Khirnov2011-08-121-1/+4
|
* Make a copy of ffmpeg under a new name -- avconv.Anton Khirnov2011-08-121-4/+4
| | | | | | | It will be further developed with a few incompatible changes. ffmpeg.c will stay as is for some time, so any scripts using it won't be broken.
* cmdutils: add codec_opts parameter to setup_find_stream_info_opts()Stefano Sabatini2011-07-281-1/+1
| | | | | | Avoid brittle and obfuscating reference to a global. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* cmdutils: replace opt_default with opt_default2() and remove set_context_optsAnton Khirnov2011-07-131-107/+1
|
* ffplay: use new avcodec_open2 and avformat_find_stream_info API.Anton Khirnov2011-07-131-0/+17
|
* cmdutils: store all codec options in one dict instead of video/audio/subAnton Khirnov2011-07-131-21/+34
| | | | Split them when codec id is known.
* lavc: make avcodec_alloc_context3 officially public.Anton Khirnov2011-07-101-1/+1
| | | | Deprecate avcodec_alloc_context/2.
* cmdutils: add opt_default2().Anton Khirnov2011-06-161-4/+46
| | | | | | It stores options in a dictionary to be passed to new open calls. It will replace opt_default once all the pieces are in place.
* AVOptions: add av_opt_find() as a replacement for av_find_opt.Anton Khirnov2011-06-161-3/+3
|
* cmdutils: add missing NULL check in parse_options()Stefano Sabatini2011-06-121-1/+1
| | | | | | Fix ffplay -i FILE, which was recently broken. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* cmdutils: add missing const qualifierMans Rullgard2011-06-041-1/+1
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* cmdutils: remove OPT_FUNC2Stefano Sabatini2011-05-281-4/+2
| | | | | | | | | Make ff* tools only accept opt_* functions taking two arguments. The distinction between functions with one and two arguments is quite pointless. Simplify parse_options() code. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* cmdutils: use sws_freeContext() instead of av_freep().Ronald S. Bultje2011-05-271-1/+2
| | | | | av_freep(swsContext) will leak all memory potentially allocated within the swsContext.
* ffplay: add a dummy option -i so that it is easy to switch between ffmpeg -i ↵Benjamin Larsson2011-05-111-2/+2
| | | | | | "file" and ffplay -i "file". Signed-off-by: Anton Khirnov <anton@khirnov.net>
* cmdutils: add OPT_INT check in parse_number_or_die()Stefano Sabatini2011-05-101-0/+2
| | | | | | | Check that the value passed for an OPT_INT option is an int, fail otherwise. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* cmdutils: remove list_fmts(), simplifyStefano Sabatini2011-05-101-10/+0
| | | | | | | | | | | | | The function was only used in opt_sample_fmt() for listing the sample formats. Move list_fmts() functionality directly into opt_sample_fmt(). Also fix the warning: ffmpeg.c: In function ‘opt_audio_sample_fmt’: ffmpeg.c:2877: warning: passing argument 1 of ‘list_fmts’ from incompatible pointer type cmdutils.h:163: note: expected ‘void (*)(char *, int, int)’ but argument is of type ‘char * (*)(char *, int, enum AVSampleFormat)’ Signed-off-by: Anton Khirnov <anton@khirnov.net>
* ffmpeg.c: reset avoptions after each input/output file.Anton Khirnov2011-05-091-0/+1
| | | | This is consistent with how all the other options work.
* lavfi: add key_frame and pict_type to AVFilterBufferRefVideo.Roger Pau Monné2011-04-261-0/+2
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
OpenPOWER on IntegriCloud