video_get_format

This function returns the colour format of the currently loaded video. This can be any one of the following constants:

Video Format Constant
ConstantDescription
video_format_rgbaThe video surface uses the RGBA color model
video_format_yuvThe video surface uses the YUV color model

Windows, macOS, GX.games, Android, iOS, and HTML5 use the RGBA model for videos. All other platforms use the YUV model.

As the drawing methods for RGBA and YUV videos are different, the return value from this function may be used to run different code based on the format of the playing video. See Draw Video for an example.

 

Syntax:

video_get_format();

 

Returns:

Video Format Constant