DtvKit_ATSC3.0
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
CMpuBuf Class Reference

#include <atsc_core_atsc3_mmt_mpubuflist.h>

Public Member Functions

eATSCResult_t RegisterCallback (void *pFunc, void *pCtx)
 To set the callback function for MPU to mCbDone.
 
eATSCResult_t FindOld (uint32_t iPacketId, uint32_t iSeq, uint32_t *pOldSeq)
 To set the callback function for MPU to mCbDone.
 
int32_t GetLen (uint32_t iPacketId, uint32_t iSeq)
 To get the length of MPU data.
 
int32_t GetSize (uint32_t iPacketId, uint32_t iSeq)
 To get the size of MPU data.
 
eATSCResult_t SetLen (uint32_t iPacketId, uint32_t iSeq, uint32_t iLength)
 To set the length of MPU data.
 
eATSCResult_t WriteData (uint32_t iPacketId, uint32_t iSeq, uint8_t *pData, int32_t pData_iLen)
 To write the received data.
 
eATSCResult_t SetDefaultName (char *pInitialization, char *pMedia)
 To set the Media name.
 
eATSCResult_t PutMetadata (uint32_t iPacketId, uint32_t iSeq, uint8_t *pData, uint32_t iLength, uint32_t iType)
 To put the fragment data for the MPU buffer.
 
eATSCResult_t SetMpuTimeStamp (uint32_t iPacketId, uint32_t iSeq, uint32_t iSec, uint32_t iFrac, FLOAT_64 dDuration)
 Set the MPU time stamp for the received each packets.
 
eATSCResult_t OpenFile (uint32_t iPacketId, uint32_t iSeq, uint32_t iLength, char *pFolder, uint32_t iType, int32_t iMediaType)
 Open the file in write mode to hold the buffer.
 
eATSCResult_t CloseFile (uint32_t iPacketId, uint32_t iSeq)
 Close the file and remove the buffer.
 

Public Attributes

callback_complete_mpu mCbDone
 
void * mCtx
 

Detailed Description

CMpuBuf

Member Function Documentation

◆ CloseFile()

CMpuBuf::CloseFile ( uint32_t iPacketId,
uint32_t iSeq )

Close the file and remove the buffer.

Parameters
iPacketId,iSeq
Return values
eATSCResult_t

◆ FindOld()

CMpuBuf::FindOld ( uint32_t iPacketId,
uint32_t iSeq,
uint32_t * pOldSeq )

To set the callback function for MPU to mCbDone.

Parameters
iPacketId,iSeq,uint32_t*pOldSeq
Return values
eATSCResult_t

◆ GetLen()

CMpuBuf::GetLen ( uint32_t iPacketId,
uint32_t iSeq )

To get the length of MPU data.

Parameters
iPacketId,iSeq
Return values
int32_t

◆ GetSize()

CMpuBuf::GetSize ( uint32_t iPacketId,
uint32_t iSeq )

To get the size of MPU data.

Parameters
iPacketId,iSeq
Return values
int32_t

◆ OpenFile()

CMpuBuf::OpenFile ( uint32_t iPacketId,
uint32_t iSeq,
uint32_t iLength,
char * pFolder,
uint32_t iType,
int32_t iMediaType )

Open the file in write mode to hold the buffer.

Parameters
iPacketId,iSeq,iLength,pFolder,iType,iMediaType
Return values
eATSCResult_t

◆ PutMetadata()

CMpuBuf::PutMetadata ( uint32_t iPacketId,
uint32_t iSeq,
uint8_t * pData,
uint32_t iLength,
uint32_t iType )

To put the fragment data for the MPU buffer.

Parameters
iPacketId,iSeq,pData,iLength,iType
Return values
eATSCResult_t

◆ RegisterCallback()

CMpuBuf::RegisterCallback ( void * pFunc,
void * pCtx )

To set the callback function for MPU to mCbDone.

Parameters
void*func, void* ctx
Return values
eATSCResult_t

◆ SetDefaultName()

CMpuBuf::SetDefaultName ( char * pInitialization,
char * pMedia )

To set the Media name.

Parameters
pInitialization,pMedia
Return values
eATSCResult_t

◆ SetLen()

CMpuBuf::SetLen ( uint32_t iPacketId,
uint32_t iSeq,
uint32_t iLength )

To set the length of MPU data.

Parameters
iPacketId,iSeq,iLength
Return values
eATSCResult_t

◆ SetMpuTimeStamp()

CMpuBuf::SetMpuTimeStamp ( uint32_t iPacketId,
uint32_t iSeq,
uint32_t iSec,
uint32_t iFrac,
FLOAT_64 dDuration )

Set the MPU time stamp for the received each packets.

Parameters
iPacketId,iSeq,iSec,iFrac,dDuration
Return values
eATSCResult_t

◆ WriteData()

CMpuBuf::WriteData ( uint32_t iPacketId,
uint32_t iSeq,
uint8_t * pData,
int32_t pData_iLen )

To write the received data.

Parameters
iPacketId,iSeq,uint8_t*pData ,iDataLen
Return values
eATSCResult_t

Member Data Documentation

◆ mCbDone

callback_complete_mpu CMpuBuf::mCbDone

mCbDone

◆ mCtx

void* CMpuBuf::mCtx

mCtx


The documentation for this class was generated from the following file: