[FFmpeg-cvslog] r32368 - in trunk/libswscale: swscale.h utils.c

Stefano Sabatini stefano.sabatini-lala
Tue Sep 28 17:41:39 CEST 2010


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.

Regards.
-- 
FFmpeg = Fundamentalist Fast Mind-dumbing Practical Elfic God



More information about the ffmpeg-cvslog mailing list