From 0d6fb17921e42d7140b6990ae3d7e6500dc4527f Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Mon, 23 Jan 2017 17:10:40 +0100 Subject: [PATCH] Fixed NEON primitives. --- libfreerdp/primitives/prim_colors_opt.c | 26 +++---------------------- 1 file changed, 3 insertions(+), 23 deletions(-) diff --git a/libfreerdp/primitives/prim_colors_opt.c b/libfreerdp/primitives/prim_colors_opt.c index efb516196..4f79eddc4 100644 --- a/libfreerdp/primitives/prim_colors_opt.c +++ b/libfreerdp/primitives/prim_colors_opt.c @@ -474,11 +474,9 @@ static pstatus_t sse2_RGBToRGB_16s8u_P3AC4R( /*---------------------------------------------------------------------------*/ #ifdef WITH_NEON -static pstatus_t neon_yCbCrToRGB_16s16s_P3P3_BGRX( - const INT16* pSrc[3], - int srcStep, - INT16* pDst[3], - int dstStep, +static pstatus_t neon_yCbCrToRGB_16s16s_P3P3( + const INT16* pSrc[3], INT32 srcStep, + INT16* pDst[3], INT32 dstStep, const prim_size_t* roi) /* region of interest */ { /* TODO: If necessary, check alignments and call the general version. */ @@ -563,24 +561,6 @@ static pstatus_t neon_yCbCrToRGB_16s16s_P3P3_BGRX( return PRIMITIVES_SUCCESS; } -static pstatus_t neon_RGBToRGB_16s8u_P3AC4R( - const INT16* const pSrc[3], /* 16-bit R,G, and B arrays */ - UINT32 srcStep, /* bytes between rows in source data */ - BYTE* pDst, /* 32-bit interleaved ARGB (ABGR?) data */ - UINT32 dstStep, /* bytes between rows in dest data */ - UINT32 DstFormat, - const prim_size_t* roi) -{ - switch (DstFormat) - { - case PIXEL_FORMAT_BGRA32: - case PIXEL_FORMAT_BGRX32: - return neon_RGBToRGB_16s8u_P3AC4R_BGRX(pSrc, srcStep, pDst, dstStep, DstFormat, roi); - - default: - return generic->RGBToRGB_16s8u_P3AC4R(pSrc, srcStep, pDst, dstStep, DstFormat, roi); - } -} #endif /* WITH_NEON */