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
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
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
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.
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
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
6 matches
Mail list logo