refactor: pass structs as pointers except for background things
This commit is contained in:
+4
-3
@@ -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 */
|
||||
Reference in New Issue
Block a user