[cameracontrol] Add new camera control interface to set user buffer fd 21/200221/1 submit/tizen/20190221.054136
authorJeongmo Yang <jm80.yang@samsung.com>
Wed, 20 Feb 2019 08:33:33 +0000 (17:33 +0900)
committerJeongmo Yang <jm80.yang@samsung.com>
Wed, 20 Feb 2019 08:34:19 +0000 (17:34 +0900)
[Version] 1.12.2-6
[Profile] Common
[Issue Type] Update

Change-Id: Ibcf3b10a9eb84eb3e7f9ebbaf14ba5c3828acfbd
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
gst-libs/gst/video/cameracontrol.c
gst-libs/gst/video/cameracontrol.h
packaging/gst-plugins-base.spec

index 211dd2d..b1107f6 100644 (file)
@@ -575,6 +575,17 @@ gboolean gst_camera_control_get_awb_lock(GstCameraControl *control, gboolean *lo
        return FALSE;
 }
 
+gboolean gst_camera_control_set_user_buffer_fd(GstCameraControl *control, int *tfd, int count)
+{
+       GstCameraControlClass *klass = GST_CAMERA_CONTROL_GET_CLASS(control);
+
+       if (klass && klass->set_user_buffer_fd) {
+               return klass->set_user_buffer_fd(control, tfd, count);
+       }
+
+       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);
index 788ece1..edef60c 100644 (file)
@@ -378,6 +378,7 @@ typedef struct _GstCameraControlClass {
        gboolean        (*get_ae_lock)                 (GstCameraControl *control, gboolean *lock);
        gboolean        (*set_awb_lock)                (GstCameraControl *control, gboolean lock);
        gboolean        (*get_awb_lock)                (GstCameraControl *control, gboolean *lock);
+       gboolean        (*set_user_buffer_fd)          (GstCameraControl *control, int *tfd, int count);
 
        /* signals */
        void (* value_changed)                          (GstCameraControl *control, GstCameraControlChannel *channel, gint value);
@@ -425,6 +426,7 @@ gboolean    gst_camera_control_set_ae_lock          (GstCameraControl *control, gbo
 gboolean       gst_camera_control_get_ae_lock          (GstCameraControl *control, gboolean *lock);
 gboolean       gst_camera_control_set_awb_lock         (GstCameraControl *control, gboolean lock);
 gboolean       gst_camera_control_get_awb_lock         (GstCameraControl *control, gboolean *lock);
+gboolean       gst_camera_control_set_user_buffer_fd   (GstCameraControl *control, int *tfd, int count);
 
 
 /* trigger signal */
index 0e4816c..fe5da04 100644 (file)
@@ -5,7 +5,7 @@
 
 Name:           gst-plugins-base
 Version:        1.12.2
-Release:        5
+Release:        6
 License:        LGPL-2.0+
 Summary:        GStreamer Streaming-Media Framework Plug-Ins
 Url:            http://gstreamer.freedesktop.org/