From ff6a756a0964ff434095ea33879427805fd8cbd9 Mon Sep 17 00:00:00 2001 From: "fbarchard@google.com" Date: Thu, 11 Oct 2012 20:21:45 +0000 Subject: [PATCH] V210 avoid cpuid which is failing valgrind BUG=91 TEST=I420ToV210 unittest Review URL: https://webrtc-codereview.appspot.com/855013 git-svn-id: http://libyuv.googlecode.com/svn/trunk@406 16f28f9a-4ce2-e073-06de-1de4eb20be90 --- README.chromium | 2 +- include/libyuv/version.h | 2 +- source/convert_from.cc | 17 +++-------------- 3 files changed, 5 insertions(+), 16 deletions(-) diff --git a/README.chromium b/README.chromium index eeb841ead..e9d0882b9 100644 --- a/README.chromium +++ b/README.chromium @@ -1,6 +1,6 @@ Name: libyuv URL: http://code.google.com/p/libyuv/ -Version: 405 +Version: 406 License: BSD License File: LICENSE diff --git a/include/libyuv/version.h b/include/libyuv/version.h index ef18134be..bce1a0f61 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 405 +#define LIBYUV_VERSION 406 #endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT diff --git a/source/convert_from.cc b/source/convert_from.cc index 74a836371..b9c205518 100644 --- a/source/convert_from.cc +++ b/source/convert_from.cc @@ -647,29 +647,18 @@ int I420ToV210(const uint8* src_y, int src_stride_y, SIMD_ALIGNED(uint8 row[kMaxStride]); - void (*I422ToUYVYRow)(const uint8* src_y, const uint8* src_u, - const uint8* src_v, uint8* dst_frame, int width) = - I422ToUYVYRow_C; -#if defined(HAS_I422TOUYVYROW_SSE2) - if (TestCpuFlag(kCpuHasSSE2) && IS_ALIGNED(width, 16) && - IS_ALIGNED(src_y, 16) && IS_ALIGNED(src_stride_y, 16)) { - I422ToUYVYRow = I422ToUYVYRow_SSE2; - } -#endif - for (int y = 0; y < height - 1; y += 2) { - I422ToUYVYRow(src_y, src_u, src_v, row, width); + I422ToUYVYRow_C(src_y, src_u, src_v, row, width); UYVYToV210Row_C(row, dst_frame, width); - I422ToUYVYRow(src_y + src_stride_y, src_u, src_v, row, width); + I422ToUYVYRow_C(src_y + src_stride_y, src_u, src_v, row, width); UYVYToV210Row_C(row, dst_frame + dst_stride_frame, width); - src_y += src_stride_y * 2; src_u += src_stride_u; src_v += src_stride_v; dst_frame += dst_stride_frame * 2; } if (height & 1) { - I422ToUYVYRow(src_y, src_u, src_v, row, width); + I422ToUYVYRow_C(src_y, src_u, src_v, row, width); UYVYToV210Row_C(row, dst_frame, width); } return 0;