[mythtv] [PATCH] OSD constant LUT

Andrew Mahone andrewmahone at eml.cc
Mon Feb 16 02:48:13 EST 2004


The attached patch replaces the replaces the pow_lut table in OSDSurface with 
a precalculated, constant table.  This adds 64kB to the size of libmythtv, 
but saves the same amount per OSDSurface instance, and should be faster for 
multiple instances because there won't be more than one copy of the table 
that the CPU is trying to cache (I have no idea how many OSDSurfaces 
typically exist at once).  Sharing a single table everywhere should be safe, 
as the table is never written to.  Sorry for the compressed patch, but the 
lut.c file is around .4MB.
-- 
Andrew Mahone
andrewmahone AT eml DOT cc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: const_lut.patch.bz2
Type: application/x-bzip2
Size: 17613 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20040216/b27a006c/const_lut.patch-0001.bin


More information about the mythtv-dev mailing list