Mercurial > libavcodec.hg
comparison opt.h @ 7205:68528efbc91f libavcodec
Document av_find_opt().
author | stefano |
---|---|
date | Sun, 06 Jul 2008 08:16:50 +0000 |
parents | 4a635a1859f0 |
children | d5a52b28c9de |
comparison
equal
deleted
inserted
replaced
7204:83ffe1bed06e | 7205:68528efbc91f |
---|---|
83 */ | 83 */ |
84 const char *unit; | 84 const char *unit; |
85 } AVOption; | 85 } AVOption; |
86 | 86 |
87 | 87 |
88 /** | |
89 * Looks for an option in \p obj. Looks only for the options which | |
90 * have the flags set as specified in \p mask and \p flags (that is, | |
91 * for which it is the case that opt->flags & mask == flags). | |
92 * | |
93 * @param[in] obj a pointer to a struct whose first element is a | |
94 * pointer to an #AVClass | |
95 * @param[in] name the name of the option to look for | |
96 * @param[in] unit the unit of the option to look for, or any if NULL | |
97 * @return a pointer to the option found, or NULL if no option | |
98 * has been found | |
99 */ | |
88 const AVOption *av_find_opt(void *obj, const char *name, const char *unit, int mask, int flags); | 100 const AVOption *av_find_opt(void *obj, const char *name, const char *unit, int mask, int flags); |
89 const AVOption *av_set_string(void *obj, const char *name, const char *val); | 101 const AVOption *av_set_string(void *obj, const char *name, const char *val); |
90 const AVOption *av_set_double(void *obj, const char *name, double n); | 102 const AVOption *av_set_double(void *obj, const char *name, double n); |
91 const AVOption *av_set_q(void *obj, const char *name, AVRational n); | 103 const AVOption *av_set_q(void *obj, const char *name, AVRational n); |
92 const AVOption *av_set_int(void *obj, const char *name, int64_t n); | 104 const AVOption *av_set_int(void *obj, const char *name, int64_t n); |