Mercurial > libavutil.hg
changeset 1000:f9e8cd74a5f4 libavutil
Add the M_PHI constant, contains an approximation of the golden ratio
irrational number.
author | stefano |
---|---|
date | Thu, 22 Jul 2010 22:05:21 +0000 |
parents | effd4ae1769d |
children | 00ee3f0ffe6d |
files | avutil.h mathematics.h |
diffstat | 2 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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, \
--- 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