testyuv: added GetColorspaceForYUVConversionMode()

This commit is contained in:
Sam Lantinga
2024-03-01 02:02:53 -08:00
parent 812e04fb11
commit 991ad27de8
3 changed files with 39 additions and 26 deletions

View File

@@ -22,5 +22,6 @@ typedef enum
extern void SetYUVConversionMode(YUV_CONVERSION_MODE mode);
extern YUV_CONVERSION_MODE GetYUVConversionModeForResolution(int width, int height);
extern SDL_Colorspace GetColorspaceForYUVConversionMode(YUV_CONVERSION_MODE mode);
extern SDL_bool ConvertRGBtoYUV(Uint32 format, Uint8 *src, int pitch, Uint8 *out, int w, int h, YUV_CONVERSION_MODE mode, int monochrome, int luminance);
extern int CalculateYUVPitch(Uint32 format, int width);