[SCM] libav/experimental: Rename ff_parse_eval() to ff_eval_expr().

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 17:05:56 UTC 2013


The following commit has been merged in the experimental branch:
commit 4565caf120b04884e5b13f4e452f280b8d10f3f6
Author: Stefano Sabatini <stefano.sabatini-lala at poste.it>
Date:   Sun Apr 11 22:32:01 2010 +0000

    Rename ff_parse_eval() to ff_eval_expr().
    
    The new name expresses better what the function does.
    
    Originally committed as revision 22844 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavcodec/eval.c b/libavcodec/eval.c
index dae55c3..ac25e9a 100644
--- a/libavcodec/eval.c
+++ b/libavcodec/eval.c
@@ -410,7 +410,7 @@ end:
     return e;
 }
 
-double ff_parse_eval(AVExpr * e, const double *const_value, void *opaque) {
+double ff_eval_expr(AVExpr * e, const double *const_value, void *opaque) {
     Parser p;
 
     p.const_value= const_value;
@@ -425,7 +425,7 @@ double ff_eval2(const char *s, const double *const_value, const char * const *co
     AVExpr * e = ff_parse(s, const_name, func1, func1_name, func2, func2_name, error);
     double d;
     if (!e) return NAN;
-    d = ff_parse_eval(e, const_value, opaque);
+    d = ff_eval_expr(e, const_value, opaque);
     ff_free_expr(e);
     return d;
 }
diff --git a/libavcodec/eval.h b/libavcodec/eval.h
index 47446f7..6551b44 100644
--- a/libavcodec/eval.h
+++ b/libavcodec/eval.h
@@ -30,7 +30,7 @@ typedef struct AVExpr AVExpr;
 
 /**
  * Parses and evaluates an expression.
- * Note, this is significantly slower than ff_parse_eval()
+ * Note, this is significantly slower than ff_eval_expr().
  *
  * @param s expression as a zero terminated string for example "1+2^3+5*5+sin(2/3)"
  * @param func1 NULL terminated array of function pointers for functions which take 1 argument
@@ -73,7 +73,7 @@ AVExpr * ff_parse(const char *s, const char * const *const_name,
  * @param opaque a pointer which will be passed to all functions from func1 and func2
  * @return the value of the expression
  */
-double ff_parse_eval(AVExpr * e, const double *const_value, void *opaque);
+double ff_eval_expr(AVExpr * e, const double *const_value, void *opaque);
 
 /**
  * Frees a parsed expression previously created with ff_parse().
diff --git a/libavcodec/ratecontrol.c b/libavcodec/ratecontrol.c
index f1f9c06..35191b0 100644
--- a/libavcodec/ratecontrol.c
+++ b/libavcodec/ratecontrol.c
@@ -339,7 +339,7 @@ static double get_qscale(MpegEncContext *s, RateControlEntry *rce, double rate_f
         0
     };
 
-    bits= ff_parse_eval(rcc->rc_eq_eval, const_values, rce);
+    bits= ff_eval_expr(rcc->rc_eq_eval, const_values, rce);
     if (isnan(bits)) {
         av_log(s->avctx, AV_LOG_ERROR, "Error evaluating rc_eq \"%s\"\n", s->avctx->rc_eq);
         return -1;

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list