# HG changeset patch # User stefano # Date 1279836321 0 # Node ID f9e8cd74a5f40b26391b3caecdd8b72f61f8b346 # Parent effd4ae1769dd201fa92f41a421d48e3505c5e7c Add the M_PHI constant, contains an approximation of the golden ratio irrational number. diff -r effd4ae1769d -r f9e8cd74a5f4 avutil.h --- a/avutil.h Wed Jul 21 12:37:37 2010 +0000 +++ b/avutil.h Thu Jul 22 22:05:21 2010 +0000 @@ -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, \ diff -r effd4ae1769d -r f9e8cd74a5f4 mathematics.h --- a/mathematics.h Wed Jul 21 12:37:37 2010 +0000 +++ b/mathematics.h Thu Jul 22 22:05:21 2010 +0000 @@ -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