diff --git a/source/row.h b/source/row.h index 631b5a9e1..0081b1ac5 100644 --- a/source/row.h +++ b/source/row.h @@ -20,27 +20,6 @@ #define YUV_DISABLE_ASM #endif -#if defined(__ARM_NEON__) && !defined(YUV_DISABLE_ASM) -#define HAS_FASTCONVERTYUVTOARGBROW_NEON -void FastConvertYUVToARGBRow_NEON(const uint8* y_buf, - const uint8* u_buf, - const uint8* v_buf, - uint8* rgb_buf, - int width); -#define HAS_FASTCONVERTYUVTOBGRAROW_NEON -void FastConvertYUVToBGRARow_NEON(const uint8* y_buf, - const uint8* u_buf, - const uint8* v_buf, - uint8* rgb_buf, - int width); -#define HAS_FASTCONVERTYUVTOABGRROW_NEON -void FastConvertYUVToABGRRow_NEON(const uint8* y_buf, - const uint8* u_buf, - const uint8* v_buf, - uint8* rgb_buf, - int width); -#endif - // The following are available on all x86 platforms #if (defined(_M_IX86) || defined(__x86_64__) || defined(__i386__)) && \ !defined(YUV_DISABLE_ASM) @@ -71,6 +50,9 @@ void FastConvertYUVToABGRRow_NEON(const uint8* y_buf, // The following are available on Neon platforms #if defined(__ARM_NEON__) && !defined(YUV_DISABLE_ASM) #define HAS_REVERSE_ROW_NEON +#define HAS_FASTCONVERTYUVTOARGBROW_NEON +#define HAS_FASTCONVERTYUVTOBGRAROW_NEON +#define HAS_FASTCONVERTYUVTOABGRROW_NEON #endif #ifdef __cplusplus @@ -78,6 +60,28 @@ namespace libyuv { extern "C" { #endif +#ifdef HAS_FASTCONVERTYUVTOARGBROW_NEON +void FastConvertYUVToARGBRow_NEON(const uint8* y_buf, + const uint8* u_buf, + const uint8* v_buf, + uint8* rgb_buf, + int width); +#endif +#ifdef HAS_FASTCONVERTYUVTOBGRAROW_NEON +void FastConvertYUVToBGRARow_NEON(const uint8* y_buf, + const uint8* u_buf, + const uint8* v_buf, + uint8* rgb_buf, + int width); +#endif +#ifdef HAS_FASTCONVERTYUVTOABGRROW_NEON +void FastConvertYUVToABGRRow_NEON(const uint8* y_buf, + const uint8* u_buf, + const uint8* v_buf, + uint8* rgb_buf, + int width); +#endif + #ifdef HAS_ARGBTOYROW_SSSE3 void ARGBToYRow_SSSE3(const uint8* src_argb, uint8* dst_y, int pix); void BGRAToYRow_SSSE3(const uint8* src_argb, uint8* dst_y, int pix);