Skip to content
This repository was archived by the owner on Aug 27, 2025. It is now read-only.

Commit 3e59217

Browse files
6by9pelwell
authored andcommitted
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 #640
1 parent 2534d69 commit 3e59217

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

host_applications/linux/apps/raspicam/RaspiStillYUV.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1135,6 +1135,14 @@ int main(int argc, const char **argv)
11351135
if (state.common_settings.verbose)
11361136
fprintf(stderr, "Starting component connection stage\n");
11371137

1138+
if (state.burstCaptureMode &&
1139+
state.camera_parameters.exposureMode == MMAL_PARAM_EXPOSUREMODE_OFF &&
1140+
state.camera_parameters.shutter_speed &&
1141+
state.camera_parameters.analog_gain && state.camera_parameters.stats_pass)
1142+
{
1143+
mmal_port_parameter_set_boolean(state.camera_component->control, MMAL_PARAMETER_CAMERA_BURST_CAPTURE, 1);
1144+
}
1145+
11381146
camera_preview_port = state.camera_component->output[MMAL_CAMERA_PREVIEW_PORT];
11391147
camera_video_port = state.camera_component->output[MMAL_CAMERA_VIDEO_PORT];
11401148
camera_still_port = state.camera_component->output[MMAL_CAMERA_CAPTURE_PORT];

0 commit comments

Comments
 (0)