/// <summary> /// Sets the <see cref="MediaType"/> on an output stream, or tests whether a <see cref="MediaType"/> is acceptable. /// </summary> /// <param name="outputStreamIndex">Zero-based index of an output stream on the DMO.</param> /// <param name="mediaType">The new <see cref="MediaType"/>.</param> /// <param name="flags">Bitwise combination of zero or more flags from the <see cref="SetTypeFlags"/> enumeration.</param> public void SetOutputType(int outputStreamIndex, MediaType mediaType, SetTypeFlags flags) { int result = SetOutputTypeNative(outputStreamIndex, mediaType, flags); if ((flags & SetTypeFlags.TestOnly) != SetTypeFlags.TestOnly) { DmoException.Try(result, n, "SetOutputType"); } }
internal static unsafe int CalliMethodPtr(void* _basePtr, int streamIndex, IntPtr intPtr, SetTypeFlags flags, void* ptr) { throw new NotImplementedException(); }
internal static unsafe int CalliMethodPtr(void* _basePtr, int streamIndex, MediaType mediaType, SetTypeFlags flags) { throw new NotImplementedException(); }
//---- /// <summary> /// The SetOutputType method sets the media type on an output stream, or tests whether a media type is acceptable. /// </summary> /// <param name="outputStreamIndex">Zero-based index of an output stream on the DMO.</param> /// <param name="mediaType">The new mediatype.</param> /// <param name="flags">Flags for setting the mediatype.</param> /// <returns>HRESULT</returns> public unsafe int SetOutputTypeNative(int outputStreamIndex, MediaType mediaType, SetTypeFlags flags) { return InteropCalls.CalliMethodPtr(_basePtr, outputStreamIndex, (void*)&mediaType, flags, ((void**)(*(void**)_basePtr))[9]); }
/// <summary> /// The SetOutputType method sets the media type on an output stream, or tests whether a media type is acceptable. /// </summary> /// <param name="outputStreamIndex">Zero-based index of an output stream on the DMO.</param> /// <param name="mediaType">The new mediatype.</param> /// <param name="flags">Flags for setting the mediatype.</param> public void SetOutputType(int outputStreamIndex, MediaType mediaType, SetTypeFlags flags) { int result = SetOutputTypeNative(outputStreamIndex, mediaType, flags); if ((flags & SetTypeFlags.TestOnly) != SetTypeFlags.TestOnly) DmoException.Try(result, n, "SetOutputType"); }
//-- /// <summary> /// The SetInputType method sets the media type on an input stream, or tests whether a media type is acceptable. /// </summary> /// <param name="inputStreamIndex">Zero-based index of an input stream on the DMO.</param> /// <param name="mediaType">The new mediatype.</param> /// <param name="flags">Flags for setting the mediatype.</param> /// <returns>HRESULT</returns> public unsafe int SetInputTypeNative(int inputStreamIndex, MediaType mediaType, SetTypeFlags flags) { return InteropCalls.CalliMethodPtr(_basePtr, inputStreamIndex, ((void*)(&mediaType)), flags, ((void**)(*(void**)_basePtr))[8]); }
/// <summary> /// The SetInputType method sets the media type on an input stream. /// </summary> /// <param name="inputStreamIndex">Zero-based index of an input stream on the DMO.</param> /// <param name="mediaType">The new mediatype.</param> /// <param name="flags">Flags for setting the mediatype.</param> public void SetInputType(int inputStreamIndex, MediaType mediaType, SetTypeFlags flags) { DmoException.Try(SetInputTypeNative(inputStreamIndex, mediaType, flags), n, "SetInputType"); }
internal static unsafe int CalliMethodPtr(void *_basePtr, int streamIndex, IntPtr intPtr, SetTypeFlags flags, void *ptr) { throw new NotImplementedException(); }
internal static unsafe int CalliMethodPtr(void *_basePtr, int streamIndex, MediaType mediaType, SetTypeFlags flags) { throw new NotImplementedException(); }
//---- /// <summary> /// Sets the <see cref="MediaType"/> on an output stream, or tests whether a <see cref="MediaType"/> is acceptable. /// </summary> /// <param name="outputStreamIndex">Zero-based index of an output stream on the DMO.</param> /// <param name="mediaType">The new <see cref="MediaType"/>.</param> /// <param name="flags">Bitwise combination of zero or more flags from the <see cref="SetTypeFlags"/> enumeration.</param> /// <returns>HRESULT</returns> public unsafe int SetOutputTypeNative(int outputStreamIndex, MediaType mediaType, SetTypeFlags flags) { return(LocalInterop.CalliMethodPtr(UnsafeBasePtr, outputStreamIndex, &mediaType, flags, ((void **)(*(void **)UnsafeBasePtr))[9])); }
/// <summary> /// Sets the media type on an input stream. /// </summary> /// <param name="inputStreamIndex">Zero-based index of an input stream on the DMO.</param> /// <param name="mediaType">The new mediatype.</param> /// <param name="flags">Bitwise combination of zero or more flags from the <see cref="SetTypeFlags"/> enumeration.</param> public void SetInputType(int inputStreamIndex, MediaType mediaType, SetTypeFlags flags) { DmoException.Try(SetInputTypeNative(inputStreamIndex, mediaType, flags), n, "SetInputType"); }
//-- /// <summary> /// Sets the media type on an input stream, or tests whether a media type is acceptable. /// </summary> /// <param name="inputStreamIndex">Zero-based index of an input stream on the DMO.</param> /// <param name="mediaType">The new mediatype.</param> /// <param name="flags">Bitwise combination of zero or more flags from the <see cref="SetTypeFlags"/> enumeration.</param> /// <returns>HRESULT</returns> public unsafe int SetInputTypeNative(int inputStreamIndex, MediaType mediaType, SetTypeFlags flags) { return(InteropCalls.CalliMethodPtr(UnsafeBasePtr, inputStreamIndex, &mediaType, flags, ((void **)(*(void **)UnsafeBasePtr))[8])); }
//---- /// <summary> /// The SetOutputType method sets the media type on an output stream, or tests whether a media type is acceptable. /// </summary> /// <param name="outputStreamIndex">Zero-based index of an output stream on the DMO.</param> /// <param name="mediaType">The new mediatype.</param> /// <param name="flags">Flags for setting the mediatype.</param> /// <returns>HRESULT</returns> public unsafe int SetOutputTypeNative(int outputStreamIndex, MediaType mediaType, SetTypeFlags flags) { return(InteropCalls.CalliMethodPtr(_basePtr, outputStreamIndex, (void *)&mediaType, flags, ((void **)(*(void **)_basePtr))[9])); }