12.9. VDEC

【调试信息】

# cat /proc/cvitek/vdec
Module: [VDEC] System Build Time [#1 SMP PREEMPT Sat Jan 23 02:50:26 CST 2021]
VdecMaxChnNum: 70        MiniBufMode: 0  enVdecVBSource: 0       ParallelMode: 0
MaxPicWidth: 4096        MaxPicHeight: 2160      MaxSliceNum: 200        VdhMsgNum: 0    VdhBinSize: 0   VdhExtMemLevel: 0
SupportProgressive: 0    DynamicAllocate: 0      CapStrategy: 0
----- CHN COMM ATTR & PARAMS --------------------------------------
ID: 0    TYPE: H265      MaxW: 4096      MaxH: 2304      Width: 1920     Height: 1080    Stride: 1920    PixelFormat: 13         PTS: 0  PA: 0x126568000
StrInputMode: FRAME/NOBLOCK      StrBufSize: 9437184     FrmBufSize: 0   FrmBufCnt: 3    TmvBufSize: 0
ID: 0    DispNum: 2      DispMode: PLAYBACK      SetUserPic: N   EnUserPic: N    Rotation: 0     PicPoolId: -1   TmvPoolId: -1   STATE: START
----- CHN VIDEO ATTR & PARAMS -------------------------------------
ID: 0    VfmwID: 0       RefNum: 0       TemporalMvp: N  ErrThr: 0       DecMode: IPB    OutPutOrder: DISP       Compress: NONE  VideoFormat: 0  MaxVPS: 0       MaxSPS: 0       MaxPPS: 0       MaxSlice: 200
----- CHN PICTURE ATTR & PARAMS---------------------------------
ID: 0    PixelFormat: 0  Alpha: 0

----- CVITEK Debug Level STATE ----------------------------------------
VdecDebugMask: 0x0       VdecStartFrmIdx: 0      VdecEndFrmIdx: 0        VdecDumpPath:

【调试信息分析】

记录当前解码通道的使用状况及其属性配置。可用于检查属性配置以及当前解码通道统计状态。

【参数说明】

参数

描述

MODULEPARAM

VdecMaxChnNum

Maximum number of decoding channels supported

by the VDEC

MiniBufMode

Whether the stream buffer reduction mode is used

0: unused

1: used (the reduction mode is valid only when

streams are decoded by frame)

enVdecVBSource

Mode of allocating the VDEC video buffer (VB)

1: module VB

2: private VB

3: user VB

ParallelMode

VDH decoding mode

0: non-parallel mode

1: parallel mode

MaxPicWidth

Maximum width supported for video decoding

MaxPicHeight

Maximum height supported for video decoding

MaxSliceNum

Maximum number of slices supported for video decoding

VdhMsgNum

Number of VDH message pools

VdhBinSize

Size of the buffer for storing binary data of VDH

decoding

VdhExtMemLevel

Off-processor memory allocation level for VDH decoding

MaxJpegeWidth

Maximum width of an image to be decoded

MaxJpegeHeight

Maximum height of an image to be decoded

SupportProgressive

Whether the progressive format is supported

0: no

1: yes

DynamicAllocate

Buffer allocation mode when the progressive format

is supported

0: static allocation

1: dynamic allocation

CapStrategy

Capability strategy for the maximum width and

height of a decoded image

0: capability strategy based on the module

1: capability strategy based on the channel

CHNCOMMATTR &PARAMS

ID

VDEC channel ID

TYPE

VDEC channel type

PT_H264

PT_H265

PT_MJPEG

PT_JPEG

MaxW

Configured maximum width of a decoded image

MaxH

Configured maximum height of a decoded image

Width

Width of a decoded image

Height

Height of a decoded image

StrmInputMode

Stream transmission mode of the VDEC channel

The modes can be classified into two types:

FRAME, STREAM, and COMPAT: transmit by

frame, stream, and, in compatible mode, respectively

BLOCK, NOBLOCK and TIMEOUT: streams in

block, non-block and timeout mode

StrBufSize

Stream buffer size

FrmBufSize

Size of frame buffers, valid only in private VB mode

FrmBufCnt

Number of frame buffers, valid only in private VB

mode

TmvBufSize

TMV buffer size. This parameter is valid only in

private VB mode.

DispNum

Number of displayed frames

Value range: [0, 16]

DispMode

Display mode

Value range: PLAYBACK and PREVIEW

SetUserPic

Whether to set user images

EnUserPic

Whether to enable user images

Rotation

Rotated angle of the VDEC image

PicPoolId

VB pool ID of the frame buffer, valid only in private

VB and user VB modes

TmvPoolId

VB pool ID of the Tmv, valid only in private VB and

user VB modes

STATE

Whether the VDEC channel starts to receive streams

START: The channel starts to receive streams.

STOP: The channel stops receiving streams.

CHN
VIDEO
ATTR &
PARAMS

ID

VDEC channel ID

VfmwID

Video firmware (VFMW) channel ID

RefNum

Number of reference frames

Value range: [0, 16]

TemporalMvp

Whether to support time-domain motion vector

prediction

ErrThr

Stream error rate threshold

DecMode

Decoding mode

OutPutOrder

Output sequence of a decoded image

Compress

Whether the decoded output image can be compressed

VideoFormat

Data format of images to be decoded

MaxVPS

Maximum number of supported VPSs, only H.265

decoding is valid

MaxSPS

Maximum number of supported SPSs

MaxPPS

Maximum number of supported PPSs

MaxSlice

Maximum number of supported slices

CHN image
ATTR &
PARAMS

ID

VDEC channel ID

PixelFormat

Output format of JPEG images

Alpha

Global alpha value of JPEG images in ARGB format

CVITEK DEBUG STATE

VdecDebugMask

The debug mask of middleware

VdecStartFrmIdx

The start frame of middleware debugging

VdecEndFrmIdx

The end frame of middleware debugging

VdecDumpPath

The Bitstream src dump path