Firstly, you are dealing with different data in onPreviewFrame and in 
PictureCallback

I am assuming that you are not interested in PictureCallback and need to 
utilize onPreviewFrame. Go through the documentation (and/or search in 
Google) if you are interested to know more about the data formats.

onPreviewFrame deals with data (not complete image or 'picture'). That data 
can be converted to different formats (jpg, png, ....), also different 
header is required for different type of images.
If you have not explicitly set the preview format using setPreviewFormat(int 
format), then the default format is YCbCr_420_SP (NV21).

If you are looking for JPEG, then use *setPreviewFormat(ImageFormat.JPEG)* 
beforehand.
http://developer.android.com/reference/android/hardware/Camera.Parameters.html#setPreviewFormat(int)


Regards
Sarwar Erfan

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to