<div dir="ltr">Thank you for your reply, Nicolas.<div><br></div><div>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?</div><div><br></div><div>Isn't it possible to abstract away SDL rendering method and match colorspace with <a href="https://wiki.libsdl.org/SDL_CreateTexture">https://wiki.libsdl.org/SDL_CreateTexture</a> ?</div><div><br></div><div>Best,</div><div>Yuri</div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Best,<br>Yuri</div></div></div></div>
<br><div class="gmail_quote">2017-03-11 18:15 GMT+02:00 Nicolas Dufresne <span dir="ltr"><<a href="mailto:nicolas@ndufresne.ca" target="_blank">nicolas@ndufresne.ca</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Le samedi 11 mars 2017 à 12:45 +0200, Yuriy Volkov a écrit :<br>
> Hi,<br>
><br>
> I want to build a cross-platform video sink on top of SDL. Are there<br>
> any guides/best practices to follow so that the resulting plugin<br>
> would be considered of "good" quality? I thought about using<br>
> GstVideoSink as a base class and implementing GstNavigation and<br>
> GstVideoOverlay interfaces.<br>
<br>
</span>Refer to existing sync. Ideally, your sink should:<br>
<br>
- Best effort to reduce memory copies<br>
- Support GstVideoMeta<br>
- If scaling, maintain proper aspect ratio / add black bars<br>
- Integrate well in existing application<br>
<br>
SDL though has multiple rendering method. I'd be extra careful in the<br>
naming, I believe you could easily consider having multiple sinks,<br>
sdlsink (for RGB), sdloverlaysink (for YCbCr) and sdlglsink when using<br>
GL overlays.<br>
<br>
regards,<br>
Nicolas<br>
<br>
><br>
> Best,<br>
> Yuri<br>
> ______________________________<wbr>_________________<br>
> gstreamer-devel mailing list<br>
> <a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.<wbr>freedesktop.org</a><br>
> <a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-<wbr>devel</a><br>______________________________<wbr>_________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.<wbr>freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-<wbr>devel</a><br>
<br></blockquote></div><br></div>