aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2008-07-06 08:16:50 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2008-07-06 08:16:50 +0000
commited76af08a4405e64aaa85fcc703684fd8f0a5aab (patch)
tree58687d0aa62d9f8b1c579a2b043c2ba1c6e98f52 /libavcodec
parent7246d6311e6ceff39738359690364ac1d423ce1e (diff)
downloadffmpeg-ed76af08a4405e64aaa85fcc703684fd8f0a5aab.tar.gz
Document av_find_opt().
Originally committed as revision 14083 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/opt.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/libavcodec/opt.h b/libavcodec/opt.h
index cbb7b565c1..cbcdedc3c4 100644
--- a/libavcodec/opt.h
+++ b/libavcodec/opt.h
@@ -85,6 +85,18 @@ typedef struct AVOption {
} AVOption;
+/**
+ * Looks for an option in \p obj. Looks only for the options which
+ * have the flags set as specified in \p mask and \p flags (that is,
+ * for which it is the case that opt->flags & mask == flags).
+ *
+ * @param[in] obj a pointer to a struct whose first element is a
+ * pointer to an #AVClass
+ * @param[in] name the name of the option to look for
+ * @param[in] unit the unit of the option to look for, or any if NULL
+ * @return a pointer to the option found, or NULL if no option
+ * has been found
+ */
const AVOption *av_find_opt(void *obj, const char *name, const char *unit, int mask, int flags);
const AVOption *av_set_string(void *obj, const char *name, const char *val);
const AVOption *av_set_double(void *obj, const char *name, double n);