nanogui: convbmp big-endian bug?


Previous by date: 21 Apr 2005 00:12:50 +0100 Re: keeping the project alive, Greg Haerr
Next by date: 21 Apr 2005 00:12:50 +0100 Re: Microwindows cleanups .... some ideas, Jachym Holecek
Previous in thread: 21 Apr 2005 00:12:50 +0100 Re: convbmp big-endian bug?, alain volmat
Next in thread:

Subject: RE: [nanogui] convbmp big-endian bug?
From: alain volmat ####@####.####
Date: 21 Apr 2005 00:12:50 +0100
Message-Id: <20050420231218.84122.qmail@web41725.mail.yahoo.com>

I'm using some 'CVS' version. I recently found what
seems to be CVS snapshots at:

http://www.linuxhacker.org/pub/cvs-snapshots/microwin-greg/
(the last one is 10-Apr-2005)
It is basically 0.90 + several patches already applied
into greg's CVS.

Maybe you should check with the convbmp.c of this
version to see if the problem has been solved.

Alain


--- Will Hua Zheng ####@####.#### wrote:
> Which version are you using? I am using 0.9, the
> convbmp.c in this source
> does not have the endian-neutral conversion in its
> header. The file that I
> am talking about is
> microwindows-0.90/src/mwin/bmp/convbmp.c
> 
> Anyway, attached is the convbmp.c that I modified.
> It was a quick-and-dirty
> mod and I was satisfied as long as it worked for me.
> It does not have
> support for PDP-endianness, which is a mess and
> nobody really uses anyways.
> I added some byte-reordering code to reorder the
> bytes in the BMP header
> struct, which uses 2 and 4 byte words. The rest of
> the code was fine.
> 
> Best regards,
>  
> Will Zheng
> --
> 3452 - TEST SYSTEMS ENGINEERING
> Jet Propulsion Laboratory
> M/S 156-142 
> 4800 Oak Grove Drive 
> Pasadena, CA 91109 
>  
> Phone: 818-648-9656
> Email: ####@####.####
> 
> -----Original Message-----
> From: alain volmat ####@####.#### 
> Sent: Wednesday, April 20, 2005 7:31 AM
> To: Will Hua Zheng; ####@####.####
> Subject: Re: [nanogui] convbmp big-endian bug?
> 
> Hi Will,
> 
> sorry, I have almost never used mwin (always nanoX)
> so
> I can't tell you much about that, however the file
> header of conv_bmp.c says:
> 
>  * 9/24/2003 endian-neutral conversion
> 
> so I guess that there should be some support (maybe
> buggy for big endian too) ... 
> 
> would you mind share with us your mods. If it comes
> that conv_bmp.c do have problems in big endians, we
> should correct that in the current tree.
> 
> Alain
> 
> --- Will Hua Zheng ####@####.#### wrote:
> > I was trying to compile nano-X for a powerpc-405
> > based board. The CPU 
> > was set with big-endian operation mode. I
> configured
> > (0.9 version) 
> > microwindows to use BIGENDIAN=Y. I issued the make
> > command but the make 
> > process stops at convbmp -o car8.c car8.bmp.
> > Checking the source code of 
> > convbmp I realized that convbmp only works on
> little
> > endian machines. So 
> > I wrote some byte reordering code in convbmp and
> > recompiled the code and 
> > it's now converting bmps into .c's correctly.
> > 
> > My question is, was I doing something wrong? Is
> the
> > convbmp code really 
> > only for little endian machines or did I not set
> up
> > some configuration 
> > code right?
> > 
> > Regards,
> > Will Zheng
> > 
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > ####@####.####
> > For additional commands, e-mail:
> > ####@####.####
> > 
> > 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam
> protection around 
> http://mail.yahoo.com 
> 

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Previous by date: 21 Apr 2005 00:12:50 +0100 Re: keeping the project alive, Greg Haerr
Next by date: 21 Apr 2005 00:12:50 +0100 Re: Microwindows cleanups .... some ideas, Jachym Holecek
Previous in thread: 21 Apr 2005 00:12:50 +0100 Re: convbmp big-endian bug?, alain volmat
Next in thread:


Powered by ezmlm-browse 0.20.