diff options
Diffstat (limited to 'src/video.h')
| -rw-r--r-- | src/video.h | 31 |
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 */ |
