此处
hardware/qcom/media/mm-video-v4l2/vidc
是qcon HAL层编解码的位置,qcon HAL层中提供了很多调试手段,通过阅读代码整理了以下qcon在HAL中用到的属性,一般情况下0是关闭调试,1是开启调试,如果不存在给一个默认值,这里它封装了property_get来实现getprop的功能,如果我们希望开启某些调试仅仅需要在终端中把这些属性值设置为1(setprop)。
"persist.vidc.dec.conceal_color" // only MSM8974
"ro.board.platform" // only MSM8610
"ro.vendor.extension_library" // only MSM8974
// decode && encode
"vidc.debug.bframes" //bframes ( 0 disabled, 1 enabled )
"vidc.debug.entropy" // bEntropyCodingCABAC, only (ProfileHigh || ProfileMain) && MSM8974
"vidc.debug.level" // log level ( 1 PRIO_ERROR, 1 PRIO_INFO, 2 PRIO_HIGH, 4 PRIO_LOW )
"vidc.debug.perf.mode" //Performance mode ( 1 MAX_QUALITY, 2 POWER_SAVE )
"vidc.debug.turbo" // Turbo mode ( 0 disabled, 1 enabled )
// decode
"vidc.dec.120fps.enabled" // only MSM8974 ( 0 disabled, 1 enabled )
"vidc.dec.debug.concealedmb" // do nothing
"vidc.dec.debug.dyn.disabled" // Dynamic buffer mode disabled by setprop ( 0 disabled, 1 enabled )
"vidc.dec.debug.extradata" // see OMX_OTHER_EXTRADATATYPE ( 0 disabled, 1 enabled )
"vidc.dec.debug.panframedata" // print frameData info, see print_pan_data ( 0 disabled, 1 enabled )
"vidc.dec.debug.perf" // only hevc statistics decode one frame time, and all decode time ( 0 disabled, 1 enabled )
"vidc.dec.debug.ts" // only hevc statistics timestamp ( 0 disabled, 1 enabled )
"vidc.dec.log.imb" // only sw hevc, save decoded buffer lenght and buffer_point to file ( 0 disabled, 1 enabled ) ( /data/misc/media )
"vidc.dec.log.in" // only hevc || hevchybrid || hevcswvdec, save decode input buffer info to file ( 0 disabled, 1 enabled ) ( /data/misc/media )
"vidc.dec.log.out" // only hevc || hevchybrid || hevcswvdec, save decode output buffer info to file ( 0 disabled, 1 enabled ) ( /data/misc/media )
"vidc.dec.profile.check" // only MSM8974 ( 0 disabled, 1 enabled )
// encode
"vidc.enc.log.extradata" // see OMX_OTHER_EXTRADATATYPE ( 0 disabled, 1 enabled )
"vidc.enc.log.in" // save input buffer(yuv(nv12 nv21)) to file ( 0 disabled, 1 enabled )
"vidc.enc.log.out" // save output buffer(h264 mjpeg ...) to file ( 0 disabled, 1 enabled )
"vidc.enc.narrow.searchrange" // you guess
// debug file save location
"vidc.log.loc" // default "/data/misc/media" usage: for example ( setprop vidc.log.loc "/sdcard/vidc" )