summaryrefslogtreecommitdiff
path: root/video.h
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2025-02-23 13:52:44 -0500
committerpommicket <pommicket@gmail.com>2025-02-25 15:16:08 -0500
commit27b5aa8289330bc7b9f3499bf98a84f0127f4899 (patch)
tree7bffb0ce28a7924d425fde6fc2f7112f1b6ea7da /video.h
parent78f28b310251cd3e35d588c9f1476e3d0ef6d983 (diff)
separate video stuff into its own file
Diffstat (limited to 'video.h')
-rw-r--r--video.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/video.h b/video.h
new file mode 100644
index 0000000..1701aae
--- /dev/null
+++ b/video.h
@@ -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_