[FFmpeg-soc] [rfc] 24bits works

Michael Niedermayer michaelni at gmx.at
Fri Aug 22 14:11:21 CEST 2008


On Fri, Aug 22, 2008 at 01:32:13AM +0200, Keiji Costantini wrote:
> 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

The code should be integrated into the swscaler.
That is it should be a patch that one can apply and afterwards compile
ffmpeg so it uses the new table generator.

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Asymptotically faster algorithms should always be preferred if you have
asymptotical amounts of data
-------------- 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/20080822/b7c56a65/attachment.pgp>


More information about the FFmpeg-soc mailing list