<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=windows-1252">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<br>
<div class="moz-forward-container"><br>
<br>
-------- Forwarded Message --------
<table class="moz-email-headers-table" cellspacing="0"
cellpadding="0" border="0">
<tbody>
<tr>
<th valign="BASELINE" nowrap="nowrap" align="RIGHT">Subject:
</th>
<td>MythTV Kernel HW GL Deinterlacer</td>
</tr>
<tr>
<th valign="BASELINE" nowrap="nowrap" align="RIGHT">Date: </th>
<td>Thu, 29 Nov 2018 16:36:38 -0600</td>
</tr>
<tr>
<th valign="BASELINE" nowrap="nowrap" align="RIGHT">From: </th>
<td>David Engel <a class="moz-txt-link-rfc2396E" href="mailto:david@istwok.net"><david@istwok.net></a></td>
</tr>
<tr>
<th valign="BASELINE" nowrap="nowrap" align="RIGHT">To: </th>
<td>Peter Bennett <a class="moz-txt-link-rfc2396E" href="mailto:pb.mythtv@gmail.com"><pb.mythtv@gmail.com></a>, Mark Spieth
<a class="moz-txt-link-rfc2396E" href="mailto:mark@digivation.com.au"><mark@digivation.com.au></a></td>
</tr>
</tbody>
</table>
<br>
<br>
FYI, I tried but failed to figure out the OpenGL, kernel
deinterlacer<br>
issue. I decided to reach out to Mark Kendall. He originally wrote<br>
the code in question but left the project several years ago under
very<br>
acrimonious circumstances. He replied and also offered some<br>
additoinal comments about the current state of openglvideo.cpp.
Here<br>
is that email discussion so far. Feel free to jump in.<br>
<br>
David<br>
<pre class="moz-signature">--
David Engel
<a class="moz-txt-link-abbreviated" href="mailto:david@istwok.net">david@istwok.net</a>
</pre>
David<br>
<br>
Thank you for copying us on that. I have done very little OpenGL,
and I also tried to understand the MythTV OpenGL code, but largely
failed. There are multiple layers to it. The way the OpenGL code
gets modified by the C++ code makes it more difficult for me to
figure it out.<br>
<br>
My current dilemma is that the OpenGL is too slow for some
devices. On the fire stick (non-4K), it decodes fast enough, but
in rendering at 1080 30fps it drops 50% of frames or more. Perhaps
if all of the optional OpenGL
processing was removed and it just had to display the textures it
would work at full speed. I believe there is a lot of OpenGL code
for things like format change, color adjustment that may be
slowing it down.<br>
<br>
I also need to figure out how to move the image directly from the
decoder to the display without going through memory for
mediacodec, vaapi2 and cuda. This may be key to displaying 4K
video at 50 fps.<br>
<br>
4K video has the option of 10bit which enhances the number of
colors and is not supported by MythTV OpenGL. The 10bit images are
currently translated down to YUV before being displayed. This
needs to be fixed. Hopefully if the images moved directly from
decoder to texture this would be handled.<br>
<br>
Peter</div>
</body>
</html>