So you have hard coded in manifest.xml file for the field screenOrientation="landscape" am i right??
Do u able to get the correct preview in Landscape mode??? On Sep 6, 11:48 am, blindfold <seeingwithso...@gmail.com> wrote: > Yes, many have reported problems with camera preview in portrait mode, > and one way out is to force your app in landscape mode and just not > use portrait. Otherwise, consider the solutions suggested > inhttp://code.google.com/p/android/issues/detail?id=1193(I have not > tested those because landscape suited me best). > > The vOICe for Androidhttp://www.seeingwithsound.com/android.htm > > On Sep 6, 4:57 am, uday <uday.pic...@gmail.com> wrote: > > > 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 <seeingwithso...@gmail.com> 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 -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en