Scroll to navigation

SDL_GetVideoCaptureFormat(3) SDL3 FUNCTIONS SDL_GetVideoCaptureFormat(3)

NAME

SDL_GetVideoCaptureFormat - Get frame format of video capture device.

SYNOPSIS

#include "SDL3/SDL.h"
int SDL_GetVideoCaptureFormat(SDL_VideoCaptureDevice *device,
                              int index,
                              Uint32 *format);

DESCRIPTION

The value can be used to fill SDL_VideoCaptureSpec

structure.

FUNCTION PARAMETERS

opened video capture device
format between 0 and num -1
pointer output format ( SDL_PixelFormatEnum )

RETURN VALUE

Returns 0 on success or a negative error code on failure; call

SDL_GetError () for more information.

AVAILABILITY

This function is available since SDL 3.0.0.

SEE ALSO

SDL_GetNumVideoCaptureFormats(3)

SDL 3.0.0 SDL