writing plugins to make use of specific hardware

Stian Selnes stian.selnes at gmail.com
Mon Jul 7 02:42:24 PDT 2014


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>
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
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140707/80ea1048/attachment.html>


More information about the gstreamer-devel mailing list