> > My comment is not very good, in fact on some cameras I need to swap the > > bytes > > to have correct JPEG data (so this is not an endianness issue I think). > > Maybe there is a macro to swap bytes in a buffer? I cannot find it. > > Sorry, there's a swab32, but no swab16. I misremembered.
Its just called "swab" for 16bit values and is a gcc builtin/string function. Alan ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel