Lines Matching refs:vpool
85 GstVaPool *vpool = GST_VA_POOL (pool); in gst_va_pool_set_config() local
116 GST_LOG_OBJECT (vpool, "%dx%d | %" GST_PTR_FORMAT, width, height, caps); in gst_va_pool_set_config()
119 vpool->add_videometa = gst_buffer_pool_config_has_option (config, in gst_va_pool_set_config()
131 vpool->crop_left = video_align.padding_left; in gst_va_pool_set_config()
133 vpool->crop_top = video_align.padding_top; in gst_va_pool_set_config()
150 gst_object_replace ((GstObject **) & vpool->allocator, in gst_va_pool_set_config()
153 vpool->caps_info = caps_info; in gst_va_pool_set_config()
154 vpool->alloc_info = alloc_info; in gst_va_pool_set_config()
161 GST_INFO_OBJECT (vpool, "Video meta is required in buffer."); in gst_va_pool_set_config()
162 vpool->force_videometa = TRUE; in gst_va_pool_set_config()
175 GST_WARNING_OBJECT (vpool, "invalid config"); in gst_va_pool_set_config()
180 GST_WARNING_OBJECT (vpool, "no caps in config"); in gst_va_pool_set_config()
185 GST_WARNING_OBJECT (vpool, in gst_va_pool_set_config()
191 GST_WARNING_OBJECT (vpool, "Failed to set format to allocator"); in gst_va_pool_set_config()
201 GstVaPool *vpool = GST_VA_POOL (pool); in gst_va_pool_alloc() local
205 if (GST_IS_VA_DMABUF_ALLOCATOR (vpool->allocator)) { in gst_va_pool_alloc()
206 if (vpool->starting) { in gst_va_pool_alloc()
207 if (!gst_va_dmabuf_allocator_setup_buffer (vpool->allocator, buf)) in gst_va_pool_alloc()
209 } else if (!gst_va_dmabuf_allocator_prepare_buffer (vpool->allocator, buf)) { in gst_va_pool_alloc()
210 if (!gst_va_dmabuf_allocator_setup_buffer (vpool->allocator, buf)) in gst_va_pool_alloc()
213 } else if (GST_IS_VA_ALLOCATOR (vpool->allocator)) { in gst_va_pool_alloc()
214 if (vpool->starting) { in gst_va_pool_alloc()
215 if (!gst_va_allocator_setup_buffer (vpool->allocator, buf)) in gst_va_pool_alloc()
217 } else if (!gst_va_allocator_prepare_buffer (vpool->allocator, buf)) { in gst_va_pool_alloc()
218 if (!gst_va_allocator_setup_buffer (vpool->allocator, buf)) in gst_va_pool_alloc()
224 if (vpool->add_videometa) { in gst_va_pool_alloc()
225 if (vpool->crop_left > 0 || vpool->crop_top > 0) { in gst_va_pool_alloc()
231 GST_VIDEO_INFO_FORMAT (&vpool->alloc_info), in gst_va_pool_alloc()
232 GST_VIDEO_INFO_WIDTH (&vpool->alloc_info), in gst_va_pool_alloc()
233 GST_VIDEO_INFO_HEIGHT (&vpool->alloc_info), in gst_va_pool_alloc()
234 GST_VIDEO_INFO_N_PLANES (&vpool->alloc_info), in gst_va_pool_alloc()
235 vpool->alloc_info.offset, vpool->alloc_info.stride); in gst_va_pool_alloc()
238 crop_meta->x = vpool->crop_left; in gst_va_pool_alloc()
239 crop_meta->y = vpool->crop_top; in gst_va_pool_alloc()
240 crop_meta->width = GST_VIDEO_INFO_WIDTH (&vpool->caps_info); in gst_va_pool_alloc()
241 crop_meta->height = GST_VIDEO_INFO_HEIGHT (&vpool->caps_info); in gst_va_pool_alloc()
246 GST_VIDEO_INFO_FORMAT (&vpool->caps_info), in gst_va_pool_alloc()
247 GST_VIDEO_INFO_WIDTH (&vpool->caps_info), in gst_va_pool_alloc()
248 GST_VIDEO_INFO_HEIGHT (&vpool->caps_info), in gst_va_pool_alloc()
249 GST_VIDEO_INFO_N_PLANES (&vpool->caps_info), in gst_va_pool_alloc()
250 vpool->alloc_info.offset, vpool->alloc_info.stride); in gst_va_pool_alloc()
262 GST_WARNING_OBJECT (vpool, "can't create memory"); in gst_va_pool_alloc()
270 GstVaPool *vpool = GST_VA_POOL (pool); in gst_va_pool_start() local
273 vpool->starting = TRUE; in gst_va_pool_start()
275 vpool->starting = FALSE; in gst_va_pool_start()
283 GstVaPool *vpool = GST_VA_POOL (pool); in gst_va_pool_stop() local
288 if (GST_IS_VA_DMABUF_ALLOCATOR (vpool->allocator)) in gst_va_pool_stop()
289 gst_va_dmabuf_allocator_flush (vpool->allocator); in gst_va_pool_stop()
290 else if (GST_IS_VA_ALLOCATOR (vpool->allocator)) in gst_va_pool_stop()
291 gst_va_allocator_flush (vpool->allocator); in gst_va_pool_stop()