return FALSE;
}
+gboolean gst_camera_control_set_extra_preview_bitrate(GstCameraControl *control, int stream_id, int bitrate)
+{
+ GstCameraControlInterface *iface;
+
+ g_return_val_if_fail(GST_IS_CAMERA_CONTROL(control), FALSE);
+
+ iface = GST_CAMERA_CONTROL_GET_INTERFACE(control);
+
+ if (iface->set_extra_preview_bitrate)
+ return iface->set_extra_preview_bitrate(control, stream_id, bitrate);
+
+ return FALSE;
+}
+
+gboolean gst_camera_control_get_extra_preview_bitrate(GstCameraControl *control, int stream_id, int *bitrate)
+{
+ GstCameraControlInterface *iface;
+
+ g_return_val_if_fail(GST_IS_CAMERA_CONTROL(control), FALSE);
+
+ iface = GST_CAMERA_CONTROL_GET_INTERFACE(control);
+
+ if (iface->get_extra_preview_bitrate)
+ return iface->get_extra_preview_bitrate(control, stream_id, bitrate);
+
+ return FALSE;
+}
+
void gst_camera_control_value_changed(GstCameraControl *control, GstCameraControlChannel *control_channel, gint value)
{
g_signal_emit(G_OBJECT(control), gst_camera_control_signals[CONTROL_VALUE_CHANGED], 0, control_channel, value);
gboolean (*set_user_buffer_fd) (GstCameraControl *control, int *fds, int number);
gboolean (*set_extra_preview_stream_format) (GstCameraControl *control, int stream_id, GstCameraControlImageFormat img_fmt, int width, int height, int fps);
gboolean (*get_extra_preview_stream_format) (GstCameraControl *control, int stream_id, GstCameraControlImageFormat *img_fmt, int *width, int *height, int *fps);
+ gboolean (*set_extra_preview_bitrate) (GstCameraControl *control, int stream_id, int bitrate);
+ gboolean (*get_extra_preview_bitrate) (GstCameraControl *control, int stream_id, int *bitrate);
/* signals */
void (* value_changed) (GstCameraControl *control, GstCameraControlChannel *channel, gint value);
GST_VIDEO_API
gboolean gst_camera_control_get_extra_preview_stream_format (GstCameraControl *control, int stream_id, GstCameraControlImageFormat *img_fmt, int *width, int *height, int *fps);
+GST_VIDEO_API
+gboolean gst_camera_control_set_extra_preview_bitrate (GstCameraControl *control, int stream_id, int bitrate);
+
+GST_VIDEO_API
+gboolean gst_camera_control_get_extra_preview_bitrate (GstCameraControl *control, int stream_id, int *bitrate);
+
/* trigger signal */
GST_VIDEO_API
void gst_camera_control_value_changed (GstCameraControl *control, GstCameraControlChannel *control_channel, gint value);