mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-28 06:38:20 +01:00
lossless_neon: enable VP8LAddGreenToBlueAndRed
this moves the function outside the WEBP_USE_INTRINSICS check. there's no alternative version and it's ~70% faster at the function level and 1-2% faster overall Change-Id: I59fb4918ec86b1ac3a47cbd5d05ce62f007461cb
This commit is contained in:
parent
36e9c4bc50
commit
f27f773576
@ -256,6 +256,8 @@ static uint32_t Predictor13(uint32_t left, const uint32_t* const top) {
|
|||||||
return ClampedAddSubtractHalf(&left, top + 0, top - 1);
|
return ClampedAddSubtractHalf(&left, top + 0, top - 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // WEBP_USE_INTRINSICS
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// Subtract-Green Transform
|
// Subtract-Green Transform
|
||||||
|
|
||||||
@ -306,8 +308,6 @@ static void AddGreenToBlueAndRed(uint32_t* argb_data, int num_pixels) {
|
|||||||
|
|
||||||
#undef USE_VTBLQ
|
#undef USE_VTBLQ
|
||||||
|
|
||||||
#endif // WEBP_USE_INTRINSICS
|
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// Entry point
|
// Entry point
|
||||||
|
|
||||||
@ -328,9 +328,9 @@ WEBP_TSAN_IGNORE_FUNCTION void VP8LDspInitNEON(void) {
|
|||||||
VP8LPredictors[11] = Predictor11;
|
VP8LPredictors[11] = Predictor11;
|
||||||
VP8LPredictors[12] = Predictor12;
|
VP8LPredictors[12] = Predictor12;
|
||||||
VP8LPredictors[13] = Predictor13;
|
VP8LPredictors[13] = Predictor13;
|
||||||
|
#endif
|
||||||
|
|
||||||
VP8LAddGreenToBlueAndRed = AddGreenToBlueAndRed;
|
VP8LAddGreenToBlueAndRed = AddGreenToBlueAndRed;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#else // !WEBP_USE_NEON
|
#else // !WEBP_USE_NEON
|
||||||
|
Loading…
Reference in New Issue
Block a user