Zero copy omxh264dec to EGLImage

Zevv Glass gtk at zevv.nl
Wed Oct 3 18:52:45 UTC 2018


Quoting Nicolas Dufresne (2018-10-03 20:49:24)

> Le mercredi 03 octobre 2018 à 19:11 +0200, Zevv Glass a écrit :
> > I'm not sure how I would access the underlying EGL image from the
> > above code, though.
> 
> Using GstGLMemoryEGL API I mention:
> 
>   mem = gst_buffer_peek_memory (buffer, 0);
>   g_assert (gst_is_gl_memory_egl (mem));
>   image = gst_gl_memory_egl_get_image ((GstGLMemoryEGL*) mem);

Great, thanks for spelling that out for me!

> > (I also assume the underlying EGL image is reused or destroyed after the
> > callback finishes, so I will have to take care how I will use these from
> > the other thread context - but these are problems for later.)
> 
> Just keep a ref on it (gst_buffer_ref/unref);

Clear.

I'll see if I can get things to work like this, I'll report back with
results.




More information about the gstreamer-devel mailing list