#include "gstv4l2object.h"
#include "gstv4l2allocator.h"
-GST_DEBUG_CATEGORY_EXTERN (v4l2buffer_debug);
-
G_BEGIN_DECLS
-
#define GST_TYPE_V4L2_BUFFER_POOL (gst_v4l2_buffer_pool_get_type())
#define GST_IS_V4L2_BUFFER_POOL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_V4L2_BUFFER_POOL))
#define GST_V4L2_BUFFER_POOL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_V4L2_BUFFER_POOL, 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;
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;
void gst_v4l2_buffer_pool_copy_at_threshold (GstV4l2BufferPool * pool,
gboolean copy);
+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__ */