Fixed up so RAW works for each capture in timelapse mode

This commit is contained in:
JamesH
2013-07-05 14:05:23 +01:00
parent 7e29071964
commit 6612cf362b

View File

@@ -728,16 +728,6 @@ static MMAL_STATUS_T create_camera_component(RASPISTILL_STATE *state)
goto error;
}
if (state->wantRAW)
{
if (mmal_port_parameter_set_boolean(still_port, MMAL_PARAMETER_ENABLE_RAW_CAPTURE, 1) != MMAL_SUCCESS)
{
vcos_log_error("RAW was requested, but failed to enable");
// Continue on and take picture without.
}
}
state->camera_component = camera;
if (state->verbose)
@@ -1256,6 +1246,16 @@ int main(int argc, const char **argv)
// once enabled no further exif data is accepted
add_exif_tags(&state);
// Same with raw, apparently need to set it for each capture, whilst port
// is not enabled
if (state.wantRAW)
{
if (mmal_port_parameter_set_boolean(camera_still_port, MMAL_PARAMETER_ENABLE_RAW_CAPTURE, 1) != MMAL_SUCCESS)
{
vcos_log_error("RAW was requested, but failed to enable");
}
}
// Enable the encoder output port
encoder_output_port->userdata = (struct MMAL_PORT_USERDATA_T *)&callback_data;