<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Two options.<br>
      <br>
      1. Upload to OpenGL in GStreamer.  This has the potential for
      upstream decoders to negotiate zerocopy paths that avoid a
      download/upload to/from system memory.  The pipeline for that
      would look like 'decoder ! glupload ! glcolorconvert ! appsink'. 
      To be able to correctly interact with the OpenGL textures from
      your application, you need to provide the application OpenGL
      context to GStreamer for sharing using something like <a
        moz-do-not-send="true"
href="http://ystreet00.blogspot.com/2015/09/gstreamer-16-and-opengl-contexts.html">http://ystreet00.blogspot.com/2015/09/gstreamer-16-and-opengl-contexts.html</a>. 
      Depending on your application, there may already be elements for
      your toolkit. e.g. Gtk+3 and Qt/Qml elements exist.  This provides
      the application with OpenGL textures that can be used in your
      OpenGL scene.  Other sources of inspiration are the gtkglsink and
      qmlglsink elements for the entire process for integrating with an
      external API.<br>
      2. Upload to OpenGL outside of GStreamer as you've already found.<br>
      <br>
      Cheers<br>
      -Matt<br>
      <br>
      On 9/10/18 8:17 am, Tracy Brown wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CY4PR08MB23758D95A2C59B1F580631619CE60@CY4PR08MB2375.namprd08.prod.outlook.com">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <meta name="Generator" content="Microsoft Word 15 (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:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Calibri Bold";
        panose-1:2 15 7 2 3 4 4 3 2 4;}
@font-face
        {font-family:"Calibri Bold Italic";
        panose-1:2 15 7 2 3 4 4 10 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
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]-->
      <div class="WordSection1">
        <p class="MsoNormal">Hey guys,<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">I’ve been struggling to find a performant
          way to get the video out of gstreamer into my app’s opengl
          texture…is there a standard way to do this?<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">What I’m doing now is using an appsink to
          get the raw sample data and then uploading it up to an opengl
          texture.<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">Thanks for your time!<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal" style="margin-bottom:6.0pt"><span
            style="font-size:10.0pt;color:#51626F">TRACY BROWN
          </span><span style="font-size:10.0pt;color:#1F497D">|</span><span
            style="font-size:10.0pt;color:#51626F"> SOFTWARE DESIGN ENGR
            II
          </span><span style="font-size:10.0pt;color:#1F497D">|</span><span
            style="font-size:10.0pt;color:#51626F"> NAVICO</span><span
            style="color:#1F497D"><o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D"><img
              style="width:6.6666in;height:.3645in" id="Picture_x0020_5"
              src="cid:part2.E11029EC.D910CD9A@gmail.com"
              alt="NavicoBrands_strip_RGB_sml" class="" width="640"
              height="35"></span><span
            style="font-size:9.0pt;color:#51626F"><o:p></o:p></span></p>
        <p class="MsoNormal" style="margin-top:6.0pt"><span
            style="font-size:9.0pt;color:#51626F">4500 S. 129th East
            Avenue, Ste. 200
          </span><span style="font-size:9.0pt;color:#1F497D">|</span><span
            style="font-size:9.0pt;color:#51626F"> Tulsa, OK 74134-5885
            USA<o:p></o:p></span></p>
        <p class="MsoNormal"><b><span
              style="font-size:9.0pt;color:#1F497D">Office: </span>
          </b><span style="font-size:9.0pt;color:#51626F">+1
            918.438.8427</span><span
            style="font-size:9.0pt;color:#1F497D">|</span><span
            style="font-size:9.0pt;color:#51626F">
          </span><b><span style="font-size:9.0pt;color:#1F497D">Email:</span></b><span
            style="font-size:9.0pt;color:#1F497D">
          </span><u><span style="font-size:9.0pt;color:blue"><a
                href="mailto:tracy.brown@navico.com"
                moz-do-not-send="true">tracy.brown@navico.com</a></span></u><b><span
              style="font-size:9.0pt;color:#1F497D"><o:p></o:p></span></b></p>
        <p class="MsoNormal"><b><span
              style="font-size:9.0pt;color:#1F497D">Skype ID:</span></b><span
            style="font-size:9.0pt;color:#1F497D">
          </span><span style="font-size:9.0pt;color:#51626F">tracy.brown.navico
            | </span><b><span style="font-size:9.0pt;color:#1F497D">Mobile:</span></b><span
            style="font-size:9.0pt;color:#51626F"> +1 918.852.5217
            <o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:7.0pt;font-family:"Calibri
            Bold";color:#BDBDBD"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:7.0pt;font-family:"Calibri
            Bold";color:#BDBDBD">Confidentiality Notice |</span><span
            style="font-size:7.0pt;font-family:"Calibri Bold
            Italic";color:#BDBDBD"> This message may contain
            confidential and/or privileged information. <br>
            If you are not the addressee or authorized to receive this
            for the addressee, you must not use,
            <br>
            copy, disclose or take any action based on this message or
            any information herein.
            <br>
            If you have received this message in error, please advise
            the sender immediately by reply e-mail
            <br>
            and delete this message. Thank you for your cooperation.</span><span
            style="font-size:9.0pt;color:#51626F"><o:p></o:p></span></p>
        <p class="MsoNormal"><o:p> </o:p></p>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
gstreamer-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a>
</pre>
    </blockquote>
    <p><br>
    </p>
  </body>
</html>