mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2026-01-01 03:12:16 +08:00
Use HAS_ARGBSETROWS_X86 to detect presence of function.
BUG=none TESTED=rectangle unittests R=harryjin@google.com Review URL: https://webrtc-codereview.appspot.com/35639004 git-svn-id: http://libyuv.googlecode.com/svn/trunk@1218 16f28f9a-4ce2-e073-06de-1de4eb20be90
This commit is contained in:
parent
61ffd847d7
commit
992c3b089a
@ -1,6 +1,6 @@
|
||||
Name: libyuv
|
||||
URL: http://code.google.com/p/libyuv/
|
||||
Version: 1217
|
||||
Version: 1218
|
||||
License: BSD
|
||||
License File: LICENSE
|
||||
|
||||
|
||||
@ -114,6 +114,7 @@ extern "C" {
|
||||
#define HAS_RGBATOUVROW_SSSE3
|
||||
#define HAS_RGBATOYROW_SSSE3
|
||||
#define HAS_SETROW_X86
|
||||
#define HAS_ARGBSETROWS_X86
|
||||
#define HAS_SPLITUVROW_SSE2
|
||||
#define HAS_UYVYTOARGBROW_SSSE3
|
||||
#define HAS_UYVYTOUV422ROW_SSE2
|
||||
|
||||
@ -11,6 +11,6 @@
|
||||
#ifndef INCLUDE_LIBYUV_VERSION_H_ // NOLINT
|
||||
#define INCLUDE_LIBYUV_VERSION_H_
|
||||
|
||||
#define LIBYUV_VERSION 1217
|
||||
#define LIBYUV_VERSION 1218
|
||||
|
||||
#endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT
|
||||
|
||||
@ -1166,13 +1166,13 @@ int ARGBRect(uint8* dst_argb, int dst_stride_argb,
|
||||
height = 1;
|
||||
dst_stride_argb = 0;
|
||||
}
|
||||
#if defined(HAS_SETROW_NEON)
|
||||
#if defined(HAS_ARGBSETROWS_NEON)
|
||||
if (TestCpuFlag(kCpuHasNEON) && IS_ALIGNED(width, 16)) {
|
||||
ARGBSetRows_NEON(dst_argb, value, width, dst_stride_argb, height);
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
#if defined(HAS_SETROW_X86)
|
||||
#if defined(HAS_ARGBSETROWS_X86)
|
||||
if (TestCpuFlag(kCpuHasX86)) {
|
||||
ARGBSetRows_X86(dst_argb, value, width, dst_stride_argb, height);
|
||||
return 0;
|
||||
|
||||
@ -1625,7 +1625,7 @@ void CopyRow_16_C(const uint16* src, uint16* dst, int count) {
|
||||
|
||||
void SetRow_C(uint8* dst, uint32 v8, int count) {
|
||||
#ifdef _MSC_VER
|
||||
// VC will generate rep stosb.
|
||||
// VisualC will generate rep stosb.
|
||||
int x;
|
||||
for (x = 0; x < count; ++x) {
|
||||
dst[x] = v8;
|
||||
|
||||
@ -2848,7 +2848,7 @@ void ARGBCopyYToAlphaRow_AVX2(const uint8* src, uint8* dst, int width) {
|
||||
#endif // HAS_ARGBCOPYYTOALPHAROW_AVX2
|
||||
|
||||
#ifdef HAS_SETROW_X86
|
||||
// SetRow8 writes 'count' bytes using a 32 bit value repeated.
|
||||
// SetRow writes 'count' bytes using a 32 bit value repeated.
|
||||
__declspec(naked) __declspec(align(16))
|
||||
void SetRow_X86(uint8* dst, uint32 v32, int count) {
|
||||
__asm {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user