Thanks Blindfold for ur information... Currently im working on Camera Capture in Android. I can able to display the image in portrait by forcing the preview as portrait in AndroidManifest.xml file.. But the image preview is not correct as i expected.. The image preview is like streched... I dont have an idea of how to maintain the Aspect ratio so that the image preview will be clear..
Do u have any idea on this?? I saw some of the blogs on this but no luck.. On Sep 5, 1:09 pm, blindfold <[email protected]> wrote: > You can do image processing on camera preview images, which are > smaller and "almost raw" even while not supporting the raw format > either: the default YCbCr_420_SP format uses 1.5 bytes per pixel by > subsampling U and V by a factor 2 in YUV color space; 1.5 times the > number of pixels in a typical preview size is still manageable in > terms of the amount of memory, but you need to do your own color > conversion/decoding to maybe arrive at a byte count of 4 times the > number of pixels for an RGBA integer-per-pixel (4 bytes per pixel) > encoding for more convenient image processing. This is a hassle in > Android for lack of conversion/decoding APIs, but doable and not very > memory hungry as long as you do image processing on preview images > from PreviewCallback. > > Regards > > The vOICe for Androidhttp://www.seeingwithsound.com/android.htm > > On Sep 5, 6:20 am, uday <[email protected]> wrote: > > > Do u have any idea of how much memory of raw data will generate for > > the resolution 640x480 and 176x144?? > > > Actually in my application we have image processing on raw data.. If > > it is not available then is there any approach to do that?? > > > On Sep 4, 6:13 pm, blindfold <[email protected]> wrote: > > > > Yes. Raw images would also claim too much memory with typical high-res > > > still images in the current Android memory model, so a compressed > > > format such as JPEG is needed to get around that. There is no support > > > for incremental block-based or scanline readout or something like that > > > to process the image in smaller (raw) chunks. > > > > On Sep 4, 1:11 pm, uday <[email protected]> wrote: > > > > > Thanks Blindfold.. > > > > > So do u got any information regarding this?? What ever it may be the > > > > resolution currently Android is not able to do the Raw image capture.. > > > > am i right?? > > > > > On Sep 1, 1:07 am, blindfold <[email protected]> wrote: > > > > > > Right, already on February 11 2009 Google's David Sparks wrote in > > > > > response to one of my postings, > > > > > > > I'm talking about deprecating the raw picture callback that has > > > > > > never worked. > > > > > > and > > > > > > > As for the camera API in SDK 1.0: It was never intended for signal > > > > > > processing. > > > > > >http://groups.google.com/group/android-developers/browse_thread/threa... > > > > > > Regards > > > > > > The vOICe for Androidhttp://www.seeingwithsound.com/android.htm > > > > > > On Aug 31, 6:30 pm, David Erosa García <[email protected]> wrote: > > > > > > > On Tue, Aug 31, 2010 at 6:17 PM, uday <[email protected]> wrote: > > > > > > > Hi All, > > > > > > > I'm facing problem when capturing RAW data in Android Froyo. Im > > > > > > > using > > > > > > > HTC Desire(5MP) device. in the method of > > > > > > > PictureCallback rawCallback = new PictureCallback() { > > > > > > > public void onPictureTaken(byte[] data, Camera > > > > > > > camera) > > > > > > > { > > > > > > > } > > > > > > > the data im getting is null. Is this the problem due to Heap size > > > > > > > in > > > > > > > the device or is there another way to capture this raw data?? > > > > > > > AFAIK, raw callbacks always get null arrays (maybe not implemented?) > > > > > > > > -- > > > > > > > You received this message because you are subscribed to the Google > > > > > > > Groups "Android Developers" group. > > > > > > > To post to this group, send email to > > > > > > > [email protected] > > > > > > > To unsubscribe from this group, send email to > > > > > > > [email protected] > > > > > > > For more options, visit this group at > > > > > > >http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

