> -----Original Message----- > From: piclist-bounces@mit.edu > [mailto:piclist-bounces@mit.edu] On Behalf Of Mike Hord > Sent: Monday, October 30, 2006 1:10 PM > To: Microcontroller discussion list - Public. > Subject: [EE] Viewing bitstream image content > > > I have raw image data, stripped from an isochronous FireWire > stream, that I'd like to view. > > Has anyone had any experience with making this happen? The > data is 8-bit grayscale- it should be amazingly easy to do > this, but it's turning out harder than I'd have suspected. > > Note that there isn't any file header data or anything- it's > from a 1024x768 pixel detector, and I have exactly 512 > packets of 8-bit data, 1536 bytes per packet. AIUI, it > doesn't even match the .raw image format. > > I'd hate to have to write a program to do this. > > Mike H. If you do end up writing your own program, consider converting it to the PGM format. Just about the dead-simplest format around. http://netpbm.sourceforge.net/doc/pgm.html While this isn't a "binary" format, it is extremely easy to write code for and there are lots of free graphics viewers that can handle it. InfranView and the GIMP should handle it. P2 # my file.pgm 1024 768 255 1 2 3 4 ... 768 ... P2 = Portable Grayscale Map # = comment line, file name is common here X Y = size B = bit depth Where you have stripped out each byte from the binary stream and written them out as a 1024 x 768 matrix. Rob -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist