Commit a7e2b2cc authored by Anton Khirnov's avatar Anton Khirnov

AVOptions: move doxy for av_opt_set_defaults() from opt.c to opt.h

Also change it to be more readable.
parent 0962f23b
...@@ -414,12 +414,6 @@ int av_opt_show2(void *obj, void *av_log_obj, int req_flags, int rej_flags) ...@@ -414,12 +414,6 @@ int av_opt_show2(void *obj, void *av_log_obj, int req_flags, int rej_flags)
return 0; return 0;
} }
/** Set the values of the AVCodecContext or AVFormatContext structure.
* They are set to the defaults specified in the according AVOption options
* array default_val field.
*
* @param s AVCodecContext or AVFormatContext for which the defaults will be set
*/
void av_opt_set_defaults2(void *s, int mask, int flags) void av_opt_set_defaults2(void *s, int mask, int flags)
{ {
const AVOption *opt = NULL; const AVOption *opt = NULL;
......
...@@ -160,6 +160,11 @@ const AVOption *av_next_option(void *obj, const AVOption *last); ...@@ -160,6 +160,11 @@ const AVOption *av_next_option(void *obj, const AVOption *last);
*/ */
int av_opt_show2(void *obj, void *av_log_obj, int req_flags, int rej_flags); int av_opt_show2(void *obj, void *av_log_obj, int req_flags, int rej_flags);
/**
* Set the values of all AVOption fields to their default values.
*
* @param s an AVOption-enabled struct (its first member must be a pointer to AVClass)
*/
void av_opt_set_defaults(void *s); void av_opt_set_defaults(void *s);
void av_opt_set_defaults2(void *s, int mask, int flags); void av_opt_set_defaults2(void *s, int mask, int flags);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment