From 3e59217bd93b8024fb8fc1c6530b00cbae64bc73 Mon Sep 17 00:00:00 2001 From: Dave Stevenson Date: Mon, 27 Jul 2020 18:48:52 +0100 Subject: [PATCH] RaspiStillYUV: Add the equivalent "all manual" patch for faster captures. Adds the equivalent to "Add option to start in burst mode if AE settings are manual" patch to RaspiStillYUV so it too can drop straight into capture mode. See https://github.com/raspberrypi/userland/issues/640 --- host_applications/linux/apps/raspicam/RaspiStillYUV.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/host_applications/linux/apps/raspicam/RaspiStillYUV.c b/host_applications/linux/apps/raspicam/RaspiStillYUV.c index df0c19eaf..ffa120d19 100644 --- a/host_applications/linux/apps/raspicam/RaspiStillYUV.c +++ b/host_applications/linux/apps/raspicam/RaspiStillYUV.c @@ -1135,6 +1135,14 @@ int main(int argc, const char **argv) if (state.common_settings.verbose) fprintf(stderr, "Starting component connection stage\n"); + if (state.burstCaptureMode && + state.camera_parameters.exposureMode == MMAL_PARAM_EXPOSUREMODE_OFF && + state.camera_parameters.shutter_speed && + state.camera_parameters.analog_gain && state.camera_parameters.stats_pass) + { + mmal_port_parameter_set_boolean(state.camera_component->control, MMAL_PARAMETER_CAMERA_BURST_CAPTURE, 1); + } + camera_preview_port = state.camera_component->output[MMAL_CAMERA_PREVIEW_PORT]; camera_video_port = state.camera_component->output[MMAL_CAMERA_VIDEO_PORT]; camera_still_port = state.camera_component->output[MMAL_CAMERA_CAPTURE_PORT];