[FFmpeg-cvslog] r24439 - in trunk/libavutil: avutil.h mathematics.h

stefano subversion
Fri Jul 23 00:05:21 CEST 2010


Author: stefano
Date: Fri Jul 23 00:05:21 2010
New Revision: 24439

Log:
Add the M_PHI constant, contains an approximation of the golden ratio
irrational number.

Modified:
   trunk/libavutil/avutil.h
   trunk/libavutil/mathematics.h

Modified: trunk/libavutil/avutil.h
==============================================================================
--- trunk/libavutil/avutil.h	Thu Jul 22 23:05:30 2010	(r24438)
+++ trunk/libavutil/avutil.h	Fri Jul 23 00:05:21 2010	(r24439)
@@ -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, \

Modified: trunk/libavutil/mathematics.h
==============================================================================
--- trunk/libavutil/mathematics.h	Thu Jul 22 23:05:30 2010	(r24438)
+++ trunk/libavutil/mathematics.h	Fri Jul 23 00:05:21 2010	(r24439)
@@ -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



More information about the ffmpeg-cvslog mailing list