1. You want that $100.00 in your pocket or an Amazon Fire TV don't you? Well here's the deal. With our new updated look we are in desperate need of an updated logo. The 'old' one has certainly served us well, but it's time. Find all the details here: bit.ly/1q0k6Wa
  2. DroidForums.net is currently undergoing a major software upgrade. If you are experiencing any problems logging in please: Contact Us

Stretched camera preview with size of 160x240 with front-facing camera on Droid 3

Discussion in 'Android Hacks and Help' started by shrib, Aug 1, 2011.

  1. shrib
    Offline

    shrib New Member

    Joined:
    Aug 1, 2011
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    I use code like shown below to choose one of the supported preview sizes for displaying the camera preview. What I am seeing is that if the chosen preview size is 240 x 160 (an unusual aspect ratio of 1.5), the preview looks stretched. ie. it looks like the camera is capturing at a lower aspect ratio (something like 1.3) and then stretching it to become 240 x 160. If any of the other supported preview sizes (128x96, 160x120, 176x144, 352x288, 320x240, 640x480) are chosen, the preview looks fine. Also, this only happens with the front-facing camera. The preview with the rear camera looks fine at 240 x 160.

    Is anyone else seeing this? Is this a known issue?

    Thanks,
    Shri

Search tags for this page
android best camera preview size
,
android camera capture stretched
,
android camera preview aspect ratio
,
android camera preview fix ratio
,

android camera preview size

,
android camera preview streteched in s4
,
android camera surfaceview stretched
,
android camera.size previewsize =
,
android getsupportedpreviewsize
,
camera preview dimension
,
camera with preview in android general
,
front camera previewsize android
,
gs3 front camera stretched
,
parameters params = camera.getparameters(); list,
squared preview size in android camera