[android-developers] Re: Android Camera Preview Filter Using Camera.PreviewCallback.onPreviewFrame

2008-12-02 Thread dmanpearl
I decoded the RGB color data from the Android Camera PreviewCallback onPreviewFrame() frame. My function that decodes the YUV byte[] buffer from the preview callback and converts it into an ARGB_ int[] buffer is presented below. The luminance buffer takes up the first width * height bytes of

[android-developers] Re: Android Camera Preview Filter Using Camera.PreviewCallback.onPreviewFrame

2008-12-01 Thread Dave Sparks
The G1 preview format is YUV 420 semi-planar (U and V are subsampled by 2 in both X and Y). The Y plane is first, followed by UV pairs - I believe the U sample comes first in the pair. Technically it's YCbCr 420 semi-planar, but very few people use that term. On Nov 26, 6:27 pm, dmanpearl

[android-developers] Re: Android Camera Preview Filter Using Camera.PreviewCallback.onPreviewFrame

2008-11-26 Thread blindfold
Hi David, I can't seem to make coexist: SurfaceHolder for the camera ImageView for the filtered Bitmap to display. ... Do you know why I can't make the Camera's Surface and an ImageView Bitmap simultaneous members of the same active ViewGroup? I do not use ImageView myself so I cannot

[android-developers] Re: Android Camera Preview Filter Using Camera.PreviewCallback.onPreviewFrame

2008-11-26 Thread dmanpearl
Hello Blindfold, Thanks for your help. I solved the user interface problems I was experiencing by using a separate thread to do my image processing. I'm still using an ImageView, and without problems. Perhaps I will try a Canvas in a SurfaceHolder later in this exercise to compare speeds.

[android-developers] Re: Android Camera Preview Filter Using Camera.PreviewCallback.onPreviewFrame

2008-11-25 Thread blindfold
How come I recognize so many of these findings? ;-) 4. I believe that processing breaks down whenever I spend too much time in the onPreviewFrame function. That's what I observed too: so do the heavy duty image processing outside onPreviewFrame(), with supplementary frame skipping and

[android-developers] Re: Android Camera Preview Filter Using Camera.PreviewCallback.onPreviewFrame

2008-11-25 Thread dmanpearl
Peter and Jeff, Thanks for each of your fantastic help, I am very close to achieving a filtered preview display as required for my project - Modification of the Android Camera Display from onPreviewFrame. Here is my current stumbling block: I can't seem to make coexist: SurfaceHolder for the