summaryrefslogtreecommitdiff
path: root/cmdutils.h
Commit message (Collapse)AuthorAge
* avconv: use read_file() for reading the 2pass statsAnton Khirnov2015-07-19
| | | | | Also, drop the now unused cmdutils_read_file(). There is no reason to have two functions doing essentially the same thing.
* cmdutils: Mark exit_program as av_noreturnLuca Barbato2014-03-28
|
* avplay: Accept cpuflags optionLuca Barbato2013-10-22
| | | | | | Quite useful for debugging. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* cmdutils: wrap exit explicitlyLuca Barbato2013-07-07
| | | | | | | | | | Some C runtime implementations deadlock when calling threading functions on the atexit() handler. Use a simpler wrapper similar to av_log to call the cleanup function before exit. Bug-Id: 523
* avtools: move media_type_string() from avprobe to cmdutils.Anton Khirnov2013-04-11
| | | | It will be useful outside of avprobe.
* avconv: print an error on applying options of the wrong type.Anton Khirnov2013-03-08
| | | | I.e. input options to output files or vice versa.
* avplay: switch to new refcounted frames APIAnton Khirnov2013-03-08
| | | | Remove now unused cmdutils get_buffer() implementation.
* avconv: pass libavresample options to AVFilterGraphJustin Ruggles2013-02-23
|
* cmdutils: pass number of groups to split_commandline().Anton Khirnov2012-12-19
| | | | | This makes the code simpler and avoids mixing designated and non-designated initializers in a potentially unsafe way in avconv.
* cmdutils: add a commandline pre-parser.Anton Khirnov2012-12-18
| | | | | | | | | | | | | It splits the commandline into a more convenient internal representation for further parsing. This will allow e.g. - processing global options first independently of their location on the commandline, eliminating ugly hacks for processing e.g. cpuflags first - better options validation and error reporting. It is now possible for the parser to know that it's applying an input option to an output file or vice versa and act accordingly.
* cmdutils: add a macro to simplify grow_array() calls.Anton Khirnov2012-12-18
|
* avconv_opt, cmdutils: Add missing function parameter DoxygenDiego Biurrun2012-10-31
|
* Replace PIX_FMT_* -> AV_PIX_FMT_*, PixelFormat -> AVPixelFormatAnton Khirnov2012-10-08
|
* Give all anonymously typedeffed structs in headers a nameDiego Biurrun2012-10-06
| | | | Anonymous structs cannot be forward declared and have no benefit.
* Use atexit() instead of defining a custom exit_program() interface.Diego Elio Pettenò2012-10-01
|
* avtools: remove the distinction between func_arg and func2_arg.Anton Khirnov2012-08-30
| | | | | | func2_arg is the same as func_arg, except it has one additional parameter. Change all func_arg callbacks to take that parameter (and ignore it).
* avconv: split printing "main options" into global and per-file.Anton Khirnov2012-08-19
|
* cmdutils: extend -h to allow printing codec details.Anton Khirnov2012-08-19
|
* cmdutils: change semantics of show_help_options() and document it.Anton Khirnov2012-08-19
| | | | | | | | Currently it takes a mask and value, such that options for which (flags & mask) == value. Change it to take required flags and forbidden flags instead. This is shorter and simpler to understand.
* avconv: deprecate -isync.Anton Khirnov2012-08-19
| | | | | | This option does not do anything. Also remove OPT_GRAB, since -isync is the last option using it.
* avtools: fix show_foo() signatures.Anton Khirnov2012-08-19
| | | | | show_foo() functions are declared as void show_foo(void), but called as int show_foo(const char*, const char*).
* cmdutils: refactor -codecs option.Anton Khirnov2012-08-18
| | | | | | | Make it print a list of AVCodecDescriptors. Add new -decoders and -encoders options that print lists of decoders and encoders respectively.
* Replace all CODEC_ID_* with AV_CODEC_ID_*Anton Khirnov2012-08-07
|
* attributes: add av_noreturnReinhard Tartler2012-07-03
| | | | | | | Also use it in the declaration of the various exit_program implementations in avtools. inspired by a clang-scan report.
* cmdutils: Pass the actual chosen encoder to filter_codec_optsMartin Storsjö2012-06-30
| | | | | | | This allows passing the right options to encoders when there's more than one encoder for a certain codec id. Signed-off-by: Martin Storsjö <martin@martin.st>
* avtools: move buffer management code from avconv to cmdutils.Anton Khirnov2012-06-05
| | | | It will be used by avplay.
* lavfi: add video buffer sink, and use it in avtoolsAnton Khirnov2012-05-09
| | | | | | Also add the public interface libavfilter/buffersink.h. Based on a commit by Stefano Sabatini.
* avconv: get output pixel format from lavfi.Anton Khirnov2012-04-15
| | | | | | | This way we don't require a clearly defined corresponding input stream. The result for the xwd test changes because rgb24 is now chosen instead of bgra.
* Read preset files with suffix .avpresetReinhard Tartler2012-03-18
| | | | | | The preset files have been renamed some time ago. CC: libav-stable@libav.org
* avconv: add -cpuflags option for setting supported cpuflags.Anton Khirnov2012-03-06
| | | | Useful for testing.
* Drop unnecessary prefix from *sink* variable and struct names.Diego Biurrun2012-01-25
|
* cosmetics: Rename ffsink to avsink.Diego Biurrun2012-01-19
|
* avprobe, cmdutils: K&R formatting cosmeticsGaurav Narula2012-01-18
|
* Fix a bunch of common typos.Diego Biurrun2011-12-11
|
* misc Doxygen markup improvementsDiego Biurrun2011-12-05
|
* cmdutils: Rename read_file to cmdutils_read_fileMartin Storsjö2011-10-31
| | | | | | | This symbol name clashes with a symbol in gnutls, if linking statically to that library. Signed-off-by: Martin Storsjö <martin@martin.st>
* cmdutils/avtools: simplify show_help() by using av_opt_child_class_next()Anton Khirnov2011-10-12
|
* doc: fix references to obsolete presets directories for avconv/ffmpegDiego Biurrun2011-10-11
|
* avtools: parse loglevel before all the other options.Anton Khirnov2011-09-26
| | | | | This way it can be applied to cmdutils too -- e.g. showing the banner and printing startup messages.
* avconv: move audio_sample_fmt to options context.Anton Khirnov2011-09-11
| | | | | 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-05
|
* avconv: move start_time, recording_time and input_ts_offset to options contextAnton Khirnov2011-09-04
|
* cmdutils: allow storing per-stream/chapter/.... options in a generic wayAnton Khirnov2011-09-04
|
* cmdutils: split per-option code out of parse_options().Anton Khirnov2011-09-04
| | | | | 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-04
| | | | This is the first step to removing the globals plague from avtools.
* cmdutils: declare only one pointer type in OptionDefAnton Khirnov2011-09-04
| | | | This will be useful in the following commit.
* cmdutils: move grow_array() from avconv to cmdutils.Anton Khirnov2011-09-04
|
* cmdutils: move exit_program() declaration to cmdutils from avconvAnton Khirnov2011-09-04
| | | | Allows cmdutils to call each tool's own cleanup function.
* cmdutils: allow precisely specifying a stream for AVOptions.Anton Khirnov2011-08-12
|
* cmdutils: add codec_opts parameter to setup_find_stream_info_opts()Stefano Sabatini2011-07-28
| | | | | | Avoid brittle and obfuscating reference to a global. Signed-off-by: Anton Khirnov <anton@khirnov.net>