Scroll to navigation

SDL_GetVideoCaptureFrameSize(3) SDL3 FUNCTIONS SDL_GetVideoCaptureFrameSize(3)

NAME

SDL_GetVideoCaptureFrameSize - Get frame sizes of the device and the specified input format.

SYNOPSIS

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

DESCRIPTION

The value can be used to fill SDL_VideoCaptureSpec

structure.

FUNCTION PARAMETERS

opened video capture device
a format that can be used by the device ( SDL_PixelFormatEnum )
framesize between 0 and num -1
output width
output height

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_GetNumVideoCaptureFrameSizes(3)

SDL 3.0.0 SDL