[lc-devel] Compressing a page using WKdm
Status: Beta
Brought to you by:
nitin_sf
From: Anderson B. <bri...@gm...> - 2006-06-08 21:10:22
|
Hi all, I have been trying to compress a page using that WKdm code from project's CVS. But, something is wrong because the system hangs after some compression/decompression pages. I'm using this interface: to compress "original_page": int len; len = WKdm_compress(page_address(original_page), page_address(comp_page), 1024); memcpy(page_address(original_page), page_address(comp_page), len); to decompress: WKdm_decompress(page_address(original_page), page_address(decomp_page), 1024); memcpy(page_address(original_page), page_address(decomp_page), PAGE_SIZE); Is needed to do some padding? I saw at compress_test module that the comp_data is filled with 0's after the compression. Is it necessary? Best regards, Anderson Briglia |