Hi!

I have the AVFrame with the data returned from FFMEG, and I want to display
the frame as a OpenGL texture, as you do. I mean, I have the source for
sws_scale, but not the destination. I guess I have to reserve some memory to
allocate the texture, that will be the 'dst' parameter, and the linesizes
are the length for each colour... or not? I'm quite confused about that.

Thanks Thibault!


> -----Missatge original-----
> De: [email protected] [mailto:libav-user-
> [email protected]] En nom de Thibault Daoulas
> Enviat: dilluns, 15 / desembre / 2008 21:28
> Per a: Libav* user questions and discussions
> Tema: Re: [libav-user] FFMpeg and OpenGL
> 
> Hi Arnau,
> 
>     I'm not sure if that's what you're looking for, but I use from a
> streaming output sws_scale indeed to display my frames as textures with
> OpenGL... So do you already have the data you want to display?
> 
> Thibault.
> 
> Arnau Font wrote:
> > Hi group!
> >
> >
> >
> > I'm trying to develop a videoplayer in opengl. I've followed the SDL
> and
> > FFMPEG tutorial and now I have a functional player under SDL, using
> the
> > SDL_Overlays and all that. But now I want to use openGL. I guess I
> have to
> > do a sws_scale to a opengl format, but I'm quite lost about how to do
> it.
> > Does anybody have a working example or some guidelines?
> >
> >
> >
> > Lots of thanks!!
> >
> >
> >
> > Arnau Font
> >
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> ---
> >
> > _______________________________________________
> > libav-user mailing list
> > [email protected]
> > https://lists.mplayerhq.hu/mailman/listinfo/libav-user
> >
> 
> _______________________________________________
> libav-user mailing list
> [email protected]
> https://lists.mplayerhq.hu/mailman/listinfo/libav-user

_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to