[android-developers] Re: Help for decoding the camera data from the PreviewCallback

2009-05-27 Thread lori lori
So that means I cannot decode continuous frames of data to bitmap in PreviewCallback because data is encoded in raw YCbCr which cannot be decoded.The only way I can do this is using onPictureTaken method of PictureCallback where data is encoded in jpeg format which can be easily decoded. This is h

[android-developers] Re: Help for decoding the camera data from the PreviewCallback

2009-05-26 Thread lori lori
Hi Sujoy, Thanks for sharing this information. I have another doubt now - Can I get continuous frames of data as bitmaps without user interaction using this approach? On Wed, May 27, 2009 at 10:46 AM, Sujay Krishna Suresh < sujay.coold...@gmail.com> wrote: > this should help u store the image...

[android-developers] Problem with Camera Picture display - Black screen on G1 :(

2009-05-18 Thread lori lori
Hello Everyone, Please help me in displaying picture taken from camera on G1 device. Camera preview display and canvas to draw picture should use the same surface holder (mHolder). Camera camera = Camera.open(); if (camera != null) { try { camera.setPreviewDisplay(mHolder); } catch (IOExcep