[FFmpeg-devel] [PATCH] Explicit palette parameter in SwsFunc

Michael Niedermayer michaelni
Mon Sep 8 01:04:45 CEST 2008


On Sun, Sep 07, 2008 at 06:14:34PM +0200, Luca Barbato wrote:
> Right now the palette (an array of 256 uint32) is passed as pointer in the 
> second uint8_t *src[]; element.
>
> I'd make it an explicit parameter to avoid unnecessary casts.
>
> The following patch does more or less that for the internals, the API is 
> unchanged.

I think it may be nicer to set the pal in the context instead of passing it
around, also it should ba called yuvpal not pal.

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

No snowflake in an avalanche ever feels responsible. -- Voltaire
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080908/3a495957/attachment.pgp>



More information about the ffmpeg-devel mailing list