diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-07-23 02:05:21 +0400 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-07-23 02:05:21 +0400 |
commit | 448524777a738374dc73b4222f9b3b435c303664 (patch) | |
tree | 028e20ca510417311a5337bf2f5ccfe692c01742 /libavutil | |
parent | d292c3455e05c8292495649c8028cab0b4bd519c (diff) |
Add the M_PHI constant, contains an approximation of the golden ratio
irrational number.
Originally committed as revision 24439 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/avutil.h | 2 | ||||
-rw-r--r-- | libavutil/mathematics.h | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/libavutil/avutil.h b/libavutil/avutil.h index cd1f9bdf5b..50b29fc4a7 100644 --- a/libavutil/avutil.h +++ b/libavutil/avutil.h @@ -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 --git a/libavutil/mathematics.h b/libavutil/mathematics.h index 3e5631116f..882a516393 100644 --- a/libavutil/mathematics.h +++ b/libavutil/mathematics.h @@ -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 |