cts android.hardware.camera2.cts.RecordingTest --testBasicRecording fail
android.hardware.camera2.cts.RecordingTest
– testBasicRecording
fail
junit.framework.AssertionFailedError: Frame rate range [20, 20] (for profile ID 2) must be one of the camera device available FPS range! at junit.framework.Assert.fail(Assert.java:50)
– testRecordingFromPersistentSurface
fail
junit.framework.AssertionFailedError: Frame rate range [20, 20] (for profile ID 2) must be one of the camera device available FPS range! at junit.framework.Assert.fail(Assert.java:50)
出现此fail,主要是因为Camera Feature table中配置少了一项[20,20]把这个配置在camera feature table中即可,找到camera对应的config.ftbl.*.h文件(eg:vendor/mediatek/proprietary/custom/mt6735/hal/D2/sendepfeature/gc2355_raw/config.ftbl.gc2355_raw.h,我们用的前置摄像头是gc2355_raw,就着到对应的文件config.ftbl.gc2355_raw.h) ,做如下配置:
#if 1 // Preview Frame Rate Range FTABLE_CONFIG_AS_TYPE_OF_USER( KEY_AS_(MtkCameraParameters::KEY_PREVIEW_FPS_RANGE), SCENE_AS_DEFAULT_SCENE( ITEM_AS_DEFAULT_("30000,30000"), ITEM_AS_USER_LIST_( "(15000,15000)", + "(20000,20000)", "(24000,24000)", "(30000,30000)", "(60000,60000)", "(120000,120000)", ) ), )#endif
增加”(20000,20000)”就ok了,注意后置摄像头也需要用同样的方法修改。
更多相关文章
- Android(安卓)打开资源raw文件
- Handler+Thread+Message模式 Android线程网络
- Android练习之BitmapFactory.decodeFile加载SD卡文件
- 友盟统计配置
- android 多线程下载文件案例
- android ant
- 使用HttpURLConnection请求数据、上传文件、图片等
- Android中Assets下文件操作
- Android中关于路径