refactor: pass structs as pointers except for background things

This commit is contained in:
2025-11-08 19:24:14 +01:00
parent 92f010ca70
commit 3b7a550b6a
23 changed files with 418 additions and 450 deletions
+4 -3
View File
@@ -3,11 +3,12 @@
#ifndef VIDEO_H
#define VIDEO_H
VideoCapture video_init(char *name, unsigned int preferred_height);
void video_init(VideoCapture *video_capture, char *name,
unsigned int preferred_height);
bool video_background_read(VideoCapture *video_capture, SharedContext *context,
bool video_background_read(VideoCapture video_capture, SharedContext *context,
int input_index, bool trace_fps);
void video_free(VideoCapture video_capture);
void video_free(VideoCapture *video_capture);
#endif /* VIDEO_H */