8.2. Design Overview¶
8.2.1. BitstreamSendMethod¶
VDEC provideBitstreamSendMethod:
pressFrameSend (VIDEO_MODE_FRAME): eachsecondarySendcompleteoneFrameBitstreamtoDecodingdevice, eachCallonesecondarySendInterface, DecodingdeviceisthisFrameBitstreamalreadyend, startDecodingImage, need toeachsecondaryCallSendInterfaceSendBitstreammustisoneFrame.
8.2.2. Timestamp (PTS) processing¶
PTSrefers toiscurrentFrameinplaybacktimetimepoint, currentFramePTScanby CVI_VENC_GetFrame MediumGet, whilethisFramePTSwilletc.to CVI_VENC_SendStream time, thePTS.
8.2.3. DecodingFramestorageallocateMethod¶
Common Mode: automaticcreateIONMemoryperform Framecache,IONSizeAccording todecoded width and heightautomaticallocate,notneed touser
User Mode: userneed toUseCVI_VB_CreatePool, createVB Pool, inCreateChannelafter, through CVI_VDEC_AttachVbPool BindthisVB PooltoChannel
Private Mode: inCreateChanneltime, willautomaticcreatePrivate VB Pool, usernotneed tomanuallycreateVB Pool, canthroughCVI_VDEC_CreateChn, SetPrivate VB Poolu32FrameBufSizeandu32FrameBufCnt
canUse CVI_VDEC_SetModParam Set enVdecVBSource toselectDecodingFramestorageallocateMethod, beforeonlySupportCOMMON and USER Mode.
UseUser Modetime, inChannelnothasdetach VB Poolbefore, notcanconnectdestroy VB Pool, need todetermineDecodercorrectendcandestroy.