public static extern void MFConvertColorInfoToDXVA( out int pdwToDXVA, MFVideoFormat pFromFormat );
public static extern void MFConvertColorInfoFromDXVA( MFVideoFormat pToFormat, int dwFromDXVA );
public static extern void MFInitVideoFormat( [In] MFVideoFormat pVideoFormat, [In] MFStandardVideoFormat type );
public static extern void MFInitVideoFormat_RGB( [In] MFVideoFormat pVideoFormat, [In] int dwWidth, [In] int dwHeight, [In] int D3Dfmt );
public static extern void MFCreateVideoMediaType( MFVideoFormat pVideoFormat, out IMFVideoMediaType ppIVideoMediaType );
public static extern void MFInitMediaTypeFromMFVideoFormat( [In] IMFMediaType pMFType, MFVideoFormat pMFVF, [In] int cbBufSize );
public static extern int MFGetUncompressedVideoFormat( [In, MarshalAs(UnmanagedType.LPStruct)] MFVideoFormat pVideoFormat );
public static extern void MFCreateMFVideoFormatFromMFMediaType( [In] IMFMediaType pMFType, out MFVideoFormat ppMFVF, out int pcbSize );
/// <summary> /// Initializes the media type with a MFVideoFormat structure. /// </summary> /// <param name="mediaType">A valid IMFMediaType instance.</param> /// <param name="videoFormat">A MFVideoFormat structure that describe the media type.</param> /// <returns>If this function succeeds, it returns the S_OK member. Otherwise, it returns another HResult's member that describe the error.</returns> public static HResult InitializeFromMFVideoFormat(this IMFMediaType mediaType, MFVideoFormat videoFormat) { if (mediaType == null) { throw new ArgumentNullException("mediaType"); } if (videoFormat == null) { throw new ArgumentNullException("videoFormat"); } return(MFExtern.MFInitMediaTypeFromMFVideoFormat(mediaType, videoFormat, Marshal.SizeOf(videoFormat))); }