/// <summary>
 /// Initializes a new instance of the <see cref="DmoOutputDataBuffer"/> struct.
 /// </summary>
 /// <param name="bufferSize">The maxlength (in bytes) of the internally used <see cref="MediaBuffer"/>.</param>
 public DmoOutputDataBuffer(int bufferSize)
 {
     Buffer     = new MONO.MediaBuffer(bufferSize);
     Status     = OutputDataBufferFlags.None;
     Timestamp  = 0;
     TimeLength = 0;
 }
Example #2
0
        public void ProcessInput(int inputStreamIndex, MONO.MediaBuffer mediaBuffer)
        {
            int result = ProcessInputNative(inputStreamIndex, mediaBuffer, InputDataBufferFlags.None, 0, 0);

            if (result == (int)HResult.S_FALSE)
            {
                return;
            }

            DmoException.Try(result, n, "ProcessInput");
        }
Example #3
0
 public unsafe int ProcessInputNative(int inputStreamIndex, MONO.MediaBuffer mediaBuffer, InputDataBufferFlags flags,
                                      long timestamp, long timeduration)
 {
     return(LocalInterop.CalliMethodPtr(UnsafeBasePtr, inputStreamIndex, mediaBuffer.NativePointer.ToPointer(), flags, timestamp, timeduration,
                                        ((void **)(*(void **)UnsafeBasePtr))[21]));
 }