Cross-platform video sink on top of SDL

Yuriy Volkov jnvolkov at gmail.com
Mon Mar 13 16:24:36 UTC 2017


Thank you for your reply, Nicolas.

What would it take to integrate well in an existing app from the GStreamer
perspective? Are there any standard approach which applications tend to
follow?

Isn't it possible to abstract away SDL rendering method and match
colorspace with https://wiki.libsdl.org/SDL_CreateTexture ?

Best,
Yuri


Best,
Yuri

2017-03-11 18:15 GMT+02:00 Nicolas Dufresne <nicolas at ndufresne.ca>:

> Le samedi 11 mars 2017 à 12:45 +0200, Yuriy Volkov a écrit :
> > Hi,
> >
> > I want to build a cross-platform video sink on top of SDL. Are there
> > any guides/best practices to follow so that the resulting plugin
> > would be considered of "good" quality? I thought about using
> > GstVideoSink as a base class and implementing GstNavigation and
> > GstVideoOverlay interfaces.
>
> Refer to existing sync. Ideally, your sink should:
>
> - Best effort to reduce memory copies
> - Support GstVideoMeta
> - If scaling, maintain proper aspect ratio / add black bars
> - Integrate well in existing application
>
> SDL though has multiple rendering method. I'd be extra careful in the
> naming, I believe you could easily consider having multiple sinks,
> sdlsink (for RGB), sdloverlaysink (for YCbCr) and sdlglsink when using
> GL overlays.
>
> regards,
> Nicolas
>
> >
> > Best,
> > Yuri
> > _______________________________________________
> > gstreamer-devel mailing list
> > gstreamer-devel at lists.freedesktop.org
> > https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
> _______________________________________________
> 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/20170313/f857948d/attachment.html>


More information about the gstreamer-devel mailing list