[FFmpeg-devel] [PATCH] bgr32 libswscale special convertor

Ramiro Polla ramiro.polla
Fri Aug 14 16:56:37 CEST 2009


On Fri, Aug 14, 2009 at 10:18 AM, Peter Schlaile<peter at schlaile.de> wrote:
> thanks a lot!
>
> Regards,
> Peter
>
> P.S.: You might still want to overthink that
> "const uint8_t* src[]"-parameter (or fix the other convertors
> accordingly)...
>
> Take a look at the declaration of SwsFunc in swscale_internal.h:62 :
>
> typedef int (*SwsFunc)(struct SwsContext *context, uint8_t* src[],
> ? ? ? ? ? ? ? ? ? ? ? int srcStride[], int srcSliceY, int srcSliceH,
> ? ? ? ? ? ? ? ? ? ? ? uint8_t* dst[], int dstStride[]);
>
> Since *all* the SwsFuncs expect an "uint8_t* src[]", you'll get a lot of
> compiler warnings currently (as I already stated in my previous mails...)

Thanks for the tip. I'm currently working on simplifying most function
parameters (mostly to avoid calling functions in 3 lines or so)...



More information about the ffmpeg-devel mailing list