Libav 0.7.1
|
00001 /* 00002 * Copyright (c) 2002 Michael Niedermayer <michaelni@gmx.at> 00003 * 00004 * This file is part of Libav. 00005 * 00006 * Libav is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU Lesser General Public 00008 * License as published by the Free Software Foundation; either 00009 * version 2.1 of the License, or (at your option) any later version. 00010 * 00011 * Libav is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 * Lesser General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU Lesser General Public 00017 * License along with Libav; if not, write to the Free Software 00018 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00019 */ 00020 00026 #ifndef AVUTIL_EVAL_H 00027 #define AVUTIL_EVAL_H 00028 00029 #include "avutil.h" 00030 00031 typedef struct AVExpr AVExpr; 00032 00051 int av_expr_parse_and_eval(double *res, const char *s, 00052 const char * const *const_names, const double *const_values, 00053 const char * const *func1_names, double (* const *funcs1)(void *, double), 00054 const char * const *func2_names, double (* const *funcs2)(void *, double, double), 00055 void *opaque, int log_offset, void *log_ctx); 00056 00074 int av_expr_parse(AVExpr **expr, const char *s, 00075 const char * const *const_names, 00076 const char * const *func1_names, double (* const *funcs1)(void *, double), 00077 const char * const *func2_names, double (* const *funcs2)(void *, double, double), 00078 int log_offset, void *log_ctx); 00079 00087 double av_expr_eval(AVExpr *e, const double *const_values, void *opaque); 00088 00092 void av_expr_free(AVExpr *e); 00093 00111 double av_strtod(const char *numstr, char **tail); 00112 00113 #endif /* AVUTIL_EVAL_H */