Xeno-rat
Loading...
Searching...
No Matches
NAudio.MediaFoundation.IMFSample Interface Reference

http://msdn.microsoft.com/en-gb/library/windows/desktop/ms702192%28v=vs.85%29.aspx More...

Inheritance diagram for NAudio.MediaFoundation.IMFSample:
Collaboration diagram for NAudio.MediaFoundation.IMFSample:

Public Member Functions

new void GetItem ([In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey, [In, Out] IntPtr pValue)
 Retrieves the value associated with a key.
 
new void GetItemType ([In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey, out int pType)
 Retrieves the data type of the value associated with a key.
 
new void CompareItem ([In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey, IntPtr value, [MarshalAs(UnmanagedType.Bool)] out bool pbResult)
 Queries whether a stored attribute value equals a specified PROPVARIANT.
 
new void Compare ([MarshalAs(UnmanagedType.Interface)] IMFAttributes pTheirs, int matchType, [MarshalAs(UnmanagedType.Bool)] out bool pbResult)
 Compares the attributes on this object with the attributes on another object.
 
new void GetUINT32 ([In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey, out int punValue)
 Retrieves a UINT32 value associated with a key.
 
new void GetUINT64 ([In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey, out long punValue)
 Retrieves a UINT64 value associated with a key.
 
new void GetDouble ([In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey, out double pfValue)
 Retrieves a double value associated with a key.
 
new void GetGUID ([In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey, out Guid pguidValue)
 Retrieves a GUID value associated with a key.
 
new void GetStringLength ([In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey, out int pcchLength)
 Retrieves the length of a string value associated with a key.
 
new void GetString ([In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey, [Out, MarshalAs(UnmanagedType.LPWStr)] StringBuilder pwszValue, int cchBufSize, out int pcchLength)
 Retrieves a wide-character string associated with a key.
 
new void GetAllocatedString ([In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey, [MarshalAs(UnmanagedType.LPWStr)] out string ppwszValue, out int pcchLength)
 Retrieves a wide-character string associated with a key. This method allocates the memory for the string.
 
new void GetBlobSize ([In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey, out int pcbBlobSize)
 Retrieves the length of a byte array associated with a key.
 
new void GetBlob ([In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey, [Out, MarshalAs(UnmanagedType.LPArray)] byte[] pBuf, int cbBufSize, out int pcbBlobSize)
 Retrieves a byte array associated with a key.
 
new void GetAllocatedBlob ([In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey, out IntPtr ip, out int pcbSize)
 Retrieves a byte array associated with a key. This method allocates the memory for the array.
 
new void GetUnknown ([In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey, [In, MarshalAs(UnmanagedType.LPStruct)] Guid riid, [MarshalAs(UnmanagedType.IUnknown)] out object ppv)
 Retrieves an interface pointer associated with a key.
 
new void SetItem ([In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey, IntPtr value)
 Associates an attribute value with a key.
 
new void DeleteItem ([In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey)
 Removes a key/value pair from the object's attribute list.
 
new void DeleteAllItems ()
 Removes all key/value pairs from the object's attribute list.
 
new void SetUINT32 ([In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey, int unValue)
 Associates a UINT32 value with a key.
 
new void SetUINT64 ([In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey, long unValue)
 Associates a UINT64 value with a key.
 
new void SetDouble ([In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey, double fValue)
 Associates a double value with a key.
 
new void SetGUID ([In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey, [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidValue)
 Associates a GUID value with a key.
 
new void SetString ([In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey, [In, MarshalAs(UnmanagedType.LPWStr)] string wszValue)
 Associates a wide-character string with a key.
 
new void SetBlob ([In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey, [In, MarshalAs(UnmanagedType.LPArray, SizeParamIndex=2)] byte[] pBuf, int cbBufSize)
 Associates a byte array with a key.
 
new void SetUnknown ([MarshalAs(UnmanagedType.LPStruct)] Guid guidKey, [In, MarshalAs(UnmanagedType.IUnknown)] object pUnknown)
 Associates an IUnknown pointer with a key.
 
new void LockStore ()
 Locks the attribute store so that no other thread can access it.
 
new void UnlockStore ()
 Unlocks the attribute store.
 
new void GetCount (out int pcItems)
 Retrieves the number of attributes that are set on this object.
 
new void GetItemByIndex (int unIndex, out Guid pGuidKey, [In, Out] IntPtr pValue)
 Retrieves an attribute at the specified index.
 
new void CopyAllItems ([In, MarshalAs(UnmanagedType.Interface)] IMFAttributes pDest)
 Copies all of the attributes from this object into another attribute store.
 
void GetSampleFlags (out int pdwSampleFlags)
 Retrieves flags associated with the sample.
 
void SetSampleFlags (int dwSampleFlags)
 Sets flags associated with the sample.
 
void GetSampleTime (out long phnsSampletime)
 Retrieves the presentation time of the sample.
 
void SetSampleTime (long hnsSampleTime)
 Sets the presentation time of the sample.
 
void GetSampleDuration (out long phnsSampleDuration)
 Retrieves the duration of the sample.
 
void SetSampleDuration (long hnsSampleDuration)
 Sets the duration of the sample.
 
void GetBufferCount (out int pdwBufferCount)
 Retrieves the number of buffers in the sample.
 
void GetBufferByIndex (int dwIndex, out IMFMediaBuffer ppBuffer)
 Retrieves a buffer from the sample.
 
void ConvertToContiguousBuffer (out IMFMediaBuffer ppBuffer)
 Converts a sample with multiple buffers into a sample with a single buffer.
 
void AddBuffer (IMFMediaBuffer pBuffer)
 Adds a buffer to the end of the list of buffers in the sample.
 
void RemoveBufferByIndex (int dwIndex)
 Removes a buffer at a specified index from the sample.
 
void RemoveAllBuffers ()
 Removes all buffers from the sample.
 
void GetTotalLength (out int pcbTotalLength)
 Retrieves the total length of the valid data in all of the buffers in the sample.
 
void CopyToBuffer (IMFMediaBuffer pBuffer)
 Copies the sample data to a buffer.
 

Detailed Description

Member Function Documentation

◆ AddBuffer()

void NAudio.MediaFoundation.IMFSample.AddBuffer ( IMFMediaBuffer pBuffer)

Adds a buffer to the end of the list of buffers in the sample.

Here is the caller graph for this function:

◆ Compare()

new void NAudio.MediaFoundation.IMFSample.Compare ( [MarshalAs(UnmanagedType.Interface)] IMFAttributes pTheirs,
int matchType,
[MarshalAs(UnmanagedType.Bool)] out bool pbResult )

Compares the attributes on this object with the attributes on another object.

Implements NAudio.MediaFoundation.IMFAttributes.

◆ CompareItem()

new void NAudio.MediaFoundation.IMFSample.CompareItem ( [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
IntPtr value,
[MarshalAs(UnmanagedType.Bool)] out bool pbResult )

Queries whether a stored attribute value equals a specified PROPVARIANT.

Implements NAudio.MediaFoundation.IMFAttributes.

◆ ConvertToContiguousBuffer()

void NAudio.MediaFoundation.IMFSample.ConvertToContiguousBuffer ( out IMFMediaBuffer ppBuffer)

Converts a sample with multiple buffers into a sample with a single buffer.

◆ CopyAllItems()

new void NAudio.MediaFoundation.IMFSample.CopyAllItems ( [In, MarshalAs(UnmanagedType.Interface)] IMFAttributes pDest)

Copies all of the attributes from this object into another attribute store.

Implements NAudio.MediaFoundation.IMFAttributes.

◆ CopyToBuffer()

void NAudio.MediaFoundation.IMFSample.CopyToBuffer ( IMFMediaBuffer pBuffer)

Copies the sample data to a buffer.

◆ DeleteAllItems()

new void NAudio.MediaFoundation.IMFSample.DeleteAllItems ( )

Removes all key/value pairs from the object's attribute list.

Implements NAudio.MediaFoundation.IMFAttributes.

◆ DeleteItem()

new void NAudio.MediaFoundation.IMFSample.DeleteItem ( [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey)

Removes a key/value pair from the object's attribute list.

Implements NAudio.MediaFoundation.IMFAttributes.

◆ GetAllocatedBlob()

new void NAudio.MediaFoundation.IMFSample.GetAllocatedBlob ( [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
out IntPtr ip,
out int pcbSize )

Retrieves a byte array associated with a key. This method allocates the memory for the array.

Implements NAudio.MediaFoundation.IMFAttributes.

◆ GetAllocatedString()

new void NAudio.MediaFoundation.IMFSample.GetAllocatedString ( [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
[MarshalAs(UnmanagedType.LPWStr)] out string ppwszValue,
out int pcchLength )

Retrieves a wide-character string associated with a key. This method allocates the memory for the string.

Implements NAudio.MediaFoundation.IMFAttributes.

◆ GetBlob()

new void NAudio.MediaFoundation.IMFSample.GetBlob ( [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
[Out, MarshalAs(UnmanagedType.LPArray)] byte[] pBuf,
int cbBufSize,
out int pcbBlobSize )

Retrieves a byte array associated with a key.

Implements NAudio.MediaFoundation.IMFAttributes.

◆ GetBlobSize()

new void NAudio.MediaFoundation.IMFSample.GetBlobSize ( [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
out int pcbBlobSize )

Retrieves the length of a byte array associated with a key.

Implements NAudio.MediaFoundation.IMFAttributes.

◆ GetBufferByIndex()

void NAudio.MediaFoundation.IMFSample.GetBufferByIndex ( int dwIndex,
out IMFMediaBuffer ppBuffer )

Retrieves a buffer from the sample.

◆ GetBufferCount()

void NAudio.MediaFoundation.IMFSample.GetBufferCount ( out int pdwBufferCount)

Retrieves the number of buffers in the sample.

◆ GetCount()

new void NAudio.MediaFoundation.IMFSample.GetCount ( out int pcItems)

Retrieves the number of attributes that are set on this object.

Implements NAudio.MediaFoundation.IMFAttributes.

◆ GetDouble()

new void NAudio.MediaFoundation.IMFSample.GetDouble ( [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
out double pfValue )

Retrieves a double value associated with a key.

Implements NAudio.MediaFoundation.IMFAttributes.

◆ GetGUID()

new void NAudio.MediaFoundation.IMFSample.GetGUID ( [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
out Guid pguidValue )

Retrieves a GUID value associated with a key.

Implements NAudio.MediaFoundation.IMFAttributes.

◆ GetItem()

new void NAudio.MediaFoundation.IMFSample.GetItem ( [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
[In, Out] IntPtr pValue )

Retrieves the value associated with a key.

Implements NAudio.MediaFoundation.IMFAttributes.

◆ GetItemByIndex()

new void NAudio.MediaFoundation.IMFSample.GetItemByIndex ( int unIndex,
out Guid pGuidKey,
[In, Out] IntPtr pValue )

Retrieves an attribute at the specified index.

Implements NAudio.MediaFoundation.IMFAttributes.

◆ GetItemType()

new void NAudio.MediaFoundation.IMFSample.GetItemType ( [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
out int pType )

Retrieves the data type of the value associated with a key.

Implements NAudio.MediaFoundation.IMFAttributes.

◆ GetSampleDuration()

void NAudio.MediaFoundation.IMFSample.GetSampleDuration ( out long phnsSampleDuration)

Retrieves the duration of the sample.

◆ GetSampleFlags()

void NAudio.MediaFoundation.IMFSample.GetSampleFlags ( out int pdwSampleFlags)

Retrieves flags associated with the sample.

◆ GetSampleTime()

void NAudio.MediaFoundation.IMFSample.GetSampleTime ( out long phnsSampletime)

Retrieves the presentation time of the sample.

◆ GetString()

new void NAudio.MediaFoundation.IMFSample.GetString ( [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
[Out, MarshalAs(UnmanagedType.LPWStr)] StringBuilder pwszValue,
int cchBufSize,
out int pcchLength )

Retrieves a wide-character string associated with a key.

Implements NAudio.MediaFoundation.IMFAttributes.

◆ GetStringLength()

new void NAudio.MediaFoundation.IMFSample.GetStringLength ( [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
out int pcchLength )

Retrieves the length of a string value associated with a key.

Implements NAudio.MediaFoundation.IMFAttributes.

◆ GetTotalLength()

void NAudio.MediaFoundation.IMFSample.GetTotalLength ( out int pcbTotalLength)

Retrieves the total length of the valid data in all of the buffers in the sample.

◆ GetUINT32()

new void NAudio.MediaFoundation.IMFSample.GetUINT32 ( [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
out int punValue )

Retrieves a UINT32 value associated with a key.

Implements NAudio.MediaFoundation.IMFAttributes.

◆ GetUINT64()

new void NAudio.MediaFoundation.IMFSample.GetUINT64 ( [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
out long punValue )

Retrieves a UINT64 value associated with a key.

Implements NAudio.MediaFoundation.IMFAttributes.

◆ GetUnknown()

new void NAudio.MediaFoundation.IMFSample.GetUnknown ( [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
[In, MarshalAs(UnmanagedType.LPStruct)] Guid riid,
[MarshalAs(UnmanagedType.IUnknown)] out object ppv )

Retrieves an interface pointer associated with a key.

Implements NAudio.MediaFoundation.IMFAttributes.

◆ LockStore()

new void NAudio.MediaFoundation.IMFSample.LockStore ( )

Locks the attribute store so that no other thread can access it.

Implements NAudio.MediaFoundation.IMFAttributes.

◆ RemoveAllBuffers()

void NAudio.MediaFoundation.IMFSample.RemoveAllBuffers ( )

Removes all buffers from the sample.

◆ RemoveBufferByIndex()

void NAudio.MediaFoundation.IMFSample.RemoveBufferByIndex ( int dwIndex)

Removes a buffer at a specified index from the sample.

◆ SetBlob()

new void NAudio.MediaFoundation.IMFSample.SetBlob ( [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
[In, MarshalAs(UnmanagedType.LPArray, SizeParamIndex=2)] byte[] pBuf,
int cbBufSize )

Associates a byte array with a key.

Implements NAudio.MediaFoundation.IMFAttributes.

◆ SetDouble()

new void NAudio.MediaFoundation.IMFSample.SetDouble ( [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
double fValue )

Associates a double value with a key.

Implements NAudio.MediaFoundation.IMFAttributes.

◆ SetGUID()

new void NAudio.MediaFoundation.IMFSample.SetGUID ( [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
[In, MarshalAs(UnmanagedType.LPStruct)] Guid guidValue )

Associates a GUID value with a key.

Implements NAudio.MediaFoundation.IMFAttributes.

◆ SetItem()

new void NAudio.MediaFoundation.IMFSample.SetItem ( [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
IntPtr value )

Associates an attribute value with a key.

Implements NAudio.MediaFoundation.IMFAttributes.

◆ SetSampleDuration()

void NAudio.MediaFoundation.IMFSample.SetSampleDuration ( long hnsSampleDuration)

Sets the duration of the sample.

Here is the caller graph for this function:

◆ SetSampleFlags()

void NAudio.MediaFoundation.IMFSample.SetSampleFlags ( int dwSampleFlags)

Sets flags associated with the sample.

◆ SetSampleTime()

void NAudio.MediaFoundation.IMFSample.SetSampleTime ( long hnsSampleTime)

Sets the presentation time of the sample.

Here is the caller graph for this function:

◆ SetString()

new void NAudio.MediaFoundation.IMFSample.SetString ( [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
[In, MarshalAs(UnmanagedType.LPWStr)] string wszValue )

Associates a wide-character string with a key.

Implements NAudio.MediaFoundation.IMFAttributes.

◆ SetUINT32()

new void NAudio.MediaFoundation.IMFSample.SetUINT32 ( [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
int unValue )

Associates a UINT32 value with a key.

Implements NAudio.MediaFoundation.IMFAttributes.

◆ SetUINT64()

new void NAudio.MediaFoundation.IMFSample.SetUINT64 ( [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
long unValue )

Associates a UINT64 value with a key.

Implements NAudio.MediaFoundation.IMFAttributes.

◆ SetUnknown()

new void NAudio.MediaFoundation.IMFSample.SetUnknown ( [MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
[In, MarshalAs(UnmanagedType.IUnknown)] object pUnknown )

Associates an IUnknown pointer with a key.

Implements NAudio.MediaFoundation.IMFAttributes.

◆ UnlockStore()

new void NAudio.MediaFoundation.IMFSample.UnlockStore ( )

Unlocks the attribute store.

Implements NAudio.MediaFoundation.IMFAttributes.


The documentation for this interface was generated from the following file: