[v4l2] Change feature name
[platform/upstream/gst-plugins-good.git] / sys / v4l2 / gstv4l2bufferpool.h
index 0fffc71..f076267 100644 (file)
@@ -64,8 +64,16 @@ struct _GstV4l2BufferPool
   gboolean empty;
   GCond empty_cond;
 
+  gboolean orphaned;
+
   GstV4l2Allocator *vallocator;
   GstAllocator *allocator;
+#ifdef TIZEN_FEATURE_V4L2_TBM_SUPPORT
+  GstAllocator *tallocator;
+  gint live_buffer_count;
+  GMutex buffer_lock;
+  GCond buffer_cond;
+#endif /* TIZEN_FEATURE_V4L2_TBM_SUPPORT */
   GstAllocationParams params;
   GstBufferPool *other_pool;
   guint size;
@@ -77,6 +85,7 @@ struct _GstV4l2BufferPool
   guint min_latency;         /* number of buffers we will hold */
   guint max_latency;         /* number of buffers we can hold */
   guint num_queued;          /* number of buffers queued in the driver */
+  guint num_allocated;       /* number of buffers allocated */
   guint copy_threshold;      /* when our pool runs lower, start handing out copies */
 
   gboolean streaming;
@@ -109,6 +118,8 @@ void                gst_v4l2_buffer_pool_copy_at_threshold (GstV4l2BufferPool *
 
 gboolean            gst_v4l2_buffer_pool_flush   (GstBufferPool *pool);
 
+gboolean            gst_v4l2_buffer_pool_orphan  (GstBufferPool ** pool);
+
 G_END_DECLS
 
 #endif /*__GST_V4L2_BUFFER_POOL_H__ */