<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        mso-fareast-language:EN-US;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hello all,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I have some questions about running QT5.5 over Wayland, and playing back video using a gstreamer pipeline, on an embedded system. We have a QT application and performance is much slower than when using gstreamer gst-launch1.0 directly.
 We have determined that the cause of this is that the video pipeline ends up using a QGstreamerVideoRenderer rather than something based wayland sink. This means, we suspect, an extra copy of the video data, meaning we don’t the the same performance.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Looking at the code in qgstreamerplayerservice.cpp, we have<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">#if defined(Q_WS_MAEMO_6) && defined(__arm__)<o:p></o:p></p>
<p class="MsoNormal">    m_videoRenderer = new QGstreamerGLTextureRenderer(this);<o:p></o:p></p>
<p class="MsoNormal">#elif defined(HAVE_MIR) && defined (__arm__)<o:p></o:p></p>
<p class="MsoNormal">    m_videoRenderer = new QGstreamerMirTextureRenderer(this, m_session);<o:p></o:p></p>
<p class="MsoNormal">#else<o:p></o:p></p>
<p class="MsoNormal">    m_videoRenderer = new QGstreamerVideoRenderer(this);<o:p></o:p></p>
<p class="MsoNormal">#endif<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">So there are a couple of implmentations of video surface renderers for specific backends, in this case gl and mir.
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">My thoughts are that I need to add a new class, something like QGstreamerWaylandRenderer that I can insert at this point to provide a wayland backend for the video player.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Does this seem like the correct approach? I’ve been trundling through the code (and Google) and am making very slow progress , but if there is anyone out there who can point me in the right direction for documentation or any sort of architectural
 information on how all this bolts together, it would definitely make my life easier!<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I do find it a bit odd that there isn’t already something in place for this. There is a QTWayland backend for general GUI stuff, but this gstreamer video stuff doesn’t seem to have the right backend in place to take advantage of the acceleration
 of Wayland that we have on the platform.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">James<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" align="left" style="border-collapse:collapse;margin-left:-1.8pt;margin-right:.45pt">
<tbody>
<tr style="height:38.05pt">
<td width="187" valign="top" style="width:112.1pt;border:solid white 1.0pt;border-right:solid silver 1.0pt;padding:0cm 5.4pt 0cm 5.4pt;height:38.05pt">
<p class="MsoNormal" style="mso-element:frame;mso-element-wrap:around;mso-element-anchor-vertical:paragraph;mso-element-anchor-horizontal:column;mso-height-rule:exactly">
<a href="http://www.dspg.com/"><span style="color:windowtext;mso-fareast-language:EN-GB;text-decoration:none"><img border="0" width="140" height="60" id="Picture_x0020_1" src="cid:image011.jpg@01D111A2.52752C80" alt="1 (Custom) (2)"></span></a><span style="mso-fareast-language:EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-element:frame;mso-element-wrap:around;mso-element-anchor-vertical:paragraph;mso-element-anchor-horizontal:column;mso-height-rule:exactly">
<a href="mailto:James.Hughes@dspg.com"><span style="color:windowtext;mso-fareast-language:EN-GB;text-decoration:none"><img border="0" width="33" height="34" id="Picture_x0020_138" src="cid:image012.png@01D111A2.52752C80" alt="dsp_mal signature-Tali_180613-14"></span></a><a href="http://www.dspg.com/"><span style="color:windowtext;mso-fareast-language:EN-GB;text-decoration:none"><img border="0" width="33" height="34" id="Picture_x0020_139" src="cid:image013.png@01D111A2.52752C80" alt="dsp_mal signature-Tali_180613-15"></span></a><a href="https://www.facebook.com/#!/DSPGroup2013"><span style="color:windowtext;mso-fareast-language:EN-GB;text-decoration:none"><img border="0" width="33" height="34" id="Picture_x0020_140" src="cid:image014.png@01D111A2.52752C80" alt="dsp_mal signature-Tali_180613-16"></span></a><a href="http://www.linkedin.com/company/6894?trk=tyah"><span style="color:windowtext;mso-fareast-language:EN-GB;text-decoration:none"><img border="0" width="33" height="34" id="Picture_x0020_141" src="cid:image015.png@01D111A2.52752C80" alt="dsp_mal signature-Tali_180613-17"></span></a><span style="mso-fareast-language:EN-GB"><o:p></o:p></span></p>
</td>
<td width="464" valign="top" style="width:278.35pt;border:solid white 1.0pt;border-left:none;padding:0cm 5.4pt 0cm 5.4pt;height:38.05pt">
<p class="MsoNormal"><b><span style="font-size:12.0pt;font-family:"Arial","sans-serif";color:#31849B;mso-fareast-language:EN-GB">James Hughes</span></b><b><span style="font-size:12.0pt;font-family:"Arial","sans-serif";color:#31849B;mso-fareast-language:EN-GB"><o:p></o:p></span></b></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Arial","sans-serif";color:#31849B;mso-fareast-language:EN-GB">Senior Software Engineer<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif";color:gray;mso-fareast-language:EN-GB">Phone: +44 (0)1223772209</span><span style="font-family:"Arial","sans-serif";color:gray;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<br clear="both">
______________________________________________________________________<BR>
DSP Group, Inc. automatically scans all emails and attachments using MessageLabs Email Security System.<BR>
_____________________________________________________________________<BR>
</body>
</html>