X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=frontend%2Fcspace.c;h=1557f8e73bbc593ea7675b367a2e9978c72d6b7d;hb=047899a4f30d4a11e467e6b5aa0ba4cbf94c3f6b;hp=557fe461b14bf3c8eb6de994e21e495ee7d788a1;hpb=1318072afcc5d037c250e671af32f8d695ba2785;p=pcsx_rearmed.git diff --git a/frontend/cspace.c b/frontend/cspace.c index 557fe461..1557f8e7 100644 --- a/frontend/cspace.c +++ b/frontend/cspace.c @@ -22,7 +22,7 @@ #define LE16TOHx2(x) (x) #endif -#ifndef __arm__ +#ifndef HAVE_bgr555_to_rgb565 void bgr555_to_rgb565(void *dst_, const void *src_, int bytes) { @@ -43,29 +43,7 @@ void bgr555_to_rgb565(void *dst_, const void *src_, int bytes) #endif -#ifdef __arm64__ - -void bgr888_to_rgb565(void *dst_, const void *src_, int bytes) -{ - const unsigned char *src = src_; - unsigned int *dst = dst_; - unsigned int r1, g1, b1, r2, g2, b2; - - for (; bytes >= 6; bytes -= 6, src += 6, dst++) { - r1 = src[0] & 0xf8; - g1 = src[1] & 0xfc; - b1 = src[2] & 0xf8; - r2 = src[3] & 0xf8; - g2 = src[4] & 0xfc; - b2 = src[5] & 0xf8; - *dst = (r2 << 24) | (g2 << 19) | (b2 << 13) | - (r1 << 8) | (g1 << 3) | (b1 >> 3); - } -} - -#endif - -#ifndef __ARM_NEON__ +#ifndef HAVE_bgr888_to_x void bgr888_to_rgb565(void *dst_, const void *src_, int bytes) { @@ -90,6 +68,9 @@ void bgr888_to_rgb565(void *dst_, const void *src_, int bytes) } } +#endif + +#ifndef __ARM_NEON__ // TODO? void rgb888_to_rgb565(void *dst, const void *src, int bytes) {} void bgr888_to_rgb888(void *dst, const void *src, int bytes) {}