00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #include "avcodec.h"
00023 #include "opt.h"
00024
00025 #if LIBAVCODEC_VERSION_MAJOR < 53 && CONFIG_SHARED && HAVE_SYMVER
00026
00027 FF_SYMVER(const AVOption *, av_find_opt, (void *obj, const char *name, const char *unit, int mask, int flags), "LIBAVCODEC_52"){
00028 return av_find_opt(obj, name, unit, mask, flags);
00029 }
00030 FF_SYMVER(int, av_set_string3, (void *obj, const char *name, const char *val, int alloc, const AVOption **o_out), "LIBAVCODEC_52"){
00031 return av_set_string3(obj, name, val, alloc, o_out);
00032 }
00033 FF_SYMVER(const AVOption *, av_set_double, (void *obj, const char *name, double n), "LIBAVCODEC_52"){
00034 return av_set_double(obj, name, n);
00035 }
00036 FF_SYMVER(const AVOption *, av_set_q, (void *obj, const char *name, AVRational n), "LIBAVCODEC_52"){
00037 return av_set_q(obj, name, n);
00038 }
00039 FF_SYMVER(const AVOption *, av_set_int, (void *obj, const char *name, int64_t n), "LIBAVCODEC_52"){
00040 return av_set_int(obj, name, n);
00041 }
00042 FF_SYMVER(double, av_get_double, (void *obj, const char *name, const AVOption **o_out), "LIBAVCODEC_52"){
00043 return av_get_double(obj, name, o_out);
00044 }
00045 FF_SYMVER(AVRational, av_get_q, (void *obj, const char *name, const AVOption **o_out), "LIBAVCODEC_52"){
00046 return av_get_q(obj, name, o_out);
00047 }
00048 FF_SYMVER(int64_t, av_get_int, (void *obj, const char *name, const AVOption **o_out), "LIBAVCODEC_52"){
00049 return av_get_int(obj, name, o_out);
00050 }
00051 FF_SYMVER(const char *, av_get_string, (void *obj, const char *name, const AVOption **o_out, char *buf, int buf_len), "LIBAVCODEC_52"){
00052 return av_get_string(obj, name, o_out, buf, buf_len);
00053 }
00054 FF_SYMVER(const AVOption *, av_next_option, (void *obj, const AVOption *last), "LIBAVCODEC_52"){
00055 return av_next_option(obj, last);
00056 }
00057 FF_SYMVER(int, av_opt_show2, (void *obj, void *av_log_obj, int req_flags, int rej_flags), "LIBAVCODEC_52"){
00058 return av_opt_show2(obj, av_log_obj, req_flags, rej_flags);
00059 }
00060 FF_SYMVER(void, av_opt_set_defaults, (void *s), "LIBAVCODEC_52"){
00061 return av_opt_set_defaults(s);
00062 }
00063 FF_SYMVER(void, av_opt_set_defaults2, (void *s, int mask, int flags), "LIBAVCODEC_52"){
00064 return av_opt_set_defaults2(s, mask, flags);
00065 }
00066 #endif
00067
00068 #if FF_API_SET_STRING_OLD
00069 const AVOption *av_set_string2(void *obj, const char *name, const char *val, int alloc){
00070 const AVOption *o;
00071 if (av_set_string3(obj, name, val, alloc, &o) < 0)
00072 return NULL;
00073 return o;
00074 }
00075
00076 const AVOption *av_set_string(void *obj, const char *name, const char *val){
00077 const AVOption *o;
00078 if (av_set_string3(obj, name, val, 0, &o) < 0)
00079 return NULL;
00080 return o;
00081 }
00082 #endif
00083
00084 #if FF_API_OPT_SHOW
00085 int av_opt_show(void *obj, void *av_log_obj){
00086 return av_opt_show2(obj, av_log_obj,
00087 AV_OPT_FLAG_ENCODING_PARAM|AV_OPT_FLAG_DECODING_PARAM, 0);
00088 }
00089 #endif