Get frame format of video capture device.
device | opened video capture device |
index | format between 0 and num -1 |
format | pointer output format (SDL_PixelFormatEnum) |
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.