Proc调试信息说明
须知:
Hi3516CV610/Hi3516CV608 不支持 VO、VO_DEV、VFMW、DIS、VDEC、GDC。 Hi3511CV100不支持VO、VO_DEV、JPEGE、AI、AO、AENC、ADEC、ACODEC、DIS_GME、GDC。
概述
调试proc信息采用了Linux下的proc文件系统,可实时反映当前系统的运行状态,所记录的信息可供问题定位及分析时使用。
【文件目录】
/proc/umap
【文件清单】
【信息查看方法】
- 在控制台上可以使用cat命令查看信息,例如cat /proc/umap/venc;也可以使用其他常用的文件操作命令,例如 cp /proc/umap/ ./ -rf,将所有umap下的proc文件拷贝到当前目录。
- 在应用程序中可以将上述文件当作普通只读文件进行读操作,例如fopen、fread等。
- 在加载ot_osal.ko时,可以通过设置模块参数“proc_show=0”来关闭“/proc/umap/”路径下的proc信息打印。
说明:
参数在描述时有以下2种情况需要注意:
- 取值为{0, 1}的参数,如未列出具体取值和含义的对应关系,则参数为1时表示肯定,为0时表示否定。
- 取值为{aaa, bbb, ccc}的参数,未列出具体取值和含义的对应关系,但可直接根据取值aaa、bbb或ccc判断参数含义。
SYS
【调试信息】
~ # cat /proc/umap/sys
[SYS] Version: [V1.0.0.0 B010 Release], Build Time[Sep 6 2019, 11:38:16]
----------------------------------------0Xxxxxxxxx-----------------------
----------------------------------------module param---------------------
profile
0
----------------------------------------module status--------------------
sys_status audio_status 3dnr_pos
run exited VPSS
---------------------------sync frame rate ctrl status--------------------
src_mod src_dev src_chn dst_mod dst_dev dst_chn is_start
----------------------------------------syskol param----------------------
capture_mode sleep_mode cken_mask
NORMAL DEEP 0x0
----------------------------------------fmu attr--------------------------
fmu_id wrap_en page_num
0 Y 70
1 Y 20
----------------------------------------scale coeff info-----------------
range_level range_value hor_luma hor_chroma ver_luma ver_chroma
RANGE_0 ( 0, 8/64) LEVEL_0 LEVEL_0 LEVEL_0 LEVEL_0
RANGE_1 [ 8/64, 10/64) LEVEL_1 LEVEL_1 LEVEL_1 LEVEL_1
RANGE_2 [10/64, 15/64) LEVEL_2 LEVEL_2 LEVEL_2 LEVEL_2
RANGE_3 [15/64, 19/64) LEVEL_3 LEVEL_3 LEVEL_3 LEVEL_3
RANGE_4 [19/64, 24/64) LEVEL_4 LEVEL_4 LEVEL_4 LEVEL_4
RANGE_5 [24/64, 29/64) LEVEL_5 LEVEL_5 LEVEL_5 LEVEL_5
RANGE_6 [29/64, 33/64) LEVEL_6 LEVEL_6 LEVEL_6 LEVEL_6
RANGE_7 [33/64, 35/64) LEVEL_7 LEVEL_7 LEVEL_7 LEVEL_7
RANGE_8 [35/64, 38/64) LEVEL_8 LEVEL_8 LEVEL_8 LEVEL_8
RANGE_9 [38/64, 42/64) LEVEL_9 LEVEL_9 LEVEL_9 LEVEL_9
RANGE_10 [42/64, 45/64) LEVEL_10 LEVEL_10 LEVEL_10 LEVEL_10
RANGE_11 [45/64, 48/64) LEVEL_11 LEVEL_11 LEVEL_11 LEVEL_11
RANGE_12 [48/64, 51/64) LEVEL_12 LEVEL_12 LEVEL_12 LEVEL_12
RANGE_13 [51/64, 53/64) LEVEL_13 LEVEL_13 LEVEL_13 LEVEL_13
RANGE_14 [53/64, 55/64) LEVEL_14 LEVEL_14 LEVEL_14 LEVEL_14
RANGE_15 [55/64, 57/64) LEVEL_15 LEVEL_15 LEVEL_15 LEVEL_15
RANGE_16 [57/64, 60/64) LEVEL_16 LEVEL_16 LEVEL_16 LEVEL_16
RANGE_17 [60/64, 1] LEVEL_17 LEVEL_17 LEVEL_17 LEVEL_17
RANGE_18 ( 1, MAX) LEVEL_18 LEVEL_18 LEVEL_18 LEVEL_18
----------------------------------------mem table------------------------
mod mod_name dev chn mmz_name
----------------------------------------bind relation table--------------
fir_mod fir_dev fir_chn sec_mod sec_dev sec_chn tir_mod tir_dev tir_chn send_cnt rst_cnt
vdec 0 0 vpss 0 0 vo 0 0 57604 0
vpss 0 0 vo 0 0 null 0 0 0 0
【调试信息分析】
记录当前SYS模块的使用情况。
【参数说明】
VB
【调试信息】
~ # cat /proc/umap/vb
[VB] Version: [V1.0.0.0 B010 Release], Build Time[Aug 30 2022, 09:10:37]
----------------------------------------vb pub config--------------------
max_pool_cnt
768
----------------------------------------vb supplement attr---------------
config size vb_cnt
0 0 13
----------------------------------------common pool config---------------
pool_id 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
size 1399680 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Count 10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
--------------------------------module common pool config of vb_uid <4>--
pool_id 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
size 670464 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
count 3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
-------------------------------------------------------------------------
pool_id phys_addr virt_addr pool_type owner blk_sz blk_cnt free min_free reserve state
0 0x6941a000 0x0 common common 1399808 10 7 6 0 idle
blk vi vo vgs venc vdec h265e h264e vpss dis user pciv vfmw gdc avs rect match mcf vda vpp aiisp uvc svac3 host get free_bytes
8 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 vi 0
9 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 vi 0
0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 vi 0
sum 0 2 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0
-------------------------------------------------------------------------
pool_id phys_addr virt_addr pool_type owner blk_sz blk_cnt free min_free reserve state
1 0x6a1e6000 0xffffff8010600000 module vdec 670464 3 0 0 0 idle
blk vi vo vgs venc vdec h265e h264e vpss dis user pciv vfmw gdc avs rect match mcf vda vpp aiisp uvc svac3 host get free_bytes
1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 vdec 0
2 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 vdec 0
0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 vdec 0
sum 0 0 0 0 3 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0
【调试信息分析】
记录当前VB模块的buffer使用情况。
【参数说明】
- 可通过写文件方式来重置min_free。例如: echo "reset pool 0 min_free" > /proc/umap/vb ,执行写文件操作后,pool 0 的min_free被重置,重新记录最小空闲VB个数。
- reserve的默认值为0,可通过写文件方式来设置reserve。例如: echo "set pool 0 reserve 2" > /proc/umap/vb ,执行写文件操作后,pool 0 的reserve值被修改生效,有2个VB保留,无法被获取并使用。若设置的reserve值超过当前缓存池空闲VB的个数,则自适应设置reserve为当前缓存池空闲VB的个数。
LOG
【调试信息】
~ # cat /proc/umap/logmpp
----------------------------------------log buffer state-----------------
max_len(KB) read_pos write_pos butt_pos
64 0 0 65536
----------------------------------------current log level----------------
vb : 3
sys : 3
region : 3
vdec : 3
vpss : 3
venc : 3
h264e : 3
jpege : 3
h265e : 3
jpegd : 3
vo : 3
vi : 3
dis : 3
chnl : 3
rc : 3
aio : 3
ai : 3
ao : 3
aenc : 3
adec : 3
vpu : 3
isp : 3
vfmw : 3
gdc : 3
gfbg : 3
tde : 3
vgs : 3
vca : 3
mcf : 3
vpp : 3
venc_svr : 3
ab : 3
svac3e : 3
vo_dev : 3
【调试信息分析】
- 记录当前各个模块的调试级别。
- cat /proc/umap/logmpp用于获取logmpp级别信息。
-
修改logmpp级别:
- 修改某个模块的调试等级使用echo命令,比如:echo "venc=4" > /proc/umap/logmpp;
- 修改所有模块的调试等级使用:echo "all=4" > /proc/umap/logmpp。
-
查看logmpp:打开使用cat /dev/logmpp,退出输入Ctrl+c。
- 在加载ot_base.ko时,可以通过设置模块参数“logmpp_show=0”来关闭logmpp信息打印。
【参数说明】
vb/sys/region/vdec/vpss/venc/h264e/jpege/h265e/jpegd/vo/vi/dis/chnl/rc/aio/ai/ao/aenc/adec/vpu/isp/vfmw/gdc/gfbg/tde/vgs/vca/mcf/vpp/venc_svr/ab/svac3e/vo_dev |
||
MMZ
【调试信息】
~ # cat /proc/umap/media-mem
anony=1 mmz_allocator=ot mem_process_isolation=1
map_mmz_zone:(0x500000000, 0x5000FFFFF) (0x400000000, 0x4000FFFFF)
+---ZONE: PHYS(0x70000000, 0x13FFFFFFF), GFP=0, nBYTES=3407872KB, NAME="anonymous"
|-MMB: phys(0x70000000, 0x70011FFF), kvirt=0xFFFFFFC0110C0000, flags=0x1, kernel_only=1, share_all=0 pid[1069,-1,-1,-1,-1], length=72KB, name="vca_scale_coef"
|-MMB: phys(0x70012000, 0x701C1FFF), kvirt=0x0000000000000000, flags=0x0, kernel_only=1, share_all=0 pid[1083,-1,-1,-1,-1], length=1728KB, name="tde_mem_pool_mmb"
|-MMB: phys(0x701C2000, 0x701C3FFF), kvirt=0xFFFFFFC010DDE000, flags=0x1, kernel_only=1, share_all=0 pid[1083,-1,-1,-1,-1], length=8KB, name="tde_sclcoef"
|-MMB: phys(0x701C4000, 0x70289FFF), kvirt=0xFFFFFFC011E00000, flags=0x1, kernel_only=1, share_all=0 pid[1099,-1,-1,-1,-1], length=792KB, name="gdc_node_buf"
|-MMB: phys(0x7028A000, 0x7028AFFF), kvirt=0xFFFFFFC010D95000, flags=0x1, kernel_only=1, share_all=0 pid[1099,-1,-1,-1,-1], length=4KB, name="gdc_int_pole_coef"
|-MMB: phys(0x7028B000, 0x703A4FFF), kvirt=0xFFFFFFC013A00000, flags=0x1, kernel_only=1, share_all=0 pid[1113,-1,-1,-1,-1], length=1128KB, name="vgs_node_buf"
|-MMB: phys(0x703A5000, 0x703A5FFF), kvirt=0xFFFFFFC010DB5000, flags=0x1, kernel_only=1, share_all=0 pid[1113,-1,-1,-1,-1], length=4KB, name="vgs_mcf_sum"
|-MMB: phys(0x703A6000, 0x703A6FFF), kvirt=0xFFFFFFC010DE5000, flags=0x1, kernel_only=1, share_all=0 pid[1121,-1,-1,-1,-1], length=4KB, name="dis_node_buf"
|-MMB: phys(0x703A7000, 0x703A7FFF), kvirt=0xFFFFFFC01101D000, flags=0x1, kernel_only=1, share_all=0 pid[1153,-1,-1,-1,-1], length=4KB, name="vo_dev_coef_buf"
|-MMB: phys(0x703A8000, 0x703A8FFF), kvirt=0xFFFFFFC011033000, flags=0x1, kernel_only=1, share_all=0 pid[1159,-1,-1,-1,-1], length=4KB, name="vo_coef_buf"
|-MMB: phys(0x703A9000, 0x7234CFFF), kvirt=0x0000000000000000, flags=0x0, kernel_only=1, share_all=0 pid[1167,-1,-1,-1,-1], length=32400KB, name="gfbg_layer0"
|-MMB: phys(0x7234D000, 0x7235CFFF), kvirt=0xFFFFFFC011650000, flags=0x1, kernel_only=1, share_all=0 pid[1167,-1,-1,-1,-1], length=64KB, name="gfbg_coef"
|-MMB: phys(0x7235D000, 0x7235DFFF), kvirt=0xFFFFFFC011018000, flags=0x1, kernel_only=1, share_all=0 pid[1167,-1,-1,-1,-1], length=4KB, name="gfbg_clut_table_g0"
|-MMB: phys(0x7235E000, 0x723C0FFF), kvirt=0xFFFFFFC013100000, flags=0x3, kernel_only=1, share_all=0 pid[1180,-1,-1,-1,-1], length=396KB, name="venc_shm"
|-MMB: phys(0x723C1000, 0x723D8FFF), kvirt=0x0000000000000000, flags=0x0, kernel_only=1, share_all=0 pid[1180,-1,-1,-1,-1], length=96KB, name="vedu_hal_0"
|-MMB: phys(0x723D9000, 0x723D9FFF), kvirt=0xFFFFFFC01107A000, flags=0x1, kernel_only=1, share_all=0 pid[1200,-1,-1,-1,-1], length=4KB, name="jpegd_down_msg"
|-MMB: phys(0x723DA000, 0x7240EFFF), kvirt=0xFFFFFFC011AC0000, flags=0x1, kernel_only=1, share_all=0 pid[1215,-1,-1,-1,-1], length=212KB, name="ive_queue"
|-MMB: phys(0x7240F000, 0x7240FFFF), kvirt=0xFFFFFFC01107C000, flags=0x3, kernel_only=1, share_all=0 pid[1215,-1,-1,-1,-1], length=4KB, name="ive_tmp_node"
|-MMB: phys(0x72410000, 0x72412FFF), kvirt=0xFFFFFFC011090000, flags=0x1, kernel_only=1, share_all=0 pid[1223,-1,-1,-1,-1], length=12KB, name="dpu_rect_list"
|-MMB: phys(0x72413000, 0x7241AFFF), kvirt=0xFFFFFFC0115D8000, flags=0x1, kernel_only=1, share_all=0 pid[1231,-1,-1,-1,-1], length=32KB, name="dpu_match_list"
|-MMB: phys(0x7241B000, 0x72560FFF), kvirt=0xFFFFFFC016A00000, flags=0x1, kernel_only=1, share_all=0 pid[1239,-1,-1,-1,-1], length=1304KB, name="svp_npu_share_mem"
---MMZ_USE_INFO:
total size=3407872KB(3328MB),used=38276KB(37MB + 388KB),remain=3369596KB(3290MB + 636KB),zone_number=1,block_number=21
【调试信息分析】
记录当前MMZ模块的状态调试信息。
【参数说明】
- anony、mmz_allocator和mem_process_isolation参数仅在Linux系统下显示。
- map_mmz_zone仅在设置了模块参数“map_mmz”有效值下显示。
- MMB中的share_all和pid信息,仅在Linux系统下有效。
- MMB如果以"*"开头,代表上一个MMB与当前MMB之间存在空隙。
CHNL
【调试信息】
[CHNL] Version: [V1.0.0.0 B010 Release], Build Time[Sep 15 2022, 15:46:12]
total chnl scheduler count: 3
----------------------------------scheduler 0 info------------------
scheduler_id vpu_num
0 1
--------------------------scheduler:0--vpu info---------------------------
vpu_id name state int_cnt timer_cnt vpu_cnt err_cnt query_cnt
0 JPGE_0 pause 1046 1046 0 0 0
start_ok start_num config_ok reset
0 0 0 0
-----------------scheduler:0--chnl state------------------------------------
chn_id priority type task_num state query_cnt start_ok start_num
1 0 h265e 0 idle 0 0 0
interrupt_num
0
----------------------------scheduler:0--chnl performance-----------------------------
chn_id type start_cost interrupt_cost max_interrupt_cost hw_cost hw_cycle max_hw_cost
1 h265e 0 0 0 0 0 0
------------------------scheduler:0--chnl current run state-------------------
vpu_id vpu_name chn_id reg_id type
0 VEDU_0 1 H265E
【调试信息分析】
记录当前通道调度器模块的状态调试信息。
【参数说明】
VGS
【调试信息】
~ # cat /proc/umap/vgs
[VGS] Version: [V1.0.0.0 B010 Release], Build Time[Aug 30 2022, 09:10:37]
-----------------------------------module param-------------------------------------------------------
g_max_job_num g_max_task_num g_max_node_num g_max_ver_split_handle_num
128 200 200 5
----------------------------------recent job info1-----------------------------------------------------
seq_no mod_name job_hdl task_num state in_size out_size cost_time hw_time vgs
0 dis 78 3 proced 680640 170400 1390 1308 0
1 vpss 77 2 proced 362320 362320 747 711 0
2 vpss 76 0 proced 0 0 9045 0 0
--------------------------------------max waste time job info1------------------------------------------
seq_no mod_name job_hdl task_num state in_size out_size cost_time hw_time vgs
0 vo 81 3 proced 6220800 1555200 11085 11054 0
---------------------------------------recent job info2-------------------------------------------------
seq_no crop cover mosaic osd zme lba luma line copy rotate bd bypass corner fpd gme stitch low_delay
0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0
1 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0
2 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0
----------------------------------------max waste time job info2---------------------------------------
seq_no crop cover mosaic osd zme lba luma line copy ldc rotate bd bypass corner fpd gme
0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0
stitch low_delay
0 0
-------------------------------------recent job info3-----------------------------------------------
seq_no video_format pixel_format cmp_mode mirror flip blend
0 LINEAR->LINEAR YUV400->YUV400 NONE->NONE 0 0 0
1 LINEAR->LINEAR YVU420->YVU420 NONE->NONE 0 0 0
2 LINEAR->LINEAR YVU420->YVU420 NONE->NONE 0 0 0
-----------------------------------max waste time job info3------------------------------------------
seq_no video_format pixel_format cmp_mode mirror flip blend
0 LINEAR->LINEAR YVU420->YVU420 NONE->NONE 0 0 0
--------------------------------------vgs job status-------------------------------------------------
success fail cancel all_job_num free_num begin_num busy_num procing_num
564 0 0 128 127 0 0 1
--------------------------------------vgs task status------------------------------------------------
success fail cancel all_task_num free_num busy_num
1129 0 0 200 199 1
---------------------------------------vgs node status----------------------------------------------
all_node_num busy_num min_free max_in_job submit_fail int_fail load_ratio_0
200 1 195 4 0 0 51%
---------------------------------vgs drv work status-----------------------------------------
link_int err_int start_suc0 start_err0 node_err0
564 0 500 0 0
----------------------------------------vgs ver split status------------------------------------------------------------
handle proced/all in_width in_height out_width out_height buf_size stride pixel_format read_h last_read_h
0 5/7 668 508 4096 4096 3809280 4096 YVU420 592 544
【调试信息分析】
记录VGS模块最近完成的若干任务、最近耗时最大的任务、历史累计信息及中断相关信息。
【参数说明】
须知:
Hi3519DV500/Hi3516DV500中,load_ratio_xx包含TDE的负载,即同时使用TDE与VGS时,VGS的负载会增加。
H265E
【调试信息】
~ # cat /proc/umap/h265e
[H265E] Version: [V1.0.0.0 B010 Release], Build Time[Aug 31 2022, 17:29:33]
-----------------module param-----------------------------------------
one_pack h265_vb_src power_save_en mini_buf_mode qp_hist_en
0 private 1 0 0
----------------------chn attr-----------------------------------------
id max_width max_height width height profile color_to_grey buf_size
0 1280 720 1280 720 mp n 691200
by_frame gop_mode max_stream_cnt
y normal_p 200
----------------------picture info---------------------------------------
id enc_start enc_succeed copy lost discard p_skip recode
0 214 214 0 0 0 0 0
release_stream unread_stream
214 0
--------------------stream buffer------------------------------------
id base read_tail read_head write_tail write_head data_len buf_free
0 0xffffff8012600000 0xd8c0 0xd8c0 0xd8c0 0xd8c0 0 692160
-----------------------ref_param info------------------------------------
id pred_en base enhance used_frame max_used_frame rcn_ref_share_buf_en
0 y 1 0 1 2 y
frame_buf_ratio force_i_blk_cnt
70 0
-------------------------roi_bg info-----------------------------------
id bg_src_frame_rate bg_dst_frame_rate
0 -1 -1
-----------------------syntax info1---------------------------------
id slice_split_en split_mode slice_size slice_output_en intra_refresh_en
0 n n/a n/a n/a n
refresh_mode refresh_num qp_idr
n/a n/a n/a
-----------------------syntax info2--------------------------------------
id dblk_en tc_offset beta_offset across_slc across_tile sao_luma sao_chroma entrpy_flag
0 1 0 0 1 1 1 1 0
---------------------syntax info3-------------------------------------
id time_info_flag num_in_tick time_scale diff_one
0 n n/a n/a n/a
---------------------pu info------------------------------------------
id constrained_intra intra_smoothing search_window hor ver
0 0 1 auto 0 0
---------------------trans info------------------------------------------
id cb_qp_offset cr_qp_offset
0 0 0
-----------------skip_coef / scene info / param_set_id / bitrate_strategy------------------
id fg_skip_coef bg_skip_coef scene_mode param_set_id bitrate_strategy
0 8 8 scene_0 0 high_quality
--------------------cu_prediction---------------------------------------
id pred_mode inter_cost: 8 16 32 64 intra_cost: 4 8 16 32
0 auto 8 8 8 8 8 8 8 8
-----------------skip bias-----------------------------------------------
id skip_bias_en gain offset foreground_cost background_cost bg_lambda_factor fg_lambda_factor
0 n 8 8 0 0 0 0
-------------------md--------------------------------------------------
id online_en sad_mode gain offset qp_delta
0 y zero [ 5 8 0] [ 0 3 0] [ 0 0 0 0]
skip_weight
[ 0 0 0 0]
-----------------------deblur--------------------------------------------
id deblur_en deblur_adaptive_en deblur_effect
0 y n n
---------------------------------adv_deblur_near_bg-------------------------------------------
id near_bg_en gain offset qp_delta min_qp max_qp far_bg_en far_qp_delta far_min_qp far_max_qp
0 y 0 0 0 0 0 n 0 0 0
--------------------------quality balance info 1-----------------------------
id enable level_adaptive_en interval target_ratio ratio_offset_i ratio_offset_p
0 y n 10 60 0 0
switch effect_cnt
1 3
---------------------------quality balance info 2------------------------------
id threshold(8) level(8)
0 [ 6 6 6 6 6 6 6 6] [ 7 7 7 7 7 7 7 7]
-----------------------------watermark---------------------------------------
id enable strength component period seed0 seed1 seed2 seed3
0 y 1 U 80 2 2 2 2
---------------------watermark info-----------------------------------------
id info
0 HELLO_WORLD
------------------------watermark_roi--------------------------------------
id enable strength top bottom left right
0 n 0 0 0 0 0
【调试信息分析】
在进行多路H.265编码时,最常见的问题是用户的上层软件获取码流不及时,导致码流buffer不足,进而导致编码丢帧。确认这种情况最好的办法是查看discard和unread_stream。discard往往表示由于硬件发现码流buffer不足而丢弃的帧数。unread_stream表示码流buffer中剩余的码流帧数,这个数字越大,则表示用户获取码流越不及时。
【参数说明】
VENC
【调试信息】
cat /proc/umap/venc
[VENC] Version: [V1.0.0.0 B010 Release], Build Time[Aug 31 2019, 15:13:19]
----------------------module param-------------------------------------------
venc_buf_cache frame_buf_recycle venc_max_chn_num high_profile
0 0 64 n
-----------------venc chn attr 1-----------------------------------------------------------------
id width height type by_frame sequence left_bytes left_frm cur_packs gop_mode priority buf_full_cnt
0 1920 1080 H264 y 12 0 0 0 normal_p 0 0
----------------------venc chn attr 2-----------------------------------------------------------
id started src_frame_rate dst_frame_rate time_ref pixel_format pic_addr wake_up_frame_cnt in_depth
0 y -1 -1 22 yvu420 0x74d92e00 1 3
------------------------venc chn attr 3---------------------------------------------
id composite_en mosaic_en quality_level dup_frame_strategy svc_version stream_buf_full_cnt one_pack fast_enc mux_stm_syntax ssvc_en
0 n n 1 RECODE V1 0 n n n n
----------------------------------venc jpege attr------------------------------------------
id recv_mode mpf_cnt mpf0_width mpf0_height mpf1_width mpf1_height
---------------------------------venc chn recv state---------------------------------------
id start start_ex recv_left enc_left jpeg_enc_mode
0 1 0 0 0 n/a
----------------------------------venc vpss query----------------------------------------
id query query_ok query_lost invalid full vb_fail query_fail info_err stop
0 0 0 0 0 0 0 0 0 0
-----------------------------------venc send1--------------------------------------------------
id vpss_send vpss_err other_send other_err send stop full crop_err direct_send size_err
0 0 0 12 0 12 0 0 0 12 0
-------------------------------venc send2------------------------------------------------------
id send_vgs start_ok start_fail interrupt_ok interrupt_fail src_add src_sub dst_add dst_sub
0 0 0 0 0 0 0 0 0 0
-----------------------------------venc fmu info-----------------------------------------------------
id mode fmu_chn fmu_num send discard done frame_err malloc_err free_err
0 direct 3 165 166 0 166 0 0 0
1 wrap 0 165 166 0 166 0 0 0
-----------------------------------venc wrap info--------------------------------------------------
id mode frame_num send discard done miss_start ring_back ring_buffull
0 offline 84 85 0 84 0 0 0
1 off
----------------------------------------venc pic queue state-----------------------------------------------------
id free busy vgs b_frame status get_osd put_osd
0 3 0 0 0 invalid 65 65
--------------------------venc dcf/mpf queue state-------------------------------
id thumb_free thumb_busy mpf0_free mpf0_busy mpf1_free mpf1_busy
0 0 0 6 0 6 0
----------------------------venc channel info----------------------------------------------
id query query_ok start start_ok config interrupt chg_reso_lost over_load ring_skip rc_skip zme_skip
0 885 12 12 12 12 12 0 0 0 0 0
------------------------------venc crop info------------------------------------------
id crop_en x y width height
0 n 0 0 0 0
-------------------------------roi info------------------------------------------------
id type index roi_en abs_qp qp x y width height
-------------------------------jpeg roi info------------------------------------------
id index level bg_level x y width height
---------------------------------venc stream state------------------------------------------------
id free_cnt busy_cnt user_cnt user_get user_release get_times interval frame_rate
0 1 0 0 15 15 12 740736 1
------------------------------------venc pts state----------------------------------------
id first_frame_pts cur_frame_pts time_cost max_time_cost user_qpmap_pts
0 141641924 147659937 147667917 247667917 0
--------------------------------venc svc state--------------------------------------------
id enable base_reso_width base_reso_height rect_num pts version
0 y 0 0 0 0 V2
-----------------------------venc svc param--------------------------------------------------
id fg_en fg_rgn_param0 fg_rgn_param1 fg_rgn_param2 fg_rgn_param3 fg_rgn_param4
0 y [127 127 0] [127 127 0] [127 127 0] [127 127 0] [127 127 0]
bg_rgn_param act_rgn_param
[ 0 0 0] [ 0 0 0]
----------------------------------------venc svc_v2 param-----------------------------------
id ref_num refresh_interval roi_type qp_delta
0 2 10 rect -15 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0
----------------------------------------venc chn_capability:attr_capability------------------
id enable type max_width max_height buf_size rcn_ref_share_buf_en frame_buf_ratio
0 y 3 1920 1080 3110400 n 100
----------------------------------------venc chn_capability:rc_capability-----------------------------------------
id rc_mode min_gop max_gop max_stats_time max_src_frame_rate max_short_term_stats_time max_long_term_stats_time
0 255 30 30 30 30 30 180
----------------------------------------venc chn_capability:gop_capability--------------------------------------
id gop_mode crr_recode_strategy min_bg_interval max_bg_interval skip_ref_en max_frame_num
0 1 1 30 1200 n 2
----------------------------------------venc chn_capability:feature_capability-------------------------------------
id user_data_en watermark_en deblur_en quality_balance_en md_en jpeg_roi_en bitrate_strategy svc ref_num
0 n n n n n n 1 0 2
【调试信息分析】
记录当前视频编码属性配置以及状态信息。
【参数说明】
H264E
【调试信息】
~ # cat /proc/umap/h264e
[H264E] Version: [V1.0.0.0 B010 Release], Build Time[Sep 6 2022, 11:38:16]
-------------------------------module param----------------------------------------
one_pack h264_vb_src power_save_en mini_buf_mode qp_hist_en
0 private 1 0 0
-------------------------------chn attr--------------------------------------------
id max_width max_height width height profile color_to_grey buf_size by_frame
0 4096 4096 1920 1080 hp n 25165824 y
gop_mode max_stream_cnt
normal_p 200
------------------------------picture info----------------------------------------
id enc_start enc_succeed copy lost discard p_skip recode
0 21 21 0 0 0 0 0
release_stream unread_stream
20 1
-------------------------stream buffer---------------------------------------------
id base read_tail read_head write_tail write_head data_len buf_free
0 0xffffffc018000000 0x738c0 0x738c0 0x738c0 0x738c0 0 25165760
-------------------------------ref_param info---------------------------------------
id pred_en base enhance used_frame max_used_frame rcn_ref_share_buf_en
0 y 1 0 0 0 n
frame_buf_ratio force_i_blk_cnt
100 0
-------------------------------roi_bg info---------------------------------------
id bg_src_frame_rate bg_dst_frame_rate
0 -1 -1
-----------------------------syntax info1------------------------------------------------
id slice_split_en split_mode slice_size slice_output_en intra_refresh_en refresh_mode
0 n n/a n/a n/a n n/a
refresh_num qp_idr
n/a n/a
---------------------------syntax info2--------------------------------------------------
id profile entrpy_i entrpy_p entrpy_b trans_i trans_p scaling_list_valid poc
0 hp cabac cabac cavlc all all n 0
dblk_idc alpha beta
0 0 0
-------------------------------pu info--------------------------------------------------
id constrained_intra search_window hor ver
0 0 auto 0 0
----------------------------------------skip_coef / scene info / param_set_id / bitrate_strategy------------------------
id fg_skip_coef bg_skip_coef scene_mode param_set_id bitrate_strategy
0 8 8 scene_0 0 high_quality
------------------------------cu_prediction------------------------------------------
id pred_mode inter8_cost inter16_cost intra4_cost intra8_cost intra16_cost
0 auto 8 8 8 8 8
---------------------------------skip bias-----------------------------------------------
id skip_bias_en gain offset foreground_cost background_cost bg_lambda_factor fd_lambda_factor
0 n 8 8 10 10 0 0
---------------------------------md-------------------------------------------------------
id online_en sad_mode gain offset qp_delta skip_weight
0 n zero [ 0 0 0] [ 0 0 0] [ 0 0 0 0] [ 0 0 0 0]
---------------------------------deblur----------------------------------------------------
id deblur_en deblur_adaptive_en deblur_effect
0 y n n
----------------------------------------adv_deblur_near_bg---------------------------------------------
id near_bg_en gain offset qp_delta min_qp max_qp far_bg_en far_qp_delta far_min_qp far_max_qp
0 y 0 0 0 0 0 n 0 0 0
------------------------------quality balance info 1-------------------------------------------
id enable level_adaptive_en interval target_ratio ratio_offset_i ratio_offset_p switch effect_cnt
0 y n 10 60 0 0 1 3
--------------------------------quality balance info 2----------------------------------------
id threshold(8) level(8)
0 [ 6 6 6 6 6 6 6 6] [ 7 7 7 7 7 7 7 7]
------------------------------------watermark----------------------------------------------
id enable strength component period seed0 seed1 seed2 seed3
0 n 0 U 10 0 0 0 0
-----------------------------------watermark info--------------------------------------------
id info
0
---------------------------------watermark_roi---------------------------------------------
id enable strength top bottom left right
0 n 0 0 0 0 0
【调试信息分析】
在进行多路H.264编码时,最常见的问题是用户的上层软件获取码流不及时,导致码流buffer不足,进而导致编码丢帧。确认这种情况最好的办法是查看discard和unread_stream。discard往往表示由于硬件发现码流buffer不足而丢弃的帧数。unread_stream表示码流buffer中剩余的码流帧数,这个数字越大,则表示用户获取码流越不及时。
【参数说明】
JPEGE
【调试信息】
~ # cat /proc/umap/jpege
[JPEGE] Version: [V1.0.0.0 B010 Release], Build Time[Aug 31 2022, 18:02:32]
----------------------------module param------------------------------------
one_pack jpege_mini_buf_mode jpeg_clear_stream_buf
0 0 1
----------------------------attribute1----------------------------------------------
id is_mjpeg pic_type max_width max_height width height buf_size by_frm color_to_grey dcf
0 n yuv420 4096 4096 1920 1080 25165824 y n n
--------------------------------param----------------------------------------------
id mcu_per_ecs qfactor ecs_output_en dering_en dering_level dblk_en batch_crop_en batch_crop_num
0 0 90 n y 0 n n 0
----------------------------------state1--------------------------------------------
id buf_len free_len stream_cnt max_stream
0 25165824 25165760 1 200
-----------------------------------state2---------------------------------------------
id pic_recv pic_coded pic_droped pic_discard no_stm_cnt rc_fail pic_recode
0 3 1 0 0 0 0 0
unread_stream
1
-----------------------------stream buffer---------------------------------------
id base read_tail read_head write_tail write_head buf_len data_len buf_free
0 0xffffffc01a000000 579456 579456 579456 579456 25165824 0 25165760
-------------------------------run info----------------------------------------------
id dcf_size mpf_ex_offset src_size mpf0_size mpf1_size mpf_cnt jpeg_queue_idx
0 0 0 470036 76688 32119 2 2
【调试信息分析】
记录JPEG编码过程中,各通道的编码属性、状态以及历史信息统计,最多有64路编码通道。可配合用于定位系统阻塞以及丢帧等问题。
【注意事项】
- 当系统支持缩略图时才会显示ATTRIBUTE2的属性。
- Hi3511CV100不支持。
【参数说明】
|
y:使能去Ring算法,在相同量化表和qfactor的情况下能减少Ring现象并且减小图片文件大小,但也会损失一些图片清晰度和细节。 |
||
由于编码器硬件异常或出现超大帧而丢弃的帧数,有以下几种可能:
|
||
SVAC3E
【调试信息】
[SVAC3E] Version: [HI3516CV610_MPP_V1.0.0.0 B010 Release], Build Time[Jan 24 2024, 17:38:21]
------------------------module param------------------------------------
one_pack svac3_vb_src power_save_en mini_buf_mode qp_hist_en
0 private 1 0 0
---------------------chn attr------------------------------------------
id max_width max_height width height profile color_to_grey
0 1920 1080 1920 1080 mp n
buf_size by_frame gop_mode max_stream_cnt
3110400 y normal_p 200
-----------------------picture info-----------------------------------
id enc_start enc_succeed copy lost discard p_skip
0 8 6 0 0 0 0
recode release_stream unread_stream
1 6 0
-----------------------picture info2-----------------------------------
id crr_au_cnt no_disp_cnt tsvc
0 0 0 y
--------------------------stream buffer------------------------------------
id base read_tail read_head write_tail write_head data_len buf_free
0 0xc9c80000 0x31540 0x31540 0x31540 0x315c0 0 3112768
----------------------------------------ref_param info--------------------------
id pred_en base enhance used_frame max_used_frame rcn_ref_share_buf_en
0 y 1 0 -2 0 n
frame_buf_ratio force_i_blk_cnt
100 0
--------------------------------roi_bg info---------------------------
id bg_src_frame_rate bg_dst_frame_rate
0 -1 -1
-------------------------syntax info1-----------------------------------------
id slice_split_en split_mode slice_size slice_output_en intra_refresh_en
0 n n/a n/a n/a n
refresh_mode refresh_num qp_idr
n/a n/a n/a
-------------------syntax info2-------------------------------------------
id dblk_en dblk_param c_offset beta_offset across_patch
0 1 1 0 0 0
sao_luma sao_chroma
1 1
----------------------------------------syntax info3-----------------------------------------------------
id alf_luma alf_chroma sharp_strength fg_mode filter_en filter_mode filter_range filter_strength
0 1 1 0 balance y mode_0 range_0 strenght_4
-----------------------search_window--------------------------------------
id search_window hor ver
0 auto 0 0
-------------------------trans info---------------------------------------
id chroma_qp_disable cb_qp_offset cr_qp_offset
0 1 -3 -3
--------------------------------skip_coef / scene info / param_set_id / bitrate_strategy------------------------
id fg_skip_coef bg_skip_coef scene_mode param_set_id bitrate_strategy
0 8 8 scene_0 0 high_quality
------------------------cu_prediction--------------------------------------
id pred_mode inter_cost: 8 16 32 64 intra_cost: 4 8 16 32
0 auto 8 8 8 8 8 8 8 8
-----------------------------skip bias-----------------------------------------
id skip_bias_en gain offset foreground_cost background_cost bg_lambda_factor fg_lambda_factor
0 n 8 8 10 10 0 0
-----------------------------md-------------------------------------------------
id online_en sad_mode gain offset qp_delta skip_weight
0 n zero [ 0 0 0] [ 0 0 0] [ 0 0 0 0] [ 0 0 0 0]
-------------------------------deblur------------------------------------------
id deblur_en deblur_adaptive_en deblur_effect
0 n n n
-------------------------adv_deblur------------------------------------------
id near_bg_en gain offset qp_delta min_qp max_qp far_bg_en far_qp_delta
0 n 8 8 1 0 51 n 1
far_min_qp far_max_qp
0 51
----------------------------emulation info------------------------------------
id stuff03_disable
0 0
----------------------------crr split info-------------------------------------
id split_num delay_num strategy actual_split split_stat bgm_mode
0 2 1 disable 2 0 NA
----------------------------------------privacy info----------------------------
id privacy_en privacy_mode privacy_effect
0 1 mode0 1
---------------------------crr write back info---------------------------------
chn_num vb_used_flag cur_chn
0 0 -1
----------------------------------------aiseg info------------------------------
id is_aiseg_chn aiseg_en buf_size aiseg_type
0 n y 2000 map
1 y n/a n/a n/a
【调试信息分析】
在进行多路SVAC3编码时,最常见的问题是用户的上层软件获取码流不及时,导致码流buffer不足,进而导致编码丢帧。确认这种情况最好的办法是查看discard和unread_stream。discard往往表示由于硬件发现码流buffer不足而丢弃的帧数。unread_stream表示码流buffer中剩余的码流帧数,这个数字越大,则表示用户获取码流越不及时。
【注意】
Hi3519DV500/Hi3516DV500不支持。
【参数说明】
RC
【调试信息】
以下是CBR模式为例说明,proc信息如下:
~ # cat /proc/umap/rc
[RC] Version: [HI3519DV500_MPP_V1.0.0.0 B010 Release],Build Time[Aug 25 2023, 14:17:56]
-------------------------------------base param 1--------------------------------------
id gop stats_time src_frame_rate dst_frame_rate type mode bitrate(kbps) i_qp
0 30 1 30 30 H264 cbr 3072 n/a
p_qp b_qp vi_qp
n/a n/a n/a
------------------------------base param 2--------------------------------------------
id min_qp max_qp min_vi_qp max_vi_qp min_i_qp max_i_qp vbv_buf_delay idr_en qpmap_en qpmap_mode
0 10 51 10 51 10 51 n/a y n n/a
-------------------------------base param 3--------------------------------------------
id long_term_stats_time short_term_stats_time long_term_max_bitrate long_term_min_bitrate
------------------------------run common param 1---------------------------------------
id row_qp_delta threshold_i(16)
0 1 [ 0 0 0 0 3 3 5 5 8 8 8 15 15 20 25 25]
---------------------------------run common param 2------------------------------------
id first_frame_start_qp threshold_p(16)
0 -1 [ 0 0 0 0 3 3 5 5 8 8 8 15 15 20 25 25]
---------------------------------run common param 3-------------------------------------
id direction threshold_b(16)
0 8 [ 0 0 0 0 3 3 5 5 8 8 8 15 15 20 25 25]
--------------------------------run comm param 4-----------------------------------------
id lost threshold lost_mode frame_gap base_qp_delta_en base_qp_delta
0 n 83886080 normal 0 n 0
---------------------------------run comm param 5---------------------------------------
id super_frame_mod threshold_i threshold_p threshold_b rc_priority clear_stats qp_delta max_lost_times
0 none 500000 500000 500000 bitrate 1 1 0
-------------------------------run common param 6----------------------------------------
id detect_scene_chg_en adapt_insert_idr_frame_en out_rc_en
0 y n n
---------------------------------fg protect info 1--------------------------------------
id protect_en direction threshold_p(16)
0 0 8 [ 0 0 0 0 0 0 0 0 5 5 5 15 15 20 25 25]
----------------------------------fg protect info 2-----------------------------------------
id gain offset threshold_b(16)
0 4 4 [ 0 0 0 0 0 0 0 0 5 5 5 15 15 20 25 25]
-------------------------------gop mode attr----------------------------------------------
id gop_mode ip_qp_delta sp_interval sp_qp_delta b_frame_num b_qp_delta bg_interval
0 normal_p 2 n/a n/a n/a n/a n/a
vi_qp_delta
n/a
---------------------------------run abr param---------------------------------------------
id max_p_qp min_p_qp max_i_qp min_i_qp max_reencode_times
----------------------------------run cbr param-------------------------------------------
id min_i_proportion max_i_proportion max_qp min_qp max_i_qp min_i_qp max_reencode_times
0 1 20 51 10 51 10 2
-------------------------------run vbr common param----------------------------------------
id chg_pos min_i_proportion max_i_proportion max_qp min_qp max_i_qp min_i_qp
max_reencode_times
----------------------------------run avbr param------------------------------------------
id max_still_qp motion_sensitivity min_still_percent min_still_psnr min_qp_delta
save_bitrate_en
----------------------------------run qvbr param------------------------------------------
id min_bit_percent max_bit_percent min_psnr_fluctuate max_psnr_fluctuate
-----------------------------------run cvbr param-----------------------------------------
id min_qp_delta max_qp_delta extra_bit_percent long_term_stats_time_unit save_bitrate_en
--------------------------------------run info1-------------------------------------------
id inst_br:kbps inst_fr:fps wat_l cfg_bit:kb real_bit:kb ip_ratio dst_percent
0 3272 30 4614 77 82 10 n/a
start_qp min_qp max_qp
37 10 51
-----------------------------------rc debreath_effect info--------------------------------
id enable strength0 strength1 debreath_effect_cnt
0 n n/a n/a 0
----------------------------------rc hierarchical_qp info---------------------------------
id enable frame_num[ 0 1 2 3] qp_delta[ 0 1 2 3]
0 n 1 1 0 0 -2 -4 0 0
【调试信息分析】
记录当前编码码率控制的信息。
【参数说明】
CU32或CU64的QP值的取值方式。只有H265/SVAC3涉及,MEANQP、MINQP、MAXQP分别代表取平均,最小,最大。 |
||
请参见“视频编码”章节中关于ot_venc_h264_vbr_param或ot_venc_h264_avbr_param或ot_venc_h264_qvbr_param结构体的描述。 |
||
REGION
【调试信息】
# cat /proc/umap/rgn
[RGN] version: [V1.0.0.0 B010 Release], Build Time[Feb 19 2021, 09:39:32]
----------------------------------------region status of overlay--------------------------------------------
hdl type used pixel_format width height bg_color phys virt stride
0 OVERLAY N ARGB1555 200 200 f0ff 7015f000 ffffff800c599000 512
1 OVERLAY N ARGB4444 256 256 fff0 7019a000 ffffff800c5e0000 512
2 OVERLAY N ARGB1555 200 200 f0ff 701d3000 ffffff800c659000 512
3 OVERLAY N CLUT2 256 256 1 80643000 ffffff800c1cc000 64
4 OVERLAY N CLUT4 200 200 1 8064d400 ffffff800c1e6400 128
----------------------------------------region status of overlay buf used----------------------------------
hdl type canvas_num buf0 buf1
0 OVERLAY 2 0 0
1 OVERLAY 2 0 0
2 OVERLAY 2 0 0
3 OVERLAY 2 0 0
4 OVERLAY 2 0 0
----------------------------------------region call vgs status of overlay-----------------------------------
hdl call_cnt job_suc job_fail task_suc task_fail end_suc end_fail
0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0
2 0 0 0 0 0 0 0
3 0 0 0 0 0 0 0
4 0 0 0 0 0 0 0
----------------------------------------region chn status of overlay---------------------------------------
hdl type mod dev chn is_bach attach_dst is_show x y fg_alpha bg_alpha layer
0 OVERLAY VENC 0 0 N MAIN Y 10 10 128 128 0
1 OVERLAY VENC 0 0 N MAIN Y 210 110 128 128 1
2 OVERLAY VENC 0 0 N MAIN Y 410 210 128 128 2
3 OVERLAY VENC 0 0 N MAIN Y 610 310 128 128 3
4 OVERLAY VENC 0 0 N MAIN Y 810 410 128 128 4
is_abs_qp qp_val qp_enable
N 0 N
N 0 N
N 0 N
N 0 N
N 0 N
----------------------------------------region status of overlay clut2--------------------------------------
hdl clut[0] clut[1] clut[2] clut[3]
3 ff0f0f7f ff1e1efe ff2d2e7d ff3c3dfc
----------------------------------------region status of overlay clut4_0-----------------------------------
hdl clut[0] clut[1] clut[2] clut[3] clut[4] clut[5] clut[6] clut[7]
4 ff0f0f7f ff1e1efe ff2d2e7d ff3c3dfc ff4b4d7b ff5a5cfa ff696c79 ff787bf8
----------------------------------------region status of overlay clut4_1-----------------------------------
hdl clut[8] clut[9] clut[10] clut[11] clut[12] clut[13] clut[14] clut[15]
4 ff878b77 ff969af6 ffa5aa75 ffb4b9f4 ffc3c973 ffd2d8f2 ffe1e871 fff0f7f0
[RGN] version: [V1.0.0.0 B010 Release], Build Time[Feb 19 2021, 09:39:32]
----------------------------------------region status of overlayex------------------------------------------
hdl type used pixel_format width height bg_color phys virt stride
10 OVERLAYEX N ARGB1555 200 200 f0ff 701b6000 ffffff8009599000 512
11 OVERLAYEX N ARGB4444 200 200 fff0 80458000 ffffff80095d9000 512
12 OVERLAYEX N ARGB8888 200 200 f0ff 804a3000 ffffff80097b2000 1024
13 OVERLAYEX N CLUT2 200 200 1 701d4200 ffffff8008f1b200 64
14 OVERLAYEX N CLUT4 200 200 1 701de400 ffffff8009546400 128
----------------------------------------region status of overlayex buf used-------------------------------
hdl type canvas_num buf0 buf1
10 OVERLAYEX 2 0 0
11 OVERLAYEX 2 0 0
12 OVERLAYEX 2 0 0
13 OVERLAYEX 2 0 0
14 OVERLAYEX 2 0 0
----------------------------------------region call vgs status of overlayex--------------------------------
hdl call_cnt job_suc job_fail task_suc task_fail end_suc end_fail
10 0 0 0 0 0 0 0
11 0 0 0 0 0 0 0
12 0 0 0 0 0 0 0
13 0 0 0 0 0 0 0
14 0 0 0 0 0 0 0
----------------------------------------region chn status of overlayex-------------------------------------
hdl type mod dev chn is_show x y fg_alpha bg_alpha layer
10 OVERLAYEX MCF 0 0 Y 10 10 128 128 0
11 OVERLAYEX MCF 0 0 Y 138 74 128 128 1
12 OVERLAYEX MCF 0 0 Y 266 138 128 128 2
13 OVERLAYEX MCF 0 0 Y 394 202 128 128 3
14 OVERLAYEX MCF 0 0 Y 522 266 128 128 4
----------------------------------------region status of overlayex clut2-----------------------------------
hdl clut[0] clut[1] clut[2] clut[3]
13 ff0fff0f ff3ffc3c ff8ff787 fffff0f0
----------------------------------------region status of overlayex clut4_0---------------------------------
hdl clut[0] clut[1] clut[2] clut[3] clut[4] clut[5] clut[6] clut[7]
14 ff0fff0f ff3ffc3c ff8ff787 fffff0f0 ff8fe877 ff3fde1c ff0fd1df ffffc3c0
----------------------------------------region status of overlayex clut4_1---------------------------------
hdl clut[8] clut[9] clut[10] clut[11] clut[12] clut[13] clut[14] clut[15]
14 ff0fb3bf ff3fa1dc ff8f8e17 ffff7870 ff8f60e7 ff3f477c ff0f2c2f ffff0f00
[RGN] version: [V1.0.0.0 B010 Release], Build Time[Feb 19 2021, 09:39:32]
----------------------------------------region chn status of rect cover------------------------------------
hdl type used mod dev chn is_show x y width height color layer coord_type
20 COVER N VPSS 0 0 Y 200 500 128 128 ff0000 0 ABS
21 COVER N VPSS 0 0 Y 328 564 128 128 ff00ff 1 ABS
22 COVER N VPSS 0 0 Y 456 628 128 128 ff0000 2 ABS
23 COVER N VPSS 0 0 Y 584 692 128 128 ff00ff 3 ABS
----------------------------------------region chn status of quad rangle cover---------------------------
hdl type used mod dev chn is_show solid thick color layer coord_type
30 COVER N VPSS 0 0 Y N 14 ff0000 0 ABS
31 COVER N VPSS 0 0 Y N 8 ff 1 ABS
32 COVER N VPSS 0 0 Y N 14 ff0000 2 ABS
33 COVER N VPSS 0 0 Y N 8 ff 3 ABS
34 COVER N VPSS 0 0 Y N 14 ff0000 4 ABS
35 COVER N VPSS 0 0 Y N 8 ff 5 ABS
36 COVER N VPSS 0 0 Y N 14 ff0000 6 ABS
37 COVER N VPSS 0 0 Y N 8 ff 7 ABS
----------------------------------------region chn status of quad rangle cover coord--------------------
hdl x0 y0 x1 y1 x2 y2 x3 y3
30 300 200 100 300 500 300 300 400
31 428 200 228 300 628 300 428 400
32 556 200 356 300 756 300 556 400
33 684 200 484 300 884 300 684 400
34 812 200 612 300 1012 300 812 400
35 940 200 740 300 1140 300 940 400
36 1068 200 868 300 1268 300 1068 400
37 1196 200 996 300 1396 300 1196 400
----------------------------------------region chn status of rect coverex----------------------------------
hdl type used mod dev chn is_show x y width height color layer coord_type
----------------------------------------region chn status of quad rangle coverex------------------------
hdl type used mod dev chn is_show solid thick color layer coord_type
50 COVEREX N VPSS 0 0 Y N 14 ff0000 0 ABS
51 COVEREX N VPSS 0 0 Y N 8 ff 1 ABS
52 COVEREX N VPSS 0 0 Y N 14 ff0000 2 ABS
53 COVEREX N VPSS 0 0 Y N 8 ff 3 ABS
54 COVEREX N VPSS 0 0 Y N 14 ff0000 4 ABS
55 COVEREX N VPSS 0 0 Y N 8 ff 5 ABS
56 COVEREX N VPSS 0 0 Y N 14 ff0000 6 ABS
57 COVEREX N VPSS 0 0 Y N 8 ff 7 ABS
----------------------------------------region chn status of quad rangle coverex coord-----------------
hdl x0 y0 x1 y1 x2 y2 x3 y3
50 300 500 100 600 500 600 300 700
51 428 500 228 600 628 600 428 700
52 556 500 356 600 756 600 556 700
53 684 500 484 600 884 600 684 700
54 812 500 612 600 1012 600 812 700
55 940 500 740 600 1140 600 940 700
56 1068 500 868 600 1268 600 1068 700
57 1196 500 996 600 1396 600 1196 700
----------------------------------------region status of line-------------------------------------------------
hdl type used mod dev chn is_show x0 y0 x1 y1 thick color
80 LINE N VPSS 0 0 Y 100 200 500 300 1 ffffff
81 LINE N VPSS 0 0 Y 132 200 516 300 2 ff0000
82 LINE N VPSS 0 0 Y 164 200 532 300 3 ffffff
83 LINE N VPSS 0 0 Y 196 200 548 300 4 ff0000
84 LINE N VPSS 0 0 Y 228 200 564 300 5 ffffff
85 LINE N VPSS 0 0 Y 260 200 580 300 6 ff0000
86 LINE N VPSS 0 0 Y 292 200 596 300 7 ffffff
87 LINE N VPSS 0 0 Y 324 200 612 300 1 ff0000
88 LINE N VPSS 0 0 Y 356 200 628 300 2 ffffff
89 LINE N VPSS 0 0 Y 388 200 644 300 3 ff0000
90 LINE N VPSS 0 0 Y 420 200 660 300 4 ffffff
91 LINE N VPSS 0 0 Y 452 200 676 300 5 ff0000
92 LINE N VPSS 0 0 Y 484 200 692 300 6 ffffff
93 LINE N VPSS 0 0 Y 516 200 708 300 7 ff0000
94 LINE N VPSS 0 0 Y 548 200 724 300 1 ffffff
95 LINE N VPSS 0 0 Y 580 200 740 300 2 ff0000
96 LINE N VPSS 0 0 Y 612 200 756 300 3 ffffff
97 LINE N VPSS 0 0 Y 644 200 772 300 4 ff0000
98 LINE N VPSS 0 0 Y 676 200 788 300 5 ffffff
99 LINE N VPSS 0 0 Y 708 200 804 300 6 ff0000
100 LINE N VPSS 0 0 Y 740 200 820 300 7 ffffff
101 LINE N VPSS 0 0 Y 772 200 836 300 1 ff0000
102 LINE N VPSS 0 0 Y 804 200 852 300 2 ffffff
103 LINE N VPSS 0 0 Y 836 200 868 300 3 ff0000
104 LINE N VPSS 0 0 Y 868 200 884 300 4 ffffff
105 LINE N VPSS 0 0 Y 900 200 900 300 5 ff0000
106 LINE N VPSS 0 0 Y 932 200 916 300 6 ffffff
107 LINE N VPSS 0 0 Y 964 200 932 300 7 ff0000
108 LINE N VPSS 0 0 Y 996 200 948 300 1 ffffff
109 LINE N VPSS 0 0 Y 1028 200 964 300 2 ff0000
110 LINE N VPSS 0 0 Y 1060 200 980 300 3 ffffff
111 LINE N VPSS 0 0 Y 1092 200 996 300 4 ff0000
112 LINE N VPSS 0 0 Y 1124 200 1012 300 5 ffffff
113 LINE N VPSS 0 0 Y 1156 200 1028 300 6 ff0000
114 LINE N VPSS 0 0 Y 1188 200 1044 300 7 ffffff
115 LINE N VPSS 0 0 Y 1220 200 1060 300 1 ff0000
116 LINE N VPSS 0 0 Y 1252 200 1076 300 2 ffffff
117 LINE N VPSS 0 0 Y 1284 200 1092 300 3 ff0000
118 LINE N VPSS 0 0 Y 1316 200 1108 300 4 ffffff
119 LINE N VPSS 0 0 Y 1348 200 1124 300 5 ff0000
----------------------------------------region chn status of mosaic----------------------------------------
hdl type used mod dev chn is_show x y width height blk_size layer
120 MOSAIC N VPSS 0 0 Y 500 100 200 200 32(valid) 0
121 MOSAIC N VPSS 0 0 Y 700 200 200 200 32 1
122 MOSAIC N VPSS 0 0 Y 900 300 200 200 32 2
123 MOSAIC N VPSS 0 0 Y 1100 400 200 200 32 3
----------------------------------------region chn status of mosaicex-------------------------------------
hdl type used mod dev chn is_show x y width height blk_size layer
130 MOSAICEX N VPSS 0 0 Y 100 500 200 200 16 0
131 MOSAICEX N VPSS 0 0 Y 300 600 200 200 32 1
132 MOSAICEX N VPSS 0 0 Y 500 700 200 200 16 2
133 MOSAICEX N VPSS 0 0 Y 700 800 200 200 32 3
----------------------------------------region status of rect corner_rect--------------------------------
hdl type used mod dev chn is_show x y width height layer
141 CORNER_RECT Y VO 0 0 Y 100 100 200 128 0
hor_len ver_len thick corner_type color
16 16 2 CORNER ff0000
----------------------------------------region status of rect corner_rectex--------------------------------
hdl type used mod dev chn is_show x y width height layer
140 CORNER_RECTEX Y VO 0 0 Y 100 100 200 128 0
hor_len ver_len thick corner_type color
16 16 2 CORNER ff0000
【调试信息分析】
记录当前区域资源信息。
【参数说明】
region chn status of quad rangle coverex coord QUAD_RANGLE COVER的坐标值 |
||
region chn of quad rangle status coverex coord QUAD_RANGLE COVEREX坐标值 |
||
VI
须知:
本小节仅适用于Hi3519DV500/Hi3516CV610。
【Hi3519DV500调试信息】
# cat /proc/umap/vi
[VI] Version: [HI3519DV500_MPP_V1.0.0.0 B010 Release], Build Time[Nov 3 2022, 09:45:27]
--------------------------vi module param-----------------------------------------------
is_out_sp422_support max_out_width max_out_height detect_err_frame drop_err_frame
Y 8192 8192 0 0
--------------------------vi vpss mode & vi aiisp mode--------------------------------
pipe_id vi_vpss_mode vi_aiisp_mode fmu_mode
0 vi_offline_vpss_offline default off
1 vi_offline_vpss_offline default off
2 vi_offline_vpss_offline default off
3 vi_offline_vpss_offline default off
4 vi_offline_vpss_offline default off
5 vi_offline_vpss_offline default off
6 vi_offline_vpss_offline default off
7 vi_offline_vpss_offline default off
8 vi_offline_vpss_offline default off
9 vi_offline_vpss_offline default off
10 vi_offline_vpss_offline default off
11 vi_offline_vpss_offline default off
12 vi_offline_vpss_offline default off
13 vi_offline_vpss_offline default off
14 vi_offline_vpss_offline default off
------------------------------vi dev attr1--------------------------------------------------
dev_id dev_status intf_mode work_mode comp_mask0 comp_mask1 scan_mode
0 enable mipi 1mux fff00000 0 progressive
-------------------------------vi dev attr2-------------------------------------------------
dev_id data_seq data_type data_reverse width height data_rate irq_affinity
0 yvyu raw N 1920 1080 x1 0
---------------------------------vi thermo sns attr-----------------------------------------
dev_id work_mode ooc_width ooc_height ooc_bitwidth cfg_num frame_rate sd_mux0
sd_mux1 sd_mux2 sd_mux3
----------------------------------vi dev timing attr-------------------------------------
dev_id enable frame_rate
0 Y 10
-----------------------------------vi dev data attr-----------------------------------------
dev_id enable
0 Y
-----------------------------------vi dev detect info-----------------------------------------
dev_id valid_width valid_height em_data_size total_width vfb_height vbb_height
0 1920 1080 0 2221 0 47
----------------------------------vi stitch grp attr------------------------------------------
grp_id stitch_en cfg_mode max_pts_gap pipe_num pipe_id
------------------------------------vi bind attr----------------------------------------------
dev_id pipe_num pipe_id
0 1 0
----------------------------------vi wdr fusion grp attr--------------------------------------
grp_id wdr_mode cache_line pipe_num pipe_id pipe_reverse
0 none 88 1 0 N
---------------------------------vi pipe attr1------------------------------------------------
pipe_id bypass_mode isp_bypass width height pixel_format compress_mode
0 bypass_none N 1920 1080 raw12 line
---------------------------------vi pipe attr2------------------------------------------------
pipe_id bit_align_mode src_rate dst_rate frame_source vc_num vb_src vb_pool
0 high -1 -1 src_fe 0 common -1
-----------------------------vi aiisp pool attr------------------------------------------------
pipe_id aiisp_type in_pool_id out_pool_id net_type
0 aibnr 5 n/a n/a
-----------------------------------vi pipe param----------------------------------------------------
pipe_id discard_pro_pic_en out_mode data_rate yuv_skip_en signed_bit_extend_en bnr_info_en
0 N norm x1 Y N N
-----------------------------vi pipe bnr buf num-----------------------------------------------
pipe_id bnr_buf_num
0 40
-------------------------------vi pipe mcf info--------------------------------------------------
pipe_id mcf_vi_en queue_full ref_ok last_pts ref_pts
1 Y N Y 0 0
---------------------------------vi pipe pre crop attr--------------------------------------------
pipe_id enable rect_x rect_y rect_width rect_height
0 N 0 0 0 0
--------------------------------vi pipe post crop attr----------------------------------------------
pipe_id enable rect_x rect_y rect_width rect_height
0 N 0 0 0 0
-------------------------------vi pipe 3dnr attr--------------------------------------------------
pipe_id enable nr_type pixel_format compress_mode nr_motion_mode
0 Y NORM yvu-sp420 none NORM
--------------------------------vi pipe 3dnr param-------------------------------------------------
----------------------------------vi pipe0 3dnr param--------------------------------------------
pipe version opt_mode iso ref1_en
0 VER_1 MANUAL 0 1
nry0_en nry1_en nry2_en nry3_en nrc0_en nrc1_en limit_range_en
0 1 1 1 1 1 0
sfs1_0 sfs2_1 sfs2_2 sfs2_3 sfc sfs2_c
3 0 30 0 10 10
sfs1_1 sfs4_1 sfs4_2 sfs4_3 trc
8 0 30 0 20
tfs0_1 tfs0_2 tfs1_1 tfs1_2 adv_math
0 12 0 0 0
sfn_1 sfn_2 sfn_3 sfn_4
0_2_4_0 4_2_4_0 0_2_4_0 0_2_4_0
math_0 math0_1 math0_2 math1_1 math1_2
128 200 400 200 999
-------------------------------vi pipe frame dump attr----------------------------------
pipe_id enable depth
0 N 0
------------------------------vi pipe private data dump attr------------------------------
pipe_id enable data_mode depth data_size
0 N back 0 0
----------------------------------vi pipe low delay attr-----------------------------------
pipe_id enable line_cnt one_buf
0 N 0 N
----------------------------------vi pipe frame interrupt attr------------------------------
pipe_id interrupt_type early_line
0 start 0
-----------------------------vi pipe user pic attr------------------------------------------
pipe_id enable width height stride pixel_format pool_id phy_addr
0 N 0 0 0 n/a 0 0
---------------------------------vi pipe snap attr---------------------------------------------
pipe_id snap_type load_ccm_en frame_cnt repeat_send_times zsl_en frame_depth rollback_ms
interval op_mode
-------------------------------------vi pipe status-----------------------------------------------
pipe_id enable int_en width height int_cnt send_cnt lost_cnt vb_fail_cnt frame_rate
0 Y Y 1920 1080 150 112 36 0 29
--------------------------------vi pipe offline task statistics------------------------------------
pipe_id receive_pic_cnt busy_num task_submit_cnt task_fail_cnt task_cost_time max_cost_time
0 112 7 105 0 48779 48779
----------------------------------vi phys chn attr1----------------------------------------------------
pipe_id chn_id width height pixel_format dynamic_range video_format compress_mode mirror flip
0 0 1920 1080 yvu-sp420 sdr8 linear none N N
------------------------------------vi phys chn attr2-----------------------------------------------
pipe_id chn_id depth src_rate dst_rate vb_src vb_pool align
0 0 0 -1 -1 common -1 0
-------------------------------------vi phys chn motion_denoise status-----------------------------------------
pipe_id chn_id motion_denoise
0 0 Y
-------------------------------------vi phys chn dis config1--------------------------------------------
pipe_id chn_id mode motion_level pdt_type buf_num crop_ratio frame_rate camera_steady scale ref_num
0 0 4_DOF_GME Low RECORDER 0 0 0 N N 0
-------------------------------------vi phys chn dis config2--------------------------------------------
pipe_id chn_id crop_separate_enable crop_separate_horizontal crop_separate_vertical
0 0 N 0 0
--------------------------------vi phys chn dis attr1--------------------------------------------------
pipe_id chn_id enable gdc_bypass mov_sub roef timelag hor_limit ver_limit still_crop strength ref_slope
0 0 N N 0 0 0 0 0 N 0 0
----------------------------------vi phys chn dis attr2-------------------------------------------------
pipe_id chn_id dis_ldc_en focal_len_x focal_len_y coord_shift_x coord_shift_y max_du distortion_mode
0 0 N 0 0 0 0 0 STANDARD_PINHOLE
----------------------------------------vi phys chn dis attr3-----------------------------------------------------------
pipe_id chn_id rotation_compensation_en max_roll_delta final_roll
0 0 N 0 0
-----------------------------------vi phys chn dis param-------------------------------------------------
pipe_id chn_id large_motion_stable_coef low_freq_motion_preserve low_freq_motion_freq fpd_adaptive_en ref_mode
0 0 100 10 100 N REFRESH
-----------------------------------vi phys chn dis wdr_attr----------------------------------------------
pipe_id chn_id match_frame
0 0 0
-----------------------------------vi chn low delay attr------------------------------------------------
pipe_id chn_id enable line_cnt one_buf
0 0 N 0 N
------------------------------------vi chn crop info-----------------------------------------------------
pipe_id chn_id crop_en coord x y width height trim_x trim_y trim_width trim_height
0 0 N ABS 0 0 0 0
------------------------------------vi chn status--------------------------------------------------------
pipe_id chn_id enable width height send_cnt vb_fail_cnt lost_frame_cnt frame_rate
0 0 Y 1920 1080 104 0 0 21
-------------------------------------vi chn out frame info-----------------------------------------------
pipe_id chn_id width height compress_mode low_delay_frame delay
0 0 1920 1080 none N 447876
----------------------------------vi interrupt cost time statistics--------------------------------------
isp_time isp_max_time vicap_time vicap_max_time viproc_time viproc_max_time total_time int_time_per_sec load_ratio_0
5048 6526 9241 12851 12318 12820 21559 511874 30%
【Hi3516CV610调试信息】
[VI] Version: [HI3516CV610_MPP_V1.0.0.0 B010 Release], Build Time[Jan 25 2024, 09:25:20]
---------------------------------vi module param--------------------------------------------
max_out_width max_out_height detect_err_frame drop_err_frame
4096 4096 0 0
------------------------------vi vpss mode--------------------------------------------------
pipe_id vi_vpss_mode vi_aiisp_mode
0 vi_offline_vpss_offline default
1 vi_offline_vpss_offline default
2 vi_offline_vpss_offline default
3 vi_offline_vpss_offline default
----------------------------vi dev attr1----------------------------------------------------
dev_id dev_status intf_mode work_mode comp_mask0 comp_mask1 scan_mode
0 enable mipi 1mux fff00000 0 progressive
-----------------------------vi dev attr2---------------------------------------------------
dev_id data_seq data_type data_reverse width height data_rate irq_affinity
0 yvyu raw N 1920 1080 x1 0
------------------------------vi dev detect info--------------------------------------------
dev_id valid_width valid_height em_data_size total_width vfb_height vbb_height
0 0 0 0 0 0 0
-------------------------------vi bind attr-------------------------------------------------
dev_id pipe_num pipe_id
0 1 0
-------------------------------vi wdr fusion grp attr---------------------------------------
grp_id wdr_mode cache_line pipe_num pipe_id pipe_reverse
0 none 88 1 0 N
-------------------------------vi pipe attr1------------------------------------------------
pipe_id bypass_mode isp_bypass width height pixel_format compress_mode
0 bypass_none N 1920 1080 raw12 line
-------------------------------vi pipe attr2-------------------------------------------------
pipe_id bit_align_mode src_rate dst_rate frame_source vc_num vb_src vb_pool
0 high -1 -1 src_fe 0 common -1
------------------------------vi pipe param------------------------------------------------
pipe_id discard_pro_pic_en out_mode data_rate yuv_skip_en signed_bit_extend_en bnr_info_en nr_effect_mode
0 N norm x1 Y N N advance
----------------------------------------vi pipe0 online clock info------------------------------------------------------
pipe_id pixel_rate effect_clock
0 144000000 148500000
-------------------------------vi pipe bnr buf num--------------------------------------------
pipe_id bnr_buf_num
0 2
------------------------------vi pipe post crop attr------------------------------------------
pipe_id enable rect_x rect_y rect_width rect_height
0 N 0 0 0 0
-------------------------------vi pipe 3dnr attr---------------------------------------------
pipe_id enable nr_type compress_mode nr_motion_mode
0 N NORM none NORM
----------------------------------------vi pipe0 3dnr param-------------------------------------------------------------
pipe version opt_mode iso ref nry1_en nry2_en nry3_en nry4_en nrc0_mode nrc_en gamma_en ca_en
0 VER_2 MANUAL 0 1 1 1 1 1 0 1 0 0
pretfs premath premathd premabw pretdz
14 104 52 2 32
sf1_1 sf1_2 sf1_3 sf1_4
120_128 255_128 20_128 128_ 128
sf2_1 sf2_2 sf2_3 sf2_4
120_ 0_ 80 255_ 0_128 20_ 0_128 128_ 128
sf3_2 sf3_3 sf3_4
20_20 20_20 128_ 128
sf4_1 sf4_2 sf4_3 sf4_4
100_ 0_128 255_ 0_128_20_20 40_ 0_128_20_20 128_ 128
sf5_2 shtf_4
50 128_128
sf6_1 sf6_2 sf6_3 shtb_4
2_4_ 0 5_3 5_0 100_100
sf7_2 sf7_3 sf7_4
5_4 4_3 0_0
sf8_2 sf8_3 sf8_4
5_4 4_3 0_0
sfn_1 sfn_2 sfn_3 sfn_4
2_2_2_2 4_4_4_4 8_8_8_8 2_2_2_2
2_2_2_2 3_3_3_4 3_3_3_4 2_2_2_2
sth_1 sth_2 sth_3 sth_4
0_100_180 100_ 80_100 60_100_100 0_ 0_100
0_100_100 80_ 50_ 40 50_ 50_ 35 200_100_ 40
tss_1 tss_2
2_ 2_ 2 2_ 2_ 2
tfs_1 tfs_2
6_12_12 2_ 2_ 2
math_1 math_2
0_ 0 100_100
nctfs sfc tfc trc presfs ncsfs1 sfs2c sfs2c_f sfs2f_b sfs2f_f
12 80 20 100 16 10 16 16 16 16
--------------------------vi pipe frame dump attr-------------------------------------------------
pipe_id enable depth
0 N 0
-----------------------------vi pipe low delay attr----------------------------------------------
pipe_id enable line_cnt one_buf one_buf_max_line
0 N 0 N 0
-----------------------------vi pipe frame interrupt attr-----------------------------------------
pipe_id interrupt_type early_line
0 start 0
------------------------------vi pipe user pic attr------------------------------------------------
pipe_id enable width height stride pixel_format pool_id phy_addr
0 N 0 0 0 n/a 0 0
----------------------------------------vi pipe wrap status------------------------------------------
pipe_id wrap_en buf_line pts_gap max_gap0 max_gap1 valid_line wrap_err pre_err
0 Y 760 0 0 0 0 0 0
----------------------------------------vi pipe status----------------------------------------------
pipe_id enable width height int_cnt send_cnt lost_cnt vb_fail_cnt frame_rate
0 Y 1920 1080 0 0 0 0 0
----------------------------------------vi pipe offline task statistics------------------------------
pipe_id receive_pic_cnt busy_num task_submit_cnt task_fail_cnt task_cost_time max_cost_time
0 0 0 0 0 0 0
----------------------------------------vi phys chn attr1--------------------------------------
pipe_id chn_id width height pixel_format dynamic_range video_format compress_mode mirror flip
0 0 1920 1080 yvu-sp420 sdr8 linear none N N
----------------------------------------vi phys chn attr2--------------------------------------------
pipe_id chn_id depth src_rate dst_rate vb_src vb_pool align
0 0 0 -1 -1 common -1 0
----------------------------------------vi ext chn attr1----------------------------------------------
pipe_id chn_id bind_chn src_type width height pixel_format dynamic_range video_format compress_mode
----------------------------------------vi phys chn attr2---------------------------------------------------------------
pipe_id chn_id depth src_rate dst_rate vb_src vb_pool align buf_share_en
0 0 0 -1 -1 common -1 0 N
----------------------------------------vi phys chn rotation attr-------------------------------------------------------
pipe_id chn_id rotation_type enable rotation
0 0 FIXED Y 90
----------------------------------------vi phys chn ldc attr------------------------------------------------------------
pipe_id chn_id ldc_version enable view_type x_offset y_offsetdist_ratio min_ratio
0 0 LDC_V3 Y ALL 0 0 150 100
----------------------------------------vi chn low delay attr--------------------------------------------
pipe_id chn_id enable line_cnt one_buf
0 0 N 0 N
----------------------------------------vi chn crop info---------------------------------------------------
pipe_id chn_id crop_en coord x y width height trim_x trim_y trim_width trim_height
0 0 N ABS 0 0 0 0
----------------------------------------vi chn status-----------------------------------------------
pipe_id chn_id enable width height send_cnt vb_fail_cnt lost_frame_cnt frame_rate
0 0 Y 0 0 0 0 0 0
----------------------------------------vi chn out frame info--------------------------------------------
pipe_id chn_id width height compress_mode low_delay_frame delay
0 0 0 0 none N 0
----------------------------------------vi interrupt cost time statistics---------------------------------
isp_time isp_max_time vicap_time vicap_max_time viproc_time viproc_max_time int_time_per_sec load_ratio_0
0 0 0 0 0 0 0 NA
【调试信息分析】
记录当前视频输入设备及通道的属性配置以及状态信息。
【参数说明】
VPSS
【调试信息】
~ # cat /proc/umap/vpss
[VPSS] Version: [V1.0.0.0 B010 Release], Build Time[Sep 6 2019, 15:02:04]
-------------------------vpss module param-------------------------------
schedule_mode max_out_width max_out_height high_profile weight_threshold
NORMAL 8192 8192 Y 40
output_low_delay_support
N
-------------------------------vpss grp cfg1---------------------------------------------
grp is_rotation_input_support is_dis_gyro_support is_dis_ref_support is_motion_denoise_support
0 N N N N
-------------------------------vpss grp cfg2---------------------------------------------
grp max_split_num max_out_rgn_num is_save_out_lut out_lut_buf_size
0 3 1 N 0
-------------------------------vpss grp attr1--------------------------------------------
grp max_w max_h pixel_fmt src_rate dst_rate user_ctrl backup luma
0 1920 1080 YVU-SP420 -1 -1 Y N 0
--------------------------------vpss grp attr2----------------------------------------------
grp buf_share_en buf_share_chn dci ie dei_mode dei_width dei_height mcf_en act_buf_share
0 N 0 N N OFF 1920 1080 N N
--------------------------------vpss grp crop info------------------------------------------
grp crop_en coord x y width height trim_x trim_y trim_width trim_height
0 N ABS 0 0 0 0 0 0 1920 1080
---------------------------------vpss grp 3dnr attr-----------------------------------------
grp enable type ref_cmp motion_mode
0 N VIDEO N NORM
---------------------------vpss 3dnr param -----------------------------------------------
-----------------------------vpss grp0 3dnr param-----------------------------------------
grp version opt_mode iso ref1_en motion_denoise_valid
0 VER_1 MANUAL 110 1 Y
nry0_en nry1_en nry2_en nry3_en nrc0_en nrc1_en limit_range_en
0 1 1 1 1 1 0
sfs2_1 sfs2_2 sfs2_3 sfc sfs2_c
0 30 0 10 10
sfs4_1 sfs4_2 sfs4_3 trc
0 30 0 20
tfs0_1 tfs0_2
0 12
tfs1_1 tfs1_2 adv_math
0 12 0
sfn_1 sfn_2 sfn_3
0_2_4_0 4_2_4_0 0_2_4_0
sfn_4
0_2_4_0
math0_1 math0_2
200 400
math1_1 math1_2
800 800
--------------------------------frame interrupt attr--------------------------------------------
grp int_type early_line
0 - 0
-----------------------------vpss grp svc param--------------------------------------------
grp enable svc_chn svc_interval
0 N 0 1
-------------------------------vpss grp gdc param------------------------------------------------
grp in_width in_height lut_cell_size
0 1920 1080 16
-----------------------------vpss grp spread attr------------------------------------------
grp enable coef
------------------------------vpss grp ldc v1 attr---------------------------------------------
grp enable aspect x_ratio y_ratio xy_ratio center_x_offset center_y_offset distortion_ratio
------------------------------vpss grp ldc v2 attr-----------------------------------------------
grp enable aspect x_ratio y_ratio xy_ratio len_x len_y shift_x shift_y coef_intp_ratio
0 Y N 100 100 100 102591 102445 97936 56228 32768
src_calibration_ratio 0-8:
100000 -30202 9908 -1553 0 0 0 0 3200000
src_calibration_ratio_next 0-8:
100000 0 0 0 0 0 0 0 3200000
-------------------------------vpss grp rotation attr---------------------------------------------
grp enable rotation_type view_type angle x_offset y_offset width height
---------------------------------vpss grp fisheye attr---------------------------------------------
grp enable mount_mode rgn_num bg_color lmf_en hor_offset ver_offset trapezoid_coef fan_strength
-------------------------------vpss grp fisheye rgn attr--------------------------------------------
grp rgn_index view_mode in_radius out_radius pan tilt hor_zoom ver_zoom out_x out_y out_w out_h
------------------------------vpss grp pmf attr-------------------------------------------------------
grp enable width height pmf_coef
----------------------------------------vpss grp zoom in window attr-----------------------------------
grp enable mode x y width height trim_x trim_y trim_width trim_height valid
----------------------------------vpss grp fov attr----------------------------------------------------
grp enable fov_coef
------------------------------------vpss grp lut attr--------------------------------------------------
grp pre_lut_en post_lut_en lut_mode ratio
------------------------------------vpss grp lut--------------------------------------------------------
grp name in_width in_height out_width out_height cell_size phys_addr
----------------------------------vpss grp zme attr-----------------------------------------------------
grp width height
0 0 0
-----------------------------------vpss grp stitch attr-------------------------------------------------
grp enable pipe_num sync_en stitch_mode correction_mode
--------------------------------vpss grp stitch correction cylindrical attr-----------------------------
grp pipe pmf_enable dst_width dst_height x_offset y_offset ratio pmf_coef
-------------------------------vpss grp stitch correction lut attr------------------------------------
grp pipe in_width in_height out_width out_height cell_size phys_addr
-------------------------------vpss grp stitch luma sync status---------------------------------------
grp sync_en milli_sec isp_pipe smooth_strength shading_adjust_thr real_sync_en last_sync_interval
----------------------------------vpss grp stitch blend param------------------------------------------
grp buf_num position[0] range[0] position[1] range[1] position[2] range[2]
--------------------------------vpss chn crop info------------------------------------------------------
grp chn crop_en coord x y width height trim_x trim_y trim_width trim_height
0 0 N ABS 0 0 0 0
0 1 N ABS 0 0 0 0
0 2 N ABS 0 0 0 0
0 3 N ABS 0 0 0 0
0 31 N ABS 0 0 0 0
-------------------------------vpss chn cfg----------------------------------------
grp chn scale_ex_support chn_proc_ex_support
0 0 Y Y
0 1 Y Y
-----------------------------------vpss chn attr1----------------------------------------------------
grp chn enable mode width height align mirror flip src_rate dst_rate depth vb_src pool_id
0 0 Y USER 1920 1080 32 N N -1 -1 0 private 8
0 1 Y USER 1280 720 32 N N -1 -1 0 common -
0 2 Y USER 720 576 32 N N -1 -1 0 common -
0 3 Y USER 720 576 32 N N -1 -1 0 common -
0 31 Y USER 1920 1080 0 N N -1 -1 0 private 7
-------------------------------vpss chn attr2-------------------------------------------------------
grp chn aspect video_x video_y video_w video_h bg_color border left_w right_w top_w bottom_w bd_color
0 0 NONE 0 0 1920 1080 0xff N 0 0 0 0 0x0
0 1 NONE 0 0 1280 720 0xff N 0 0 0 0 0x0
0 2 NONE 0 0 720 576 0xff N 0 0 0 0 0x0
0 3 NONE 0 0 720 576 0xff N 0 0 0 0 0x0
0 31 NONE 0 0 1920 1080 0xff N 0 0 0 0 0x0
---------------------------------vpss chn attr3------------------------------------------------------
grp chn sharpen sp_strength quick_send scale_type
0 0 N 0 N NORMAL
0 1 N 0 N NORMAL
0 2 N 0 N NORMAL
0 3 N 0 N NORMAL
0 31 N 0 N NORMAL
-----------------------------vpss chn wrap attr--------------------------------------------------
grp chn enable buf_line buf_size vb_size pool_id phy_addr
0 0 Y 128 368640 368640 2 0x4fb34000
1 0 Y 128 368640 368640 2 0x4fb34000
-----------------------------vpss chn fmu info----------------------------------------------------
grp chn fmu_mode
0 0 wrap
0 1 whole
0 2 off
0 3 off
0 31 direct
----------------------------------vpss ext chn attr1--------------------------------------------------
grp ext_chn enable src_chn width height src_rate dst_rate depth align src_type vb_src pool_id
---------------------------------vpss ext chn attr2---------------------------------------------------
grp ext_chn scale_type
-------------------------------vpss chn low delay attr--------------------------------------------
grp chn enable line_cnt one_buf_en one_buf_addr act_low_delay_en
-------------------------------vpss chn ldc v3 attr------------------------------------------------
grp chn enable view_type center_x_offset center_y_offset distortion_ratio min_ratio
0 0 Y ALL 0 0 100 0
---------------------------------vpss rgn info-----------------------------------------------------
grp cover mosaic corner overlay position
0 0 0 0 0 cur
-----------------------------------vpss grp stitch pipe status------------------------------------
grp pipe recv_pic preview_lost free_num busy_num overlap_point0x overlap_point1x
---------------------------------vpss grp gdc status----------------------------------------------
grp enable dis_en out_width out_height
0 Y N 1920 1080
----------------------------------vpss chn proc ex----------------------------------------------
grp chn rotate cover_ex mosaic_ex line_ex corner_ex overlay_ex
0 0 N 0 0 0 0 0
0 1 N 0 0 0 0 0
0 2 N 0 0 0 0 0
0 3 N 0 0 0 0 0
-----------------------------------vpss node status---------------------------------------
grp free_num busy_num delay_num backup cur
0 9 0 0 0 0
-----------------------------vpss grp work status----------------------------------------
grp recv_pic preview_lost new_do old_do new_undo old_undo start_fail start
0 23 0 23 0 0 0 0 Y
cost_time max_cost_time vpss
65122 65894 0
-----------------------------vpss grp video frame info-----------------------------------
grp width height pixel_fmt video_format dynamic_range cmp_mode recv_fmu first_pic_pts cur_pic_pts
0 1920 1080 YVU-SP420 TILE_32x4 SDR8 TILE wrap 0 0
------------------------------vpss chn output status----------------------------------------
grp chn enable width height pixel_fmt video_format dynamic_range cmp_mode send_ok frame_rate proc_time
0 0 Y 1920 1080 YVU-SP420 LINEAR SDR8 NONE 23 5 62661
0 1 Y 1280 720 YVU-SP420 LINEAR SDR8 NONE 23 5 31879
0 2 Y 720 576 YVU-SP420 LINEAR SDR8 NONE 23 5 62702
0 3 Y 720 576 YVU-SP420 LINEAR SDR8 NONE 23 5 64554
0 31 Y 1920 1080 YVU-SP420 LINEAR SDR8 NONE 23 5 62661
--------------------------------vpss drv work status-------------------------------------------
link_int bus_err dcmp_err frame_err malloc_err free_err start_suc0 start_err0 node_err0
23 0 0 0 0 0 23 0 0
----------------------------vpss hardware node queue------------------------------------------
free_num wait_num proc_num sel00 busy000 busy001 sel01 busy010 busy011 load_ratio_0
34 0 0 1 0 0 0 0 0 15%
----------------------------vpss int work status-----------------------------------------------
cnt_per_sec max_cnt_per_sec cost_time max_cost_time cost_time_per_sec max_cost_time_per_sec
10 10 3696 8958 60095 60095
【调试信息分析】
记录当前VPSS属性配置以及状态信息。
【参数说明】
须知:
- VPSS通道输出分辨率指的是缩放模块的输出分辨率。
- Hi3519DV500/Hi3516DV500/Hi3511CV100不支持LDCI,LDCI的proc信息(vpss ldci attr)开启LDCI功能时才会显示具体的属性值,否则只显示属性字段。
- Hi3519DV500/Hi3511CV100的VPSS IP个数是1,vpss hardware node queue和vpss int work status中只有VPSS0相关的信息。
- Hi3519DV500无Proc队列,Proc队列的节点数是0。
- Hi3519DV500未开启OT_LDC_V2功能时proc信息不显示src_calibration_ratio和src_calibration_ratio_next。
- Hi3519DV500/Hi3516DV500/Hi3511CV100不支持schedule quick模式,proc信息固定显示为NORMAL。
- vpss chn output status中的proc_time仅对物理通道与 direct通道生效
- Hi3519DV500 VPSS开启mcf_en时,通道处理比较复杂,部分通道处理相关proc信息未显示。
- grp work status中cost_time和max_cost_time仅离线模式生效;对于Hi3519DV500,开启mcf_en的组cost_time和max_cost_time无效。
- Hi3519DV500 3DNR参数中sfn_x四个参数使用下划线隔开。
- buffer share、低延时的使能状态,用户设置的和实际生效的使用2个参数分别显示,互斥功能检查按用户设置的状态做检查。
- 对物理通道与direct通道的vb_src于pool_id来说,如果通道模式是wrap或direct,使用的是内部申请的私有vb,与接口设置无关。
- vpss rgn info中,Hi3519DV500/Hi3511CV100支持rgn打在某个通道上,position为对应的通道信息。
- vpss rgn info中的区域个数为实际打到图像上的区域个数。
- vpss chn proc ex中的区域个数为attach的个数,具体实际打到图像上的区域个数,由后处理流程决定。
- 全在线模式时,vpss hardware node queue中的信息无效。
- Hi3519DV500/Hi3516DV500中,load_ratio_xx包含GDC的负载,即同时使用GDC与VPSS时,VPSS的负载会增加。
VPP
【调试信息】
【调试信息分析】
记录当前VPP构建信息。
【参数说明】
呈现VPP模块编译时间。
AI
【调试信息】
# cat /proc/umap/ai
[AI] Version: [V1.0.0.0 B010 Release], Build Time: [Sep 7 2019, 16:16:38]
----------------------------------------ai dev attr----------------------
ai_dev i2s_type work_mode sample_rate bit_width chn_cnt clk_share snd_mode point_num expand_flag frame_num
0 inner i2s_mas 16kHz 16bit 1 1 mono 480 0 30
----------------------------------------ai dev status0-------------------
ai_dev interrupt_cnt fifo_cnt buf_full_cnt frame_time min_frame_time max_frame_time trans_len isr_time
0 0 0 0 0 0 0 960 0
----------------------------------------ai dev status1-------------------
ai_dev min_isr_time max_isr_time cb_phys cb_size read_offset write_offset
0 0 0 69483000 2944 0 0
----------------------------------------ai dev extend status-------------
ai_dev track_mode mute volume dmic_gain
0 0 N 0 0
----------------------------------------ai chn status--------------------
ai_dev ai_chn state mode buf_full depth data0 data1 user_get user_release aie_get aie_release
0 0 enable normal 0 30 0 0 0 0 0 0
----------------------------------------ai chn resample status-----------
ai_dev ai_chn state resample_open point_num in_rate out_rate
0 0 enable N 0 (null) (null)
----------------------------------------ai chn vqe status0---------------
ai_dev ai_chn state vqe_open work_state rate point_num write_file vqe_type anr agc aec eq hpf rnr drc
0 0 enable Y comm 16kHz 480 N talk Y Y Y N Y N N
----------------------------------------ai chn vqe status1---------------
ai_dev ai_chn state peq hdr talkv2_pnr talkv2_nr talkv2_agc talkv2_eq
0 0 enable N N N N N N
----------------------------------------ai chn vqe status2---------------
ai_dev ai_chn state agc_open usr_mode noise_suppress_switch adjust_speed improve_snr max_gain noise_floor
0 0 enable Y N 0 0 0 0 0
----------------------------------------ai chn vqe status3---------------
ai_dev ai_chn state agc_open usr_mode output_mode target_level use_hpf
0 0 enable Y N 0 0 0
----------------------------------------ai chn vqe status4----------------
ai_dev ai_chn state eq_open 100 200 250 350 500 800 1.2k 2.5k 4k 8k
0 0 enable Y 0 0 0 0 0 0 0 0 0 0
----------------------------------------ai chn vqe status5---------------
ai_dev ai_chn state hpf_open usr_mode hpf_freq
0 0 enable Y Y 150
----------------------------------------ai chn vqe status6----------------
ai_dev ai_chn state rnr_open usr_mode max_nr_level noise_threshold nr_mode
0 0 enable Y N 0 0 0
----------------------------------------ai chn vqe status7----------------
ai_dev ai_chn state drc_open usr_mode attack_time release_time
0 0 enable Y N 0 0
----------------------------------------ai chn vqe status8----------------
ai_dev ai_chn state drc_open usr_mode old_level0 old_level1 old_level2 old_level3 old_level4
0 0 enable Y N 0 0 0 0 0
----------------------------------------ai chn vqe status9----------------
ai_dev ai_chn state drc_open usr_mode new_level0 new_level1 new_level2 new_level3 new_level4
0 0 enable Y N 0 0 0 0 0
----------------------------------------ai chn vqe status10---------------
ai_dev ai_chn state hdr_open usr_mode max_gain min_gain mic_gain_step mic_gain callback
0 0 enable Y N 0 0 0 0 0
----------------------------------------ai chn vqe status11---------------
ai_dev ai_chn state anr_open usr_mode nr_intensity noise_db_threshold music_probe_switch
0 0 enable Y N 0 0 0
----------------------------------------ai chn vqe status12---------------
ai_dev ai_chn state aec_open usr_mode aec_ao aec_fail cozy_noisy_mode double_talk_threshold
0 0 enable Y N ( 0, 0) 0 close 0
----------------------------------------ai chn vqe status13---------------
ai_dev ai_chn state aec_open usr_mode near_all_pass_energy near_clean_sup_energy
0 0 enable Y N 0 0
----------------------------------------ai chn vqe status14---------------
ai_dev ai_chn state aec_open usr_mode voice_protect_freq_l voice_protect_freq_l1
0 0 enable Y N 0 0
----------------------------------------ai chn vqe status15---------------
ai_dev ai_chn state aec_open usr_mode echo_band_low echo_band_high echo_band_low2 echo_band_high2
0 0 enable Y N 0 0 0 0
----------------------------------------ai chn vqe status16---------------
ai_dev ai_chn state aec_open usr_mode erl_band[0] erl_band[1] erl_band[2] erl_band[3] erl_band[4] erl_band[5]
0 0 enable Y N 0 0 0 0 0 0
----------------------------------------ai chn vqe status17--------------
ai_dev ai_chn state aec_open usr_mode erl[0] erl[1] erl[2] erl[3] erl[4] erl[5] erl[6]
0 0 enable Y N 0 0 0 0 0 0 0
----------------------------------------ai chn vqe status18-------------------------------------------------
ai_dev ai_chn state pnr_open usr_mode min_gain_limit snr_prior_limit ht_threshold hs_threshold alpha_ph
0 0 enable Y N 0 0 0 0 0
0 1 enable N N 0 0 0 0 0
----------------------------------------ai chn vqe status19-------------------------------------------------
ai_dev ai_chn state pnr_open usr_mode alpha_psd prior_snr_fixed cep_threshold cep_amp
0 0 enable Y N 0 0 0 0
0 1 enable N N 0 0 0 0
----------------------------------------ai chn vqe status20-------------------------------------------------
ai_dev ai_chn state pnr_open usr_mode low_freq_protect speech_protect_threshold hem_enable tcs_enable
0 0 enable Y N 0 0 0 0
0 1 enable N N 0 0 0 0
----------------------------------------ai chn vqe status21-------------------------------------------------
ai_dev ai_chn state nr_open usr_mode min_gain_limit snr_prior_limit ht_threshold hs_threshold prior_snr
0 0 enable Y N 0 0 0 0 0
0 1 enable N N 0 0 0 0 0
----------------------------------------ai chn vqe status22-------------------------------------------------
ai_dev ai_chn state nr_open usr_mode snr_smooth_factor speech_prob_smooth_factor noise_pwr_smooth_factor
0 0 enable Y N 0 0 0
0 1 enable N N 0 0 0
----------------------------------------ai chn vqe status23-------------------------------------------------
ai_dev ai_chn state nr_open usr_mode low_freq_suppress_enable low_freq_gain_suppress env_mode cep_alpha
0 0 enable Y N 0 0 0 0
0 1 enable N N 0 0 0 0
----------------------------------------ai chn vqe status24-------------------------------------------------
ai_dev ai_chn state nr_open usr_mode cep_threshold cep_amp gain_sm_mode gain_sm_alpha1 gain_sm_alpha2
0 0 enable Y N 0 0 0 0 0
0 1 enable N N 0 0 0 0 0
----------------------------------------ai chn vqe status25-------------------------------------------------
ai_dev ai_chn state nr_open usr_mode gain_sm_alpha3
0 0 enable Y N 0
0 1 enable N N 0
----------------------------------------ai chn vqe status26-------------------------------------------------
ai_dev ai_chn state agc_v2_open usr_mode target_level max_gain min_gain up_gradient_ratio
0 0 enable Y N 0 0 0 0
0 1 enable N N 0 0 0 0
----------------------------------------ai chn vqe status27-------------------------------------------------
ai_dev ai_chn state agc_v2_open usr_mode down_gradient_ratio decay vad_threshold vad_ctrl
0 0 enable Y N 0 0 0 0
0 1 enable N N 0 0 0 0
----------------------------------------ai chn vqe status28-------------------------------------------------
ai_dev ai_chn state eq_v2_open usr_mode 60 100 150 200 250 350 500 800 1200 1600
0 0 enable Y N 0 0 0 0 0 0 0 0 0 0
0 1 enable N N 0 0 0 0 0 0 0 0 0 0
----------------------------------------ai chn vqe status29-------------------------------------------------
ai_dev ai_chn state eq_v2_open usr_mode 2000 2400 2500 2800 3100 3400 3600 3800 3900 4000
0 0 enable Y N 0 0 0 0 0 0 0 0 0 0
0 1 enable N N 0 0 0 0 0 0 0 0 0 0
----------------------------------------ai chn vqe status30-------------------------------------------------
ai_dev ai_chn state eq_v2_open usr_mode 4500 5000 5500 6000 6500 7000 7300 7600 7800 8000
0 0 enable Y N 0 0 0 0 0 0 0 0 0 0
0 1 enable N N 0 0 0 0 0 0 0 0 0 0
----------------------------------------ai chn vqe status31-------------------------------------------------
ai_dev ai_chn state fmp_open usr_mode comfort_flag comfort_intensity
0 0 enable Y N 0 0
0 1 enable N N 0 0
----------------------------------------ai chn vqe status32-------------------------------------------------
ai_dev ai_chn state aec_v2_open usr_mode pure_delay switch_nlp band1 band2 band3 band4 gain_lower_limit1
0 0 enable Y N 0 0 0 0 0 0 0
0 1 enable N N 0 0 0 0 0 0 0
----------------------------------------ai chn vqe status33-------------------------------------------------
ai_dev ai_chn state aec_v2_open usr_mode gain_lower_limit2 gain_lower_limit3 gain_lower_limit4 gain_lower_limit5
0 0 enable Y N 0 0 0 0
0 1 enable N N 0 0 0 0
----------------------------------------ai chn vqe status34-------------------------------------------------
ai_dev ai_chn state aec_v2_open usr_mode ols_on speaker_nl_on block_num echo_boost1 echo_boost2 echo_boost3
0 0 enable Y N 0 0 0 0 0 0
0 1 enable N N 0 0 0 0 0 0
----------------------------------------ai chn vqe status35-------------------------------------------------
ai_dev ai_chn state aec_v2_open usr_mode echo_boost4 echo_boost5
0 0 enable Y N 0 0
0 1 enable N N 0 0
----------------------------------------ai chn vqe status36-------------------------------------------------
ai_dev ai_chn state hs_open usr_mode hold_time min_gain threshold smooth_time freq_move
0 0 enable Y N 0 0 0 0 0
0 1 enable N N 0 0 0 0 0
----------------------------------------ai chn vqe status37-------------------------------------------------
ai_dev ai_chn state drc_open limiter_open dereverb_open wnr_open
0 0 enable Y Y Y Y
0 1 enable N N N N
【调试信息分析】
- 记录当前音频输入设备及通道的属性配置以及状态信息。
- 在实际使用中,VQE状态信息只会打印出使能后的功能模块信息。
【参数说明】
proc 信息中的编号在实际信息中可能与文中描述有差别,如PNR在实际显示的proc 中可能不是AI CHN VQE STATUS18,这与实际开启的VQE功能有关系。
AO
【调试信息】
# cat /proc/umap/ao
[AO] Version: [V1.0.0.0 B010 Release], Build Time: [Sep 7 2019, 16:16:34]
----------------------------------------ao dev attr----------------------
ao_dev i2s_type work_mode sample_rate bit_width chn_cnt clk_share snd_mode point_num expand_flag frame_num
0 inner i2s_mas 16kHz 16bit 1 1 mono 480 0 30
----------------------------------------ao dev status0-------------------
ao_dev interrupt_cnt fifo_cnt buf_empty_cnt frame_time min_frame_time max_frame_time trans_len isr_time
0 0 0 0 0 0 0 960 0
----------------------------------------ao dev status1-------------------
ao_dev min_isr_time max_isr_time cb_phys cb_size read_offset write_offset
0 0 0 694b3000 2944 0 780
----------------------------------------ao dev extend status-------------
ao_dev track_mode mute volume
0 0 N 0
----------------------------------------ao chn status--------------------
ao_dev ao_chn state read write buf_empty data0 data1 resample_open point_num in_rate out_rate
0 0 enable 0 0 0 0 0 N 0 (null) (null)
0 8 enable 0 0 0 0 0 N 0 (null) (null)
----------------------------------------ao chn vqe status0---------------
ao_dev ao_chn state vqe_open work_state rate point_num anr agc eq hpf write_file
0 0 enable N comm (null) 0 N N N N N
【调试信息说明】
记录当前AO属性配置以及状态信息。
【参数说明】
|
由此项可以计算出实际的音频采样率。例如当此项为40000us 左右、每帧采样点个数配置为320时,可以计算出每秒采样8000 点,即采样率为8kHz。 |
||
AENC
【调试信息】
# cat /proc/umap/aenc
[AENC] Version: [V1.0.0.0 B010 Release], Build Time[Sep 7 2019, 12:07:10]
--------------aenc chn attr-------------------------------------------
chn_id payload_type adpcm_type point_num buf_size g726_rate
0 lpcm NULL 480 30 NULL
1 lpcm NULL 480 30 NULL
------------------aenc chn status-------------------------------------
chn_id recv_frame ai_queue_lost enc_ok frame_err buf_full get_stream release_stream mute
0 0 0 0 0 0 0 0 n
1 0 0 0 0 0 0 0 n
【调试信息分析】
记录当前音频编码属性配置以及状态信息。
【参数说明】
ADEC
【调试信息】
# cat /proc/umap/adec
[ADEC] Version: [V1.0.0.0 B010 Release], Build Time[Sep 7 2019, 12:07:05]
--------------adec chn attr-------------------------------------------
chn_id payload_type adpcm_type buf_size g726_rate mode orig_send_cnt send_cnt get_cnt put_cnt
0 lpcm NULL 20 NULL packet 0 0 0 0
1 lpcm NULL 20 NULL packet 0 0 0 0
【调试信息分析】
记录当前音频解码属性配置以及状态信息。
【参数说明】
ACODEC
【调试信息】
~ # cat /proc/umap/acodec
[ACODEC] Version: [V1.0.0.0 B010 Release], Build Time[Sep 7 2019, 12:07:05]
--------------------------------acodec total status-------------------------------------------------
i2s1_fs :(null) |i2s1_width :16bit |mixer_left :in1_left |mixer_right :in1_right |
adc_clk :fall |dac_clk :fall |ana_mclk :fall |adc_hpf :y |
dac_deemph :none |init_mode :normal |power_state :up |tune_rate : 48000 |
--------------------------------acodec volume status-------------------------------------------------
gain_left :6 |gain_right :6 |boost_left :0 |boost_right :0 |
adc_left_volume :0 |adc_right_volume :0 |dac_left_volume :0 |dac_right_volume :0 |
mic_left_mute :n |mic_right_mute :n |dac_left_mute :n |dac_right_mute :n |
-----------------------------------acodec power status-----------------------------------------------
pd_linein_left : n | pd_linein_right : n | pd_adc_left : n | pd_adc_right : n |
pd_dac_left : n | pd_dac_right : n | : | : |
----------------------------------acodec track status--------------------------------------------------
adc_left_sel : left | adc_right_sel : right | dac_left_sel : left | dac_right_sel : right |
【调试信息分析】
记录当前acodec输入输出音量状态信息。
【参数说明】
AIO
【调试信息】
~
~ # cat /proc/umap/aio
[AIO] Version: [V1.0.0.0 B010 Release], Build Time[Jul 27 2026, 09:42:01]
----------------------------------------aio pll attr--------------------------------------------------------------------
pll_sel :base |pll_freq(KHz) :786432 | : | : |
----------------------------------------crg 0 attr---------------------------------------------------------------------
crg_en :y |rst_req :n |work_mode :master |mclk(Hz) :8134406 |
bclk_en :n |bclk(Hz) :0 |fsclk_en :n |fsclk(Hz) :0 |
----------------------------------------crg 1 attr---------------------------------------------------------------------
crg_en :y |rst_req :y |work_mode :master |mclk(Hz) :12288000 |
bclk_en :n |bclk(Hz) :0 |fsclk_en :n |fsclk(Hz) :0 |
----------------------------------------crg 8 attr---------------------------------------------------------------------
crg_en :y |rst_req :n |work_mode :master |mclk(Hz) :8134406 |
bclk_en :n |bclk(Hz) :0 |fsclk_en :n |fsclk(Hz) :0 |
----------------------------------------crg 9 attr---------------------------------------------------------------------
crg_en :y |rst_req :y |work_mode :master |mclk(Hz) :12288000 |
bclk_en :n |bclk(Hz) :0 |fsclk_en :n |fsclk(Hz) :0 |
【调试信息分析】
记录当前aio时钟状态信息。
【参数说明】
PM
【调试信息】
~ # cat /proc/umap/pm
[PM] Version: [HI3519DV500_MPP_V1.0.0.0 B010 Release], Build Time[Jul 5 2023, 10:58:34]
svb_version: 19D_PT
-------------------------compensation enable flag------------------------------------
core_tcomp_en: 1 cpu_tcomp_en: 1 npu_tcomp_en: 1
core_pacomp_en: 0 cpu_pacomp_en: 0 npu_pacomp_en: 0
-------------------------voltage compensation value---------------------------------
core_temp_comp: -1 cpu_temp_comp: -20 npu_temp_comp: 0
core_pa_comp: 0 cpu_pa_comp: 0 npu_pa_comp: 0
--------------------------current temperature and voltage---------------------------
cur_temp: 36 core_cur_volt: 921 cpu_cur_volt: 886 npu_cur_volt: 840
【调试信息分析】
记录PM模块svb版本信息、补偿使能标志信息、电压补偿值信息、当前温度及电压信息。
【参数说明】