您的位置:首页 > 移动开发 > Android开发

cts android.hardware.camera2.cts.RecordingTest --testBasicRecording fail

2016-07-29 15:34 921 查看
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了,注意后置摄像头也需要用同样的方法修改。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: