
和你一起终身学习,这里是程序员Android
经典好文推荐,通过阅读本文,您将收获以
下内容:
一、问题描述
测试同事报了一个拍照后预览闪绿条纹问题
现象大概如下图:
image.png
二、问题分析
1. 复现问题 dump 图分析查看是哪个阶段导致的预览花屏问题
1.1 整个P2S I/O buffer 的 dump 方法
adb root
adb remount
adb shell setenforce 0
adb shell setprop persist.vendor.mtk.camera.log_level 3
::P1 dump
::adb shell setprop vendor.debug.camera.dump.en 1
::adb shell setprop vendor.debug.feature.forceEnableIMGO 1
::adb shell setprop vendor.debug.camera.dump.p1.imgo 1
:: 预览魔法数字开启
adb shell setprop debug.cam.drawid 1
::enable img3o
adb shell setprop vendor.debug.fpipe.force.img3o 1
adb shell rm -rf /data/vendor/camera_dump/*
adb shell setprop vendor.debug.p2f.dump.enable 1
adb shell setprop vendor.debug.p2f.dump.mode 1
adb shell setprop vendor.debug.camera.preview.dump 1
::adb shell setprop vendor.debug.camera.preview.dump 0 复现问题后请关闭dump
adb shell stop camerahalserver
adb shell start camerahalserver
pause
1.2 camera_dump文件夹下的文件名称命令格式
UniqueKey-RequestNo-FrameNo-SensorDev-Port-BufferWidth-BufferHeight-BufferStride_ImageWidthxImageHeight_xxx.Format

最低0.47元/天 解锁文章
3169

被折叠的 条评论
为什么被折叠?



