Release a frame.
int SDL_ReleaseVideoCaptureFrame(SDL_VideoCaptureDevice *device, SDL_VideoCaptureFrame *frame);
device | opened video capture device |
frame | frame pointer. |
Returns 0 on success or a negative error code on failure; call SDL_GetError() for more information.
Let the back-end re-use the internal buffer for video capture.
All acquired frames should be released before closing the device.
This function is available since SDL 3.0.0.