|
@@ -81,7 +81,6 @@ update_process_pipeline()
|
|
|
.preview_width = state_io.preview_width,
|
|
|
.preview_height = state_io.preview_height,
|
|
|
.device_rotation = state_io.device_rotation,
|
|
|
- .colorspace = state_io.colorspace,
|
|
|
|
|
|
.gain.control = state_io.gain.control,
|
|
|
.gain.auto_control = state_io.gain.auto_control,
|
|
@@ -145,7 +144,6 @@ capture(MPPipeline *pipeline, const void *data)
|
|
|
mp_camera_stop_capture(mpcamera);
|
|
|
struct v4l2_format format = { 0 };
|
|
|
libmegapixels_select_mode(state_io.camera, state_io.mode_capture, &format);
|
|
|
- state_io.colorspace = format.fmt.pix.colorspace;
|
|
|
state_io.flush_pipeline = true;
|
|
|
|
|
|
mp_camera_start_capture(mpcamera);
|
|
@@ -328,7 +326,6 @@ on_frame(MPBuffer buffer, void *_data)
|
|
|
struct v4l2_format format = { 0 };
|
|
|
libmegapixels_select_mode(
|
|
|
state_io.camera, state_io.mode_preview, &format);
|
|
|
- state_io.colorspace = format.fmt.pix.colorspace;
|
|
|
state_io.flush_pipeline = true;
|
|
|
|
|
|
mp_camera_start_capture(mpcamera);
|
|
@@ -501,7 +498,6 @@ update_state(MPPipeline *pipeline, const mp_state_io *new_state)
|
|
|
libmegapixels_select_mode(state_io.camera,
|
|
|
state_io.mode_preview,
|
|
|
&format);
|
|
|
- state_io.colorspace = format.fmt.pix.colorspace;
|
|
|
}
|
|
|
|
|
|
mp_camera_start_capture(mpcamera);
|