mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-27 06:08:21 +01:00
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:
parent
585d93dbba
commit
ca221bbc48
@ -20,8 +20,6 @@
|
||||
#include "./lossless.h"
|
||||
#include "./neon.h"
|
||||
|
||||
#ifdef WEBP_USE_INTRINSICS
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Subtract-Green Transform
|
||||
|
||||
@ -72,17 +70,13 @@ static void SubtractGreenFromBlueAndRed(uint32_t* argb_data, int num_pixels) {
|
||||
|
||||
#undef USE_VTBLQ
|
||||
|
||||
#endif // WEBP_USE_INTRINSICS
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Entry point
|
||||
|
||||
extern void VP8LEncDspInitNEON(void);
|
||||
|
||||
WEBP_TSAN_IGNORE_FUNCTION void VP8LEncDspInitNEON(void) {
|
||||
#ifdef WEBP_USE_INTRINSICS
|
||||
VP8LSubtractGreenFromBlueAndRed = SubtractGreenFromBlueAndRed;
|
||||
#endif
|
||||
}
|
||||
|
||||
#else // !WEBP_USE_NEON
|
||||
|
Loading…
Reference in New Issue
Block a user