# HG changeset patch # User michael # Date 1089900399 0 # Node ID 2c2f738772b7fa36f01d557eb3bc18f6b4ca2d70 # Parent 181cb6785f6b3c550323488fac827bb7595dec87 more comments diff -r 181cb6785f6b -r 2c2f738772b7 integer.c --- a/integer.c Wed Jul 14 20:23:35 2004 +0000 +++ b/integer.c Thu Jul 15 14:06:39 2004 +0000 @@ -47,6 +47,10 @@ return a; } +/** + * returns the rounded down value of the logarithm of base 2 of the given AVInteger. + * this is simply the index of the most significant bit which is 1. Or 0 of all bits are 0 + */ int av_log2_i(AVInteger a){ int i; @@ -78,6 +82,9 @@ return out; } +/** + * returns 0 if a==b, 1 if a>b and -1 if ab and -1 if a>63)|1; + else return 0; } +/** + * converts the given AVRational to a double. + */ static inline double av_q2d(AVRational a){ return a.num / (double) a.den; }