[FFmpeg-devel] [PATCH] lavd/opengl: use SDL2
Lukasz Marek
lukasz.m.luki2 at gmail.com
Sun Sep 18 04:21:20 EEST 2016
On 18 September 2016 at 00:30, Josh de Kock <josh at itanimul.li> wrote:
> I did this in about 5 minutes, and only tested it with one sample (on
> OSX using the cocoa opengl renderer). Seems to work, but probably
> won't for all cases. Would like some feedback where it doesnt work etc
>
> Signed-off-by: Josh de Kock <josh at itanimul.li>
> ---
> libavdevice/opengl_enc.c | 87 +++++++++++++++++++++++++-----
> ------------------
> 1 file changed, 46 insertions(+), 41 deletions(-)
>
> diff --git a/libavdevice/opengl_enc.c b/libavdevice/opengl_enc.c
> index 1dbbb80..1917459 100644
> --- a/libavdevice/opengl_enc.c
> +++ b/libavdevice/opengl_enc.c
> @@ -46,7 +46,7 @@
> #include <GL/glx.h>
> #endif
>
> -#if HAVE_SDL
> +#if HAVE_SDL2
> #include <SDL.h>
> #endif
>
> @@ -174,8 +174,10 @@ static const GLushort g_index[6] =
> typedef struct OpenGLContext {
> AVClass *class; ///< class for private options
>
> -#if HAVE_SDL
> - SDL_Surface *surface;
> +#if HAVE_SDL2
> + SDL_Texture *texture;
> + SDL_Window *window;
> + SDL_Renderer *renderer;
>
I said I will patch opengl, your implemantation donsn't look good at this
point, declined,
More information about the ffmpeg-devel
mailing list