<div dir="ltr"><div>Gwenole, Pawel,<br><br></div>If you can find that ancient code, I would be interested in seeing it.  I need to encode to H.264 the output of an OpenGL application for network streaming on a headless Ivy Bridge platform.<br>
<br>Regards,<br><br>Chris <br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 31, 2013 at 8:37 PM, Gwenole Beauchesne <span dir="ltr"><<a href="mailto:gb.devel@gmail.com" target="_blank">gb.devel@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Pawel,<br>
<br>
2013/8/1 Pawel Osciak <<a href="mailto:posciak@chromium.org">posciak@chromium.org</a>>:<br>
<div><div class="h5"><br>
> Is there any way to do a zero-copy encode/video processing from a texture<br>
> source? This would I guess involve turning a texture/X drawable into a<br>
> VASurface? I think Gwenole mentioned some extensions he's been working on<br>
> back in April 2012, but I haven't found any of this in the code or<br>
> examples...<br>
<br>
</div></div>The Intel driver supports GEM buffer and DMA buffer imports. So, if<br>
you can expose a GEM buffer, or a dma_buf from a texture, then you can<br>
create a VA surface from it. Then, you can use VA/VPP to convert to<br>
NV12 tiled, and kick encoding from it. This is what we do for Weston<br>
to encode from the EGLSurface for example.<br>
<br>
I could dig some ancient code at the office if you want, with no<br>
guarantee it still works. :)<br>
<br>
Note: the recommended way to encode will be through some middleware<br>
(libgstvaapi, OMX, Media SDK), unless you really want to spend some<br>
time on tuning the encoding process with libva.<br>
<br>
Regards,<br>
Gwenole.<br>
_______________________________________________<br>
Libva mailing list<br>
<a href="mailto:Libva@lists.freedesktop.org">Libva@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/libva" target="_blank">http://lists.freedesktop.org/mailman/listinfo/libva</a><br>
</blockquote></div><br></div>