mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2025-12-06 16:56:55 +08:00
Add check for minimum of 8 pixels for any functions and multiple of 8 not 16 for neon functions.
BUG=373 TESTED=try bots R=harryjin@google.com Review URL: https://webrtc-codereview.appspot.com/23189004 git-svn-id: http://libyuv.googlecode.com/svn/trunk@1139 16f28f9a-4ce2-e073-06de-1de4eb20be90
This commit is contained in:
parent
f2fa453b94
commit
0a6dab42c0
@ -1,6 +1,6 @@
|
|||||||
Name: libyuv
|
Name: libyuv
|
||||||
URL: http://code.google.com/p/libyuv/
|
URL: http://code.google.com/p/libyuv/
|
||||||
Version: 1137
|
Version: 1138
|
||||||
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 1137
|
#define LIBYUV_VERSION 1138
|
||||||
|
|
||||||
#endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT
|
#endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT
|
||||||
|
|||||||
@ -871,9 +871,9 @@ int I422ToABGR(const uint8* src_y, int src_stride_y,
|
|||||||
src_stride_y = src_stride_u = src_stride_v = dst_stride_abgr = 0;
|
src_stride_y = src_stride_u = src_stride_v = dst_stride_abgr = 0;
|
||||||
}
|
}
|
||||||
#if defined(HAS_I422TOABGRROW_NEON)
|
#if defined(HAS_I422TOABGRROW_NEON)
|
||||||
if (TestCpuFlag(kCpuHasNEON)) {
|
if (TestCpuFlag(kCpuHasNEON) && width >= 8) {
|
||||||
I422ToABGRRow = I422ToABGRRow_Any_NEON;
|
I422ToABGRRow = I422ToABGRRow_Any_NEON;
|
||||||
if (IS_ALIGNED(width, 16)) {
|
if (IS_ALIGNED(width, 8)) {
|
||||||
I422ToABGRRow = I422ToABGRRow_NEON;
|
I422ToABGRRow = I422ToABGRRow_NEON;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -939,9 +939,9 @@ int I422ToRGBA(const uint8* src_y, int src_stride_y,
|
|||||||
src_stride_y = src_stride_u = src_stride_v = dst_stride_rgba = 0;
|
src_stride_y = src_stride_u = src_stride_v = dst_stride_rgba = 0;
|
||||||
}
|
}
|
||||||
#if defined(HAS_I422TORGBAROW_NEON)
|
#if defined(HAS_I422TORGBAROW_NEON)
|
||||||
if (TestCpuFlag(kCpuHasNEON)) {
|
if (TestCpuFlag(kCpuHasNEON) && width >= 8) {
|
||||||
I422ToRGBARow = I422ToRGBARow_Any_NEON;
|
I422ToRGBARow = I422ToRGBARow_Any_NEON;
|
||||||
if (IS_ALIGNED(width, 16)) {
|
if (IS_ALIGNED(width, 8)) {
|
||||||
I422ToRGBARow = I422ToRGBARow_NEON;
|
I422ToRGBARow = I422ToRGBARow_NEON;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user