mirror of
https://github.com/raspberrypi/userland.git
synced 2025-12-06 04:49:12 +00:00
Fixed up so RAW works for each capture in timelapse mode
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user