[xiph-commits] r11674 - in branches/theora-playtime: lib/x86_32_vs
win32/VS2005/encoder_example
illiminable at svn.xiph.org
illiminable at svn.xiph.org
Thu Jun 29 14:50:59 PDT 2006
Author: illiminable
Date: 2006-06-29 14:50:53 -0700 (Thu, 29 Jun 2006)
New Revision: 11674
Modified:
branches/theora-playtime/lib/x86_32_vs/dct_decode_sse2.c
branches/theora-playtime/win32/VS2005/encoder_example/
Log:
* FilterHoriz__sse2 gets to stay, much faster than the C version
Modified: branches/theora-playtime/lib/x86_32_vs/dct_decode_sse2.c
===================================================================
--- branches/theora-playtime/lib/x86_32_vs/dct_decode_sse2.c 2006-06-29 21:12:44 UTC (rev 11673)
+++ branches/theora-playtime/lib/x86_32_vs/dct_decode_sse2.c 2006-06-29 21:50:53 UTC (rev 11674)
@@ -14,19 +14,19 @@
-perf_info filter_horiz_perf;
+static perf_info filter_horiz_perf;
static void FilterHoriz__sse2(unsigned char * PixelPtr,
ogg_int32_t LineLength,
ogg_int32_t *BoundingValuePtr){
-#if 1
+#if 0
ogg_int32_t j;
ogg_int32_t FiltVal;
- //PERF_BLOCK_START();
+ PERF_BLOCK_START();
for ( j = 0; j < 8; j++ ){
FiltVal =
( PixelPtr[0] ) -
@@ -42,7 +42,7 @@
PixelPtr += LineLength;
}
- //PERF_BLOCK_END("filter horiz C", filter_horiz_perf, 10000);
+ PERF_BLOCK_END("filter horiz C", filter_horiz_perf, 10000);
#else
static __declspec(align(16)) unsigned char temp[128];
@@ -152,7 +152,8 @@
pop ebx
pop ebp
}
- PERF_BLOCK_END("filter horiz sse2", perf_filter_horiz_time, perf_filter_horiz_count, perf_filter_horiz_min, 10000);
+
+ PERF_BLOCK_END("filter horiz sse2", filter_horiz_perf, 10000);
#endif
}
@@ -188,6 +189,6 @@
TH_DEBUG("enabling accelerated x86_32 mmx dsp functions.\n");
ClearPerfData(&filter_horiz_perf);
- //funcs->FilterHoriz = FilterHoriz__sse2;
+ funcs->FilterHoriz = FilterHoriz__sse2;
}
\ No newline at end of file
Property changes on: branches/theora-playtime/win32/VS2005/encoder_example
___________________________________________________________________
Name: svn:ignore
- Debug
Release
+ Debug
Release
*.user
More information about the commits
mailing list