Skip to content

cf_make_video_from_memory

Category: video
GitHub: cute_video.h


Opens a video already in memory.

CF_Video* cf_make_video_from_memory(const void* data, int size);
Parameters Description
data The file's bytes, .mp4 or raw .h264.
size How many bytes data holds.

Return Value

Returns the video, or NULL on failure -- call cf_video_error for the reason.

Remarks

The bytes are copied, so the caller's buffer may be freed immediately.

CF_Video
cf_make_video
cf_destroy_video
cf_video_error