mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-05 18:22:23 +00:00
rpicamsrc: More conversion to GStreamer logging
This commit is contained in:
parent
37028010f1
commit
52ae74f9ce
2 changed files with 14 additions and 12 deletions
|
@ -733,7 +733,7 @@ static void camera_control_callback(MMAL_PORT_T *port, MMAL_BUFFER_HEADER_T *buf
|
||||||
{
|
{
|
||||||
MMAL_PARAMETER_CAMERA_SETTINGS_T *settings = (MMAL_PARAMETER_CAMERA_SETTINGS_T*)param;
|
MMAL_PARAMETER_CAMERA_SETTINGS_T *settings = (MMAL_PARAMETER_CAMERA_SETTINGS_T*)param;
|
||||||
vcos_log_error("Exposure now %u, analog gain %u/%u, digital gain %u/%u",
|
vcos_log_error("Exposure now %u, analog gain %u/%u, digital gain %u/%u",
|
||||||
settings->exposure,
|
settings->exposure,
|
||||||
settings->analog_gain.num, settings->analog_gain.den,
|
settings->analog_gain.num, settings->analog_gain.den,
|
||||||
settings->digital_gain.num, settings->digital_gain.den);
|
settings->digital_gain.num, settings->digital_gain.den);
|
||||||
vcos_log_error("AWB R=%u/%u, B=%u/%u",
|
vcos_log_error("AWB R=%u/%u, B=%u/%u",
|
||||||
|
@ -1096,8 +1096,7 @@ raspi_capture_set_format_and_start(RASPIVID_STATE *state)
|
||||||
{
|
{
|
||||||
config->fps_n = 0;
|
config->fps_n = 0;
|
||||||
config->fps_d = 1;
|
config->fps_d = 1;
|
||||||
if (config->verbose)
|
GST_INFO ("Enabling dynamic frame rate to fulfil shutter speed requirement");
|
||||||
fprintf(stderr, "Enable dynamic frame rate to fulfil shutter speed requirement\n");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -59,6 +59,9 @@ GST_DEBUG_CATEGORY_EXTERN (gst_rpi_cam_src_debug);
|
||||||
|
|
||||||
#undef fprintf
|
#undef fprintf
|
||||||
#define fprintf(f,...) GST_LOG(__VA_ARGS__)
|
#define fprintf(f,...) GST_LOG(__VA_ARGS__)
|
||||||
|
#undef vcos_log_error
|
||||||
|
#define vcos_log_error GST_ERROR
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
/** Structure containing all state information for the current run
|
/** Structure containing all state information for the current run
|
||||||
|
|
Loading…
Reference in a new issue