From: Peter W. <pet...@we...> - 2008-02-14 15:40:48
|
I've written an image loader for evas that can load pbm, pgm, ppm. It supports P1, P2, P3, P4, P5, P6. For P5 and P6 it also supports the 2-byte format. Unfortunately I haven't seen that there is a pnm loader for imlib2, when I started to write it. And when I saw the imlib2 loader, I've already written the most parts of my loader. Compared to the imlib2 loader my loader is very lenient, supports 2-byte binary format and imho is easier to understand. Therefor the imlib2 code might be a bit faster. I haven't measured it tho. And the felt load time is almost equal. I named the loader pmaps, but if you prefer I can rename it to pnm. The attached diff only adds the loader to evas. The pmaps directory can be found here: http://mowem.de/evas/pmaps.tar.gz or if you just want to scroll through the c file: http://phpfi.com/296415 If you like it, I'll commit it. Peter |