[FFmpeg-cvslog] lavu: remove disabled FF_API_OLD_EVAL_NAMES code
Stefano Sabatini
git at videolan.org
Wed Nov 7 23:22:34 CET 2012
ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Sun Nov 4 12:01:22 2012 +0100| [1c6962dc20dc902c27afe0d0f62327b941662ed2] | committer: Stefano Sabatini
lavu: remove disabled FF_API_OLD_EVAL_NAMES code
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1c6962dc20dc902c27afe0d0f62327b941662ed2
---
libavutil/eval.c | 34 ----------------------------------
libavutil/eval.h | 33 ---------------------------------
libavutil/version.h | 3 ---
3 files changed, 70 deletions(-)
diff --git a/libavutil/eval.c b/libavutil/eval.c
index dbad7c1..0d6bd15 100644
--- a/libavutil/eval.c
+++ b/libavutil/eval.c
@@ -659,40 +659,6 @@ int av_expr_parse_and_eval(double *d, const char *s,
return isnan(*d) ? AVERROR(EINVAL) : 0;
}
-#if FF_API_OLD_EVAL_NAMES
-// LCOV_EXCL_START
-int av_parse_expr(AVExpr **expr, const char *s,
- const char * const *const_names,
- const char * const *func1_names, double (* const *funcs1)(void *, double),
- const char * const *func2_names, double (* const *funcs2)(void *, double, double),
- int log_offset, void *log_ctx)
-{
- return av_expr_parse(expr, s, const_names, func1_names, funcs1, func2_names, funcs2,
- log_offset, log_ctx);
-}
-
-double av_eval_expr(AVExpr *e, const double *const_values, void *opaque)
-{
- return av_expr_eval(e, const_values, opaque);
-}
-
-int av_parse_and_eval_expr(double *res, const char *s,
- const char * const *const_names, const double *const_values,
- const char * const *func1_names, double (* const *funcs1)(void *, double),
- const char * const *func2_names, double (* const *funcs2)(void *, double, double),
- void *opaque, int log_offset, void *log_ctx)
-{
- return av_expr_parse_and_eval(res, s, const_names, const_values, func1_names, funcs1, func2_names, funcs2,
- opaque, log_offset, log_ctx);
-}
-
-void av_free_expr(AVExpr *e)
-{
- av_expr_free(e);
-}
-// LCOV_EXCL_STOP
-#endif /* FF_API_OLD_EVAL_NAMES */
-
#ifdef TEST
// LCOV_EXCL_START
#undef printf
diff --git a/libavutil/eval.h b/libavutil/eval.h
index 22fa121..a1d1fe3 100644
--- a/libavutil/eval.h
+++ b/libavutil/eval.h
@@ -91,39 +91,6 @@ double av_expr_eval(AVExpr *e, const double *const_values, void *opaque);
*/
void av_expr_free(AVExpr *e);
-#if FF_API_OLD_EVAL_NAMES
-/**
- * @deprecated Deprecated in favor of av_expr_parse_and_eval().
- */
-attribute_deprecated
-int av_parse_and_eval_expr(double *res, const char *s,
- const char * const *const_names, const double *const_values,
- const char * const *func1_names, double (* const *funcs1)(void *, double),
- const char * const *func2_names, double (* const *funcs2)(void *, double, double),
- void *opaque, int log_offset, void *log_ctx);
-
-/**
- * @deprecated Deprecated in favor of av_expr_parse().
- */
-attribute_deprecated
-int av_parse_expr(AVExpr **expr, const char *s,
- const char * const *const_names,
- const char * const *func1_names, double (* const *funcs1)(void *, double),
- const char * const *func2_names, double (* const *funcs2)(void *, double, double),
- int log_offset, void *log_ctx);
-/**
- * @deprecated Deprecated in favor of av_expr_eval().
- */
-attribute_deprecated
-double av_eval_expr(AVExpr *e, const double *const_values, void *opaque);
-
-/**
- * @deprecated Deprecated in favor of av_expr_free().
- */
-attribute_deprecated
-void av_free_expr(AVExpr *e);
-#endif /* FF_API_OLD_EVAL_NAMES */
-
/**
* Parse the string in numstr and return its value as a double. If
* the string is empty, contains only whitespaces, or does not contain
diff --git a/libavutil/version.h b/libavutil/version.h
index 4ad244f..55e0d11 100644
--- a/libavutil/version.h
+++ b/libavutil/version.h
@@ -99,9 +99,6 @@
* @{
*/
-#ifndef FF_API_OLD_EVAL_NAMES
-#define FF_API_OLD_EVAL_NAMES (LIBAVUTIL_VERSION_MAJOR < 52)
-#endif
#ifndef FF_API_GET_BITS_PER_SAMPLE_FMT
#define FF_API_GET_BITS_PER_SAMPLE_FMT (LIBAVUTIL_VERSION_MAJOR < 53)
#endif
More information about the ffmpeg-cvslog
mailing list