Android PixelFormat per device
- by Tobias Domhan
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