diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2008-07-27 20:55:56 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2008-07-27 20:55:56 +0000 |
commit | b211d3ae4747dd3e55eb75f9617418d2e4350af1 (patch) | |
tree | 2626f8e879099b9ced49785bd18b9f08e96d3230 /libavcodec/opt.h | |
parent | 59da0390dc2bd2722665305d1d22c4ea10cfe049 (diff) | |
download | ffmpeg-b211d3ae4747dd3e55eb75f9617418d2e4350af1.tar.gz |
Complete documentation for av_set_string().
Originally committed as revision 14436 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/opt.h')
-rw-r--r-- | libavcodec/opt.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/libavcodec/opt.h b/libavcodec/opt.h index 26039f49b3..4add25c5f8 100644 --- a/libavcodec/opt.h +++ b/libavcodec/opt.h @@ -99,10 +99,30 @@ typedef struct AVOption { */ const AVOption *av_find_opt(void *obj, const char *name, const char *unit, int mask, int flags); +/** + * @see av_set_string2() + */ attribute_deprecated const AVOption *av_set_string(void *obj, const char *name, const char *val); /** * Sets the field of obj with the given name to value. + * + * @param[in] obj A struct whose first element is a pointer to an + * AVClass. + * @param[in] name the name of the field to set + * @param[in] val The value to set. If the field is not of a string + * type, then the given string is parsed. + * SI postfixes and some named scalars are supported. + * If the field is of a numeric type, it has to be a numeric or named + * scalar. Behavior with more than one scalar and +- infix operators + * is undefined. + * If the field is of a flags type, it has to be a sequence of numeric + * scalars or named flags separated by '+' or '-'. Prefixing a flag + * with '+' causes it to be set without affecting the other flags; + * similarly, '-' unsets a flag. + * @return a pointer to the AVOption corresponding to the field set or + * NULL if no matching AVOption exists, or if the value \p val is not + * valid * @param alloc when 1 then the old value will be av_freed() and the * new av_strduped() * when 0 then no av_free() nor av_strdup() will be used |