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 in
http://code.google.com/p/android/issues/detail?id=1193 (I have not
tested those because landscape suited me best).

The vOICe for Android
http://www.seeingwithsound.com/android.htm


On Sep 6, 4:57 am, uday <[email protected]> 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 <[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 Android http://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 [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

Reply via email to