From b91b53481c74a93c0281301f88fbe8032ecfa20d Mon Sep 17 00:00:00 2001 From: "fbarchard@google.com" Date: Tue, 11 Dec 2012 17:27:33 +0000 Subject: [PATCH] ifdef to wrap mips BUG=none TEST=none Review URL: https://webrtc-codereview.appspot.com/974012 git-svn-id: http://libyuv.googlecode.com/svn/trunk@513 16f28f9a-4ce2-e073-06de-1de4eb20be90 --- README.chromium | 2 +- include/libyuv/version.h | 2 +- source/row_mips.cc | 8 ++++++++ source/row_x86.asm | 1 - 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/README.chromium b/README.chromium index 25bf0026b..b621565e0 100644 --- a/README.chromium +++ b/README.chromium @@ -1,6 +1,6 @@ Name: libyuv URL: http://code.google.com/p/libyuv/ -Version: 512 +Version: 513 License: BSD License File: LICENSE diff --git a/include/libyuv/version.h b/include/libyuv/version.h index 7df8dbea8..b596e92c8 100644 --- a/include/libyuv/version.h +++ b/include/libyuv/version.h @@ -11,6 +11,6 @@ #ifndef INCLUDE_LIBYUV_VERSION_H_ // NOLINT #define INCLUDE_LIBYUV_VERSION_H_ -#define LIBYUV_VERSION 512 +#define LIBYUV_VERSION 513 #endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT diff --git a/source/row_mips.cc b/source/row_mips.cc index 6029f5542..5c5fbf476 100644 --- a/source/row_mips.cc +++ b/source/row_mips.cc @@ -324,6 +324,7 @@ void MirrorUVRow_MIPS_DSPR2(const uint8* src_uv, uint8* dst_u, uint8* dst_v, // t8 = | 0 | G1 | 0 | g1 | // t2 = | 0 | R0 | 0 | r0 | // t1 = | 0 | R1 | 0 | r1 | +#if !defined(YUV_DISABLE_ASM) && defined(__mips__) && defined(__mips_dsp) && (__mips_dsp_rev >= 2) #define I422ToTransientMipsRGB \ "lw $t0, 0(%[y_buf]) \n" \ "lhu $t1, 0(%[u_buf]) \n" \ @@ -382,7 +383,9 @@ void MirrorUVRow_MIPS_DSPR2(const uint8* src_uv, uint8* dst_u, uint8* dst_v, "addu.ph $t8, $t8, $s5 \n" \ "addu.ph $t2, $t2, $s5 \n" \ "addu.ph $t1, $t1, $s5 \n" +#endif +#ifdef HAS_I422TOARGBROW_MIPS_DSPR2 void I422ToARGBRow_MIPS_DSPR2(const uint8* y_buf, const uint8* u_buf, const uint8* v_buf, @@ -442,7 +445,9 @@ void I422ToARGBRow_MIPS_DSPR2(const uint8* y_buf, "s4", "s5", "s6" ); } +#endif // HAS_I422TOARGBROW_MIPS_DSPR2 +#ifdef HAS_I422TOABGRROW_MIPS_DSPR2 void I422ToABGRRow_MIPS_DSPR2(const uint8* y_buf, const uint8* u_buf, const uint8* v_buf, @@ -502,7 +507,9 @@ void I422ToABGRRow_MIPS_DSPR2(const uint8* y_buf, "s4", "s5", "s6" ); } +#endif // HAS_I422TOABGRROW_MIPS_DSPR2 +#ifdef HAS_I422TOBGRAROW_MIPS_DSPR2 void I422ToBGRARow_MIPS_DSPR2(const uint8* y_buf, const uint8* u_buf, const uint8* v_buf, @@ -564,6 +571,7 @@ void I422ToBGRARow_MIPS_DSPR2(const uint8* y_buf, "s4", "s5", "s6" ); } +#endif // HAS_I422TOBGRAROW_MIPS_DSPR2 #endif // __mips__ diff --git a/source/row_x86.asm b/source/row_x86.asm index dfc3ae32d..11650c040 100644 --- a/source/row_x86.asm +++ b/source/row_x86.asm @@ -136,4 +136,3 @@ MergeUVRow_ u,_Unaligned INIT_YMM AVX2 MergeUVRow_ a, MergeUVRow_ u,_Unaligned -