Thanks! I'll have a look into the macros. But still this should actually work ... or put an other way on which platform did you try it, because big-endian is broken atm. and should not give you a running program at all ;-). And little endian should work!
On 02/26/2014 08:18 PM, Carsten Haitzler (The Rasterman) wrote: > On Mon, 24 Feb 2014 08:51:24 +0100 Hendrik Siedelmann > <hendrik.siedelm...@googlemail.com> said: > > oh. cool bananas! thought i think you have some bugs... : > > http://www.enlightenment.org/ss/e-530e3cdc1434c8.05020334.png > > :) your argb byte ordering is... broken when messing with the image pixels. :( > > rememebr that with evas (and efl) pixels are INTS not bytes. int. an int is > 32bit. the MSB (high byte withn the int) is A, then R then G then B ie for > 32bits the bits rom highest to lowest are: > > AAAAAAAARRRRRRRRGGGGGGGGBBBBBBBB > > or > > int pixel; > > a = (pixel >> 24); > r = (pixel >> 16) & 0xff; > g = (pixel >> 8) & 0xff; > b = pixel & 0xff; > > and reverse: > > pixel = (a << 24) | (r << 16) | (g << 8) | b; > :) > > yes... you can access byte by byte too - but you need to account for endianess > then as it changes between x86 and ppc, mips, some arm implementations etc. > etc. :) there ae macros in evas src like A_VAL(), R_VAL() G_VAL() that do this > internally as needed if you look. :) then macros for merging together again. > >> Hello everybody! >> >> I present you a image editing tool/library for e! It is still very >> experimental, but I have used it to sort trough my images on a long trip >> so maybe it can be useful for more someone. It allows simple image >> editing tasks (like sharpen, denoise, rotate,... ), works completely >> non-destructive and saves tags and the filter chain in xmp sidecar files. >> >> Code is here: >> https://github.com/Gridrix/lime.git >> >> The program is based on scale-invariant image editing which I descibe in >> this paper: >> http://elib.uni-stuttgart.de/opus/volltexte/2013/8717/pdf/STUD_2369.pdf >> >> Have fun! >> Hendrik >> >> ------------------------------------------------------------------------------ >> Flow-based real-time traffic analytics software. Cisco certified tool. >> Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer >> Customize your own dashboards, set traffic alerts and generate reports. >> Network behavioral analysis & security monitoring. All-in-one tool. >> http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk >> _______________________________________________ >> enlightenment-devel mailing list >> enlightenment-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel >> > > ------------------------------------------------------------------------------ Flow-based real-time traffic analytics software. Cisco certified tool. Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer Customize your own dashboards, set traffic alerts and generate reports. Network behavioral analysis & security monitoring. All-in-one tool. http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel