[android-developers] Re: URGENT HELP : Bypassing Default Camera Viewfinder

2011-11-18 Thread Indicator Veritatis
I gave you an answer for doing something fairly close to what you are trying to do, but not identical. But now it seems that for whatever reason, you are determined to go beyond that to take over the Camera object's SurfaceView. That is not supported by the framework, nor is it clear that it

[android-developers] Re: URGENT HELP : Bypassing Default Camera Viewfinder

2011-11-17 Thread radin
On Nov 17, 10:26 pm, s.rawat imsaurabhra...@gmail.com wrote: Hi, I am trying to by-pass the default camera viewfinder and making an application which will give the Surfaceview some continuous jpeg frames (instead of getting it from Camera view finder)., but I have realized its quiet a

[android-developers] Re: URGENT HELP : Bypassing Default Camera Viewfinder

2011-11-17 Thread Indicator Veritatis
What continuous jpeg frames? The only 'continuous' frames in the viewfinder are the preview frames, and those are not jpeg: they are YCrCb at 15 fps. Unless you make your own jpeg out of YCrBb, but why bother? You need a Bitmap for the Canvas for SurfaceView anyway: you may as well use RGB or ARGB

Re: [android-developers] Re: URGENT HELP : Bypassing Default Camera Viewfinder

2011-11-17 Thread s.rawat
Hi Veritatis. I completely agree with you on the formatting part (I have the byte array which I can convert into any format and I am doing it via bitmap only) Here is the code : //initializing the compression and Byte Stream Part ByteArrayOutputStream bs = new ByteArrayOutputStream(); YuvImage