> Hi! > > I'm developing an application using v4l and I'm planing to use a g4 > system for running it. G4 should be big endian, while the amd based pc > I'm using to develop it should be little endian. > > How does it reflect on the program? I mean, should I swap RBG to GBR > while acquiring images from the grabber? Or does the drive on big endian > computers swap the datas, as if it was little endian, so that I can use > the same code? > I'm not an expert in frame grabber cards, but AFAIK when interfacing to those peripheric hardware the endianness should not hurt. The HW should make sure that LSB is LSB and MSB is MSB. Also those HW drivers won't turn anything around. Endiannes problems usually appear when several machines using different endianness meet (like when you share files). The only way endiannes may hurt you is when a program depends on it (like when the program rips a long integer to bytes and expects the LSB on the lowest address). So you have to search for those ugly casts and unions used to do that. Ole -- +++ GMX - Mail, Messaging & more http://www.gmx.net +++ Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage!