The camera of Galaxy Nexus (software v. 4.0.2) reports *
preview-size-values=1920x1080,1280x720,960x720,800x480,720x576,720x480,768x576,640x480,320x240,352x288,240x160,176x144,128x96
*; and really, it is possible to set *Parameters.setPreveiwSize(320, 240) *and 
after that *Camera.getParameters().getPreviewSize()* will return *320x240*.

The problem is that the camera itself seems to silently ignore this 
setting: *onPreviewFrame() *callback arrives with preview buffer of *460800 
*bytes and contains a VGA preview (*640x480*).

This looks like a bug in Galaxy Nexus, but also exposes a problem with the 
Camera API of Android: there is no way for *Camera.setParameters()* to fail 
or report anything about parameters inconsistency.

Sincerely,
Alex

-- 
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