ll_enc_neon: enable VP8LSubtractGreenFromBlueAndRed

this moves the function outside the WEBP_USE_INTRINSICS check.
there's no alternative version and it's ~54% faster at the
function level and mildly faster overall

Change-Id: Ibc648e9ee35021d48901e05aa596aa01067796a2
This commit is contained in:
James Zern 2015-07-28 19:37:06 -07:00
parent 585d93dbba
commit ca221bbc48

View File

@ -20,8 +20,6 @@
#include "./lossless.h" #include "./lossless.h"
#include "./neon.h" #include "./neon.h"
#ifdef WEBP_USE_INTRINSICS
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// Subtract-Green Transform // Subtract-Green Transform
@ -72,17 +70,13 @@ static void SubtractGreenFromBlueAndRed(uint32_t* argb_data, int num_pixels) {
#undef USE_VTBLQ #undef USE_VTBLQ
#endif // WEBP_USE_INTRINSICS
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// Entry point // Entry point
extern void VP8LEncDspInitNEON(void); extern void VP8LEncDspInitNEON(void);
WEBP_TSAN_IGNORE_FUNCTION void VP8LEncDspInitNEON(void) { WEBP_TSAN_IGNORE_FUNCTION void VP8LEncDspInitNEON(void) {
#ifdef WEBP_USE_INTRINSICS
VP8LSubtractGreenFromBlueAndRed = SubtractGreenFromBlueAndRed; VP8LSubtractGreenFromBlueAndRed = SubtractGreenFromBlueAndRed;
#endif
} }
#else // !WEBP_USE_NEON #else // !WEBP_USE_NEON