/* 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 */