<div dir="ltr">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.<div>
<br></div><div>- Stian</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jul 7, 2014 at 10:46 AM, Thornton, Keith <span dir="ltr"><<a href="mailto:keith.thornton@zeiss.com" target="_blank">keith.thornton@zeiss.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="DE" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif"">Good morning<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif"">I am currently writing a plugin to make use of the Intel Media SDK (Quicksync) under windows.
<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif"">I am using Gstreamer 1.3<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif"">The Quicksync Hardware requires 16 bit sizes e.g. 1920 * 1088
<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif"">The pipeline<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif"">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<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif"">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?<u></u><u></u></span></p>
</div>
</div>

<br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br></div>