00001
00002
00003
00004
00005 #ifndef AVOPT_H
00006 #define AVOPT_H
00007
00008 enum AVOptionType{
00009 FF_OPT_TYPE_FLAGS,
00010 FF_OPT_TYPE_INT,
00011 FF_OPT_TYPE_INT64,
00012 FF_OPT_TYPE_DOUBLE,
00013 FF_OPT_TYPE_FLOAT,
00014 FF_OPT_TYPE_STRING,
00015 FF_OPT_TYPE_RATIONAL,
00016 FF_OPT_TYPE_CONST=128,
00017 };
00018
00019 typedef struct AVOption {
00020 const char *name;
00021
00022
00023 const char *help;
00024 int offset;
00025 enum AVOptionType type;
00026
00027 double default_val;
00028 double min;
00029 double max;
00030
00031 int flags;
00032 #define AV_OPT_FLAG_ENCODING_PARAM 1
00033 #define AV_OPT_FLAG_DECODING_PARAM 2
00034 #define AV_OPT_FLAG_METADATA 4
00035 #define AV_OPT_FLAG_AUDIO_PARAM 8
00036 #define AV_OPT_FLAG_VIDEO_PARAM 16
00037 #define AV_OPT_FLAG_SUBTITLE_PARAM 32
00038
00039 const char *unit;
00040 } AVOption;
00041
00042 const AVOption *av_set_string(void *obj, const char *name, const char *val);
00043 const AVOption *av_set_double(void *obj, const char *name, double n);
00044 const AVOption *av_set_q(void *obj, const char *name, AVRational n);
00045 const AVOption *av_set_int(void *obj, const char *name, int64_t n);
00046 double av_get_double(void *obj, const char *name, const AVOption **o_out);
00047 AVRational av_get_q(void *obj, const char *name, const AVOption **o_out);
00048 int64_t av_get_int(void *obj, const char *name, const AVOption **o_out);
00049 const char *av_get_string(void *obj, const char *name, const AVOption **o_out, char *buf, int buf_len);
00050 const AVOption *av_next_option(void *obj, const AVOption *last);
00051 int av_opt_show(void *obj, void *av_log_obj);
00052 void av_opt_set_defaults(void *s);
00053
00054 #endif