Commit 4e155ef6 authored by fbarchard@google.com's avatar fbarchard@google.com

Change test to test for Arm, since all CPUs except arm provide accurate yuv conversion

BUG=392
TESTED=try bots

Review URL: https://webrtc-codereview.appspot.com/34059004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1254 16f28f9a-4ce2-e073-06de-1de4eb20be90
parent 4848b060
Name: libyuv
URL: http://code.google.com/p/libyuv/
Version: 1253
Version: 1255
License: BSD
License File: LICENSE
......
......@@ -11,6 +11,6 @@
#ifndef INCLUDE_LIBYUV_VERSION_H_ // NOLINT
#define INCLUDE_LIBYUV_VERSION_H_
#define LIBYUV_VERSION 1253
#define LIBYUV_VERSION 1255
#endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT
......@@ -21,23 +21,20 @@
namespace libyuv {
#if defined (_M_X64) || defined(_M_IX86) || \
defined(__x86_64__) || defined(__i386__))
#define HIGH_ACCURACY 1
#endif
#ifdef HIGH_ACCURACY
#define MAX_CDIFF 0
#define ERROR_R 1
#define ERROR_G 1
#define ERROR_B 3
#define ERROR_FULL 5
#else
// TODO(fbarchard): Port high accuracy YUV to RGB to Neon.
#if !defined(LIBYUV_DISABLE_NEON) && \
(defined(__aarch64__) || defined(__ARM_NEON__) || defined(LIBYUV_NEON))
#define MAX_CDIFF 2
#define ERROR_R 3
#define ERROR_G 3
#define ERROR_B 5
#define ERROR_FULL 7
#else
#define MAX_CDIFF 0
#define ERROR_R 1
#define ERROR_G 1
#define ERROR_B 3
#define ERROR_FULL 5
#endif
#define TESTCS(TESTNAME, YUVTOARGB, ARGBTOYUV, HS1, HS, HN, DIFF, CDIFF) \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment