دنبال کننده ها

۱۳۹۶ اسفند ۲۸, دوشنبه

android - getParameters().getPreviewFormat() returns 0x11 on hardware

[ad_1]



I'm trying to get the camera preview format of my Galaxy S7 using getParameters().getPreviewFormat(). Unexpectedly, the value returned is 0x11. However, if I run the same code in an emulator, I get 0x32315659 (YV12). Anyone know what 0x11 means?



public class Tutorial3View extends JavaCameraView implements PictureCallback 

//...

public void getFormat()
Log.i(TAG, String.format("Actual preview format is 0x%X", mCamera.getParameters().getPreviewFormat()));





[ad_2]

لینک منبع