summaryrefslogtreecommitdiff
path: root/cmdutils.c
Commit message (Collapse)AuthorAge
* 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.
* Use the avstring.h locale-independent character type functionsReimar Döffinger2013-03-07
| | | | | | 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-28
| | | | | | | 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-25
| | | | avprobe and avserver use cmdutils and do not strictly require libavresample.
* avconv: pass libavresample options to AVFilterGraphJustin Ruggles2013-02-23
|
* get_buffer(): do not initialize the data.Anton Khirnov2013-02-15
| | | | | There may be more decoders that rely on this. Those should be found and fixed.
* qtrle: fix the topmost line for 1bitKostya Shishkov2013-02-06
| | | | | 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-06
| | | | CC:libav-stable@libav.org
* aasc: fix output for msrle compression.Anton Khirnov2013-02-06
| | | | | | The bottom line was invalid before. CC:libav-stable@libav.org
* cmdutils: remove ansi from the list of broken codecs.Anton Khirnov2013-02-06
| | | | | 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-06
| | | | | 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-03
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* 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: don't log an error in opt_default().Anton Khirnov2012-12-18
| | | | It results in spurious errors when using the new preparser.
* 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: split parse_option().Anton Khirnov2012-12-18
| | | | | | 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-04
| | | | | There is no point in duplicating this code in every get_buffer() implementation.
* cmdutils: Use a configure check for enabling CommandLineToArgvWMartin Storsjö2012-11-29
| | | | | | | | | 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-13
| | | | Deprecate avcodec_get_chroma_sub_sample.
* cmdutils: Conditionally compile libswscale-related bitsDiego Biurrun2012-10-29
| | | | This fixes compilation with libswscale disabled.
* Include sys/time.h before sys/resource.hMans Rullgard2012-10-23
| | | | | | | 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-12
|
* cmdutils_read_file: increment *size after writing the trailing \0Janne Grunau2012-10-09
| | | | Fixes CID732166.
* Replace PIX_FMT_* -> AV_PIX_FMT_*, PixelFormat -> AVPixelFormatAnton Khirnov2012-10-08
|
* Use atexit() instead of defining a custom exit_program() interface.Diego Elio Pettenò2012-10-01
|
* cmdutils: avoid setting data pointers to invalid values in alloc_buffer()Anton Khirnov2012-09-15
| | | | Fixes bug 352.
* 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).
* cmdutils: make -codecs print lossy/lossless flags.Anton Khirnov2012-08-30
|
* cmdutils: fix a memleak when specifying an option twice.Anton Khirnov2012-08-24
|
* avconv: split printing "main options" into global and per-file.Anton Khirnov2012-08-19
|
* avtools: add -h demuxer/muxerAnton 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.
* avtools: move some newlines to show_help_options().Anton Khirnov2012-08-19
| | | | Don't require every caller to supply them.
* 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
|
* Print full compiler identification, not only version numberMans Rullgard2012-07-19
| | | | | | This provides a more precise identification of the compiler used. Signed-off-by: Mans Rullgard <mans@mansr.com>
* cmutils: include shellapi.h on Win32 (for CommandLineToArgvW).Ronald S. Bultje2012-07-07
| | | | | | | | | | This is required for CommandLineToArgvW. Normally, shellapi.h is included implicitly by windows.h, but if we define WIN32_LEAN_AND_MEAN (or some of the other earlier headers have included windows.h with that option), windows.h doesn't include this one. Thus explicitly include the headers we really need, for clarity and compatibility.
* 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.
* cmdutils: Add fallback case to switch in check_stream_specifier().Diego Biurrun2012-05-10
| | | | | This fixes the warning: cmdutils.c:897: warning: ‘type’ may be used uninitialized in this function
* 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: use libavresampleJustin Ruggles2012-04-24
|
* 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.
* cmdutils: use new avcodec_is_decoder/encoder() functions.Anton Khirnov2012-03-04
| | | | Fixes listing encoders.
* Remove libpostproc.Diego Biurrun2012-02-23
| | | | | | | | 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