[SCM] libav/experimental: 10l: Revert accidental removal of unused code.

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:00:32 UTC 2013


The following commit has been merged in the experimental branch:
commit 2d2fe55737c0d0c969496adb1173a4f146efe840
Author: Diego Biurrun <diego at biurrun.de>
Date:   Sun May 27 15:52:57 2007 +0000

    10l: Revert accidental removal of unused code.
    
    Originally committed as revision 9142 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/tests/tiny_psnr.c b/tests/tiny_psnr.c
index af37803..91225f2 100644
--- a/tests/tiny_psnr.c
+++ b/tests/tiny_psnr.c
@@ -49,7 +49,19 @@ uint64_t exp16_table[21]={
  195360063,
  582360139072LL,
 };
+#if 1
+// 16.16 fixpoint exp()
+static unsigned int exp16(unsigned int a){
+    int i;
+    int out= 1<<16;
+
+    for(i=19;i>=0;i--){
+        if(a&(1<<i))
+            out= (out*exp16_table[i] + (1<<15))>>16;
+    }
 
+    return out;
+}
 // 16.16 fixpoint log()
 static int64_t log16(uint64_t a){
     int i;
@@ -68,6 +80,7 @@ static int64_t log16(uint64_t a){
     return out;
 }
 
+#endif
 static uint64_t int_sqrt(uint64_t a)
 {
     uint64_t ret=0;

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list