[FFmpeg-cvslog] r32368 - in trunk/libswscale: swscale.h utils.c
Michael Niedermayer
michaelni
Wed Sep 29 02:54:37 CEST 2010
On Tue, Sep 28, 2010 at 05:41:39PM +0200, Stefano Sabatini wrote:
> On date Sunday 2010-09-26 21:33:57 +0200, michael wrote:
> > Author: michael
> > Date: Sun Sep 26 21:33:57 2010
> > New Revision: 32368
> >
> > Log:
> > Split alloc and init of context so that parameters can be set in the context
> > instead of requireing being passed through function parameters. This also
> > makes sws work with AVOptions.
> >
> > Modified:
> > trunk/libswscale/swscale.h
> > trunk/libswscale/utils.c
> >
> > Modified: trunk/libswscale/swscale.h
> > ==============================================================================
> > --- trunk/libswscale/swscale.h Sun Sep 26 21:33:48 2010 (r32367)
> > +++ trunk/libswscale/swscale.h Sun Sep 26 21:33:57 2010 (r32368)
> [...]
> > @@ -161,6 +172,7 @@ void sws_freeContext(struct SwsContext *
> > * @param dstFormat the destination image format
> > * @param flags specify which algorithm and options to use for rescaling
> > * @return a pointer to an allocated context, or NULL in case of error
> > + * @deprecated use sws_alloc_context() and sws_init_context()
> > */
> > struct SwsContext *sws_getContext(int srcW, int srcH, enum PixelFormat srcFormat,
> > int dstW, int dstH, enum PixelFormat dstFormat,
>
> Is this supposed to be removed at the next major bump? If yes, I
> suggest to add attribute_deprecated to it and remove all the uses in
> FFmpeg.
it is supposed to be removed but we arent really in a hurry to do that. Theres
nothing wrong with the old api it is just a bit unflexible
if you want to do it its of course ok
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Many things microsoft did are stupid, but not doing something just because
microsoft did it is even more stupid. If everything ms did were stupid they
would be bankrupt already.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-cvslog/attachments/20100929/36594c36/attachment.pgp>
More information about the ffmpeg-cvslog
mailing list