blob: df2166293cd4a7cf9a46e4268b87045decaf6c20 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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 */
|