From f34fb5042d40c186583f9e3009d8a1dd71d07d43 Mon Sep 17 00:00:00 2001 From: Doan Luu Duc Tai Date: Tue, 8 Sep 2026 14:46:47 -0500 Subject: Initial commit --- src/video.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 src/video.h (limited to 'src/video.h') 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 +#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 */ -- cgit v1.2.3