Lines Matching full:pool
57 gst_xcam_buffer_pool_start (GstBufferPool *pool);
60 gst_xcam_buffer_pool_stop (GstBufferPool *pool);
63 gst_xcam_buffer_pool_set_config (GstBufferPool *pool, GstStructure *config);
97 gst_xcam_buffer_pool_init (GstXCamBufferPool *pool) in gst_xcam_buffer_pool_init() argument
99 pool->need_video_meta = FALSE; in gst_xcam_buffer_pool_init()
100 XCAM_CONSTRUCTOR (pool->device_manager, SmartPtr<MainDeviceManager>); in gst_xcam_buffer_pool_init()
106 GstXCamBufferPool *pool = GST_XCAM_BUFFER_POOL (object); in gst_xcam_buffer_pool_finalize() local
107 XCAM_ASSERT (pool); in gst_xcam_buffer_pool_finalize()
109 if (pool->src) in gst_xcam_buffer_pool_finalize()
110 gst_object_unref (pool->src); in gst_xcam_buffer_pool_finalize()
111 if (pool->allocator) in gst_xcam_buffer_pool_finalize()
112 gst_object_unref (pool->allocator); in gst_xcam_buffer_pool_finalize()
113 XCAM_DESTRUCTOR (pool->device_manager, SmartPtr<MainDeviceManager>); in gst_xcam_buffer_pool_finalize()
119 GstXCamBufferPool *pool = GST_XCAM_BUFFER_POOL (base_pool); in gst_xcam_buffer_pool_start() local
120 XCAM_ASSERT (pool); in gst_xcam_buffer_pool_start()
121 SmartPtr<MainDeviceManager> device_manager = pool->device_manager; in gst_xcam_buffer_pool_start()
130 GstXCamBufferPool *pool = GST_XCAM_BUFFER_POOL (base_pool); in gst_xcam_buffer_pool_stop() local
131 XCAM_ASSERT (pool); in gst_xcam_buffer_pool_stop()
132 SmartPtr<MainDeviceManager> device_manager = pool->device_manager; in gst_xcam_buffer_pool_stop()
142 GstXCamBufferPool *pool = GST_XCAM_BUFFER_POOL (base_pool); in gst_xcam_buffer_pool_set_config() local
144 XCAM_ASSERT (pool); in gst_xcam_buffer_pool_set_config()
145 …pool->need_video_meta = gst_buffer_pool_config_has_option (config, GST_BUFFER_POOL_OPTION_VIDEO_ME… in gst_xcam_buffer_pool_set_config()
147 pool->allocator = gst_dmabuf_allocator_new (); in gst_xcam_buffer_pool_set_config()
148 if (pool->allocator == NULL) { in gst_xcam_buffer_pool_set_config()
149 GST_WARNING ("xcam buffer pool get allocator failed"); in gst_xcam_buffer_pool_set_config()
162 GstXCamBufferPool *pool = GST_XCAM_BUFFER_POOL (base_pool); in gst_xcam_buffer_pool_acquire_buffer() local
163 XCAM_ASSERT (pool); in gst_xcam_buffer_pool_acquire_buffer()
167 SmartPtr<MainDeviceManager> device_manager = pool->device_manager; in gst_xcam_buffer_pool_acquire_buffer()
188 if (GST_XCAM_SRC_MEM_MODE (pool->src) == V4L2_MEMORY_DMABUF) { in gst_xcam_buffer_pool_acquire_buffer()
190 pool->allocator, dup (video_buf->get_fd ()), video_buf->get_size ()); in gst_xcam_buffer_pool_acquire_buffer()
191 } else if (GST_XCAM_SRC_MEM_MODE (pool->src) == V4L2_MEMORY_MMAP) { in gst_xcam_buffer_pool_acquire_buffer()
198 GST_WARNING ("xcam buffer pool acquire buffer failed since mem_type not supported"); in gst_xcam_buffer_pool_acquire_buffer()
204 if (pool->need_video_meta) { in gst_xcam_buffer_pool_acquire_buffer()
208 GST_VIDEO_INFO_FORMAT (GST_XCAM_SRC_OUT_VIDEO_INFO (pool->src)), in gst_xcam_buffer_pool_acquire_buffer()
236 GstXCamBufferPool *pool; in gst_xcam_buffer_pool_new() local
239 pool = (GstXCamBufferPool *)g_object_new (GST_TYPE_XCAM_BUFFER_POOL, NULL); in gst_xcam_buffer_pool_new()
240 XCAM_ASSERT (pool); in gst_xcam_buffer_pool_new()
242 structure = gst_buffer_pool_get_config (GST_BUFFER_POOL_CAST (pool)); in gst_xcam_buffer_pool_new()
250 gst_buffer_pool_set_config (GST_BUFFER_POOL_CAST (pool), structure); in gst_xcam_buffer_pool_new()
252 pool->src = src; in gst_xcam_buffer_pool_new()
254 pool->device_manager = device_manager; in gst_xcam_buffer_pool_new()
255 return GST_BUFFER_POOL (pool); in gst_xcam_buffer_pool_new()