summaryrefslogtreecommitdiff
path: root/libavutil/opt.c
Commit message (Collapse)AuthorAge
* AVOptions: rename FF_OPT_TYPE_* => AV_OPT_TYPE_*Anton Khirnov2011-10-12
|
* Remove all uses of deprecated AVOptions API.Anton Khirnov2011-10-12
|
* AVOptions: add av_opt_next, deprecate av_next_option.Anton Khirnov2011-10-12
| | | | Just for naming consistency, no functional changes.
* AVOptions: add functions for evaluating option strings.Anton Khirnov2011-10-12
|
* AVOptions: split get_number().Anton Khirnov2011-10-12
| | | | | Split actual writing to read_number() in the same way as write_number(). Allows set_string_number() to write to a caller-provided destination.
* AVOptions: add av_opt_get*, deprecate av_get*.Anton Khirnov2011-10-12
| | | | | New functions can get values from child objects, properly report error codes and have consistent naming and signatures.
* AVOptions: add av_opt_set*().Anton Khirnov2011-10-12
| | | | | | | Deprecate av_set_* New functions support setting values on children, return error codes instead of options and have consistent naming and signatures.
* AVOptions: add new API for enumerating children.Anton Khirnov2011-10-12
| | | | | | | | | This will allow the caller to enumerate child contexts in a generic way and since the API is recursive, it also allows for deeper nesting (e.g. AVFormatContext->AVIOContext->URLContext) This will also allow the new setting/reading API to transparently apply to children contexts.
* AVOptions: refactor set_number/write_numberAnton Khirnov2011-10-10
| | | | | | write_number() does the actual writing of the supplied number to destination. Move finding the option and choosing destination address out of it.
* AVOptions: cosmetics, rename static av_set_number2() to write_number().Anton Khirnov2011-10-10
|
* AVOptions: cosmetics, move and rename static av_set_number().Anton Khirnov2011-10-10
|
* AVOptions: split av_set_string3 into opt type-specific functionsAnton Khirnov2011-10-10
| | | | | | Also stop attempting to honor the alloc parameter, as things break horribly in that case. It will be removed in upcoming successor to av_set_string3.
* AVOptions: remove AVOption.offset <= 0 checksAnton Khirnov2011-09-07
| | | | | They will only ever be <=0 if the option is broken, in which case this check is hiding a bug.
* AVOptions: deprecate av_opt_set_defaults2Anton Khirnov2011-09-07
| | | | | | It's a hack which was created to allow for multiple options with different defaults to refer to same field (e.g. 'b' vs 'ab'). There is no need for it anymore.
* AVOptions: move doxy for av_opt_set_defaults() from opt.c to opt.hAnton Khirnov2011-09-07
| | | | Also change it to be more readable.
* AVOptions: drop av_ prefix from static av_get_number().Anton Khirnov2011-09-01
|
* AVOptions: in av_opt_find() don't return named constants unless unit is ↵Anton Khirnov2011-07-08
| | | | | | | | | specified. That is, unless the caller explicitly asks for them. Prevents conflict between e.g. the 'loop' option in img2 demuxer and 'loop' flag in AVCodecContext.
* Do not include log.h in avutil.hMans Rullgard2011-07-03
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Remove return statements following infinite loops without breakMans Rullgard2011-07-03
| | | | | | | These statements cannot be reached and are thus not needed. This removes a number of compiler warnings. Signed-off-by: Mans Rullgard <mans@mansr.com>
* opt-test: Add missing braces to silence compiler warnings.Diego Biurrun2011-06-30
| | | | libavutil/opt.c:604:1: warning: missing braces around initializer [-Wmissing-braces]
* AVOptions: add av_opt_find() as a replacement for av_find_opt.Anton Khirnov2011-06-16
|
* AVOptions: add av_opt_set_dict() mapping a dictionary struct to a context.Anton Khirnov2011-06-16
| | | | This way the caller can pass all the options in one nice package.
* avoptions: Add an av_opt_flag_is_set function for inspecting flag fieldsMartin Storsjö2011-06-10
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* AVOptions: add av_opt_free convenience function.Anton Khirnov2011-06-05
|
* AVOptions: set string default values.Anton Khirnov2011-05-26
|
* avoptions: Return explicitly NAN or {0,0} if the option isn't foundMartin Storsjö2011-05-25
| | | | | | | | | | This actually matches what av_get_double did earlier, the 0.0/0.0 division was intentional, for producing NAN. Still keeping the check for the return value from av_get_number, for clarity. Signed-off-by: Martin Storsjö <martin@martin.st>
* avoptions: Check the return value from av_get_numberMartin Storsjö2011-05-22
| | | | | | | This avoids doing a division by zero if the option wasn't found, or wasn't an option of an appropriate type. Signed-off-by: Martin Storsjö <martin@martin.st>
* AVOptions: make default_val a union, as proposed in AVOption2.Anton Khirnov2011-05-10
| | | | This breaks API and ABI.
* error: add error code AVERROR_OPTION_NOT_FOUND, and use it in opt.cStefano Sabatini2011-04-21
| | | | | | | | The new error code is better than AVERROR(ENOENT), which has a completely different semantics ("No such file or directory"). Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-19
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Use hierarchic names convention (prefix them with av_expr) for theStefano Sabatini2010-11-08
| | | | | | | | | eval API. More grep-friendly and more consistent with the rest of the FFmpeg API. Originally committed as revision 25708 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add missing case for FF_OPT_TYPE_DOUBLE in av_opt_set_defaults2().Stefano Sabatini2010-09-29
| | | | Originally committed as revision 25265 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move av_set_options_string() from libavfilter to libavutil.Stefano Sabatini2010-09-27
| | | | Originally committed as revision 25236 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Simplify include, since opt.c is now in libavutil there is no needStefano Sabatini2010-09-27
| | | | | | to use the library path prefix for eval.h. Originally committed as revision 25220 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Cosmetics: apply misc style fixes.Stefano Sabatini2010-09-27
| | | | Originally committed as revision 25219 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move AVOptions from libavcodec to libavutilMichael Niedermayer2010-09-26
Originally committed as revision 25210 to svn://svn.ffmpeg.org/ffmpeg/trunk