Use xfer function from libmegapixels instead of v4l

This commit is contained in:
Martijn Braam
2023-07-22 16:41:38 +02:00
parent 128a3696c4
commit 9a685eb839
5 changed files with 4 additions and 11 deletions

View File

@@ -927,7 +927,7 @@ on_output_changed(bool format_changed)
if (gles2_debayer)
gles2_debayer_free(gles2_debayer);
gles2_debayer = gles2_debayer_new(state_proc.mode->format, state_proc.colorspace);
gles2_debayer = gles2_debayer_new(state_proc.mode->format, state_proc.mode->xfer);
check_gl();
gles2_debayer_use(gles2_debayer);
@@ -990,7 +990,6 @@ update_state(MPPipeline *pipeline, const mp_state_proc *new_state)
}
state_proc.mode = new_state->camera->current_mode;
state_proc.colorspace = new_state->colorspace;
state_proc.preview_width = new_state->preview_width;
state_proc.preview_height = new_state->preview_height;