[MPlayer-cvslog] r29414 - trunk/libmpcodecs/vf_hqdn3d.c

lorenm subversion at mplayerhq.hu
Tue Jul 7 04:49:27 CEST 2009


Author: lorenm
Date: Tue Jul  7 04:49:26 2009
New Revision: 29414

Log:
20% faster hqdn3d on x86_64

Modified:
   trunk/libmpcodecs/vf_hqdn3d.c

Modified: trunk/libmpcodecs/vf_hqdn3d.c
==============================================================================
--- trunk/libmpcodecs/vf_hqdn3d.c	Tue Jul  7 04:01:36 2009	(r29413)
+++ trunk/libmpcodecs/vf_hqdn3d.c	Tue Jul  7 04:49:26 2009	(r29414)
@@ -64,7 +64,7 @@ static int config(struct vf_instance_s* 
 static inline unsigned int LowPassMul(unsigned int PrevMul, unsigned int CurrMul, int* Coef){
 //    int dMul= (PrevMul&0xFFFFFF)-(CurrMul&0xFFFFFF);
     int dMul= PrevMul-CurrMul;
-    int d=((dMul+0x10007FF)>>12);
+    unsigned int d=((dMul+0x10007FF)>>12);
     return CurrMul + Coef[d];
 }
 
@@ -75,7 +75,7 @@ static void deNoiseTemporal(
                     int W, int H, int sStride, int dStride,
                     int *Temporal)
 {
-    int X, Y;
+    long X, Y;
     unsigned int PixelDst;
 
     for (Y = 0; Y < H; Y++){
@@ -97,8 +97,8 @@ static void deNoiseSpacial(
                     int W, int H, int sStride, int dStride,
                     int *Horizontal, int *Vertical)
 {
-    int X, Y;
-    int sLineOffs = 0, dLineOffs = 0;
+    long X, Y;
+    long sLineOffs = 0, dLineOffs = 0;
     unsigned int PixelAnt;
     unsigned int PixelDst;
 
@@ -137,8 +137,8 @@ static void deNoise(unsigned char *Frame
                     int W, int H, int sStride, int dStride,
                     int *Horizontal, int *Vertical, int *Temporal)
 {
-    int X, Y;
-    int sLineOffs = 0, dLineOffs = 0;
+    long X, Y;
+    long sLineOffs = 0, dLineOffs = 0;
     unsigned int PixelAnt;
     unsigned int PixelDst;
     unsigned short* FrameAnt=(*FrameAntPtr);


More information about the MPlayer-cvslog mailing list