cf_video_frame¶
Category: video
GitHub: cute_video.h
The picture currently being shown, as pixels.
| Parameters | Description |
|---|---|
video |
The video. |
Return Value¶
Returns a CF_Image whose pixels belong to the video.
Remarks¶
Do NOT call cf_image_free on it, and do not keep the pointer: it is overwritten by the next decode. The first frame is decoded when the video is opened, so this is never empty on a valid video. To get it onto the screen use cf_video_texture instead, which does the upload for you.