*buffer =gst_buffer_new_allocate(priv->allocator, info->size, &priv->params);if(*buffer ==NULL)gotono_memory;if(priv->add_videometa) { GST_DEBUG_OBJECT (pool,"adding GstVideoMeta"); gst_buffer_add_video_meta_full (*buffer, GST_VIDEO_FRAME_FLAG_NONE, GST_VIDEO_INFO_FORMAT (info),...
GST_VAAPI_IMAGE_USAGE_FLAG_NATIVE_FORMATS;if(!gst_video_info_from_caps(&vinfo, caps))gotoerror_invalid_caps;if(!reset_allocator (plugin->sinkpad_allocator, &vinfo))gotobail;if(has_dmabuf_capable_peer (plugin, plugin->sinkpad)) { plugin->sinkpad_allocator = gst_vaapi_dmabuf_allocator_ne...
- unixfdsink and unixfdsrc are elements that, inspired by shmsink andn shmsrc, send UNIX file descriptors (e.g. memfd, dmabuf) from one sink to multiple source elements in other processes on Linux. - The unixfdsink proposes a memfd/shm allocator to upstream elements which...
dmabuf as caps feature. Tracing framework and debugging improvements - NEW MEMORY RINGBUFFER BASED DEBUG LOGGER, useful for long-running applications or to retrieve diagnostics when encountering an error. The GStreamer debug logging system provides in-depth debug logging about what is going ...
msdk_surface = g_slice_new0 (MsdkSurface); msdk_surface->surface = new_surface; msdk_surface->buf = new_buffer;returnmsdk_surface; } 開發者ID:thiblahute,項目名稱:gst-plugins-bad,代碼行數:32,代碼來源:gstmsdkvpp.c 示例5: gst_v4l2_transform_decide_allocation ...
}caseGST_V4L2_IO_DMABUF_IMPORT: { guint count; can_allocate = GST_V4L2_ALLOCATOR_CAN_ALLOCATE (pool->vallocator, DMABUF); GST_DEBUG_OBJECT (pool,"requesting %d DMABUF buffers", min_buffers); count = gst_v4l2_allocator_start (pool->vallocator, min_buffers, ...
(GST_CAPS_FEATURE_MEMORY_DMABUF,"{ BGRA, YUY2, NV12}")";"GST_VIDEO_CAPS_MAKE("{ NV12, YUY2, BGRA, BGRx }")", ""interlace-mode = (string){ progressive, interleaved, mixed }"";"));enum 开发者ID:thiblahute,项目名称:gst-plugins-bad,代码行数:32,代码来源:gstmsdkvpp.c ...
GstBuffer *outbuf; gint ret;/* compressed frame should fit in the rough size of an uncompressed one */outbuf = gst_buffer_new_and_alloc (gst_xvid_image_get_size (xvidenc->csp, xvidenc->width, xvidenc->height)); xframe.bitstream = (void*) GST_BUFFER_DATA (outbuf); ...
(GDestroyNotify) gst_vaapidecode_release, gst_object_ref (decode));if(is_src_allocator_dmabuf (decode)) { vaapi_params.proxy = gst_vaapi_surface_proxy_ref (proxy); params = (GstBufferPoolAcquireParams *) & vaapi_params; } ret = gst_video_decoder_allocate_output_frame_with_params (vdec...
can_allocate = GST_V4L2_ALLOCATOR_CAN_ALLOCATE (allocator, USERPTR);break;caseV4L2_MEMORY_DMABUF: can_allocate = GST_V4L2_ALLOCATOR_CAN_ALLOCATE (allocator, DMABUF);break;default: can_allocate = FALSE;break; } GST_DEBUG_OBJECT (allocator,"allocated %u %s buffers out of %u requested", ...