【Android Camera】How to dump preview image

1、 Dump raw image

adb shell setprop persist.camera.raw_yuv 1

adb shell setprop persist.camera.preview_raw 1

adb shell setprop persist.camera.dumpimg 16711696

when we set persist.camera.dumpimg to 16711696,

It’s means we want to dump 255 frame, no skip during dumping, dump raw image

The corresponding code in this place:

Function QCamera2HardwareInterface::dumpFrameToFile from QCamera2HWICallbacks.cpp


2、Dump VFE/ISP output yuv image

adb shell setprop persist.camera.isp.dump 2

adb shell setprop persist.camera.isp.dump_cnt 20 // dump 20 frames

For persist.camera.isp.dump, bit-0 to bit-12 needs to be set, corresponding to flag:

CAM_STREAM_TYPE_PREVIEW – 0x2 // dump preview image set to 0x2
CAM_STREAM_TYPE_SNAPSHOT – 0x8
CAM_STREAM_TYPE_VIDEO – 0x10

The corresponding code in this place: Function iface_util_dump_frame from iface_util.c

Image files under /data/misc/camera folder.

3、Dump CPP output yuv image

adb shell setprop persist.camera.dumpimg 16711681



  • 0
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值