Skip to content

Commit

Permalink
RaspiStillYUV: Add the equivalent "all manual" patch for faster captu…
Browse files Browse the repository at this point in the history
…res.

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 raspberrypi#640
  • Loading branch information
6by9 committed Jul 27, 2020
1 parent 4bad21d commit e7b0afa
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions host_applications/linux/apps/raspicam/RaspiStillYUV.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit e7b0afa

Please sign in to comment.