[FFmpeg-soc] [rfc] 24bits works

Michael Niedermayer michaelni at gmx.at
Tue Aug 19 13:36:52 CEST 2008


On Mon, Aug 18, 2008 at 08:58:12PM +0200, Keiji Costantini wrote:
> this should be the last post I make today (flu & headache are taking me to 
> sleep)
>
> for the moment the rgb24 conversion passed swscale-example.
> tomorrow I shall work on the 32 and 16 bits too.
> Good night everyone
[...]
> /**
>  * rgb24
>  */
> void gentable24(int srcRange, int/*?*/ v, uint8_t *r , uint8_t *g1, uint8_t *g2 , uint8_t *b)
> {
>     int i, n, m;
>     int32_t tr, tg1, tg2, tb;

>     tg2 = -((v-128)*71414 / 5^5 ) / 2^5;

I do not belive that this works, '^' is the bitwise xor operator in C and
not exponentiation.


[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Those who are too smart to engage in politics are punished by being
governed by those who are dumber. -- Plato 
-------------- 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-soc/attachments/20080819/8975fa4b/attachment.pgp>


More information about the FFmpeg-soc mailing list