Logo
ApraPipes 1.0
Loading...
Searching...
No Matches
Mp4ReaderDetailJpeg Class Reference
Inheritance diagram for Mp4ReaderDetailJpeg:
Inheritance graph
Collaboration diagram for Mp4ReaderDetailJpeg:
Collaboration graph

Public Member Functions

 Mp4ReaderDetailJpeg (Mp4ReaderSourceProps &props, std::function< frame_sp(size_t size, std::string &pinId)> _makeFrame, std::function< frame_sp(frame_sp &bigFrame, size_t &size, string &pinId)> _makeFrameTrim, std::function< void(frame_sp frame)> _sendEOS, std::function< void(std::string &pinId, framemetadata_sp &metadata)> _setMetadata, std::function< void(frame_sp &frame)> _sendMp4ErrorFrame, std::function< void(Mp4ReaderSourceProps &props)> _setProps)
 
 ~Mp4ReaderDetailJpeg ()
 
void setMetadata ()
 
bool produceFrames (frame_container &frames)
 
void sendEndOfStream ()
 
int mp4Seek (mp4_demux *demux, uint64_t time_offset_usec, mp4_seek_method syncType, int &seekedToFrame)
 
int getGop ()
 
- Public Member Functions inherited from Mp4ReaderDetailAbs
 Mp4ReaderDetailAbs (Mp4ReaderSourceProps &props, std::function< frame_sp(size_t size, string &pinId)> _makeFrame, std::function< frame_sp(frame_sp &bigFrame, size_t &size, string &pinId)> _makeFrameTrim, std::function< void(frame_sp frame)> _sendEOS, std::function< void(std::string &pinId, framemetadata_sp &metadata)> _setMetadata, std::function< void(frame_sp &errorFrame)> _sendMp4ErrorFrame, std::function< void(Mp4ReaderSourceProps &props)> _setProps)
 
 ~Mp4ReaderDetailAbs ()
 
bool Init ()
 
void updateMstate (Mp4ReaderSourceProps &props, std::string videoPath)
 
void setProps (Mp4ReaderSourceProps &props)
 
std::string getOpenVideoPath ()
 
int32_t getOpenVideoFrameCount ()
 
std::map< std::string, std::pair< uint64_t, uint64_t > > getSnapShot ()
 
bool refreshCache ()
 
std::string getSerFormatVersion ()
 
void setPlayback (float _speed, bool _direction)
 
bool getVideoRangeFromCache (std::string &videoPath, uint64_t &start_ts, uint64_t &end_ts)
 
bool attemptFileClose ()
 
bool parseFS ()
 
bool initNewVideo (bool firstOpenAfterInit=false)
 
void openVideoSetPointer (std::string &filePath)
 
bool randomSeekInternal (uint64_t &skipTS, bool forceReopen=false)
 
uint64_t calcReloadFileAfter ()
 
void termOpenVideo ()
 
bool randomSeek (uint64_t &skipTS, bool forceReopen=false) noexcept
 
void makeAndSendMp4Error (int errorType, int errorCode, std::string errorMsg, int openErrorCode, uint64_t _errorMp4TS)
 
bool isOpenVideoFinished ()
 
void readNextFrame (frame_sp &imgFrame, frame_sp &metadetaFrame, size_t &imgSize, size_t &metadataSize, uint64_t &frameTSInMsecs, int32_t &mp4FIndex) noexcept
 
void readNextFrameInternal (frame_sp &imgFrame, frame_sp &metadetaFrame, size_t &imageFrameSize, size_t &metadataFrameSize, uint64_t &frameTSInMsecs, int32_t &mp4FIndex)
 

Additional Inherited Members

- Public Attributes inherited from Mp4ReaderDetailAbs
Mp4ReaderSourceProps mProps
 
int mWidth = 0
 
int mHeight = 0
 
bool mDirection
 
bool isMp4SeekFrame = false
 
int ret
 
double mFPS = 0
 
float playbackSpeed = 1
 
float framesToSkip = 0
 
double mDurationInSecs = 0
 
std::function< frame_sp(size_t size, string &pinId)> makeFrame
 
std::function< void(frame_sp frame)> sendEOS
 
std::function< frame_sp(frame_sp &bigFrame, size_t &size, string &pinId)> makeFrameTrim
 
std::function< void(frame_sp &errorFrame)> sendMp4ErrorFrame
 
std::function< void(std::string &pinId, framemetadata_sp &metadata)> mSetMetadata
 
std::function< void(Mp4ReaderSourceProps &props)> setMp4ReaderProps
 
std::string h264ImagePinId
 
std::string encodedImagePinId
 
std::string metadataFramePinId
 
boost::shared_ptr< ModulecontrolModule = nullptr
 
- Protected Attributes inherited from Mp4ReaderDetailAbs
struct Mp4ReaderDetailAbs::DemuxAndParserState mState
 
uint64_t openVideoStartingTS = 0
 
uint64_t reloadFileAfter = 0
 
int seekedToFrame = -1
 
bool isVideoFileFound = true
 
uint64_t currentTS = 0
 
bool sentEOSSignal = false
 
bool seekReachedEOF = false
 
bool waitFlag = false
 
uint64_t recheckDiskTS = 0
 
boost::shared_ptr< OrderedCacheOfFilescof
 
framemetadata_sp updatedEncodedImgMetadata
 
framemetadata_sp mH264Metadata
 

Constructor & Destructor Documentation

◆ Mp4ReaderDetailJpeg()

Mp4ReaderDetailJpeg::Mp4ReaderDetailJpeg ( Mp4ReaderSourceProps & props,
std::function< frame_sp(size_t size, std::string &pinId)> _makeFrame,
std::function< frame_sp(frame_sp &bigFrame, size_t &size, string &pinId)> _makeFrameTrim,
std::function< void(frame_sp frame)> _sendEOS,
std::function< void(std::string &pinId, framemetadata_sp &metadata)> _setMetadata,
std::function< void(frame_sp &frame)> _sendMp4ErrorFrame,
std::function< void(Mp4ReaderSourceProps &props)> _setProps )
inline

◆ ~Mp4ReaderDetailJpeg()

Mp4ReaderDetailJpeg::~Mp4ReaderDetailJpeg ( )
inline

Member Function Documentation

◆ getGop()

int Mp4ReaderDetailJpeg::getGop ( )
virtual

Implements Mp4ReaderDetailAbs.

◆ mp4Seek()

int Mp4ReaderDetailJpeg::mp4Seek ( mp4_demux * demux,
uint64_t time_offset_usec,
mp4_seek_method syncType,
int & seekedToFrame )
virtual

Implements Mp4ReaderDetailAbs.

◆ produceFrames()

bool Mp4ReaderDetailJpeg::produceFrames ( frame_container & frames)
virtual

Implements Mp4ReaderDetailAbs.

Here is the call graph for this function:

◆ sendEndOfStream()

void Mp4ReaderDetailJpeg::sendEndOfStream ( )
inlinevirtual

Implements Mp4ReaderDetailAbs.

◆ setMetadata()

void Mp4ReaderDetailJpeg::setMetadata ( )
virtual

Reimplemented from Mp4ReaderDetailAbs.

Here is the call graph for this function:

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