mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2026-01-01 03:12:16 +08:00
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
This commit is contained in:
parent
4848b06016
commit
4e155ef6c4
@ -1,6 +1,6 @@
|
||||
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) \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user