]> git.sesse.net Git - ffmpeg/commitdiff
Add the M_PHI constant, contains an approximation of the golden ratio
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Thu, 22 Jul 2010 22:05:21 +0000 (22:05 +0000)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Thu, 22 Jul 2010 22:05:21 +0000 (22:05 +0000)
irrational number.

Originally committed as revision 24439 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavutil/avutil.h
libavutil/mathematics.h

index cd1f9bdf5b85506b8387e3529b1571fbcfce5241..50b29fc4a73e7143c4c38823fa0089c1c524e7c4 100644 (file)
@@ -40,7 +40,7 @@
 #define AV_VERSION(a, b, c) AV_VERSION_DOT(a, b, c)
 
 #define LIBAVUTIL_VERSION_MAJOR 50
-#define LIBAVUTIL_VERSION_MINOR 22
+#define LIBAVUTIL_VERSION_MINOR 23
 #define LIBAVUTIL_VERSION_MICRO  0
 
 #define LIBAVUTIL_VERSION_INT   AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \
index 3e5631116f2079ca13852375572730bb3231930c..882a516393b6d8696f33eec662e20ff06dcce66b 100644 (file)
@@ -38,6 +38,9 @@
 #ifndef M_LOG2_10
 #define M_LOG2_10      3.32192809488736234787  /* log_2 10 */
 #endif
+#ifndef M_PHI
+#define M_PHI          1.61803398874989484820   /* phi / golden ratio */
+#endif
 #ifndef M_PI
 #define M_PI           3.14159265358979323846  /* pi */
 #endif