GL plugin generic example on RPI

Arnaud Loonstra arnaud at sphaero.org
Wed Nov 5 03:14:00 PST 2014


K I got it working and filed a bug

https://bugzilla.gnome.org/show_bug.cgi?id=739661

The gist is also updated:
https://gist.github.com/sphaero/eac4d01013bd2b0e2205


On 11/04/2014 11:44 PM, Julien Isorce wrote:
> Indeed this example is not currently working on embedded.
>
> You need to use gles version 2. So include headers from GLES2 dir and
> not GLES. To match gstgl api version that gstgl will select (I can see
> gles2 in your log).
> Then in the reshape callback you will only need to call glViewport.
> Then you will need to setup a vertex shader and a fragment shader in the
> draw callback. Initializing it only for the first call. (To do it during
> pipeline setup we would need to provide another callback triggered from
> the gl thread as well)
>
> Actually looking at glimagesink code I can see a possible improvement
> which is to initialize the shader at setup time, instead of doing it in
> the first call to show_frame.
>
> Please open a bug if you wish to continue making this example working on
> RPI.
>
>
> On 4 November 2014 20:16, Arnaud Loonstra <arnaud at sphaero.org
> <mailto:arnaud at sphaero.org>> wrote:
>
>     Hi all,
>
>     I'm trying to port the generic gl example:
>
>     http://cgit.freedesktop.org/__gstreamer/gst-plugins-bad/__tree/tests/examples/gl/__generic/cube/main.cpp
>     <http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/tree/tests/examples/gl/generic/cube/main.cpp>
>
>     to the Raspberry Pi.
>
>     I've managed to run it with a few adaptions
>     - no GLU
>     - changed the quad draw method
>
>     It runs, it outputs the fps, I think it displays one (corrupt)frame
>     before going black. But that's it. I thought I'd draw on red
>     background to see if I at least have control over the display
>     context using glClearColor(1.0f, 0.0f, 0.0f, 0.0f); (l122) But no
>     red unfortunately.
>
>     Are there any different other things I should do to control the GLES
>     context? Or any tips?
>
>     source:
>     https://gist.github.com/__sphaero/eac4d01013bd2b0e2205
>     <https://gist.github.com/sphaero/eac4d01013bd2b0e2205>
>
>     debug log:
>     http://paste.debian.net/__130308/ <http://paste.debian.net/130308/>
>
>     Running latest (last weekend) gst from git.
>
>     Rg,
>
>     Arnaud
>     --
>     w: http://www.sphaero.org
>     t: http://twitter.com/sphaero
>     g: http://github.com/sphaero
>     i: freenode: sphaero_z25
>     _________________________________________________
>     gstreamer-devel mailing list
>     gstreamer-devel at lists.__freedesktop.org
>     <mailto:gstreamer-devel at lists.freedesktop.org>
>     http://lists.freedesktop.org/__mailman/listinfo/gstreamer-__devel
>     <http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel>
>
>
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>


-- 
Stichting z25.org
Concordiastraat 67A
3551 EM Utrecht
The Netherlands

m: +31-(0)6-41861063
e: arnaud at z25.org
w: http://z25.org
t: http://twitter.com/z25org
f: http://fb.com/z25org
g: http://gplus.to/z25
l: http://linkedin.com/company/z25

-- 
w: http://www.sphaero.org
t: http://twitter.com/sphaero
g: http://github.com/sphaero
i: freenode: sphaero_z25


More information about the gstreamer-devel mailing list