summaryrefslogtreecommitdiff
path: root/src/video_decode.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/video_decode.h')
-rw-r--r--src/video_decode.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/video_decode.h b/src/video_decode.h
new file mode 100644
index 0000000..64127f3
--- /dev/null
+++ b/src/video_decode.h
@@ -0,0 +1,19 @@
+#include <stdint.h>
+
+struct video_decode;
+struct video_frame {
+ uint8_t *data;
+ int width, height, stride;
+};
+
+int
+video_decode_init(struct video_decode **vd, char *file, int64_t timestamp);
+
+void
+video_decode_uninit(struct video_decode **vd);
+
+int
+video_decode_get_frame(struct video_decode *vd, struct video_frame **frame);
+
+void
+video_decode_free_frame(struct video_frame **frame);