Skip to content

cf_video_frame

Category: video
GitHub: cute_video.h


The picture currently being shown, as pixels.

CF_Image cf_video_frame(CF_Video* video);
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.

CF_Video
cf_video_texture
cf_video_next_frame