comparison opt.h @ 1028:5dbb12a37c3d libavutil tip

Move av_set_options_string() from libavfilter to libavutil.
author stefano
date Mon, 27 Sep 2010 22:09:53 +0000
parents 7cfd5ddf993b
children
comparison
equal deleted inserted replaced
1027:7d79d41d152e 1028:5dbb12a37c3d
202 int av_opt_show2(void *obj, void *av_log_obj, int req_flags, int rej_flags); 202 int av_opt_show2(void *obj, void *av_log_obj, int req_flags, int rej_flags);
203 203
204 void av_opt_set_defaults(void *s); 204 void av_opt_set_defaults(void *s);
205 void av_opt_set_defaults2(void *s, int mask, int flags); 205 void av_opt_set_defaults2(void *s, int mask, int flags);
206 206
207 /**
208 * Parse the key/value pairs list in opts. For each key/value pair
209 * found, stores the value in the field in ctx that is named like the
210 * key. ctx must be an AVClass context, storing is done using
211 * AVOptions.
212 *
213 * @param key_val_sep a 0-terminated list of characters used to
214 * separate key from value
215 * @param pairs_sep a 0-terminated list of characters used to separate
216 * two pairs from each other
217 * @return the number of successfully set key/value pairs, or a negative
218 * value corresponding to an AVERROR code in case of error:
219 * AVERROR(EINVAL) if opts cannot be parsed,
220 * the error code issued by av_set_string3() if a key/value pair
221 * cannot be set
222 */
223 int av_set_options_string(void *ctx, const char *opts,
224 const char *key_val_sep, const char *pairs_sep);
225
207 #endif /* AVUTIL_OPT_H */ 226 #endif /* AVUTIL_OPT_H */