X11 vs Cocoa on OS X for GstGL context sharing

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

X11 vs Cocoa on OS X for GstGL context sharing

Gottfried Haider
I've come across many references to
gst_gl_display_x11_new_with_display and friends in code that is
presumably also meant to run on OS X. However, I've found that the
gst/gl/x11/* headers aren't part of recent Framework releases for Mac,
and neither come when installing with homebrew.

Is Cocoa the only supported way on OS X, or should I try to compile
gst-plugins-bad myself to include X11 support? (I am hoping to make
use of GL context sharing on this platform.)

Thanks in advance
Gottfried
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: X11 vs Cocoa on OS X for GstGL context sharing

Matthew Waters
Hi,

Cocoa is known to work and is tested on OS X.  glimagesink on OS X uses
shared contexts with a CAOpenGLLayer.

X11 on OS X is not tested regularly and I have heard reports of it not
working.  Your mileage may vary ;)

With Cocoa, the connection to the window system is through NSApplication
which should automatically just work for sharing the display connection
between GStreamer and your application and the default
gst_gl_display_new() will work for Cocoa applications.

Cheers
-Matt

On 14/06/16 19:46, Gottfried Haider wrote:

> I've come across many references to
> gst_gl_display_x11_new_with_display and friends in code that is
> presumably also meant to run on OS X. However, I've found that the
> gst/gl/x11/* headers aren't part of recent Framework releases for Mac,
> and neither come when installing with homebrew.
>
> Is Cocoa the only supported way on OS X, or should I try to compile
> gst-plugins-bad myself to include X11 support? (I am hoping to make
> use of GL context sharing on this platform.)
>
> Thanks in advance
> Gottfried

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (484 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: X11 vs Cocoa on OS X for GstGL context sharing

Gottfried Haider
Thank you, Matt! This [1] indeed did the trick.

Best
Gottfried

[1] https://github.com/gohai/processing-glvideo/commit/cb8e56c2c907f11272d3da5b709368b8e2f5dd80

On Tue, Jun 14, 2016 at 12:26 PM, Matthew Waters <[hidden email]> wrote:

> Hi,
>
> Cocoa is known to work and is tested on OS X.  glimagesink on OS X uses
> shared contexts with a CAOpenGLLayer.
>
> X11 on OS X is not tested regularly and I have heard reports of it not
> working.  Your mileage may vary ;)
>
> With Cocoa, the connection to the window system is through NSApplication
> which should automatically just work for sharing the display connection
> between GStreamer and your application and the default
> gst_gl_display_new() will work for Cocoa applications.
>
> Cheers
> -Matt
>
> On 14/06/16 19:46, Gottfried Haider wrote:
>> I've come across many references to
>> gst_gl_display_x11_new_with_display and friends in code that is
>> presumably also meant to run on OS X. However, I've found that the
>> gst/gl/x11/* headers aren't part of recent Framework releases for Mac,
>> and neither come when installing with homebrew.
>>
>> Is Cocoa the only supported way on OS X, or should I try to compile
>> gst-plugins-bad myself to include X11 support? (I am hoping to make
>> use of GL context sharing on this platform.)
>>
>> Thanks in advance
>> Gottfried
>
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel