MFORMATSLib Namespace > IMFFrame Interface : MFConvert Method |
Sub MFConvert( _ ByRef _pPropsDest As M_AV_PROPS, _ ByRef _ppFrameRes As MFFrame, _ ByRef _pnFrameRest As Integer, _ ByVal _bsPropsList As String, _ ByVal _bsConverterID As String _ )
void MFConvert( ref M_AV_PROPS _pPropsDest, out MFFrame _ppFrameRes, out int _pnFrameRest, string _bsPropsList, string _bsConverterID )
procedure MFConvert( var _pPropsDest: M_AV_PROPS; Out _ppFrameRes: MFFrame; Out _pnFrameRest: Integer; _bsPropsList: String; _bsConverterID: String );
void MFConvert( ref M_AV_PROPS _pPropsDest, [PARAMFLAG::Out] MFFrame* _ppFrameRes, [PARAMFLAG::Out] int _pnFrameRest, BSTR* _bsPropsList, BSTR* _bsConverterID )
Here is example of how to convert a frame:
MFFrame pFrame; m_objLive.SourceFrameConvertedGet(ref m_avProps, -1, out pFrame, ""); M_AV_PROPS props = new M_AV_PROPS(); props.vidProps.eInterlace = eMInterlace.eMI_Field1First; // you can set any fields that you need MFFrame convertedFrame; int rest; pFrame.MFConvert(ref props, out convertedFrame, out rest, "", "");