[android-developers] Re: Bitmap from Camera Preview using BitmapFactory.decodeByteArray

2009-07-17 Thread bseib
Max, I also was trying to crop my preview to show it in a smaller space. But it would cram the whole image into the smaller view I created. I studied some of the android source code, tried and failed at many remedies, and finally settled on a tacky compromise: 1) I created a SurfaceView that

[android-developers] Re: Bitmap from Camera Preview using BitmapFactory.decodeByteArray

2009-05-20 Thread Jason Proctor
check out the Camera SDK docs. camera previews are in raw YUV/YCbCr format. BitmapFactory won't decode that format. in the days before 1.5 brought back video recording, various intrepid 'droiders including me were doing video capture by saving preview frames, and the adventures did not always

[android-developers] Re: Bitmap from Camera Preview using BitmapFactory.decodeByteArray

2009-05-20 Thread blindfold
The data[] in onPreviewFrame() is still headerless in Android 1.5 (Cupcake) despite a long standing request to fix this: issue 832 http://code.google.com/p/android/issues/detail?id=823 On May 20, 9:04 pm, Max Salley msalley@gmail.com wrote: I'm using the

[android-developers] Re: Bitmap from Camera Preview using BitmapFactory.decodeByteArray

2009-05-20 Thread Max Salley
Thanks for the advice, I had feared something like that. From what I've read it seems that operating on the previews using the callback is much too expensive to be feasible anyway On May 20, 3:12 pm, Jason Proctor ja...@particularplace.com wrote: check out the Camera SDK docs. camera previews

[android-developers] Re: Bitmap from Camera Preview using BitmapFactory.decodeByteArray

2009-05-20 Thread Max Salley
I think I might go the offscreen buffer route and render when I can, as FPS doesn't matter to me in the slightest. I'm looking at creating a virtual canvas to draw to, but I'm not sure what to do with the YCbCr array that can get it into a usable form. What would you suggest I do with the

[android-developers] Re: Bitmap from Camera Preview using BitmapFactory.decodeByteArray

2009-05-20 Thread Max Salley
I'm trying to show a cropped version of the preview, but show it at native resolution rather than showing the entire thing scaled down. I discuss what I'm doing more here (http://groups.google.com/group/ android-developers/t/f95804f843d3711b). On May 20, 3:50 pm, Jason Proctor