Operates with file sources.
Methods
ReaderAbort
Aborts a reader process. For example to abort a process of getting a frame from file.
Syntax
void ReaderAbort()
ReaderClose
Closes a file source.
Syntax
void ReaderClose()
ReaderDurationGet
Gets duration of a source file
Syntax
void ReaderDurationGet( out double _pdblDuration )
Parameters
_pdblDuration - duration of a file/stream
ReaderNameGet
Gets a name of the source file
Syntax
void ReaderNameGet( out string _pbsFileName )
Parameters
_pbsFileName - source file name
ReaderOpen
Opens a source file.
Syntax
void ReaderOpen( string _bsPath, string _bsPropsList )
Parameters
_bsPath - path to a file
_bsPropsList - additional parameters
SourceAVPropsGet
Gets original media properties (audio and video) of a source object
Syntax
void SourceAVPropsGet( out M_AV_PROPS _pAVProps )
Parameters
_pAVProps - media properties
SourceFrameConvertedGet
Gets a next frame (that is converted to required format) from file or live source
Syntax
void SourceFrameConvertedGet( ref M_AV_PROPS _pAVPropsOut, long _rtMaxWait, out MFFrame _ppFrame, string _bsHints )
Parameters
_pAVPropsOut - media properties that specify required format for a frame
_rtMaxWait - maximal wait time for a frame in 100-nanoseconds units. By default use "-1".
_ppFrame - converted frame object
_bsHints - additional parameters
SourceFrameConvertedGetByNumber
Gets a converted to required format frame by its number. For live sources number is ignored.
Syntax
void SourceFrameConvertedGetByNumber( ref M_AV_PROPS _pAVPropsOut, int _nFrameNo, long _rtMaxWait, out MFFrame _ppFrame, string _bsHints )
Parameters
_pAVPropsOut - required format's properties for a frame
_nFrameNo - number of a frame. It is possible to use negative values. For example, "-1" returns you a next frame and "-5" returns you the next 5th frame
_rtMaxWait - maximal wait time for a frame in 100-nanoseconds units. By default use "-1".
_ppFrame - converted frame object
_bsHints - additional parameters
SourceFrameConvertedGetByTime
Gets a converted to required format frame by its time. For live sources the time is ignored.
Syntax
void SourceFrameConvertedGetByTime( ref M_AV_PROPS _pAVPropsOut, double _dblTimeSec, long _rtMaxWait, out MFFrame _ppFrame, string _bsHints )
Parameters
_pAVPropsOut - required format's properties for a frame
_dblTimeSec - position of a frame in time. To get a next frame use "-1"
_rtMaxWait - maximal wait time for a frame in 100-nanoseconds units. By default use "-1".
_ppFrame - converted frame object
_bsHints - additional parameters
SourceFrameGet
Gets an original next frame of a file or live source
Syntax
void SourceFrameGet( long _rtMaxWait, out MFFrame _ppFrame, string _bsHints )
Parameters
_rtMaxWait - maximal wait time for a frame in 100-nanoseconds units. By default use "-1".
_ppFrame - converted frame object
_bsHints - additional parameters
SourceFrameGetByNumber
Gets an original frame by its number. For live sources the number is ignored.
Syntax
void SourceFrameGetByNumber( int _nFrameNo, long _rtMaxWait, out MFFrame _ppFrame, string _bsHints )
Parameters
_nFrameNo - frame's number
_rtMaxWait - maximal wait time for a frame in 100-nanoseconds units. By default use "-1".
_ppFrame - converted frame object
_bsHints - additional parameters
SourceFrameGetByTime
Gets an original frame by its time. For live sources time is ignored.
Syntax
void SourceFrameGetByTime( double _dblTimeSec, long _rtMaxWait, out MFFrame _ppFrame, string _bsHints )
Parameters
_dblTimeSec - position of a frame in time. To get a next frame use "-1".
_rtMaxWait - maximal wait time for a frame in 100-nanoseconds units. By default use "-1".
_ppFrame - converted frame object
_bsHints - additional parameters