<div><div dir="auto">Hi</div></div><div><br><div class="gmail_quote"><div dir="ltr">On Wed, 12 Dec 2018 at 5:02 pm, David Engel <<a href="mailto:david@istwok.net">david@istwok.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Wed, Dec 12, 2018 at 08:55:22AM +0100, Jean-Yves Avenard wrote:<br>
> From: David Engel <<a href="mailto:david@istwok.net" target="_blank">david@istwok.net</a>><br>
> Sent: Wednesday, 12 December 2018 07:26<br>
> To: Peter Bennett<br>
> Cc: Development of MythTV<br>
> Subject: Re: [mythtv] YV12 problem<br>
> <br>
> <br>
> > If somebody can come up with better code that supports these android devices<br>
> > without the jaggies, we can then remove that faulty YV12 code.<br>
> ><br>
> <br>
> If you remove yv12 support software decoder won't work any longer. <br>
> Now in the TV world that's probably fine, but do we really want not to play those files? <br>
<br>
Please explain.  Without more context and being mostly ignorant of<br>
pixel format implilcations (though, I'm trying to correct that), I<br>
don't know what to make of this statement</blockquote><div dir="auto"><br></div><div dir="auto">TV broadcasts use exclusively mpeg2, h264 and h265.</div><div dir="auto">Most embedded system like the fire2 have a hardware decoder for those. </div><div dir="auto"><br></div><div dir="auto">So what you get out of the decoder will be a GPU based nv12 image.</div><div dir="auto"><br></div><div dir="auto">For other codecs like say vp8, vp9, av1: you have to use a software decoder and they will output yuv420 (if 8 bits).</div><div dir="auto"><br></div><div dir="auto">I was just saying earlier that dropping yuv420, means you'll have to do a conversion to nv12 right outside the decoder, so an extra memory allocation and unnecessary copy.</div><div dir="auto"><br></div><div dir="auto">All when converting any nv12 shader to do yv12 is trivial; you could even use the same code for both.</div><div dir="auto"><br></div><div dir="auto">BTW, the default browser by default on the fire2 is Firefox :)</div><div dir="auto"><br></div><div dir="auto">Story goes that Bezos contacted our director personally asking if we could port it in 2 weeks. The challenge was accepted.</div><div dir="auto"><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br></blockquote></div></div>