[FFmpeg-devel] [PATCH] swscale: Make sws_alloc_set_opts() public

Clément Bœsch u at pkh.me
Sat Aug 8 17:33:29 CEST 2015


On Sat, Aug 08, 2015 at 05:14:58PM +0200, Michael Niedermayer wrote:
> From: Michael Niedermayer <michael at niedermayer.cc>
> 
> Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> ---
>  libswscale/swscale.h          |   11 +++++++++++
>  libswscale/swscale_internal.h |   11 -----------
>  libswscale/version.h          |    4 ++--
>  3 files changed, 13 insertions(+), 13 deletions(-)
> 
> diff --git a/libswscale/swscale.h b/libswscale/swscale.h
> index 903e120..055c9fc 100644
> --- a/libswscale/swscale.h
> +++ b/libswscale/swscale.h
> @@ -161,6 +161,17 @@ int sws_isSupportedEndiannessConversion(enum AVPixelFormat pix_fmt);
>  struct SwsContext *sws_alloc_context(void);
>  
>  /**
> + * Allocate and return an SwsContext.
> + * This is like sws_getContext() but does not perform the init step, allowing
> + * the user to set additional AVOptions.
> + *
> + * @see sws_getContext()
> + */
> +struct SwsContext *sws_alloc_set_opts(int srcW, int srcH, enum AVPixelFormat srcFormat,
> +                                      int dstW, int dstH, enum AVPixelFormat dstFormat,
> +                                      int flags, const double *param);
> +

What's "param"? It looks undocumented in sws_getContext() as well

[...]

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150808/5afc3e5a/attachment.sig>


More information about the ffmpeg-devel mailing list