示例#1
0
 /// <summary>
 /// Compares two media types and determines whether they are identical. If they are not
 /// identical, the method indicates how the two formats differ.
 /// </summary>
 /// <returns>HRESULT</returns>
 public unsafe int IsEqual(MFMediaType mediaType, out MediaTypeEqualFlags flags)
 {
     fixed(void *ptr = &flags)
     {
         return(InteropCalls.CalliMethodPtr(_basePtr, (void *)((mediaType == null) ? IntPtr.Zero : mediaType.BasePtr), new IntPtr(ptr), ((void **)(*(void **)_basePtr))[35]));
     }
 }
示例#2
0
 /// <summary>
 /// Compares two media types and determines whether they are identical. If they are not
 /// identical, the method indicates how the two formats differ.
 /// </summary>
 /// <param name="mediaType">The <see cref="MFMediaType"/> to compare.</param>
 /// <param name="flags">Receives a bitwise OR of zero or more flags, indicating the degree of similarity between the two media types.</param>
 /// <returns>HRESULT</returns>
 public unsafe int IsEqualNative(MFMediaType mediaType, out MediaTypeEqualFlags flags)
 {
     fixed (void* ptr = &flags)
     {
         return InteropCalls.CalliMethodPtr(UnsafeBasePtr, (void*)((mediaType == null) ? IntPtr.Zero : mediaType.BasePtr), new IntPtr(ptr), ((void**)(*(void**)UnsafeBasePtr))[35]);
     }
 }