<div dir="ltr"><div><div>Hi Wladimir,<br><br></div>Replies follow in between.<br><br></div>Luís<br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 9, 2017 at 8:15 AM, Wladimir J. van der Laan <span dir="ltr"><<a href="mailto:laanwj@gmail.com" target="_blank">laanwj@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Wed, Nov 08, 2017 at 02:24:24PM +0000, Luís Mendes wrote:<br>
> Yesterday I tried Fabio's tutorial for enabling the VPU with gstreamer in<br>
> console mode (<a href="https://imxdev.gitlab.io/tutorial/Decoding_video_with_a_" rel="noreferrer" target="_blank">https://imxdev.gitlab.io/<wbr>tutorial/Decoding_video_with_<wbr>a_</a><br>
> mainline_kernel_on_i.MX6/). It was beautiful to see the i.MX6 playing a<br>
> H.264 video smoothly in high definition.<br>
> Then I tried to achieve the same under X, but it wasn't possible because<br>
> drm is in use by X.<br>
><br>
> That gave me the idea that implementing a functional VDPAU/VAAPI may not be<br>
> so far away and that I may be able to implement such functionality in my<br>
> spare time even if at a not so fast pace.<br>
><br>
> What do you etnaviv guys say? Does it looks feasible?<br>
<br>
</div></div>I know very little about video APIs so I can't comment on CODA and VDPAU being<br>
a good match or not.<br>
<br>
But IIRC the only thing the Vivante 3D GPU could provide (which isn't<br>
implemented in etnaviv at the moment) is planar YUV import, which means<br>
internally HW tiling a buffer to a tiled UYVY or YUY2 texture that can be<br>
rendered from.<br>
<br>
The rest is i.MX6 board specific. For example the i.MX8 will have<br>
a completely different video codec (Hantro G2).<br></blockquote><div><br></div><div>Such situation also happens with amdgpu mesa driver and others, where there is a common mesa driver for multiple GPUs, but then there are multiple VDPAU/VAAPI drivers for each VPU.</div><div>I can try to create a proof of concept driver for the CODA VPU unit, a VDPAU driver supporting a single codec, but with integration with Mesa/Etnaviv, and then we can decide better.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class="HOEnZb"><font color="#888888"><br>
Wladimir<br>
</font></span></blockquote></div><br></div></div>