summaryrefslogtreecommitdiff
path: root/third_party
diff options
context:
space:
mode:
authorJohann <johannkoenig@google.com>2015-03-06 12:25:14 -0800
committerJohann <johannkoenig@google.com>2015-03-06 13:00:01 -0800
commitbdb46b295754d61b0b667114b67de3ac589075fc (patch)
tree16f35570cef511f8d48433ea47d0d8db2da396ae /third_party
parenta1ef75bb638add8a830a5780cf15a3aea638cf3b (diff)
downloadlibvpx-bdb46b295754d61b0b667114b67de3ac589075fc.tar.gz
Cherry pick libyuv VS fix
Change-Id: I1f2e077af87d29b07eaf7acaec8d955e00da9333
Diffstat (limited to 'third_party')
-rw-r--r--third_party/libyuv/README.libvpx2
-rw-r--r--third_party/libyuv/source/row_win.cc4
2 files changed, 5 insertions, 1 deletions
diff --git a/third_party/libyuv/README.libvpx b/third_party/libyuv/README.libvpx
index acd52ed0e..6a5b60c06 100644
--- a/third_party/libyuv/README.libvpx
+++ b/third_party/libyuv/README.libvpx
@@ -13,4 +13,4 @@ which down-samples the original input video (f.g. 1280x720) a number of times
in order to encode multiple resolution bit streams.
Local Modifications:
-None.
+cherry pick r1311 'disable nv12 avx2 for vs9/10 that dont support avx2 instructions.'
diff --git a/third_party/libyuv/source/row_win.cc b/third_party/libyuv/source/row_win.cc
index 5c06b6078..6e9d04c0e 100644
--- a/third_party/libyuv/source/row_win.cc
+++ b/third_party/libyuv/source/row_win.cc
@@ -1687,6 +1687,7 @@ void I422ToARGBRow_AVX2(const uint8* y_buf,
}
#endif // HAS_I422TOARGBROW_AVX2
+#ifdef HAS_NV12TOARGBROW_AVX2
// 16 pixels.
// 8 UV values upsampled to 16 UV, mixed with 16 Y producing 16 ARGB (64 bytes).
__declspec(naked) __declspec(align(16))
@@ -1714,7 +1715,9 @@ void NV12ToARGBRow_AVX2(const uint8* y_buf,
ret
}
}
+#endif // HAS_NV12TOARGBROW_AVX2
+#ifdef HAS_NV21TOARGBROW_AVX2
// 16 pixels.
// 8 VU values upsampled to 16 VU, mixed with 16 Y producing 16 ARGB (64 bytes).
__declspec(naked) __declspec(align(16))
@@ -1742,6 +1745,7 @@ void NV21ToARGBRow_AVX2(const uint8* y_buf,
ret
}
}
+#endif // HAS_NV21TOARGBROW_AVX2
#ifdef HAS_I422TOBGRAROW_AVX2
// 16 pixels