Mercurial > libavcodec.hg
comparison ratecontrol.c @ 627:79c43f519d02 libavcodec
undefined M_PI / M_E fix
author | michaelni |
---|---|
date | Fri, 30 Aug 2002 16:16:30 +0000 |
parents | a5aa53b6e648 |
children | 9c7a661a9fbe |
comparison
equal
deleted
inserted
replaced
626:23a093d6e450 | 627:79c43f519d02 |
---|---|
23 #include "dsputil.h" | 23 #include "dsputil.h" |
24 #include "mpegvideo.h" | 24 #include "mpegvideo.h" |
25 | 25 |
26 #undef NDEBUG // allways check asserts, the speed effect is far too small to disable them | 26 #undef NDEBUG // allways check asserts, the speed effect is far too small to disable them |
27 #include <assert.h> | 27 #include <assert.h> |
28 | |
29 #ifndef M_PI | |
30 #define M_PI 3.14159265358979323846 | |
31 #endif | |
32 | |
33 #ifndef M_E | |
34 #define M_E 2.718281828 | |
35 #endif | |
28 | 36 |
29 static int init_pass2(MpegEncContext *s); | 37 static int init_pass2(MpegEncContext *s); |
30 static double get_qscale(MpegEncContext *s, RateControlEntry *rce, double rate_factor, int frame_num); | 38 static double get_qscale(MpegEncContext *s, RateControlEntry *rce, double rate_factor, int frame_num); |
31 | 39 |
32 void ff_write_pass1_stats(MpegEncContext *s){ | 40 void ff_write_pass1_stats(MpegEncContext *s){ |