Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(303)

Unified Diff: libvpx/source/libvpx/vp8/decoder/x86/x86_dsystemdependent.c

Issue 7624054: Revert r97185 "Update libvpx snapshot to v0.9.7-p1 (Cayuga)." (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party
Patch Set: Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: libvpx/source/libvpx/vp8/decoder/x86/x86_dsystemdependent.c
diff --git a/libvpx/source/libvpx/vp8/decoder/x86/x86_dsystemdependent.c b/libvpx/source/libvpx/vp8/decoder/x86/x86_dsystemdependent.c
index a244a3a98b0a68482774d7e1149c9744870c57ec..5c1684230fe618452e618468f945e857401f87e6 100644
--- a/libvpx/source/libvpx/vp8/decoder/x86/x86_dsystemdependent.c
+++ b/libvpx/source/libvpx/vp8/decoder/x86/x86_dsystemdependent.c
@@ -17,7 +17,7 @@
#if HAVE_MMX
void vp8_dequantize_b_impl_mmx(short *sq, short *dq, short *q);
-void vp8_dequantize_b_mmx(BLOCKD *d)
+static void dequantize_b_mmx(BLOCKD *d)
{
short *sq = (short *) d->qcoeff;
short *dq = (short *) d->dqcoeff;
@@ -28,7 +28,6 @@ void vp8_dequantize_b_mmx(BLOCKD *d)
void vp8_arch_x86_decode_init(VP8D_COMP *pbi)
{
-#if CONFIG_RUNTIME_CPU_DETECT
int flags = x86_simd_caps();
/* Note:
@@ -37,11 +36,12 @@ void vp8_arch_x86_decode_init(VP8D_COMP *pbi)
* you modify any of the function mappings present in this file, be sure
* to also update them in static mapings (<arch>/filename_<arch>.h)
*/
+#if CONFIG_RUNTIME_CPU_DETECT
/* Override default functions with fastest ones for this CPU. */
#if HAVE_MMX
if (flags & HAS_MMX)
{
- pbi->dequant.block = vp8_dequantize_b_mmx;
+ pbi->dequant.block = dequantize_b_mmx;
pbi->dequant.idct_add = vp8_dequant_idct_add_mmx;
pbi->dequant.dc_idct_add = vp8_dequant_dc_idct_add_mmx;
pbi->dequant.dc_idct_add_y_block = vp8_dequant_dc_idct_add_y_block_mmx;
« no previous file with comments | « libvpx/source/libvpx/vp8/decoder/treereader.h ('k') | libvpx/source/libvpx/vp8/encoder/arm/arm_csystemdependent.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698