I'm writing an app in the N80 to take pictures and do some image processing on them. Since I need to access the actual pixel data, I take the snapshot using the bitmap format, to make it a lot easier, but I'm getting some very strange data:
imagenBmp = videoControl.getSnapshot("encoding=bmp&colors=rgb888");
The file header says:
info.bmpSignature = 19778
info.bmpSize = 921654 <----- ????
info.dataOffset = 54
info.headerSize = 40
info.bmpWidth = 384
info.bmpHeight = 224
info.numberOfPlanes = 1
info.bitsPerPixel = 24
info.compressionType = 0
info.imageDataSize = 0 <---- ????
info.numberOfColors = 0
info.numberOfImportantColors = 0
Every value is as expected, except the bitmap file size and the imageDataSize.
They should be 258102 and 258048 respectively. Is there a problem in the implementation of the bitmap saver in the N80? Am I doing something wrong? Or is some kind of special bitmap file ?
The byte array size its the same as the field indicates, 921654.
Thanks for your help and time.