Re: [xwax-devel] xwax 0.6 beta compiled successfully on debian powerpc (ibook G4)
Brought to you by:
hills
From: Tom B. <to...@bl...> - 2009-08-27 09:47:18
|
Just to add I noticed the same colour behaviour when testing under OS X on my old G4 Powermac. I noticed the colours were different but didn't really think why at the time. On Thu, Aug 27, 2009 at 10:27 AM, Karl Elsner <k_e...@we...> wrote: > hi people, > > after lots of system-tuning (compiling rt-kernel 2.6.29.6 for powerpc and > so on), > i got xwax 0.6 to run properly on an ibook G4 (late 2004 | 1,33 Ghz | 1,25 > GiByte RAM). > System is Debian 5.0.2 powerpc. > > It runs now very fine with a latency of 8 ms (sound-device: Vestax > VCM-100), using Jack. > I use 2 Numark Arc3 CD-Players and Serato-CDs for timecode-control. > The CDs were burnt with Sony CD-architect, like Rane recommend on their > homepage. > > The compile makes no problems, if you install the dependent packages, which > are all > available through apt-get or synaptic. > > BUT: there are problems with (libsdl-?) color-conversion, which IMHO have > to do with endianness: > > The color of waveform comes very wrong: a dark red instead of blue - as > dark as it coul be. > Very difficult to have a look on details with this color. You can see the > waveform, but not good > and the color isn't really what you would call "fresh". > > The colors for "o.k." (green) and for "error" (red) are changed on powerpc. > > So what could i do? I have been a sysadmin for years and i know how to > write any shell-script > or php, but i never learned real programming (because in my job it was > never necessary). > > But i'm not too stupid to have a look into c-code and find the place, where > colors are defined. > > What i found whas the following snippet of code in "interface.c": > > SDL_Color background_col = {0, 0, 0, 255}, > text_col = {224, 224, 224, 255}, > warn_col = {192, 64, 0, 255}, > ok_col = {32, 128, 3, 255}, > elapsed_col = {0, 32, 255, 255}, > remain_col = {0, 0, 64, 255}, > cursor_col = {192, 0, 0, 255}, > selected_col = {0, 48, 64, 255}, > detail_col = {128, 128, 128, 255}, > needle_col = {255, 255, 255, 255}, > vinyl_col = {0, 0, 0, 255}, > vinyl_ppm_col = {255, 255, 255, 255}; > > O.k., for me this clearly seems to be the color-definitions. > > I had a long look onto google to find out, how to do the correct > color-definitions > for libsdl on powerpc, but did not find anything coherent for me :-/ > > So i just tried it out, remembering, that because of endianness there could > be > another order of RGB-colors (i.e. "B-G-R" instead of "R-G-B"), but was not > sure about it. > > I changed the code finally to the following: > > SDL_Color background_col = {0, 0, 0}, > text_col = {224, 224, 224}, > warn_col = {0, 212, 0}, > ok_col = {254, 0, 0}, > elapsed_col = {128, 0, 0,}, > remain_col = {0, 0, 255}, > cursor_col = {224, 224, 224}, > selected_col = {0, 0, 58}, > detail_col = {128, 128, 128}, > needle_col = {255, 255, 255}, > vinyl_col = {0, 0, 0}, > vinyl_ppm_col = {255, 255, 255}; > > The result: i have know a fine-looking waveform in a light green, the > elapsed color > is a darker green, the cursor is white ... all colors o.k. for me to work > with it. > > BUT: i could not get the waveform to be blue-colored, like it is on x86. > Whatever i changed, the only colors i got for the waveform where green or > red > with different intensities. (dark red, light red, dark green, light green). > If i tried to do "extreme values" (i.e. R: 0 G:0 B:255) the waveform turned > into black! > So black waveform on a black background ..... > > like you can see, i completely removed 1 color-value per line (that was > the value for "brightness" in my opinion), because i found out, that it was > completely ignored > on powerpc. > > Could it be, that the error has not directly to do with color-definition, > but with definition of "o.k." and > "not o.k." (green and red)? > > I hope, that my mail may help others who want to use xwax on powerpc. > > And i would be very glad if someone could give me a tip, how to get the > waveform blue-colored. > > Sorry for this long mail, tried to get it short - but have to give enough > info to make it understandable (?!). > > By the way: Big thanks for xwax, the finest tmecode-software i know! :-) > > Kind regards, > > Karl > > > > -- > Es gibt zwei Dinge, die unendlich sind, das Universum und > die menschliche Dummheit, wobei ich mir beim Universum > noch nicht ganz sicher bin. (Albert Einstein) > ________________________________________________________________ > Neu: WEB.DE Doppel-FLAT mit Internet-Flatrate + Telefon-Flatrate > für nur 19,99 Euro/mtl.!* http://produkte.web.de/go/02/ > > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > |