summaryrefslogtreecommitdiffstats
path: root/cmdutils.c
Commit message (Collapse)AuthorAgeFilesLines
* cmdutils: update copyright year to 2014.Johan Andersson2014-01-051-1/+1
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* Add missing #includes for *INT64_MAX and *INT64_CDiego Biurrun2013-11-231-0/+1
|
* avplay: Accept cpuflags optionLuca Barbato2013-10-221-0/+12
| | | | | | Quite useful for debugging. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* cmdutils: Only do the windows-specific commandline parsing on _WIN32Diogo Franco2013-08-081-1/+4
| | | | | | | | | | | | | Fixes commandline parsing on Cygwin (on 64 bit, and on very recent 32 bit), where the configure check does find the CommandLineToArgvW function (since it exists in the link libraries and in the headers), but whose GetCommandLineW() only returns the application's path. (This is due to a cygwin internal optimization, see http://cygwin.com/ml/cygwin/2013-07/msg00538.html for details.) Arguments are only given through main's argc/argv, and they're already UTF-8. Signed-off-by: Martin Storsjö <martin@martin.st>
* cmdutils: wrap exit explicitlyLuca Barbato2013-07-071-8/+23
| | | | | | | | | | 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
* lavfi: add a slice threading infrastructureAnton Khirnov2013-05-241-0/+3
| | | | Mostly based on libavcodec's
* pixdesc: rename PIX_FMT_* flags to AV_PIX_FMT_FLAG_*Anton Khirnov2013-05-151-5/+5
|
* cmdutils: Fix build with lavfi disabledAnton Khirnov2013-04-161-0/+4
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* cmdutils: allow -h filter=<name> to print information about a filter.Anton Khirnov2013-04-111-0/+40
|
* avtools: move media_type_string() from avprobe to cmdutils.Anton Khirnov2013-04-111-0/+12
| | | | It will be useful outside of avprobe.
* lavfi: change the filter registering system to match the other librariesAnton Khirnov2013-04-111-3/+3
| | | | Removes an arbitrary hardcoded limit on the number of filters.
* avconv: print an error on applying options of the wrong type.Anton Khirnov2013-03-081-0/+10
| | | | I.e. input options to output files or vice versa.
* avplay: switch to new refcounted frames APIAnton Khirnov2013-03-081-126/+0
| | | | Remove now unused cmdutils get_buffer() implementation.
* Use the avstring.h locale-independent character type functionsReimar Döffinger2013-03-071-1/+1
| | | | | | Make sure the behavior does not change with the locale. Signed-off-by: Martin Storsjö <martin@martin.st>
* cmdutils: Allow calling filter_codec_opts without a set encoderMartin Storsjö2013-02-281-3/+1
| | | | | | | In this case, no encoder specific options are filtered, only options specific to that codec type in general. Signed-off-by: Martin Storsjö <martin@martin.st>
* cmdutils: only use libavresample when it is enabledJustin Ruggles2013-02-251-0/+4
| | | | avprobe and avserver use cmdutils and do not strictly require libavresample.
* avconv: pass libavresample options to AVFilterGraphJustin Ruggles2013-02-231-2/+10
|
* get_buffer(): do not initialize the data.Anton Khirnov2013-02-151-5/+0
| | | | | There may be more decoders that rely on this. Those should be found and fixed.
* qtrle: fix the topmost line for 1bitKostya Shishkov2013-02-061-1/+0
| | | | | Signed-off-by: Anton Khirnov <anton@khirnov.net> CC:libav-stable@libav.org
* fraps: fix off-by one bug for version 1.Anton Khirnov2013-02-061-1/+1
| | | | CC:libav-stable@libav.org
* aasc: fix output for msrle compression.Anton Khirnov2013-02-061-1/+1
| | | | | | The bottom line was invalid before. CC:libav-stable@libav.org
* cmdutils: remove ansi from the list of broken codecs.Anton Khirnov2013-02-061-1/+1
| | | | | It's not relying on get_buffer() initializing the frame since 99e36ddd3ee57c38e6ca9e240ba518848487f849.
* cdgraphics: do not rely on get_buffer() initializing the frame.Anton Khirnov2013-02-061-1/+1
| | | | | Setting it to zero (instead of 128, as the default get_buffer() does) also produces more correctly-looking output.
* cmdutils: update copyright year to 2013Johan Andersson2013-01-031-1/+1
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* cmdutils: pass number of groups to split_commandline().Anton Khirnov2012-12-191-13/+11
| | | | | This makes the code simpler and avoids mixing designated and non-designated initializers in a potentially unsafe way in avconv.
* cmdutils: don't log an error in opt_default().Anton Khirnov2012-12-181-1/+0
| | | | It results in spurious errors when using the new preparser.
* cmdutils: add a commandline pre-parser.Anton Khirnov2012-12-181-0/+241
| | | | | | | | | | | | | 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: split parse_option().Anton Khirnov2012-12-181-30/+40
| | | | | | Separate the code that searches for the option to use and the code that actually writes it. The writing code will be reused by the new options parser.
* lavc: set frame properties in ff_get_buffer().Anton Khirnov2012-12-041-5/+0
| | | | | There is no point in duplicating this code in every get_buffer() implementation.
* cmdutils: Use a configure check for enabling CommandLineToArgvWMartin Storsjö2012-11-291-2/+2
| | | | | | | | | This simplifies the condition to avoid hardcoding the systems where the function exists. This also simplifies support for newer Windows API subsets where this function doesn't exist, such as Windows Phone 8 and the "metro" API subset of Windows 8. Signed-off-by: Martin Storsjö <martin@martin.st>
* pixdesc: add av_pix_fmt_get_chroma_sub_sampleLuca Barbato2012-11-131-1/+3
| | | | Deprecate avcodec_get_chroma_sub_sample.
* cmdutils: Conditionally compile libswscale-related bitsDiego Biurrun2012-10-291-1/+6
| | | | This fixes compilation with libswscale disabled.
* Include sys/time.h before sys/resource.hMans Rullgard2012-10-231-0/+1
| | | | | | | Some systems require sys/time.h being explicitly included before sys/resource.h. The configure check already does this. Signed-off-by: Mans Rullgard <mans@mansr.com>
* tools: do not use av_pix_fmt_descriptors directly.Anton Khirnov2012-10-121-5/+11
|
* cmdutils_read_file: increment *size after writing the trailing \0Janne Grunau2012-10-091-1/+1
| | | | Fixes CID732166.
* Replace PIX_FMT_* -> AV_PIX_FMT_*, PixelFormat -> AVPixelFormatAnton Khirnov2012-10-081-4/+4
|
* Use atexit() instead of defining a custom exit_program() interface.Diego Elio Pettenò2012-10-011-7/+7
|
* cmdutils: avoid setting data pointers to invalid values in alloc_buffer()Anton Khirnov2012-09-151-1/+1
| | | | Fixes bug 352.
* avtools: remove the distinction between func_arg and func2_arg.Anton Khirnov2012-08-301-18/+17
| | | | | | 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).
* cmdutils: make -codecs print lossy/lossless flags.Anton Khirnov2012-08-301-7/+11
|
* cmdutils: fix a memleak when specifying an option twice.Anton Khirnov2012-08-241-0/+1
|
* avconv: split printing "main options" into global and per-file.Anton Khirnov2012-08-191-1/+2
|
* avtools: add -h demuxer/muxerAnton Khirnov2012-08-191-0/+55
|
* cmdutils: extend -h to allow printing codec details.Anton Khirnov2012-08-191-1/+119
|
* cmdutils: change semantics of show_help_options() and document it.Anton Khirnov2012-08-191-13/+16
| | | | | | | | 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.
* avtools: move some newlines to show_help_options().Anton Khirnov2012-08-191-1/+2
| | | | Don't require every caller to supply them.
* avtools: fix show_foo() signatures.Anton Khirnov2012-08-191-8/+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-181-66/+108
| | | | | | | 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-071-1/+1
|
* Print full compiler identification, not only version numberMans Rullgard2012-07-191-2/+2
| | | | | | This provides a more precise identification of the compiler used. Signed-off-by: Mans Rullgard <mans@mansr.com>
OpenPOWER on IntegriCloud