Example #1
0
        /// <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");
            }
        }
Example #2
0
 internal static unsafe int CalliMethodPtr(void* _basePtr, int streamIndex, IntPtr intPtr, SetTypeFlags flags,
     void* ptr)
 {
     throw new NotImplementedException();
 }
Example #3
0
 internal static unsafe int CalliMethodPtr(void* _basePtr, int streamIndex, MediaType mediaType,
     SetTypeFlags flags)
 {
     throw new NotImplementedException();
 }
Example #4
0
 //----
 /// <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]);
 }
Example #5
0
 /// <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");
 }
Example #6
0
 //--
 /// <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]);
 }
Example #7
0
 /// <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");
 }
Example #8
0
 internal static unsafe int CalliMethodPtr(void *_basePtr, int streamIndex, IntPtr intPtr, SetTypeFlags flags,
                                           void *ptr)
 {
     throw new NotImplementedException();
 }
Example #9
0
 internal static unsafe int CalliMethodPtr(void *_basePtr, int streamIndex, MediaType mediaType,
                                           SetTypeFlags flags)
 {
     throw new NotImplementedException();
 }
Example #10
0
        //----

        /// <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]));
        }
Example #11
0
 /// <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");
 }
Example #12
0
        //--

        /// <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]));
        }
Example #13
0
        //----

        /// <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]));
        }