glcolorconvert

Nicolas Dufresne nicolas.dufresne at collabora.com
Thu Jun 25 07:39:56 PDT 2015


Le jeudi 25 juin 2015 à 15:22 +0100, Hamdi Rakkez a écrit :
> I am using gstreamer-1.5.1

So in this case, you need the glupload/gldownload elements in your
pipeline (this first pipeline is just so you understand, see next one):

gst-launch-1.0 videotestsrc ! video/x-raw,format=NV12 \
  ! glupload ! glcolorconvert ! gldownload \
    ! video/x-raw,format=BGRx ! ximagesink

Or, as a convenience, you can use glfilterbin:

gst-launch-1.0 videotestsrc ! video/x-raw,format=NV12 \
  ! glfilterbin filter=glcolorconvert \
  ! video/x-raw,format=BGRx ! ximagesink

In some cases, you want to manually use upload/download so you control
when the data moves from memory to GL space (this transition can be
expensive). But if you want to use a filter as if it was doing normal
memory IO, glfilterbin is best.

Nicolas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20150625/a29d38f1/attachment.sig>


More information about the gstreamer-devel mailing list