[Ffmpeg-devel] attribute_deprecated img_convert

Vlad GURDIGA gurdiga
Tue Mar 20 23:38:16 CET 2007


On 21/03/07, Michael Niedermayer <michaelni at gmx.at> wrote:
> Hi
>
> On Tue, Mar 20, 2007 at 11:55:36PM +0200, Vlad GURDIGA wrote:
> > Hello,
> >
> > In avcodec.h somewhere arround line 2570 the function img_convert() is
> > declared as deprecated (this is what attribute_deprecated in front of
> > it means, I guess). What should I use instead to get a MJPEG
> > representation of a frame?
>
> you should use sws_scale() instead of img_convert()
>
> and of course neither is related to mjpeg

I guess I made a wrong start. :) I'm trying to use ffmpeg API from C#
to make thumbnails for videoclips in a web application. I've managed
to save a frame to a PPM file, but I need it as a JPEG image. After
calling img_convert(), I got an AVPicture structure. In the data[0]
field of AVPicture I have the binary RGB data. Is there any function
to convert that RGB data to JPEG so I could save it to disk?

Thanks!


>
> [...]
> --
> Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
>
> When the tyrant has disposed of foreign enemies by conquest or treaty, and
> there is nothing more to fear from them, then he is always stirring up
> some war or other, in order that the people may require a leader. -- Plato
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at mplayerhq.hu
> http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-devel
>
>




More information about the ffmpeg-devel mailing list