sdlGetYuvConversionModeForResolution function
Get the YUV conversion mode, returning the correct mode for the resolution when the current conversion mode is SDL_YUV_CONVERSION_AUTOMATIC
\since This function is available since SDL 2.0.8.
extern DECLSPEC SDL_YUV_CONVERSION_MODE SDLCALL SDL_GetYUVConversionModeForResolution(int width, int height)
Implementation
int sdlGetYuvConversionModeForResolution(int width, int height) {
final sdlGetYuvConversionModeForResolutionLookupFunction =
libSdl2.lookupFunction<
Int32 Function(Int32 width, Int32 height),
int Function(
int width, int height)>('SDL_GetYUVConversionModeForResolution');
return sdlGetYuvConversionModeForResolutionLookupFunction(width, height);
}