Skip to content

Commit

Permalink
[ci,primitives] enable NEON on iOS builds
Browse files Browse the repository at this point in the history
* Enable WITH_NEON=ON for iOS builds
* Fix a undeclared variable issue with NEON builds
  • Loading branch information
akallabeth committed Mar 8, 2024
1 parent e53dc3d commit f1134c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions ci/cmake-preloads/config-ios.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ set (WITH_KRB5 OFF CACHE BOOL "Kerberos support")
set (WITH_CLIENT_SDL OFF CACHE BOOL "SDL client")
set (WITH_FFMPEG OFF CACHE BOOL "SDL client")
set (WITH_SWSCALE OFF CACHE BOOL "SDL client")
set (WITH_NEON ON CACHE BOOL "SDL client")
set (BUILD_SHARED_LIBS OFF CACHE BOOL "SDL client")
3 changes: 2 additions & 1 deletion libfreerdp/primitives/prim_YUV_neon.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@ static INLINE pstatus_t neon_YUV420ToX(const BYTE* const WINPR_RESTRICT pSrc[3],
uint8_t* pRGB2 = pRGB1 + dstStep;
const BOOL lastY = y >= nHeight - 1;

for (UINT32 x = 0; x < nWidth - pad;)
UINT32 x = 0;
for (; x < nWidth - pad;)
{
const uint8x8_t Uraw = vld1_u8(pU);
const uint8x8x2_t Uu = vzip_u8(Uraw, Uraw);
Expand Down

0 comments on commit f1134c6

Please sign in to comment.