Exemple #1
0
 public static extern void MFConvertColorInfoToDXVA(
     out int pdwToDXVA,
     MFVideoFormat pFromFormat
     );
Exemple #2
0
 public static extern void MFConvertColorInfoFromDXVA(
     MFVideoFormat pToFormat,
     int dwFromDXVA
     );
Exemple #3
0
 public static extern void MFInitVideoFormat(
     [In] MFVideoFormat pVideoFormat,
     [In] MFStandardVideoFormat type
     );
Exemple #4
0
 public static extern void MFInitVideoFormat_RGB(
     [In] MFVideoFormat pVideoFormat,
     [In] int dwWidth,
     [In] int dwHeight,
     [In] int D3Dfmt
     );
Exemple #5
0
 public static extern void MFCreateVideoMediaType(
     MFVideoFormat pVideoFormat,
     out IMFVideoMediaType ppIVideoMediaType
     );
Exemple #6
0
 public static extern void MFInitMediaTypeFromMFVideoFormat(
     [In] IMFMediaType pMFType,
     MFVideoFormat pMFVF,
     [In] int cbBufSize
     );
Exemple #7
0
 public static extern int MFGetUncompressedVideoFormat(
     [In, MarshalAs(UnmanagedType.LPStruct)] MFVideoFormat pVideoFormat
     );
Exemple #8
0
 public static extern void MFCreateMFVideoFormatFromMFMediaType(
     [In] IMFMediaType pMFType,
     out MFVideoFormat ppMFVF,
     out int pcbSize
     );
Exemple #9
0
        /// <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)));
        }