Get frame sizes of the device and the specified input format.
int SDL_GetVideoCaptureFrameSize(SDL_VideoCaptureDevice *device, Uint32 format, int index, int *width, int *height);
device | opened video capture device |
format | a format that can be used by the device (SDL_PixelFormatEnum) |
index | framesize between 0 and num -1 |
width | output width |
height | output height |
Returns 0 on success or a negative error code on failure; call SDL_GetError() for more information.
The value can be used to fill SDL_VideoCaptureSpec structure.
This function is available since SDL 3.0.0.