Operates a frames
Methods
FramesCreate
Creates frame with specified maximum video storage size (video+ancillary data)
Syntax
void FramesCreate( int _cbVideoSize, string _bsProps, out MFrame _ppFrame )
Parameters
_cbVideoSize - size of video frame
_bsProps - properties of frame
_ppFrame - output frame
FramesCreateFromFile
Creates a frame from image file (BMP, JPG, PNG, TIFF).
Syntax
void FramesCreateFromFile( string _bsFileName, out MFrame _ppFrame, string _bsPropsList )
Parameters
_bsFileName - path to file
_ppFrame - output frame object
_bsPropsList - additional properties
FramesCreateFromHBITMAP
Creates a frame from handle of bitmap
Syntax
void FramesCreateFromHBITMAP( long _hBitmap, out MFrame _ppFrame, string _bsPropsList )
Parameters
_hBitmap - bitmap handle
_ppFrame - output frame object
_bsPropsList - additional properties
FramesCreateFromMem
Creates frame from memory.
Syntax
void FramesCreateFromMem( ref M_VID_PROPS _pVidProps, long _pbVideo, out MFrame _ppFrame, string _bsPropsList )
Parameters
_pVidProps - video properties
_pbVideo - pointer to the video. It could be NULL (0), in this case black frame will be created.
_ppFrame - output frame object
_bsPropsList - additional properties
FramesCreateFromSurface
Creates a frame from surface (Direct3D object). Not implemented yet.
Syntax
void FramesCreateFromSurface( object _pSurface, out MFrame _ppFrame, string _bsPropsList )
Parameters
_pSurface - surface object
_ppFrame - output frame object
_bsPropsList - additional properties
FramesMakeLocal
Uses for interprocess communication. Note: before use a frame from other process make sure that you call this method.
Syntax
void FramesMakeLocal( MFrame _ppFrame, out MFrame _ppFrameLocal, int _bMakeRef )
Parameters
_ppFrame - input external frame
_ppFrameLocal - local frame
_bMakeRef - indicates whether the local frame is a reference of the source