[FFmpeg-soc] [rfc] 24bits works

Keiji Costantini lists at strites.net
Fri Aug 22 01:32:13 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.

corrected truely this time - sorry for the double post
-- 
Keiji Costantini
-------------- next part --------------
A non-text attachment was scrubbed...
Name: yuv2rgb2.c
Type: text/x-csrc
Size: 7336 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-soc/attachments/20080822/eccf50d4/attachment.c>


More information about the FFmpeg-soc mailing list