[xiph-commits] r15078 - in branches/theora-thusnelda/lib/enc: . x86_32 x86_64

xiphmont at svn.xiph.org xiphmont at svn.xiph.org
Fri Jun 27 15:07:21 PDT 2008


Author: xiphmont
Date: 2008-06-27 15:07:19 -0700 (Fri, 27 Jun 2008)
New Revision: 15078

Modified:
   branches/theora-thusnelda/lib/enc/dct_decode.c
   branches/theora-thusnelda/lib/enc/x86_32/dct_decode_mmx.c
   branches/theora-thusnelda/lib/enc/x86_64/dct_decode_mmx.c
Log:
Loop filter fix



Modified: branches/theora-thusnelda/lib/enc/dct_decode.c
===================================================================
--- branches/theora-thusnelda/lib/enc/dct_decode.c	2008-06-27 21:49:05 UTC (rev 15077)
+++ branches/theora-thusnelda/lib/enc/dct_decode.c	2008-06-27 22:07:19 UTC (rev 15078)
@@ -205,8 +205,8 @@
 	    loop_filter_v(&cpi->lastrecon[bp[0]],stride,bvp);
 	  if(bp+1<bp_right && !cp[1])
 	    loop_filter_h(&cpi->lastrecon[bp[0]]+8,stride,bvp);
-	  if(bp+stride<bp_end && !cp[stride])
-	    loop_filter_v(&cpi->lastrecon[bp[h]]+8,stride,bvp);
+	  if(bp+h<bp_end && !cp[h])
+	    loop_filter_v(&cpi->lastrecon[bp[h]],stride,bvp);
 	}
 	bp++;
 	cp++;

Modified: branches/theora-thusnelda/lib/enc/x86_32/dct_decode_mmx.c
===================================================================
--- branches/theora-thusnelda/lib/enc/x86_32/dct_decode_mmx.c	2008-06-27 21:49:05 UTC (rev 15077)
+++ branches/theora-thusnelda/lib/enc/x86_32/dct_decode_mmx.c	2008-06-27 22:07:19 UTC (rev 15078)
@@ -375,8 +375,8 @@
 	    loop_filter_v(&cpi->lastrecon[bp[0]],stride,ll);
 	  if(bp+1<bp_right && !cp[1])
 	    loop_filter_h(&cpi->lastrecon[bp[0]]+8,stride,ll);
-	  if(bp+stride<bp_end && !cp[stride])
-	    loop_filter_v(&cpi->lastrecon[bp[h]]+8,stride,ll);
+	  if(bp+h<bp_end && !cp[h])
+	    loop_filter_v(&cpi->lastrecon[bp[h]],stride,ll);
 	}
 	bp++;
 	cp++;

Modified: branches/theora-thusnelda/lib/enc/x86_64/dct_decode_mmx.c
===================================================================
--- branches/theora-thusnelda/lib/enc/x86_64/dct_decode_mmx.c	2008-06-27 21:49:05 UTC (rev 15077)
+++ branches/theora-thusnelda/lib/enc/x86_64/dct_decode_mmx.c	2008-06-27 22:07:19 UTC (rev 15078)
@@ -375,8 +375,8 @@
 	    loop_filter_v(&cpi->lastrecon[bp[0]],stride,ll);
 	  if(bp+1<bp_right && !cp[1])
 	    loop_filter_h(&cpi->lastrecon[bp[0]]+8,stride,ll);
-	  if(bp+stride<bp_end && !cp[stride])
-	    loop_filter_v(&cpi->lastrecon[bp[h]]+8,stride,ll);
+	  if(bp+h<bp_end && !cp[h])
+	    loop_filter_v(&cpi->lastrecon[bp[h]],stride,ll);
 	}
 	bp++;
 	cp++;



More information about the commits mailing list