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 16711696when 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