On 02/27/2014 09:46 PM, Carsten Haitzler (The Rasterman) wrote:
> On Thu, 27 Feb 2014 19:22:18 +0100 Hendrik Siedelmann
> <[email protected]> said:
>
>> On 02/27/2014 03:00 PM, Carsten Haitzler (The Rasterman) wrote:
>>> On Thu, 27 Feb 2014 07:06:37 +0100 Hendrik Siedelmann
>>> <[email protected]> said:
>>>
>>>> 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!
>>>
>>> x86 64bit. so it's broken on little endian x86... 64bit though. :)
>> That's strange ... I'm on x86 64bit :-P
>> Could you try current git? And if the colors are still off could you
>> send me one of the images? Just maybe its some jpeg option that is
>> throwing the decoder off balance. I'm doing some fairly low level hacks,
>> reordering the jpeg codestream and feeding a fake jpeg file to the
>> decoder ... maybe something does not work for some jpeg options.
>
> current git still the same as when i saw this. :) looking at the image ti fix
> the colors you need to do:
>
> red SHOULD BE green
> green SHOULD BE blue
> blue SHOULD BE red

Problem is: Colors are correct for me, so if I change them they are 
wrong for me ...
If you want to have correct colors you can change line 46 in 
src/lib/filter_interleave.c which currently looks like this:

*buf_int = (255 << 24) | (*(r++) << 16) | (*(g++) << 8) | (*(b++));

But the real problem lies somewhere else :-(
Would you mind trying this picture:
https://technik-stinkt.de/~hendrik/large.tif
(it's a bit large ...)

Thanks!

>>>> On 02/26/2014 08:18 PM, Carsten Haitzler (The Rasterman) wrote:
>>>>> On Mon, 24 Feb 2014 08:51:24 +0100 Hendrik Siedelmann
>>>>> <[email protected]> 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
>>>>>> [email protected]
>>>>>> 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
>>>> [email protected]
>>>> 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to