Revision d1a12956 libavutil/mathematics.h
libavutil/mathematics.h  

22  22 
#define FFMPEG_MATHEMATICS_H 
23  23  
24  24 
#include <stdint.h> 
25 
#include <math.h> 

25  26 
#include "rational.h" 
26  27  
28 
#ifndef M_E 

29 
#define M_E 2.7182818284590452354 /* e */ 

30 
#endif 

31 
#ifndef M_LN2 

32 
#define M_LN2 0.69314718055994530942 /* log_e 2 */ 

33 
#endif 

34 
#ifndef M_LN10 

35 
#define M_LN10 2.30258509299404568402 /* log_e 10 */ 

36 
#endif 

37 
#ifndef M_SQRT1_2 

38 
#define M_SQRT1_2 0.70710678118654752440 /* 1/sqrt(2) */ 

39 
#endif 

40  
27  41 
enum AVRounding { 
28  42 
AV_ROUND_ZERO = 0, ///< round toward zero 
29  43 
AV_ROUND_INF = 1, ///< round away from zero 
Also available in: Unified diff