mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2026-02-09 11:16:43 +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
|
Name: libyuv
|
||||||
URL: http://code.google.com/p/libyuv/
|
URL: http://code.google.com/p/libyuv/
|
||||||
Version: 1253
|
Version: 1255
|
||||||
License: BSD
|
License: BSD
|
||||||
License File: LICENSE
|
License File: LICENSE
|
||||||
|
|
||||||
|
|||||||
@ -11,6 +11,6 @@
|
|||||||
#ifndef INCLUDE_LIBYUV_VERSION_H_ // NOLINT
|
#ifndef INCLUDE_LIBYUV_VERSION_H_ // NOLINT
|
||||||
#define INCLUDE_LIBYUV_VERSION_H_
|
#define INCLUDE_LIBYUV_VERSION_H_
|
||||||
|
|
||||||
#define LIBYUV_VERSION 1253
|
#define LIBYUV_VERSION 1255
|
||||||
|
|
||||||
#endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT
|
#endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT
|
||||||
|
|||||||
@ -21,23 +21,20 @@
|
|||||||
|
|
||||||
namespace libyuv {
|
namespace libyuv {
|
||||||
|
|
||||||
#if defined (_M_X64) || defined(_M_IX86) || \
|
// TODO(fbarchard): Port high accuracy YUV to RGB to Neon.
|
||||||
defined(__x86_64__) || defined(__i386__))
|
#if !defined(LIBYUV_DISABLE_NEON) && \
|
||||||
#define HIGH_ACCURACY 1
|
(defined(__aarch64__) || defined(__ARM_NEON__) || defined(LIBYUV_NEON))
|
||||||
#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
|
|
||||||
#define MAX_CDIFF 2
|
#define MAX_CDIFF 2
|
||||||
#define ERROR_R 3
|
#define ERROR_R 3
|
||||||
#define ERROR_G 3
|
#define ERROR_G 3
|
||||||
#define ERROR_B 5
|
#define ERROR_B 5
|
||||||
#define ERROR_FULL 7
|
#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
|
#endif
|
||||||
|
|
||||||
#define TESTCS(TESTNAME, YUVTOARGB, ARGBTOYUV, HS1, HS, HN, DIFF, CDIFF) \
|
#define TESTCS(TESTNAME, YUVTOARGB, ARGBTOYUV, HS1, HS, HN, DIFF, CDIFF) \
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user