• Main Page
  • Related Pages
  • Modules
  • Data Structures
  • Files
  • Examples
  • File List
  • Globals

libavcodec/opt.c

Go to the documentation of this file.
00001 /*
00002  * AVOptions ABI compatibility wrapper
00003  * Copyright (c) 2010 Michael Niedermayer <michaelni@gmx.at>
00004  *
00005  * This file is part of Libav.
00006  *
00007  * Libav is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU Lesser General Public
00009  * License as published by the Free Software Foundation; either
00010  * version 2.1 of the License, or (at your option) any later version.
00011  *
00012  * Libav is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015  * Lesser General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU Lesser General Public
00018  * License along with Libav; if not, write to the Free Software
00019  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
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

Generated on Fri Feb 22 2013 07:24:28 for FFmpeg by  doxygen 1.7.1