[FFmpeg-soc] [rfc] 24bits works
Keiji Costantini
lists at strites.net
Fri Aug 22 01:29:14 CEST 2008
Michael Niedermayer ha scritto:
> 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.
My fault. Corrected.
From tomorrow I'll get on rgb32/15/16.
--
Keiji Costantini
-------------- next part --------------
A non-text attachment was scrubbed...
Name: yuv2rgb2.c
Type: text/x-csrc
Size: 7349 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-soc/attachments/20080822/d7755261/attachment.c>
More information about the FFmpeg-soc
mailing list