summaryrefslogtreecommitdiff
path: root/cmdutils.c
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* cmutils: include shellapi.h on Win32 (for CommandLineToArgvW).Ronald S. Bultje2012-07-071-0/+1
| | | | | | | | | | 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-301-4/+5
| | | | | | | 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-051-0/+130
| | | | It will be used by avplay.
* cmdutils: Add fallback case to switch in check_stream_specifier().Diego Biurrun2012-05-101-0/+2
| | | | | 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-091-68/+0
| | | | | | Also add the public interface libavfilter/buffersink.h. Based on a commit by Stefano Sabatini.
* avconv: use libavresampleJustin Ruggles2012-04-241-1/+4
|
* avconv: get output pixel format from lavfi.Anton Khirnov2012-04-151-2/+4
| | | | | | | 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-181-2/+2
| | | | | | 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-061-5/+2
| | | | Useful for testing.
* cmdutils: use new avcodec_is_decoder/encoder() functions.Anton Khirnov2012-03-041-2/+2
| | | | Fixes listing encoders.
* 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.