Operates with sources of frames
Methods
SourceAVPropsGet
Gets 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 in milliseconds. 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 in milliseconds. 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 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 in milliseconds. 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 in milliseconds. By default use "-1".
_ppFrame - converted frame object
_bsHints - additional parameters
SourceFrameGetByNumber
Gets an original frame by its number. For live sources number is ignored.
Syntax
void SourceFrameGetByNumber( int _nFrameNo, long _rtMaxWait, out MFFrame _ppFrame, string _bsHints )
Parameters
_nFrameNo - frame's number
_rtMaxWait - maximal wait time in milliseconds. 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 in milliseconds. By default use "-1".
_ppFrame - converted frame object
_bsHints - additional parameters