[FFmpeg-devel] [PATCH v3 3/3] lavd: deprecate opengl outdev

Nicolas George george at nsup.org
Wed Sep 14 22:07:21 EEST 2016


Le nonidi 29 fructidor, an CCXXIV, Josh de Kock a écrit :
> What is your attachment to the SDL1 library?

None at all. You did not read me carefully at all. My attachment is to the
OpenGL device.

> Firstly, the OpenGL device doesn't have the best implementation, and lavd

I am rather surprised. IIRC, Reimar was active on the list at the time it
was implemented, I think he would have spotted problems like that. Can you
elaborate?

> really doesn't seem like the right place for this. You'd be better off
> writing your own from scratch or using something like libmpv (which has a
> proper renderer).

That defeats the purpose of libavdevice.

> Sorry, I'm not sure how you think the SDL device can be used without SDL.

I think the OpenGL device can be used without SDL, please read carefully.
OpenGL uses a global state, not a context parameter passed to each function.
That means that part of an application can create and init the OpenGL
context and other parts of the application can draw on it without any
explicit communication between them. That is exactly what is meant for the
device in lavd: the application creates and inits the context, then lavd
generates OpenGL commands which are executed on the context. SDL is only
used in this device as a convenience for simpler applications.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160914/e78bc4e2/attachment.sig>


More information about the ffmpeg-devel mailing list