Hi all,
this should be a fairly straightforward question but i couldn't find anything that clarifies this for me. I am trying to fully understand the CameraWrapper example. Taking a picture in the default way, i.e. preparing the camera as in:
let's me grab pictures really quickly but then i think that i get a compressed jpeg (the data is TDesC8*). Alternatively, I can do:Code:TRAPD(err,iCameraWrapper->PrepareL(iCaptureSize));
In this way i get a CFbsBitmap but it's much slower (~1 second for 1024x768), probably because the image is much larger.Code:TRAPD(err,iCameraWrapper->PrepareL(iCaptureSize,CCamera::EFormatFbsBitmapColor16M));
I need it to be fast so the second solution does not really work for me, but then i need to access the pixels of the image to do some image processing. I couldn't find a way of converting the compressed TDesC8* to uncompressed CFbsBitmap* or TUInt8*.
Is my only option that of saving the compressed image and then reload it as CFbsBitmap? Also, other formats such as EFormatYUV422, don't appear to be supported.
Does anybody have any idea?
Thanks so much!!!
pdcb

ataNewL() to create a CImageDecoder object and then use it to convert the jpeg data to a CFbsBitmap object, but I'm afraid the jpeg decoding is not faster than asking the CCamera for a bitmap object. (I guess the CCamera will do the decoding internally if you ask for bitmap object, and that is why it is so slow).


