Proc调试信息(13.1--13.15)¶
概述¶
调试信息采用了Linux下的proc文件系统,可实时反映当前系统的运行状态,所记录的信息可供问题定位及分析时使用。
【文件目录】
/proc/umap
【文件清单】
【信息查看方法】
在控制台上可以使用cat命令查看信息,例如cat /proc/umap/venc;也可以使用其他常用的文件操作命令,例如 cp /proc/umap/ ./ -rf,将所有umap下的proc文件拷贝到当前目录。
在应用程序中可以将上述文件当作普通只读文件进行读操作,例如fopen、fread等。
说明: 参数在描述时有以下2种情况需要注意:
取值为{0, 1}的参数,如未列出具体取值和含义的对应关系,则参数为1时表示肯定,为0时表示否定。
取值为{aaa, bbb, ccc}的参数,未列出具体取值和含义的对应关系,但可直接根据取值aaa、bbb或ccc判断参数含义。
SYS¶
【调试信息】
~ # cat /proc/umap/sys_user
[SYS] Version: [V1.0.0.0 B010 Release], Build Time[Sep 6 2019, 11:38:16]
----------------------------------------moudle status--------------------
status
run
----------------------------------------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模块的使用情况。
【参数说明】
|
||
第一级向第二级的发送数据计数(一般以帧为单位。VPSS到VO的发送计数始终为0,因其不在SYS中计数,需到各个模块proc信息里查看计数)。 |
||
VB¶
【调试信息】
~ # cat /proc/umap/vb_user
[VB] Version: [V1.0.0.0 B010 Release], Build Time[Sep 6 2019, 15:29:47]
----------------------------------------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 is_comm owner blk_sz blk_cnt free min_free
0 0x6941a000 0x0 1 -1 1399808 10 7 6
blk vi vo vgs venc vdec h265e h264e jpege jpegd vpss dis user pciv ai aenc rc vfmw gdc avs rect match mcf vda vpp uvc adapt 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 0 0 0 vpss 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 0 0 0 vpss 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 0 0 0 vpss 0
sum 0 2 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0
-------------------------------------------------------------------------
pool_id phys_addr virt_addr is_comm owner blk_sz blk_cnt free min_free
1 0x6a1e6000 0xffffff8010600000 1 4 670464 3 0 0
blk vi vo vgs venc vdec h265e h264e jpege jpegd vpss dis user pciv ai aenc rc vfmw gdc avs rect match mcf vda vpp uvc adapt 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 0 0 0 vpss 0
2 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 vpss 0
0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 vpss 0
sum 0 0 0 0 3 0 0 0 0 2 0 0 0 0 0 0 1 0 0 0 0 0 0
【调试信息分析】
记录当前VB模块的buffer使用情况。
【参数说明】
|
||
vi/vo/vgs/venc/vdec/h265e/h264e/jpege/jpegd /vpss/dis/user/pciv/ai/aenc/rc/vfmw/gdc/avs/ rect/match/mcf/vda/vpp/uvc/adapt |
下面对应的数字表示当前模块有多少个地方占用缓存池内的该缓存块。
|
|
LOG¶
【调试信息】
~ # cat /proc/umap/logmpp_user
----------------------------------------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
chnl : 3
vdec : 3
vpss : 3
venc : 3
h264e : 3
jpege : 3
h265e : 3
jpegd : 3
vo : 3
vi : 3
rc : 3
aio : 3
ai : 3
ao : 3
aenc : 3
adec : 3
vpu : 3
ive : 3
vfmw : 3
hdmi : 3
tde : 3
vgs : 3
svp_nnie : 3
svp_mau : 3
vda : 3
【调试信息分析】
记录当前各个模块的调试级别。
cat /proc/umap/logmpp用于获取内核态logmpp级别信息。
cat /proc/umap/logmpp_user用于获取用户态logmpp级别信息。
修改logmpp级别:
修改某个模块的调试等级使用echo命令,比如:echo "venc=4" > /proc/umap/logmpp(logmpp_user 用户态);
修改所有模块的调试等级使用:echo "all=4" > /proc/umap/logmpp(logmpp_user 用户态)。
查看logmpp:打开使用cat /dev/logmpp,退出输入Ctrl+c。
【参数说明】
vb /sys /region/chnl /vdec /vpss /venc /h264e /jpege /h265e /jpegd /vo /vi/rc/aio /ai /ao /aenc /adec /vpu/ive/vfmw /hdmi /tde /vgs /svp_nnie/svp_mau/vda |
||
MMZ¶
【调试信息】
~ # cat /proc/umap/media-mem
anony=1 mmz_allocator=ot mem_process_isolation=1
+---ZONE: PHYS(0x64000000, 0xBFFFFFFF), GFP=0, nBYTES=1507328KB, NAME="anonymous"
|-MMB: phys(0x64000000, 0x64010FFF), kvirt=0xFFFFFFC0112C0000, flags=0x1, kernel_only=1, share_all=0 pid[1356,-1,-1,-1,-1], length=68KB, name="mdc_log_buf"
|-MMB: phys(0x64011000, 0x64023FFF), kvirt=0xFFFFFFC011340000, flags=0x1, kernel_only=1, share_all=0 pid[1368,-1,-1,-1,-1], length=76KB, name="sys_scale_coef"
|-MMB: phys(0x64024000, 0x64024FFF), kvirt=0xFFFFFFC01001D000, flags=0x1, kernel_only=1, share_all=0 pid[1368,-1,-1,-1,-1], length=4KB, name="sys_dci_coef"
|-MMB: phys(0x64025000, 0x64084FFF), kvirt=0x0000000000000000, flags=0x0, kernel_only=1, share_all=0 pid[1376,-1,-1,-1,-1], length=384KB, name="tde_mem_pool_mmb"
|-MMB: phys(0x64085000, 0x6411AFFF), kvirt=0xFFFFFFC011600000, flags=0x1, kernel_only=1, share_all=0 pid[1388,-1,-1,-1,-1], length=600KB, name="vgs_node_buf"
|-MMB: phys(0x6411B000, 0x645F4FFF), kvirt=0xFFFFFFC015000000, flags=0x1, kernel_only=1, share_all=0 pid[1395,-1,-1,-1,-1], length=4968KB, name="gdc_node_buf"
|-MMB: phys(0x645F5000, 0x645F5FFF), kvirt=0xFFFFFFC01007D000, flags=0x1, kernel_only=1, share_all=0 pid[1395,-1,-1,-1,-1], length=4KB, name="gdc_int_pole_coef"
|-MMB: phys(0x645F6000, 0x64617FFF), kvirt=0xFFFFFFC011800000, flags=0x1, kernel_only=1, share_all=0 pid[1421,-1,-1,-1,-1], length=136KB, name="vo_coef_buf"
|-MMB: phys(0x64618000, 0x665BBFFF), kvirt=0x0000000000000000, flags=0x0, kernel_only=0, share_all=0 pid[1428,-1,-1,-1,-1], length=32400KB, name="gfbg_layer0"
|-MMB: phys(0x665BC000, 0x6758DFFF), kvirt=0x0000000000000000, flags=0x0, kernel_only=0, share_all=0 pid[1428,-1,-1,-1,-1], length=16200KB, name="gfbg_layer1"
|-MMB: phys(0x6758E000, 0x675CDFFF), kvirt=0x0000000000000000, flags=0x0, kernel_only=0, share_all=0 pid[1428,-1,-1,-1,-1], length=256KB, name="gfbg_layer2"
|-MMB: phys(0x675CE000, 0x679C2FFF), kvirt=0x0000000000000000, flags=0x0, kernel_only=0, share_all=0 pid[1428,-1,-1,-1,-1], length=4052KB, name="gfbg_layer3"
|-MMB: phys(0x679C3000, 0x67DB7FFF), kvirt=0x0000000000000000, flags=0x0, kernel_only=0, share_all=0 pid[1428,-1,-1,-1,-1], length=4052KB, name="gfbg_layer4"
|-MMB: phys(0x67DB8000, 0x67DC7FFF), kvirt=0xFFFFFFC0117E0000, flags=0x1, kernel_only=1, share_all=0 pid[1428,-1,-1,-1,-1], length=64KB, name="gfbg_coef"
|-MMB: phys(0x67DC8000, 0x67DC8FFF), kvirt=0xFFFFFFC010DCD000, flags=0x1, kernel_only=1, share_all=0 pid[1428,-1,-1,-1,-1], length=4KB, name="gfbg_clut_table_g3"
|-MMB: phys(0x67DC9000, 0x67DC9FFF), kvirt=0xFFFFFFC010DD5000, flags=0x1, kernel_only=1, share_all=0 pid[1428,-1,-1,-1,-1], length=4KB, name="gfbg_clut_table_g4"
|-MMB: phys(0x67DCA000, 0x67DD9FFF), kvirt=0x0000000000000000, flags=0x0, kernel_only=1, share_all=0 pid[1437,-1,-1,-1,-1], length=64KB, name="vedu_hal_0"
|-MMB: phys(0x67DDA000, 0x67DDAFFF), kvirt=0xFFFFFFC010F4D000, flags=0x1, kernel_only=1, share_all=0 pid[1459,-1,-1,-1,-1], length=4KB, name="vfmw_vdh_load"
|-MMB: phys(0x67DDB000, 0x67E0FFFF), kvirt=0xFFFFFFC011F00000, flags=0x1, kernel_only=1, share_all=0 pid[1483,-1,-1,-1,-1], length=212KB, name="ive_queue"
|-MMB: phys(0x67E10000, 0x67E10FFF), kvirt=0xFFFFFFC010F55000, flags=0x3, kernel_only=1, share_all=0 pid[1483,-1,-1,-1,-1], length=4KB, name="ive_tmp_node"
|-MMB: phys(0x67E11000, 0x67E2BFFF), kvirt=0xFFFFFFC011EA0000, flags=0x1, kernel_only=0, share_all=0 pid[1483,-1,-1,-1,-1], length=108KB, name="kcf_queue"
|-MMB: phys(0x67E2C000, 0x67E45FFF), kvirt=0xFFFFFFC011F40000, flags=0x3, kernel_only=1, share_all=0 pid[1493,-1,-1,-1,-1], length=104KB, name="svp_npu_node_mem"
|-MMB: phys(0x67E46000, 0x67E6DFFF), kvirt=0xFFFFFFC011F80000, flags=0x1, kernel_only=1, share_all=0 pid[1500,-1,-1,-1,-1], length=160KB, name="svp_mau_queue"
---MMZ_USE_INFO:
total size=1507328KB(1472MB),used=63928KB(62MB + 440KB),remain=1443400KB(1409MB + 584KB),zone_number=1,block_number=23
【调试信息分析】
记录当前MMZ模块的状态调试信息。
【参数说明】
anony、mmz_allocator和mem_process_isolation参数仅在Linux系统下显示。
MMB中的share_all和pid信息,仅在Linux系统下有效。
CHNL¶
【调试信息】
cat /proc/umap/chnl
[CHNL] Version: [V1.0.0.0 B010 Release], Build Time[Aug 31 2019, 15:10:06]
total chnl scheduler count: 4
---------------------scheduler 0 info----------------------------------
scheduler_id vpu_num
0 1
----------------------------------------scheduler:1--vpu info----------------------------------------------------------
vpu_id name state int_cnt timer_cnt vpu_cnt err_cnt query_cnt start_ok start_num config_ok reset
0 JPGE_0 pause 1046 1046 0 0 0 0 0 0 0
------------------- scheduler:0--chnl state-----------------------------
chn_id priority type task_num state query_cnt start_ok start_num interrupt_num
0 0 H265E 1 RUN 2172 393 0 392
1 0 H264E 0 IDLE 2169 386 0 386
---------------------- scheduler:0--chnl current run state--------------
vpu_id vpu_name chn_id type
2 VEDU_2 0 H265E
【调试信息分析】
记录当前通道调度器模块的状态调试信息。
【参数说明】
VGS¶
【调试信息】
~ # cat /proc/umap/vgs
[VGS] Version: [V1.0.0.0 B010 Release], Build Time[Sep 6 2019, 15:02:04]
----------------------------------------module param-------------------------------------------------------
g_max_job_num g_max_task_num g_max_node_num
128 200 200
----------------------------------------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 rotate bd bypass corner fpd gme stitch low_delay
0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0
----------------------------------------recent job info3-----------------------------------------------------
seq_no video_format pixel_format cmp_mode mirror flip
0 LINEAR->LINEAR YUV400->YUV400 NONE->NONE 0 0
1 LINEAR->LINEAR YVU420->YVU420 NONE->NONE 0 0
2 LINEAR->LINEAR YVU420->YVU420 NONE->NONE 0 0
----------------------------------------max waste time job info3------------------------------------------
seq_no video_format pixel_format cmp_mode mirror flip
0 LINEAR->LINEAR YVU420->YVU420 NONE->NONE 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 load_ratio_1
200 1 195 4 0 0 51% 0%
----------------------------------------vgs drv work status--------------------------------------------------
link_int err_int start_suc0 start_err0 node_err0 start_suc1 start_err1 node_err1
564 0 500 0 0 64 0 0
【调试信息分析】
记录VGS模块最近完成的若干任务、最近耗时最大的任务、历史累计信息及中断相关信息。
【参数说明】
H265E¶
【调试信息】
~ # cat /proc/umap/h265e
[H265E] Version: [V1.0.0.0 B010 Release], Build Time[Aug 31 2019, 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 by_frame gop_mode max_stream_cnt
0 1280 720 1280 720 mp n 691200 y normal_p 200
----------------------picture info---------------------------------------
id enc_start enc_succeed lost discard p_skip recode release_stream unread_stream
0 214 214 0 0 0 0 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 frame_buf_ratio force_i_blk_cnt
0 y 1 0 1 2 y 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 refresh_mode refresh_num qp_idr
0 n n/a n/a n/a n 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----------------------------
id fg_skip_coef bg_skip_coef scene_mode param_set_id
0 8 8 scene_0 0
--------------------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
0 n 8 8 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
0 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 n 8 8 1 0 51 n 1 0 51
【调试信息分析】
在进行多路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 128 n
----------------venc chn attr 1--------------------------------------
id width height type by_frame sequence left_bytes left_frm cur_packs gop_mode priority
0 1280 720 265 y 103 0 0 1 normal_p 0
1 720 480 96 y 102 0 0 1 normal_p 0
---------------------venc chn attr 2-----------------------------------
id started src_frame_rate dst_frame_rate time_ref pixel_format pic_addr wake_up_frame_cnt
0 y -1 -1 246 YVU420 0x64353580 1
1 y -1 -1 246 YVU420 0x6941a000 1
---------------------venc chn attr 3-----------------------------------
id composite_en mosaic_en quality_level stream_buf_full_cnt
0 n n 1 0
------------------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 NA
1 1 0 0 0 NA
---------------------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
1 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 103 0 0 0 103 0 0 0 103 0
1 103 0 0 0 103 0 0 0 103 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
1 0 0 0 0 0 0 0 0 0
----------------------venc pic queue state----------------------------
id free busy vgs b_frame
0 6 0 0 0
1 5 1 0 0
-----------------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
1 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
0 454 103 103 103 103 103 0 0 0 0
1 452 103 103 103 103 102 0 0 0 0
------------------venc crop info-------------------------------------
id crop_en x y width height
0 n 0 0 0 0
1 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 2 0 0 119 119 103 64580 15
1 2 0 0 114 114 102 64061 16
-------------venc pts state-----------------------------------------
id first_frame_pts cur_frame_pts time_cost
0 78318260822 78324788685 276614141
1 78318266424 78324793528 276614141
-----------------------venc svc state-------------------
id enable base_reso_width base_reso_height rect_num
0 y 1920 1080 10
1 y 1920 1080 10
pts
78324788685
78324788685
-------------------venc svc param---------------------------------------
id fg_en fg_rgn_param0 fg_rgn_param1 fg_rgn_param2 fg_rgn_param3
0 y [ 0 0 0] [ 0 0 0] [ 0 0 0] [ 0 0 0]
1 y [ 0 0 0] [ 0 0 0] [ 0 0 0] [ 0 0 0]
fg_rgn_param4 bg_rgn_param act_rgn_param
[ 0 0 0] [ 0 0 0] [ 0 0 0]
[ 0 0 0] [ 0 0 0] [ 0 0 0]
【调试信息分析】
记录当前视频编码属性配置以及状态信息。
【参数说明】
H264E¶
【调试信息】
~ # cat /proc/umap/h264e
[H264E] Version: [V1.0.0.0 B010 Release], Build Time[Aug 31 2019, 16:37:40]
-----------------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 gop_mode max_stream_cnt
1 720 480 720 480 base n 259200 y normal_p 200
------------------picture info------------------------------------------
id enc_start enc_succeed lost discard p_skip recode release_stream unread_stream
1 178 177 0 0 0 0 177 0
---------------------stream buffer---------------------------------------
id base read_tail read_head write_tail write_head data_len buf_free
1 0xffffff8012700000 0x210c0 0x210c0 0x210c0 0x210c0 0 262080
-------------------ref_param info---------------------------------------
id pred_en base enhance rcn_ref_share_buf_en frame_buf_ratio force_i_blk_cnt
1 y 1 0 y 70 0
-----------------roi_bg info---------------------------------------------
id bg_src_frame_rate bg_dst_frame_rate
1 -1 -1
--------------------syntax info1----------------------------------------
id slice_split_en split_mode slice_size slice_output_en intra_refresh_en refresh_mode refresh_num qp_idr
1 n n/a n/a n/a n n/a n/a n/a
--------------------syntax info2-------------------------------------
id profile entrpy_i entrpy_p entrpy_b trans_i trans_p scaling_list_valid poc dblk_idc alpha beta
1 base cavlc cavlc cavlc 4x4 4x4 n 0 0 0 0
-------------------skip_coef / scene info / param_set_id----------------------------
id fg_skip_coef bg_skip_coef scene_mode param_set_id
1 8 8 scene_0 0
--------------------cu_prediction---------------------------------------
id pred_mode inter8_cost inter16_cost intra4_cost intra8_cost intra16_cost
1 auto 8 8 8 8 8
----------------search window-------------------------------------
id search_window hor ver
1 auto 0 0
----------------------skip bias---------------------------------------
id skip_bias_en gain offset foreground_cost background_cost
1 n 8 8 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
0 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 n 8 8 1 0 51 n 1 0 51
【调试信息分析】
在进行多路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 2019, 18:02:32]
----------------module param------------------------------------------
one_pack jpege_mini_buf_mode jpeg_clear_stream_buf jpege_dering_mode
0 0 1 0
-------------------attribute1-----------------------------------------
id is_mjpeg pic_type max_width max_height width height buf_size by_frm color_to_grey dcf
0 y yvu420 1280 720 1280 720 921600 y n n
1 y yvu420 720 480 720 480 345600 y n n
-------------------param-----------------------------------------
id mcu_per_ecs qfactor ecs_output_en dering_level dblk_en
0 61 90 n 0 n
0 61 90 n 0 n
------------------state1------------------------------------------------
id buf_len free_len stream_cnt max_stream
0 921600 920768 0 200
1 348160 347328 0 200
---------------------state2---------------------------------------------
id pic_recv pic_coded pic_droped pic_discard no_stm_cnt rc_fail pic_recode unread_stream
0 460 458 0 0 0 0 1 0
1 457 456 0 0 0 0 0 0
-----------------stream buffer-----------------------------------------
id base read_tail read_head write_tail write_head buf_len data_len buf_free
0 0xe94ec568 487936 487936 487936 488704 921600 0 920768
1 0xb71abfbc 294400 294400 294400 295168 348160 0 347328
------------------run info-----------------------------------------------
id dcf_size mpf_ex_offset src_size mpf0_size mpf1_size mpf_cnt jpeg_queue_idx
0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0
【调试信息分析】
记录JPEG编码过程中,各通道的编码属性、状态以及历史信息统计,最多有64路编码通道。可配合用于定位系统阻塞以及丢帧等问题。
【参数说明】
|
1:使能去Ring算法,在相同量化表和qfactor的情况下能减少Ring现象并且减小图片文件大小,但也会损失一些图片清晰度和细节。 |
||
由于编码器硬件异常或出现超大帧而丢弃的帧数,有以下几种可能:
|
||
【注意事项】
当系统支持缩略图时才会显示ATTRIBUTE2的属性。
RC¶
【调试信息】
# cat /proc/umap/rc
以下是CBR模式为例说明,proc信息如下:
~ # cat /proc/umap/rc
[RC] Version: [V1.0.0.0 B010 Release],Build Time[Aug 31 2019, 18:02:32]
-------------------base param 1------------------------------------------
id gop stats_time src_frame_rate dst_frame_rate type mode bitrate(kbps) i_qp p_qp b_qp
0 30 1 30 30 265 cbr 3072 n/a n/a n/a
1 30 1 30 30 96 cbr 17408 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 idr_en qpmap_en qpmap_mode
0 10 51 10 51 10 51 y n n/a
1 10 51 10 51 10 51 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]
1 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]
1 -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]
1 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
0 n 83886080 normal 0
1 n 83886080 normal 0
-------------------run comm param 5-------------------------------------
id super_frame_mod threshold_i threshold_p threshold_b rc_priority clear_stats
0 none 500000 500000 500000 bitrate 1
1 none 500000 500000 500000 bitrate 1
---------------run common param 6-------------------------------------
id detect_scene_chg_en adapt_insert_idr_frame_en
0 y n
1 y n
----------------fg protect info 1--------------------------------------
id protect_en direction threshold_p(16)
0 0 8 [ 0 0 0 0 3 3 5 5 8 8 8 15 20 20 25 25]
1 0 8 [ 0 0 0 0 3 3 5 5 8 8 8 15 20 20 25 25]
-------------------fg protect info 2----------------------------------
id gain offset threshold_b(16)
0 8 8 [ 0 0 0 0 3 3 5 5 8 8 8 15 20 20 25 25]
1 8 8 [ 0 0 0 0 3 3 5 5 8 8 8 15 20 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 vi_qp_delta
0 normal_p 2 n/a n/a n/a n/a n/a n/a
1 normal_p 2 n/a n/a n/a n/a n/a n/a
-----------------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 0
1 1 20 51 10 51 10 0
------------------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_frm_rate wat_l cfg_bit:kb real_bit:kb ip_ratio dst_percent start_qp min_qp max_qp
0 2943 30 1574 96 97 2 n/a 33 10 51
1 16987 30 10345 573 557 1 n/a 19 10 51
----------------rc debreath_effect info---------------------------------
id enable strength0 strength1 debreath_effect_cnt
0 y n/a n/a 0
1 y n/a n/a 0
--------------rc hierarchical_qp info--------------------------------
id enable frame_num[ 0 1 2 3] qp_delta[ 0 1 2 3]
0 y 1 1 0 0 -2 -4 0 0
1 y 1 1 0 0 -2 -4 0 0
【调试信息分析】
记录当前编码码率控制的信息。
【参数说明】
CU32或CU64的QP值的取值方式。只有H265涉及,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_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¶
【调试信息】
# cat /proc/umap/vi
[VI] Version: [V1.0.0.0 B010 Release], Build Time[Aug 7 2020, 15:16:44]
----------------------------------------vi module param----------------------------------------------------
detect_err_frame drop_err_frame high_profile
0 0 N
----------------------------------------vi vpss mode & vi video mode-------------------------------------
pipe_id vi_vpss_mode vi_video_mode
0 vi_online_vpss_offline normal
1 ~ 11 vi_offline_vpss_offline normal
----------------------------------------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
0 yvyu raw N 1920 1080 x1
----------------------------------------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
1 t0 328 522 16 60 40 t0_sd0 t0_sd1 n/a n/a
----------------------------------------vi dev bas attr-------------------------------------------------------
dev_id out_width out_height h_reph v_reph
0 0 0 none none
----------------------------------------vi dev timing attr----------------------------------------------------
dev_id enable frame_rate
----------------------------------------vi dev data attr------------------------------------------------------
dev_id enable
----------------------------------------vi dev detect info----------------------------------------------------
dev_id valid_width valid_height em_data_size total_width vfb_height vbb_height
0 1920 1080 0 4315 73 239
----------------------------------------vi stitch grp attr-----------------------------------------------------
grp_id stitch_en cfg_mode max_pts_gap pipe_num pipe_id
0 Y Sync 10000 4 0,1,2,3
----------------------------------------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 1080 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_width bit_align_mode src_rate dst_rate frame_source vc_num vb_src vb_pool
0 8 high -1 -1 src_fe 0 common -1
----------------------------------------vi pipe param------------------------------------------------------
pipe_id discard_pro_pic_en out_mode data_rate
0 N norm x1
-------------------------------vi pipe stagger output split info-----------------------------------------------
pipe_id stagger_split_en
0 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 frame dump attr--------------------------------------------
pipe_id enable depth
0 N 0
---------------------------------vi pipe fe out frame dump attr-----------------------------------------
pipe_id enable depth
0 N 0
----------------------------------------vi pipe bas 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
1 norm Y 2 1 N 0 0 0 auto
----------------------------------------vi pipe status--------------------------------------------------------
pipe_id enable width height int_cnt lost_cnt vb_fail_cnt frame_rate
0 Y 1920 1080 2890 2 0 15
----------------------------------------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 sp420 sdr8 linear none N N
----------------------------------------vi phts 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 dis config-----------------------------------------------
pipe_id chn_id mode motion_level pdt_type buf_num crop_ratio frame_rate camera_steady scale
3 0 4_DOF_GME Low DV 0 0 0 0 0
----------------------------------------vi phys chn dis attr--------------------------------------------------
pipe_id chn_id enable gdc_bypass mov_sub roef timelag hor_limit ver_limit still_crop strength
3 0 N N 0 0 0 0 0 N 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
3 0 100 10 100 N
----------------------------------------vi phys chn dis wdr_attr--------------------------------------------------------
pipe_id chn_id match_frame
0 0 0
----------------------------------------vi phys chn dis fusion_id-------------------------------------------------------
pipe_id chn_id fusion_id
0 0 0
----------------------------------------vi phys chn ldc attr--------------------------------------------------
pipe_id chn_id ldc_version enable aspect x_ratio y_ratio xy_ratio x_offset y_offset distortion_ratio
3 0 LDC_V1 N N 0 0 0 0 0 0
----------------------------------------vi phys chn rotation attr--------------------------------------------
pipe_id chn_id rotation_type enable rotation
3 0 FIXED N 0
----------------------------------------vi phys chn spread attr---------------------------------------------
pipe_id chn_id enable spread_coef
3 0 N 0
----------------------------------------vi phys chn fisheye attr---------------------------------------------
pipe_id chn_id enable mount_mode rgn_num bg_color_en bg_color lmf_en hor_offset ver_offset trap_coef fan_strength
0 0 N DESKTOP 0 N 0x0 N 0 0 0 0
----------------------------------------vi phys chn fisheye rgn attr----------------------------------------
pipe_id chn_id rgn_index view_mode in_radius out_radius pan tilt hor_zoom ver_zoom out_x out_y out_w out_h
----------------------------------------vi phys chn fov correction attr-------------------------------------
pipe_id chn_id enable
3 0 N
----------------------------------------vi ext chn attr1------------------------------------------------------
pipe_id chn_id bind_chn src_type width height pixel_format dynamic_range video_format compress_mode
----------------------------------------vi ext chn attr2------------------------------------------------------
pipe_id chn_id depth src_rate dst_rate vb_src vb_pool align
----------------------------------------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 Y ABS 0 0 1200 1200 0 0 1200 1200
----------------------------------------vi chn status---------------------------------------------------------
pipe_id chn_id enable width height receive_cnt vb_fail_cnt lost_frame_cnt frame_rate
0 0 Y 1920 1080 101 0 0 23
----------------------------------------vi chn out frame info-----------------------------------------------
pipe_id chn_id width height compress_mode low_delay_frame delay
0 0 1920 1080 none N 32415
----------------------------------------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
897 989 2472 2876 157 387 2629 99759
【调试信息分析】
记录当前视频输入设备及通道的属性配置以及状态信息, 仅SS928V100支持。
【参数说明】
VO¶
【调试信息】
[VO] Version: [V1.0.0.0 B010 Release], Build Time[Dec 17 2019, 09:47:28]
----------------------------------------vo module param------------------ --------------------------------
exit_dev_en dev_clk_ext_en vga_detect_en vdac_detect_cycle cal_cost_time_en
Y N N 30 Y
----------------------------------------vo device config----------------- -----------------------------------
dev_id dev_en mux1 mux2 mux3 mux4 intf_sync bg_color dev_frame_rate src_clk pixel_clk
0 Y BT.1120 - - - 1080P@60 0x0 60 148500 148500
----------------------------------------vo device user sync info--------- ----------------------------------
dev_id syncm iop intfb vact vbb vfb hact hbb hfb hmid bvact bvbb bvfb hpw vpw idv ihs ivs
----------------------------------------vo device clock info--------------------------- ---------------------
dev_id clk_src fb_div frac ref_div post_div1 post_div2 lcd_m_clk fixed dev_div pre_div clk_reverse_en
----------------------------------------vo device vtth and param config----------------------------------
dev_id vtth less_buf_enable less_buf_vtth user_notify_en user_notify_vtth vo_bypass_en uboot_vo_en
0 240 N 2 N 2 N N
----------------------------------------vo interface status-------------- ------------------------------------
dev_id vdac_status
0 -
----------------------------------------vo interface vga param----------- ---------------------------------
dev_id matrix luma contrast hue saturation ex_csc_en gain sharpen_strength
----------------------------------------vo interface bt.1120/bt.656 param--------------------------------
dev_id yc_inverted bit_inverted clk_edge
----------------------------------------vo interface hdmi param-------------------------------------------
dev_id matrix luma contrast hue saturation ex_csc_en
----------------------------------------vo interface hdmi1 param------------------------------------------
dev_id matrix luma contrast hue saturation ex_csc_en
----------------------------------------vo interface rgb param---------------------------------------------
dev_id matrix luma contrast hue saturation ex_csc_en rgb_inverted bit_inverted
----------------------------------------vo interface mipi param--------------------------------------------
dev_id matrix luma contrast hue saturation ex_csc_en
----------------------------------------vo video layer status 1----------------------------------------------
layer_id video_en disp_x disp_y disp_width disp_height img_width img_height disp_frame_rate pixel_format
0 Y 0 0 1920 1080 1920 1080 60 SP420
----------------------------------------vo video layer status 2----------------------------------------------
layer_id double_frame_en cluster_mode_en dst_dynamic_range disp_buf_len partition_mode compress_mode
0 N N SDR8 0 SINGLE NONE
----------------------------------------vo video layer status 3----------------------------------------------
layer_id toleration enable_chn_num matrix luma contrast hue saturation ex_csc_en refresh_err_cnt
0 10000000 1 0 50 50 50 50 N 0
----------------------------------------vo video layer status 4----------------------------------------------
layer_id bind_dev_id priority batch_begin batch_end is_vgs_bypass early_display_en
0 0 0 N N Y N
----------------------------------------vo video layer status 5----------------------------------------------
layer_id crop_en x y width height
----------------------------------------vo chn basic info----------------------------------------------------
layer_id chn_id chn_en chn_x chn_y chn_width chn_height priority deflicker_en disp_x disp_y
0 0 Y 0 0 1920 1080 0 N -1 -1
----------------------------------------vo chn play info 1---------------------------------------------------
layer_id chn_id batch_set show pause pre_pause step reverse refresh threshold chn_frame_rate chn_gap
0 0 N Y N N N N N 3 60 16666
----------------------------------------vo chn play info 2---------------------------------------------------
layer_id chn_id disp_pts pre_pts cur_pts scale_pts
0 0 200000 200000 200000 0
----------------------------------------vo chn play info 3---------------------------------------------------
layer_id chn_id set_pts recv_cur_pts
0 0 -1 200000
----------------------------------------vo multi chn status 1-----------------------------------------------
layer_id chn_id query new_do old_do query_lost send_lost send chn_repeat all_repeat
----------------------------------------vo multi chn status 2-----------------------------------------------
layer_id chn_id buf1 buf2 buf3 buf4 buf5 buf6 buf7 buf8 box_index
----------------------------------------vo multi chn status 3-----------------------------------------------------------
layer_id chn_id query_addr send_addr disp_addr video_format compress_mode
----------------------------------------vo multi chn status 4-----------------------------------------------
layer_id chn_id area_id area_id_tmp should_disp displayed chn_free_num chn_busy_num zoom_status show_status
----------------------------------------vo multi chn status 5-----------------------------------------------
layer_id chn_id aspect_ratio_mode x y width height bg_color
----------------------------------------vo single chn status 1-----------------------------------------------
layer_id chn_id job_cnt task_cnt query_lost send_lost query send chn_repeat all_repeat disp_repeat
0 0 0 0 0 0 0 3 175 0 0
----------------------------------------vo single chn status 2-----------------------------------------------
layer_id chn_id should_disp displayed chn_addr disp_addr video_format compress_mode pixel_format
0 0 1 28 0x8345b000 0x8345b000 LINEAR NONE YVU-SP420
----------------------------------------vo single chn status 3-----------------------------------------------
layer_id chn_id chn_free_num chn_busy_num disp_free_num disp_busy_num mirror_mode
rotation_angle
0 0 9 0 13 0 NONE
0
----------------------------------------vo single chn status 4-----------------------------------------------
layer_id chn_id aspect_ratio_mode x y width height bg_color
----------------------------------------vo single chn status 5-----------------------------------------------
layer_id chn_id border_en top_width bottom_width left_width right_width border_color
----------------------------------------vo single chn status 6-----------------------------------------------
layer_id chn_id frame_ok tunl_frame
0 0 Y Y
----------------------------------------vo chn zoom info----------------------------------------------------
layer_id chn_id is_zoom_in zoom_type zoom_x zoom_y zoom_width zoom_height src_width src_height
----------------------------------------vo wbc info 1--------------------------------------------------------
wbc_id wbc_width wbc_height pixel_format frame_rate real_rate dynamic_range compress_mode
----------------------------------------vo wbc info 2--------------------------------------------------------
wbc_id src_type src_id wbc_mode depth not_finish_cnt
----------------------------------------vo graphics layer bind info-----------------------------------------
layer_id bind_dev priority
4 0 2
6 0 3
----------------------------------------vo graphics layer csc param----------------------------------------
layer_id matrix luma contrast hue saturation ex_csc_en
0 24 50 50 50 50 0
2 24 50 50 50 50 0
----------------------------------------vo device cas config-------------------------------------------------
dev_id cas_config cas_enable cas_pattern is_slave cas_rgn cas_mode cas_edge_mode
0 N N 0
----------------------------------------vo chn cas info------------------------------------------------------
layer_id chn_id bind_cas_pos cas_pos
----------------------------------------vo device int status-------------
dev_id int_rate int_time max_int_time int_time_per_min int_gap_time max_int_gap_time
0 60 121 174 7218 16666 16676~ #
----------------------------------------vo chn frame status-------------------------------------------------------------
layer_id chn_id cost_time max_cost_time
0 0 39372 56139
----------------------------------------vo device low delay info--------------------------------------------
dev_id low_delay_err_cnt
0 0
【调试信息分析】
记录当前VO的使用状况及其属性配置,包含设备状态、视频层状态和通道状态。可用于动态获取当前VO的使用状态以便于调试或测试。
【参数说明】