mirror of
https://github.com/webmproject/libwebp.git
synced 2024-11-20 04:18:26 +01:00
disable GradientUnfilter_NEON
Compile with XCode, it appears quite slower than the C-version, especially for arm64. Change-Id: Ic46dba184a36be454fef674129d2f909003788fc
This commit is contained in:
parent
84cef16f47
commit
4f3e3bbd44
@ -248,6 +248,12 @@ static void VerticalUnfilter_NEON(const uint8_t* prev, const uint8_t* in,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GradientUnfilter_NEON is correct but slower than the C-version,
|
||||||
|
// at least on ARM64. For armv7, it's a wash.
|
||||||
|
// So best is to disable it for now, but keep the idea around...
|
||||||
|
// #define USE_GRADIENT_UNFILTER
|
||||||
|
|
||||||
|
#if defined(USE_GRADIENT_UNFILTER)
|
||||||
#define GRAD_PROCESS_LANE(L) do { \
|
#define GRAD_PROCESS_LANE(L) do { \
|
||||||
const uint8x8_t tmp1 = ROTATE_RIGHT_N(pred, 1); /* rotate predictor in */ \
|
const uint8x8_t tmp1 = ROTATE_RIGHT_N(pred, 1); /* rotate predictor in */ \
|
||||||
const int16x8_t tmp2 = vaddq_s16(BC, U8_TO_S16(tmp1)); \
|
const int16x8_t tmp2 = vaddq_s16(BC, U8_TO_S16(tmp1)); \
|
||||||
@ -295,6 +301,8 @@ static void GradientUnfilter_NEON(const uint8_t* prev, const uint8_t* in,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // USE_GRADIENT_UNFILTER
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// Entry point
|
// Entry point
|
||||||
|
|
||||||
@ -303,7 +311,9 @@ extern void VP8FiltersInitNEON(void);
|
|||||||
WEBP_TSAN_IGNORE_FUNCTION void VP8FiltersInitNEON(void) {
|
WEBP_TSAN_IGNORE_FUNCTION void VP8FiltersInitNEON(void) {
|
||||||
WebPUnfilters[WEBP_FILTER_HORIZONTAL] = HorizontalUnfilter_NEON;
|
WebPUnfilters[WEBP_FILTER_HORIZONTAL] = HorizontalUnfilter_NEON;
|
||||||
WebPUnfilters[WEBP_FILTER_VERTICAL] = VerticalUnfilter_NEON;
|
WebPUnfilters[WEBP_FILTER_VERTICAL] = VerticalUnfilter_NEON;
|
||||||
|
#if defined(USE_GRADIENT_UNFILTER)
|
||||||
WebPUnfilters[WEBP_FILTER_GRADIENT] = GradientUnfilter_NEON;
|
WebPUnfilters[WEBP_FILTER_GRADIENT] = GradientUnfilter_NEON;
|
||||||
|
#endif
|
||||||
|
|
||||||
WebPFilters[WEBP_FILTER_HORIZONTAL] = HorizontalFilter_NEON;
|
WebPFilters[WEBP_FILTER_HORIZONTAL] = HorizontalFilter_NEON;
|
||||||
WebPFilters[WEBP_FILTER_VERTICAL] = VerticalFilter_NEON;
|
WebPFilters[WEBP_FILTER_VERTICAL] = VerticalFilter_NEON;
|
||||||
|
Loading…
Reference in New Issue
Block a user