diff options
author | pommicket <pommicket@gmail.com> | 2025-02-23 13:52:44 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2025-02-25 15:16:08 -0500 |
commit | 27b5aa8289330bc7b9f3499bf98a84f0127f4899 (patch) | |
tree | 7bffb0ce28a7924d425fde6fc2f7112f1b6ea7da /video.h | |
parent | 78f28b310251cd3e35d588c9f1476e3d0ef6d983 (diff) |
separate video stuff into its own file
Diffstat (limited to 'video.h')
-rw-r--r-- | video.h | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -0,0 +1,17 @@ +#ifndef VIDEO_H_ +#define VIDEO_H_ + +#include <stdbool.h> +#include <stdint.h> + +typedef struct VideoContext VideoContext; +struct Camera; + +VideoContext *video_init(void); +bool video_start(VideoContext *ctx, const char *filename, int32_t width, int32_t height, int fps, int quality); +bool video_is_recording(VideoContext *ctx); +void video_stop(VideoContext *ctx); +bool video_submit_frame(VideoContext *ctx, struct Camera *camera); +void video_quit(VideoContext *ctx); + +#endif // VIDEO_H_ |