Logo
ApraPipes 1.0
Loading...
Searching...
No Matches
Mp4WriterSinkUtils Class Reference

#include <Mp4WriterSinkUtils.h>

Collaboration diagram for Mp4WriterSinkUtils:
Collaboration graph

Public Member Functions

 Mp4WriterSinkUtils ()
 
void getFilenameForNextFrame (std::string &nextFrameFileName, uint64_t &timestamp, std::string &basefolder, uint32_t chunkTimeInMinutes, uint32_t syncTimeInSeconds, bool &syncFlag, short &frameType, short naluType)
 
void parseTSJpeg (uint64_t &tm, uint32_t &chunkTimeInMinutes, uint32_t &syncTimeInSeconds, boost::filesystem::path &relPath, std::string &mp4FileName, bool &syncFlag, std::string baseFolder, std::string &nextFrameFileName)
 
void parseTSH264 (uint64_t &tm, uint32_t &chunkTimeInMinutes, uint32_t &syncTimeInSeconds, boost::filesystem::path &relPath, std::string &mp4FileName, bool &syncFlag, short frameType, short naluType, std::string baseFolder, std::string &nextFrameFileName)
 
bool customNamedFileDirCheck (std::string baseFolder, uint32_t chunkTimeInMinutes, boost::filesystem::path relPath, std::string &nextFrameFileName)
 
std::string format_hrs (int &hr)
 
std::string format_2 (int &min)
 
std::string filePath (boost::filesystem::path relPath, std::string mp4FileName, std::string baseFolder, uint64_t chunkTimeInMins)
 
 ~Mp4WriterSinkUtils ()
 
 Mp4WriterSinkUtils ()
 
std::string getFilenameForNextFrame (std::string &basefolder, uint32_t chunkSize)
 
 ~Mp4WriterSinkUtils ()
 

Private Attributes

int lastVideoMinute =0
 
std::time_t lastVideoTS
 
std::string lastVideoName
 
std::time_t lastSyncTS
 
std::string currentFolder
 
boost::filesystem::path lastVideoFolderPath
 
std::string tempNextFrameFileName
 

Constructor & Destructor Documentation

◆ Mp4WriterSinkUtils() [1/2]

Mp4WriterSinkUtils::Mp4WriterSinkUtils ( )

◆ ~Mp4WriterSinkUtils() [1/2]

Mp4WriterSinkUtils::~Mp4WriterSinkUtils ( )

◆ Mp4WriterSinkUtils() [2/2]

Mp4WriterSinkUtils::Mp4WriterSinkUtils ( )

◆ ~Mp4WriterSinkUtils() [2/2]

Mp4WriterSinkUtils::~Mp4WriterSinkUtils ( )

Member Function Documentation

◆ customNamedFileDirCheck()

bool Mp4WriterSinkUtils::customNamedFileDirCheck ( std::string baseFolder,
uint32_t chunkTimeInMinutes,
boost::filesystem::path relPath,
std::string & nextFrameFileName )
Here is the caller graph for this function:

◆ filePath()

std::string Mp4WriterSinkUtils::filePath ( boost::filesystem::path relPath,
std::string mp4FileName,
std::string baseFolder,
uint64_t chunkTimeInMins )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ format_2()

std::string Mp4WriterSinkUtils::format_2 ( int & min)
Here is the caller graph for this function:

◆ format_hrs()

std::string Mp4WriterSinkUtils::format_hrs ( int & hr)
Here is the caller graph for this function:

◆ getFilenameForNextFrame() [1/2]

std::string Mp4WriterSinkUtils::getFilenameForNextFrame ( std::string & basefolder,
uint32_t chunkSize )

◆ getFilenameForNextFrame() [2/2]

void Mp4WriterSinkUtils::getFilenameForNextFrame ( std::string & nextFrameFileName,
uint64_t & timestamp,
std::string & basefolder,
uint32_t chunkTimeInMinutes,
uint32_t syncTimeInSeconds,
bool & syncFlag,
short & frameType,
short naluType )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parseTSH264()

void Mp4WriterSinkUtils::parseTSH264 ( uint64_t & tm,
uint32_t & chunkTimeInMinutes,
uint32_t & syncTimeInSeconds,
boost::filesystem::path & relPath,
std::string & mp4FileName,
bool & syncFlag,
short frameType,
short naluType,
std::string baseFolder,
std::string & nextFrameFileName )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parseTSJpeg()

void Mp4WriterSinkUtils::parseTSJpeg ( uint64_t & tm,
uint32_t & chunkTimeInMinutes,
uint32_t & syncTimeInSeconds,
boost::filesystem::path & relPath,
std::string & mp4FileName,
bool & syncFlag,
std::string baseFolder,
std::string & nextFrameFileName )
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ currentFolder

std::string Mp4WriterSinkUtils::currentFolder
private

◆ lastSyncTS

std::time_t Mp4WriterSinkUtils::lastSyncTS
private

◆ lastVideoFolderPath

boost::filesystem::path Mp4WriterSinkUtils::lastVideoFolderPath
private

◆ lastVideoMinute

int Mp4WriterSinkUtils::lastVideoMinute =0
private

◆ lastVideoName

std::string Mp4WriterSinkUtils::lastVideoName
private

◆ lastVideoTS

std::time_t Mp4WriterSinkUtils::lastVideoTS
private

◆ tempNextFrameFileName

std::string Mp4WriterSinkUtils::tempNextFrameFileName
private

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