Core Functions
videoConfigure
Configure the video output.Video output ID:
VIDEO_PRIMARY(0) - Primary video outputVIDEO_SECONDARY(1) - Secondary video output
Pointer to video configuration structure.
Pointer to additional configuration options (usually NULL).
Blocking mode:
- 0 - Non-blocking (returns immediately)
- Non-zero - Blocking (waits for configuration to complete)
Returns 0 on success, nonzero on error.
videoGetState
Get the current video state.Video output ID (typically 0 for primary display).
Device index (typically 0 for primary device).
Pointer to video state structure to be filled.
Returns 0 on success, nonzero on error.
videoGetResolution
Get resolution dimensions from a resolution ID.Resolution identifier:
VIDEO_RESOLUTION_1080(1) - 1920x1080VIDEO_RESOLUTION_720(2) - 1280x720VIDEO_RESOLUTION_480(4) - 720x480VIDEO_RESOLUTION_576(5) - 720x576VIDEO_RESOLUTION_1600x1080(10)VIDEO_RESOLUTION_1440x1080(11)VIDEO_RESOLUTION_1280x1080(12)VIDEO_RESOLUTION_960x1080(13)
Pointer to resolution structure to be filled with width and height.
Returns 0 on success, nonzero on error.
videoGetConfiguration
Get the current video configuration.Video output ID.
Pointer to store current configuration.
Additional options (usually NULL).
Returns 0 on success, nonzero on error.
videoGetNumberOfDevice
Get the number of connected video devices.Video output ID.
Returns number of devices, or negative on error.
videoGetDeviceInfo
Get information about a video device.Video output ID.
Device index.
Pointer to device info structure to be filled.
Returns 0 on success, nonzero on error.
videoGetResolutionAvailability
Check if a resolution is available.Video output ID.
Resolution ID to check.
Aspect ratio.
Additional options.
Returns availability status.
videoRegisterCallback
Register a callback for video events.Callback slot (0-3).
Callback function pointer.
User data passed to callback.
Returns 0 on success, nonzero on error.
videoUnregisterCallback
Unregister a video callback.Callback slot to unregister.
Returns 0 on success, nonzero on error.
videoGetConvertCursorColorInfo
Get cursor color conversion information.Pointer to store RGB output range.
Returns 0 on success, nonzero on error.
videoDebugSetMonitorType
Set monitor type for debugging.Video output ID.
Monitor type value.
Returns 0 on success, nonzero on error.
Data Structures
videoConfiguration
Video configuration structure.Resolution ID (see videoGetResolution).
Buffer format:
VIDEO_BUFFER_FORMAT_XRGB(0) - XRGB formatVIDEO_BUFFER_FORMAT_XBGR(1) - XBGR formatVIDEO_BUFFER_FORMAT_FLOAT(2) - Float format
Aspect ratio:
VIDEO_ASPECT_AUTO(0) - AutomaticVIDEO_ASPECT_4_3(1) - 4:3 aspect ratioVIDEO_ASPECT_16_9(2) - 16:9 aspect ratio
Pitch (bytes per line) - offset between consecutive lines.
videoState
Video state structure.Current state:
VIDEO_STATE_DISABLED(0) - DisabledVIDEO_STATE_ENABLED(1) - EnabledVIDEO_STATE_BUSY(3) - Busy
Color space (buffer format).
Current display mode settings.
videoDisplayMode
Display mode structure.Resolution ID.
Scan mode:
VIDEO_SCANMODE_INTERLACE(0) - InterlacedVIDEO_SCANMODE_PROGRESSIVE(1) - Progressive
Conversion mode.
Aspect ratio setting.
Supported refresh rates (bitfield):
VIDEO_REFRESH_AUTO(0x00)VIDEO_REFRESH_59_94HZ(0x01)VIDEO_REFRESH_50HZ(0x02)VIDEO_REFRESH_60HZ(0x04)VIDEO_REFRESH_30HZ(0x08)
videoResolution
Resolution dimensions.Screen width in pixels.
Screen height in pixels.
videoDeviceInfo
Video device information.Port type:
VIDEO_PORT_NONE(0x00)VIDEO_PORT_HDMI(0x01)VIDEO_PORT_NETWORK(0x41)VIDEO_PORT_COMPOSITE(0x81)VIDEO_PORT_D(0x82)VIDEO_PORT_COMPONENT(0x83)VIDEO_PORT_RGB(0x84)VIDEO_PORT_SCART(0x85)VIDEO_PORT_DSUB(0x86)
Supported color spaces:
VIDEO_COLOR_RGB(0x01)VIDEO_COLOR_YUV(0x02)VIDEO_COLOR_XVYCC(0x04)
Number of available display modes.
Device state.
Array of available display modes.