Understanding GLBuffer and appsink

Matthew Waters ystreet00 at gmail.com
Mon Jun 8 15:34:56 UTC 2020


The answer is it depends on your pipeline :)

If your appsink is receiving caps with video/x-raw(memory:GLMemory),
then appsink is receiving OpenGL textures.  OpenGL textures are only
mapped to the CPU when mapped with gst_memory_map() and friends without
the GST_MAP_GL map flag.


On 9/6/20 12:49 am, Avishay Orpaz wrote:
> Hi
> I have a pipeline in which an nvdec element feeds an appsink element.
> The nvdec element does its data processing on the GPU and emits
> GLBuffers. Downstream, I only need a fraction of the frames decoded by
> the GPU, so I don't want them to be copied into the CPU memory at all.
> How do I accomplish this? Are the buffers received by appsink GL or
> CPU buffers? What is the exact point the buffers get copied from the
> GPU into the CPU?
> Avishay
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20200609/5388a2d5/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20200609/5388a2d5/attachment.sig>

More information about the gstreamer-devel mailing list