Android PixelFormat per device
Posted
by Tobias Domhan
on Stack Overflow
See other posts from Stack Overflow
or by Tobias Domhan
Published on 2010-03-26T12:28:39Z
Indexed on
2010/03/26
12:33 UTC
Read the original article
Hit count: 344
analogous to this thread: stackoverflow.com/questions/2093594/opengl-extensions-available-on-different-android-devices I would like to collect the different PixelFormats the android devices use.
To find out you must do the following: Parameters camParams = camera.getParameters(); int format = camParams.getPreviewFormat();
Now you got to find the number in the following list: developer.android.com/reference/android/graphics/PixelFormat.html#A_8
How to generally open the camera is described here: developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/graphics/CameraPreview.html
I'll have a start:
device: T-mobile G1 / HTC Dream android: 1.6 (cyanogen mod) format: YCbCr_420_SP
so what formats do your android phones use? thanks in advance :D
© Stack Overflow or respective owner