On Tue, 13 Apr 2010 18:19:42 +0800 rui kou <[email protected]> said: > Hi > > I'm trying to make a image_object from a buffer in memory, I have only a > pointer to the buffer and size of the buffer,no high no width..nothing more > abort the image, So ,how can I make it?
write to file, then load file. there is no "decode an image format from memory" loader. as such evas uses file paths and last modified timestamps as keys to share data and to know when the data became invalid (stop referencing same image and re-load). a pointer in memory may be unique in memory, but it has no "timestamp" so this can't work properly. if you must do this absolutely - it's time for you to write a new loader. the eet and edb loaders can load images from archive files (eet and edb) which may be how the image gets into memory (from some archive), and then you'd have a filename, a key in the archive and a timestamp for the file - much better. other than that u simply need to write it to an actual file on disk and load that (also make sure the file stays around as long as the image objects that use it are around as evas will want to page from that file at times - depending on whats going on and the format etc.) -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- The Rasterman (Carsten Haitzler) [email protected] ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
