[lc-devel] WK4x4
Status: Beta
Brought to you by:
nitin_sf
From: John R M. <jm...@st...> - 2003-10-11 16:38:18
|
What the hell? I'm trying to rewrite this code and I'm finding that the WK4x4 algorithm doesn't appear to use the data structures allocated in the beginnig in the comp_alg_data * data passed to wk4x4_compress/wk4x4_decompress, or in ANY of the macros in wk4x4.c. HOWEVER it does get used in wkdm. Why not NOT allocate the data for WK4x4? I'm going to rewrite the wk4x4 alloc function to not allocate the data, and move that code into the wkdm function. That should allieviate most of the issues with extremely low ram boxes running out of RAM with wk4x4, since the alg allocates 3.6k of RAM (think about 3 meg boxes :P). Realisticly, at this point there's no way you're running out of RAM, or else the box isn't going to boot anyway; But it just annoys me. oh, proc.c is pretty much done. I'm not so sure about the page stuff though. I did modify the page structure, but I don't know how to make it set the algorithm to -1 on page allocation, so when it compreses a page it'll likely either pick a random alg that just happens to have the same index as the garbage at that point, or pick the default alg. -- Bluefox Phoenix Lucid |