<html><body><div style="font-family:Calibri, Arial, Helvetica, sans-serif; font-size:12.0pt; line-height:1.3; color:#1F497D"><!-- ##### NINE BODY BEGIN ##### --><div>Hi.<br><br>Images obtained from VAAPI do jot need to be copied into main memory to work with opengl. In fact you can directly use with opengl a VAAPI2 image handle. It's just like any other textures.<br><br>Just like we do vdpau, all those decoding backends can be directly used with opengl. <br></div><div><br></div><div id="signature-x" style="-webkit-user-select:none; font-family:Calibri, Arial, Helvetica, sans-serif; font-size:12.0pt; color:#1F497D" class = "signature_editor">Get Firefox on Android<br></div><!-- ##### NINE BODY END ##### --></div><div class="quoted_output_body"><div id="quoted_header" class="quoted_header_editor" style="clear:both;"><hr style="border:none; height:1px; color:#E1E1E1; background-color:#E1E1E1;"/><div style="border:none; padding:3.0pt 0cm 0cm 0cm"><span style="font-size:11.0pt;font-family:Calibri, Arial, Helvetica, sans-serif"><b>From:</b> Peter Bennett<br><b>Sent:</b> Saturday, 1 December 2018 16:58<br><b>To:</b> Development of MythTV<br><b>Cc:</b> Mark Kendall; Don Carroll<br><b>Subject:</b> [mythtv] Playback next steps<br></span></div></div><br type='attribution'><div id="quoted_body" class="quoted_body_editor"><p dir="ltr">I have added support in MythTV playback for VAAPI2 (VAAPI plus  <br>
deinterlace plus ability to handle format changes) and Mediacodec. I  <br>
plan to do the same for NVIDIA CUDA/NVDEC. <br>
<br>
However these new methods are passing images through main memory on  <br>
their way to the output and using the existing OpenGL code for  <br>
rendering, We need to pass images directly from decoder to graphics  <br>
output to improve efficiency and to support 4K video at 50 fps. The next  <br>
task will be to support this. I am not sure how this will work. The  <br>
existing OpenGL code in MythTV does a lot of processing of each image  <br>
and in order to achieve the required performance, some of this may have  <br>
to be avoided. It may entail a new type of lightweight opengl that  <br>
leaves out the extensive opengl processing of images currently  <br>
undertaken, or may require new types of video rendering. <br>
<br>
My knowledge / experience with OpenGL is very little and I have found  <br>
the existing OpenGL code rather difficult to understand. <br>
<br>
If anybody has information/ideas about how to proceed with this please  <br>
let me know. <br>
<br>
Peter <br>
_______________________________________________ <br>
mythtv-dev mailing list <br>
mythtv-dev@mythtv.org <br>
http://lists.mythtv.org/mailman/listinfo/mythtv-dev <br>
http://wiki.mythtv.org/Mailing_List_etiquette <br>
MythTV Forums: https://forum.mythtv.org <br>
</p>
</div></div></div></body></html>