refactor: specify number of video input buffers
Clang Lint CI / lint-no-video (push) Successful in 1m5s
Clang Build CI / run-no-video (push) Successful in 1m5s
Clang Build CI / run-video (push) Successful in 1m5s
Clang Build CI / build-release (push) Successful in 2m24s
Clang Lint CI / lint-video (push) Successful in 2m22s
Clang Lint CI / lint-no-video (push) Successful in 1m5s
Clang Build CI / run-no-video (push) Successful in 1m5s
Clang Build CI / run-video (push) Successful in 1m5s
Clang Build CI / build-release (push) Successful in 2m24s
Clang Lint CI / lint-video (push) Successful in 2m22s
This commit is contained in:
+5
-4
@@ -70,7 +70,7 @@ static void init_context() {
|
||||
memset(context.input_resolutions, 0, sizeof(context.input_resolutions));
|
||||
memset(context.input_formats, 0, sizeof(context.input_formats));
|
||||
memset(context.input_fps, 0, sizeof(context.input_fps));
|
||||
memset(context.input_swap, 0, sizeof(context.input_swap));
|
||||
memset(context.input_index, 0, sizeof(context.input_index));
|
||||
#endif /* VIDEO_IN */
|
||||
}
|
||||
|
||||
@@ -85,7 +85,7 @@ static void init_inputs() {
|
||||
|
||||
for (unsigned int i = 0; i < init_params.video_in.length; i++) {
|
||||
video_init(&video_captures.values[i], init_params.video_in.values[i],
|
||||
init_params.video_size);
|
||||
init_params.video_size, init_params.video_buffers);
|
||||
|
||||
if (!video_captures.values[i].error) {
|
||||
context.input_resolutions[i][0] = video_captures.values[i].width;
|
||||
@@ -121,7 +121,7 @@ background_reconnect_video_captures(__attribute__((unused)) void *args) {
|
||||
if (video_captures.values[i].disconnected) {
|
||||
video_free(&video_captures.values[i]);
|
||||
video_init(&video_captures.values[i], init_params.video_in.values[i],
|
||||
init_params.video_size);
|
||||
init_params.video_size, init_params.video_buffers);
|
||||
|
||||
if (!video_captures.values[i].error) {
|
||||
context.input_resolutions[i][0] = video_captures.values[i].width;
|
||||
@@ -292,7 +292,8 @@ static bool init(const Parameters *params) {
|
||||
}
|
||||
|
||||
#ifdef VIDEO_IN
|
||||
shaders_link_inputs(&program, &project, &video_captures);
|
||||
shaders_link_inputs(&program, &project, &video_captures,
|
||||
init_params.video_buffers);
|
||||
#endif /* VIDEO_IN */
|
||||
|
||||
if (program.error) {
|
||||
|
||||
Reference in New Issue
Block a user