testyuv: added GetColorspaceForYUVConversionMode()

This commit is contained in:
Sam Lantinga committed 2024-03-01 07:42:34 -08:00
1 parent 812e04fb11
commit 991ad27de8
3 files changed
+39 -26

No files matched your search

+1
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);