second stream: add property second-queue-size
authorWind Yuan <feng.yuan@intel.com>
Sun, 7 Apr 2013 07:58:54 +0000 (15:58 +0800)
committerMarko Ollonen <marko.ollonen@ixonos.com>
Sun, 7 Apr 2013 10:02:46 +0000 (13:02 +0300)
Change-Id: Ia0cd1a3831a5cbe231321bbda7debc23115db026

gst/mfldv4l2cam/gstv4l2camsrc.c
packaging/gst-plugins-atomisp.changes
packaging/gst-plugins-atomisp.spec

index 29f716c..9ecff13 100644 (file)
@@ -128,6 +128,7 @@ typedef enum
   PROP_DEBUG_FLAGS,
   PROP_DISABLE_LOW_RES_CROP,
   PROP_DRAW_CORNER_MARKERS,
+  PROP_SECOND_QUEUE_SIZE,
 } GstV4L2CamSrcProperties;
 
 #define GST_V4L2_CAMSRC_PAD_TEMPLATE(padname)    \
@@ -964,6 +965,14 @@ gst_v4l2camsrc_class_init (GstMFLDV4l2CamSrcClass * klass)
           "draw markers in frame corners", FALSE,
           G_PARAM_READWRITE));
 
+  /*second pad */
+  g_object_class_install_property (gobject_class, PROP_SECOND_QUEUE_SIZE,
+      g_param_spec_uint ("second-queue-size", "Second Queue size",
+          "Number of buffers of second source to be enqueud in the driver",
+          GST_V4L2CAMSRC_MIN_BUFFERS, GST_V4L2CAMSRC_MAX_BUFFERS,
+          GST_V4L2CAMSRC_DEFAULT_BUFFERS,
+          G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
+
   camera_class->is_open = GST_DEBUG_FUNCPTR (gst_v4l2camsrc_is_open);
   camera_class->open = GST_DEBUG_FUNCPTR (gst_v4l2camsrc_open);
   camera_class->close = GST_DEBUG_FUNCPTR (gst_v4l2camsrc_close);
@@ -1538,6 +1547,9 @@ gst_v4l2camsrc_set_property (GObject * object,
     case PROP_DRAW_CORNER_MARKERS:
       v4l2camsrc->draw_corner_markers = g_value_get_boolean (value);
       break;
+    case PROP_SECOND_QUEUE_SIZE:
+      v4l2camsrc->second_num_buffers = g_value_get_uint (value);
+      break;
     default:
       G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
       break;
@@ -1712,6 +1724,9 @@ gst_v4l2camsrc_get_property (GObject * object,
     case PROP_DRAW_CORNER_MARKERS:
       g_value_set_boolean (value, v4l2camsrc->draw_corner_markers);
       break;
+    case PROP_SECOND_QUEUE_SIZE:
+      g_value_set_uint (value, v4l2camsrc->second_num_buffers);
+      break;
     default:
       G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
       break;
index 0319e41..9d4373a 100644 (file)
@@ -1,3 +1,9 @@
+* Sun Apr 07 2013 Marko Ollonen <marko.ollonen@ixonos.com> accepted/tizen_2.0/20130307.195130@64cd4fb
+- [Author: Yuan, Feng] second stream: add property second-queue-size,TZSP-5411.
+- [Author: Yuan, Feng] dual-stream: handle all eos events,TZSP-5411.
+- [Author: Yuan, Feng] dual-stream: implement second stream of /dev/video1,TZSP-5411
+- [Author: Yuan, Feng] dual-stream: build framework for second pad of video src,TZSP-5411.
+
 * Thu Apr 04 2013 Marko Ollonen <marko.ollonen@ixonos.com> accepted/tizen_2.0/20130307.195130@c5f984f
 - prevent unnecessary 3A configurations.
 
index 9925a96..3c21ffa 100644 (file)
@@ -1,6 +1,6 @@
 Name:       gst-plugins-atomisp
 Summary:    Camera source component for Intel Medfield ISP
-Version:    0.54
+Version:    0.60
 Release:    1
 Group:      Applications/Multimedia
 License:    LGPLv2+