comparison opt.h @ 9642:d706b300b89f libavcodec

Document av_set_string3() returned error codes.
author stefano
date Thu, 14 May 2009 19:03:22 +0000
parents e9d9d946f213
children 2887f410011f
comparison
equal deleted inserted replaced
9641:04d77f7cc7fd 9642:d706b300b89f
134 * @param[out] o_out if non-NULL put here a pointer to the AVOption 134 * @param[out] o_out if non-NULL put here a pointer to the AVOption
135 * found 135 * found
136 * @param alloc when 1 then the old value will be av_freed() and the 136 * @param alloc when 1 then the old value will be av_freed() and the
137 * new av_strduped() 137 * new av_strduped()
138 * when 0 then no av_free() nor av_strdup() will be used 138 * when 0 then no av_free() nor av_strdup() will be used
139 * @return 0 if the value has been set, an AVERROR* error code if no 139 * @return 0 if the value has been set, or an AVERROR code in case of
140 * matching option exists, or if the value \p val is not valid 140 * error:
141 * AVERROR(ENOENT) if no matching option exists
142 * AVERROR(ERANGE) if the value is out of range
143 * AVERROR(EINVAL) if the value is not valid
141 */ 144 */
142 int av_set_string3(void *obj, const char *name, const char *val, int alloc, const AVOption **o_out); 145 int av_set_string3(void *obj, const char *name, const char *val, int alloc, const AVOption **o_out);
143 146
144 const AVOption *av_set_double(void *obj, const char *name, double n); 147 const AVOption *av_set_double(void *obj, const char *name, double n);
145 const AVOption *av_set_q(void *obj, const char *name, AVRational n); 148 const AVOption *av_set_q(void *obj, const char *name, AVRational n);