summaryrefslogtreecommitdiff
path: root/video.h
diff options
context:
space:
mode:
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_