summaryrefslogtreecommitdiff
path: root/src/video.h
diff options
context:
space:
mode:
authorDoan Luu Duc Tai <doan@luuduct.ai>2026-09-08 14:46:47 -0500
committerDoan Luu Duc Tai <doan@luuduct.ai>2026-09-08 14:46:47 -0500
commitf34fb5042d40c186583f9e3009d8a1dd71d07d43 (patch)
tree3f494f3723ebe9f173d0702a97509794f0ef85a5 /src/video.h
Initial commitmain
Diffstat (limited to 'src/video.h')
-rw-r--r--src/video.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/video.h b/src/video.h
new file mode 100644
index 0000000..df21662
--- /dev/null
+++ b/src/video.h
@@ -0,0 +1,31 @@
+/* SPDX-License-Identifier: GPL-3.0-or-later */
+/*
+ * vfetch - neofetch but the ascii part is a video
+ *
+ * Copyright (C) 2026 Doan Luu Duc Tai
+ *
+ */
+
+#ifndef SRC__VIDEO_H
+#define SRC__VIDEO_H
+
+#include <stddef.h>
+#include "config.h"
+#include "error.h"
+#include "state.h"
+#include "video_defs.h"
+
+VfetchError resolve_geometry(VfetchArgs *args);
+VfetchError get_video_frame_count(const char *filename,
+ double fps,
+ size_t *frame_count_out);
+VfetchError validate_fps(VfetchArgs *args);
+VfetchError initialize_worker_resources(WorkerResources *res,
+ const VfetchArgs *args);
+void cleanup_worker_resources(WorkerResources *res);
+VfetchError populate_frame_cache_loop(WorkerResources *res,
+ AppState *state,
+ CacheFiles *files,
+ unsigned long *current_offset);
+
+#endif /* SRC__VIDEO_H */