X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=frontend%2Fcspace.h;h=6dbd5e0f5a4cdeb73be5c2f7e861cc62c5b71902;hb=afaac9354c80862f1bb153144a811f12d6836eec;hp=644143bf5b42b74abfd4ef0df8cb619c3092d7a1;hpb=a80ae4a0353fce94df700ec84222d3c56c3d813a;p=pcsx_rearmed.git diff --git a/frontend/cspace.h b/frontend/cspace.h index 644143bf..6dbd5e0f 100644 --- a/frontend/cspace.h +++ b/frontend/cspace.h @@ -1,3 +1,6 @@ +#ifndef __CSPACE_H__ +#define __CSPACE_H__ + #ifdef __cplusplus extern "C" { @@ -6,7 +9,18 @@ extern "C" void bgr555_to_rgb565(void *dst, const void *src, int bytes); void bgr888_to_rgb888(void *dst, const void *src, int bytes); void bgr888_to_rgb565(void *dst, const void *src, int bytes); +void rgb888_to_rgb565(void *dst, const void *src, int bytes); + +void bgr555_to_rgb565_b(void *dst, const void *src, int bytes, + int brightness2k); // 0-0x0800 + +void bgr_to_uyvy_init(void); +void rgb565_to_uyvy(void *d, const void *s, int pixels); +void bgr555_to_uyvy(void *d, const void *s, int pixels); +void bgr888_to_uyvy(void *d, const void *s, int pixels); #ifdef __cplusplus } #endif + +#endif /* __CSPACE_H__ */