From b3bbcc1f4e9a3468c0cb4ecb46547c77576883f5 Mon Sep 17 00:00:00 2001 From: Frank Barchard Date: Wed, 9 Dec 2015 15:23:51 -0800 Subject: [PATCH] add ifdef for AVX2 so vs2010 can still compile R=harryjin@google.com BUG=libyuv:531 Review URL: https://codereview.chromium.org/1515503005 . --- source/row_win.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/row_win.cc b/source/row_win.cc index 68f37f317..084fc0444 100644 --- a/source/row_win.cc +++ b/source/row_win.cc @@ -2300,6 +2300,7 @@ void NV21ToARGBRow_AVX2(const uint8* y_buf, } #endif // HAS_NV21TOARGBROW_AVX2 +#ifdef HAS_YUY2TOARGBROW_AVX2 // 16 pixels. // 8 YUY2 values with 16 Y and 8 UV producing 16 ARGB (64 bytes). __declspec(naked) @@ -2328,7 +2329,9 @@ void YUY2ToARGBRow_AVX2(const uint8* src_yuy2, ret } } +#endif // HAS_YUY2TOARGBROW_AVX2 +#ifdef HAS_UYVYTOARGBROW_AVX2 // 16 pixels. // 8 UYVY values with 16 Y and 8 UV producing 16 ARGB (64 bytes). __declspec(naked) @@ -2357,6 +2360,7 @@ void UYVYToARGBRow_AVX2(const uint8* src_uyvy, ret } } +#endif // HAS_UYVYTOARGBROW_AVX2 #ifdef HAS_I422TORGBAROW_AVX2 // 16 pixels