AW: writing plugins to make use of specific hardware

Thornton, Keith keith.thornton at zeiss.com
Thu Jul 10 04:40:50 PDT 2014


Thanks Stian, it took me a while to get there but the information you provided was just what it needed
Regards Keith

Von: gstreamer-devel [mailto:gstreamer-devel-bounces at lists.freedesktop.org] Im Auftrag von Stian Selnes
Gesendet: Montag, 7. Juli 2014 11:42
An: Discussion of the development of and with GStreamer
Betreff: Re: writing plugins to make use of specific hardware

It's possible to add GstVideoAlignment information to the buffer pool in your propose_allocation and decide_allocation function. It has a field padding_bottom that GstVideoBufferPool will consider when allocating buffers. In propose_allocation you should set padding_bottom so that "(height+padding_bottom)%16 == 0" and then add GstVideoAlignment to the buffer pool config. The same applies for decide_allocation. See gstavviddec.c for an example.

- Stian

On Mon, Jul 7, 2014 at 10:46 AM, Thornton, Keith <keith.thornton at zeiss.com<mailto:keith.thornton at zeiss.com>> wrote:
Good morning
I am currently writing a plugin to make use of the Intel Media SDK (Quicksync) under windows.
I am using Gstreamer 1.3
The Quicksync Hardware requires 16 bit sizes e.g. 1920 * 1088
The pipeline
Gst-launch-1.0 filesrc location=file.mp4 ! qtdemux ! h264parse ! avdec_h264 ! videoconvert ! video/x-raw, width=1920, height=1080,format=NV12 ! myplugin ! video/x-raw, width=960,height=540 ! d3dvideosink
Requires that I allocate a buffer_pool larger than that described by the caps i.e. 1920x1088 instead of 1920x1080. I assumed that I must implement a propose_allocation and decide_allocation function but could use some guidance if any is available. Can anyone point me to some useful examples or documentation?

_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org<mailto:gstreamer-devel at lists.freedesktop.org>
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140710/4842cfb9/attachment.html>


More information about the gstreamer-devel mailing list