ATSC3  24.10.0
Public Types | Public Member Functions | Static Public Member Functions | List of all members
CMmt Class Reference

#include <atsc_core_atsc3_mmt_parser.h>

Public Types

typedef std::function< void(sDownloadFileInfo_t)> funcDownloadDone
 
typedef std::function< void(int32_t, void *, const char *)> funcAppSignal
 
typedef std::function< void(int32_t, sRouteComponent_t *)> funcRouteComponent
 

Public Member Functions

 CMmt (const char *pHlsPath, const char *pDataPath, sSltService_t stService, int32_t iPhysicalCh)
 Asigned the Codec type and create the directory details. More...
 
int32_t Parse (uint8_t *pData, uint32_t iDataLen)
 Parses MMT (MPEG Media Transport) data and handles different types of MMT packets. More...
 
uint32_t GetServiceValue (eSltServiceType_t eSLTType)
 Return Service value based on eSltServiceType_t. More...
 
bool Compare (uint32_t iServiceId, uint32_t iDestinationIp, uint32_t iDestinationPort)
 Return T/F by comparing Service ID,Dest Port and IP. More...
 
void SetHandler (funcDownloadDone f1, funcAppSignal f2, funcRouteComponent f3)
 Assign the corresponding callback for Route,Signaling,Downloading. More...
 
int32_t GetMediaType (void)
 Get the Media Type as Audio or Video. More...
 

Static Public Member Functions

static void CallbackCompleteMp4 (char *pPath, char *pFilename, uint32_t iPacketId, uint32_t iSeq, int32_t iSize, FLOAT_64 dDuration, void *pCtx)
 CallBack for the listing of MP4 file based on data. More...
 

Detailed Description

CMmt

Member Typedef Documentation

◆ funcAppSignal

typedef std::function<void(int32_t, void*, const char*)> CMmt::funcAppSignal

funcAppSignal.

◆ funcDownloadDone

typedef std::function<void(sDownloadFileInfo_t)> CMmt::funcDownloadDone

funcDownloadDone.

◆ funcRouteComponent

typedef std::function<void(int32_t, sRouteComponent_t*)> CMmt::funcRouteComponent

funcRouteComponent.

Constructor & Destructor Documentation

◆ CMmt()

CMmt::CMmt ( const char *  pHlsPath,
const char *  pDataPath,
sSltService_t  stService,
int32_t  iPhysicalCh 
)

Asigned the Codec type and create the directory details.

Parameters
constchar* pHlsPath, const char* pDataPath,sSltService_t stService,iPhysicalCh
Return values
NA

Member Function Documentation

◆ CallbackCompleteMp4()

CMmt::CallbackCompleteMp4 ( char *  pPath,
char *  pFilename,
uint32_t  iPacketId,
uint32_t  iSeq,
int32_t  iSize,
FLOAT_64  dDuration,
void *  pCtx 
)
inlinestatic

CallBack for the listing of MP4 file based on data.

Parameters
char*pPath,char *pFilename,iPacketId,iSeq,iSize, dDuration, *pCtx
Return values
void

◆ Compare()

CMmt::Compare ( uint32_t  iServiceId,
uint32_t  iDestinationIp,
uint32_t  iDestinationPort 
)

Return T/F by comparing Service ID,Dest Port and IP.

Parameters
iServiceId,iDestinationIp,iDestinationPort
Return values
bool

◆ GetMediaType()

CMmt::GetMediaType ( void  )

Get the Media Type as Audio or Video.

Parameters
void
Return values
int32_t

◆ GetServiceValue()

CMmt::GetServiceValue ( eSltServiceType_t  eSLTType)

Return Service value based on eSltServiceType_t.

Parameters
eSltServiceType_tstSLTType
Return values
uint32_t

◆ Parse()

CMmt::Parse ( uint8_t *  pData,
uint32_t  iDataLen 
)

Parses MMT (MPEG Media Transport) data and handles different types of MMT packets.

Parameters
pData,iDataLen
Return values
int32_t

◆ SetHandler()

CMmt::SetHandler ( funcDownloadDone  f1,
funcAppSignal  f2,
funcRouteComponent  f3 
)

Assign the corresponding callback for Route,Signaling,Downloading.

Parameters
funcDownloadDonef1, funcAppSignal f2, funcRouteComponent f3
Return values
void

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