Exemple #1
0
 public unsafe int CopyToBufferNative(MFMediaBuffer buffer)
 {
     return(InteropCalls.CalliMethodPtr(_basePtr, (void *)((buffer == null) ? IntPtr.Zero : buffer.BasePtr), ((void **)(*(void **)_basePtr))[46]));
 }
Exemple #2
0
 public unsafe int RemoveBufferByIndexNative(int index)
 {
     return(InteropCalls.CalliMethodPtr(_basePtr, index, ((void **)(*(void **)_basePtr))[43]));
 }
Exemple #3
0
 public unsafe int RemoveAllBuffersNative()
 {
     return(InteropCalls.CalliMethodPtr(_basePtr, ((void **)(*(void **)_basePtr))[44]));
 }
Exemple #4
0
 public unsafe int UnlockNative()
 {
     return(InteropCalls.CalliMethodPtr(_basePtr, ((void **)(*(void **)_basePtr))[4]));
 }
Exemple #5
0
 /// <summary>
 /// Associates an attribute value with a key.
 /// </summary>
 /// <returns>HRESULT</returns>
 public unsafe int SetItemNative(Guid key, PropertyVariant value)
 {
     return(InteropCalls.CalliMethodPtr(_basePtr, &key, &value, ((void **)(*(void **)_basePtr))[18]));
 }
Exemple #6
0
 /// <summary>
 /// Sets the current read or write position.
 /// </summary>
 /// <param name="position">New position in the stream, as a byte offset from the start of the stream.</param>
 /// <returns>HRESULT</returns>
 public unsafe int SetCurrentPositionNative(long position)
 {
     return(InteropCalls.CalliMethodPtr(UnsafeBasePtr, position, ((void **)(*(void **)UnsafeBasePtr))[7]));
 }
Exemple #7
0
 /// <summary>
 /// Closes the stream and releases any resources associated with the stream, such as sockets or file handles. This method also cancels any pending asynchronous I/O requests.
 /// </summary>
 /// <returns>HRESULT</returns>
 public unsafe int CloseNative()
 {
     return(InteropCalls.CalliMethodPtr(UnsafeBasePtr, ((void **)(*(void **)UnsafeBasePtr))[17]));
 }
Exemple #8
0
 /// <summary>
 /// Associates a byte array with a key.
 /// </summary>
 /// <returns>HRESULT</returns>
 public unsafe int SetBlob(Guid key, IntPtr buf, int cbBufSize)
 {
     return(InteropCalls.CalliMethodPtr(_basePtr, &key, (void *)buf, cbBufSize, ((void **)(*(void **)_basePtr))[26]));
 }
Exemple #9
0
 /// <summary>
 /// Associates an IUnknown pointer with a key.
 /// </summary>
 /// <returns>HRESULT</returns>
 public unsafe int SetUnknown(Guid key, IntPtr unknown)
 {
     return(InteropCalls.CalliMethodPtr(_basePtr, &key, unknown, ((void **)(*(void **)_basePtr))[27]));
 }
Exemple #10
0
 /// <summary>
 /// Associates a double value with a key.
 /// </summary>
 /// <returns>HRESULT</returns>
 public unsafe int SetDouble(Guid key, double value)
 {
     return(InteropCalls.CalliMethodPtr(_basePtr, &key, value, ((void **)(*(void **)_basePtr))[23]));
 }
Exemple #11
0
 /// <summary>
 /// Associates a GUID value with a key.
 /// </summary>
 /// <returns>HRESULT</returns>
 public unsafe int SetGuid(Guid key, Guid value)
 {
     return(InteropCalls.CalliMethodPtr(_basePtr, &key, &value, ((void **)(*(void **)_basePtr))[24]));
 }
Exemple #12
0
 /// <summary>
 /// Associates a UINT64 value with a key.
 /// </summary>
 /// <returns>HRESULT</returns>
 public unsafe int SetUINT64(Guid key, long value)
 {
     return(InteropCalls.CalliMethodPtr(_basePtr, &key, value, ((void **)(*(void **)_basePtr))[22]));
 }
Exemple #13
0
 /// <summary>
 /// Removes all key/value pairs from the object's attribute list.
 /// </summary>
 /// <returns>HRESULT</returns>
 public unsafe int DeleteAllItems()
 {
     return(InteropCalls.CalliMethodPtr(_basePtr, ((void **)(*(void **)_basePtr))[20]));
 }
Exemple #14
0
 /// <summary>
 /// Removes a key/value pair from the object's attribute list.
 /// </summary>
 /// <returns>HRESULT</returns>
 public unsafe int DeleteItem(Guid key)
 {
     return(InteropCalls.CalliMethodPtr(_basePtr, &key, ((void **)(*(void **)_basePtr))[19]));
 }
Exemple #15
0
 /// <summary>
 /// Currently no flags are defined. Instead, metadata for samples is defined using
 /// attributes. To set attibutes on a sample, use the IMFAttributes interface, which
 /// IMFSample inherits.
 /// </summary>
 /// <param name="flags">must be zero</param>
 /// <returns>HRESULT</returns>
 public unsafe int SetSampleFlagsNative(MFSampleFlags flags)
 {
     return(InteropCalls.CalliMethodPtr(_basePtr, flags, ((void **)(*(void **)_basePtr))[34]));
 }
Exemple #16
0
 /// <summary>
 /// Locks the attribute store so that no other thread can access it.
 /// </summary>
 /// <returns>HRESULT</returns>
 public unsafe int LockStore()
 {
     return(InteropCalls.CalliMethodPtr(_basePtr, ((void **)(*(void **)_basePtr))[28]));
 }
Exemple #17
0
 public unsafe int SetSampleTimeNative(long hnsSampleTime)
 {
     return(InteropCalls.CalliMethodPtr(_basePtr, hnsSampleTime, ((void **)(*(void **)_basePtr))[36]));
 }
Exemple #18
0
 /// <summary>
 /// Copies all of the attributes from this object into another attribute store.
 /// </summary>
 /// <returns>HRESULT</returns>
 public unsafe int CopyAllItems(MFAttributes destination)
 {
     return(InteropCalls.CalliMethodPtr(_basePtr, (void *)((destination == null) ? IntPtr.Zero : destination.BasePtr), ((void **)(*(void **)_basePtr))[32]));
 }
Exemple #19
0
 /// <summary>
 /// Begins an asynchronous write operation to the stream.
 /// </summary>
 /// <param name="buffer">Pointer to a buffer containing the data to write.</param>
 /// <param name="count">Size of the buffer in bytes.</param>
 /// <param name="callback">Pointer to the IMFAsyncCallback interface of a callback object. The caller must implement this interface.</param>
 /// <param name="unkState">Pointer to the IUnknown interface of a state object, defined by the caller. Can be Zero.</param>
 /// <returns>HRESULT</returns>
 public unsafe int BeginWriteNative(IntPtr buffer, int count, IntPtr callback, IntPtr unkState)
 {
     return(InteropCalls.CalliMethodPtr(UnsafeBasePtr, buffer, count, callback, unkState,
                                        ((void **)(*(void **)UnsafeBasePtr))[13]));
 }
Exemple #20
0
 /// <summary>
 /// Retrieves the value associated with a key.
 /// </summary>
 /// <returns>HRESULT</returns>
 public unsafe int GetItem(Guid key, IntPtr valueRef)
 {
     return(InteropCalls.CalliMethodPtr(_basePtr, &key, (void *)valueRef, ((void **)(*(void **)_basePtr))[3]));
 }
Exemple #21
0
 /// <summary>
 /// Sets the length of the stream.
 /// </summary>
 /// <param name="length">The length of the stream in bytes.</param>
 /// <returns>HRESULT</returns>
 /// <remarks>Use the <see cref="Length"/> property for easier usage with automated error handling.</remarks>
 public unsafe int SetLengthNative(long length)
 {
     return(InteropCalls.CalliMethodPtr(UnsafeBasePtr, length, ((void **)(*(void **)UnsafeBasePtr))[5]));
 }
Exemple #22
0
 public unsafe int SetSampleDurationNative(long hnsSampleDuration)
 {
     return(InteropCalls.CalliMethodPtr(_basePtr, hnsSampleDuration, ((void **)(*(void **)_basePtr))[38]));
 }
Exemple #23
0
 public unsafe int SetCurrentLengthNative(int currentLength)
 {
     return(InteropCalls.CalliMethodPtr(_basePtr, currentLength, ((void **)(*(void **)_basePtr))[6]));
 }
Exemple #24
0
 /// <summary>
 /// Retrieves a wide-character string associated with a key.
 /// </summary>
 /// <returns>HRESULT</returns>
 public unsafe int GetString(Guid key, IntPtr wszValue, int cchBufSize, IntPtr cchLength)
 {
     return(InteropCalls.CalliMethodPtr(_basePtr, &key, &wszValue, cchBufSize, &cchLength, ((void **)(*(void **)_basePtr))[12]));
 }