]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/celp_math.c
ape: decode directly to the user-provided AVFrame
[ffmpeg] / libavcodec / celp_math.c
index b28c51b52d3ca5d05de83334396bef4e322baa3b..a9ebef697c4b8f3ea2799414b0dffc23345b33c9 100644 (file)
@@ -67,7 +67,7 @@ static const uint16_t tab_log2[33] =
   26457,  27294,  28116,  28924,  29719,  30500,  31269,  32025,  32769,
 };
 
-int ff_log2(uint32_t value)
+int ff_log2_q15(uint32_t value)
 {
     uint8_t  power_int;
     uint8_t  frac_x0;
@@ -86,14 +86,3 @@ int ff_log2(uint32_t value)
 
     return (power_int << 15) + value;
 }
-
-float ff_dot_productf(const float* a, const float* b, int length)
-{
-    float sum = 0;
-    int i;
-
-    for(i=0; i<length; i++)
-        sum += a[i] * b[i];
-
-    return sum;
-}