Media Foundation Functions

Functions

Name Description
DEFINE_MEDIATYPE_GUID macro Defines a media subtype GUID from a FOURCC code, D3DFORMAT value, or audio format type.
MFAllocateSerialWorkQueue Creates a work queue that is guaranteed to serialize work items. The serial work queue wraps an existing multithreaded work queue. The serial work queue enforces a first-in, first-out (FIFO) execution order.
MFBeginCreateFile Begins an asynchronous request to create a byte stream from a file.
MFCancelCreateFile Cancels an asynchronous request to create a byte stream from a file.
MFCancelWorkItem Attempts to cancel an asynchronous operation that was scheduled with MFScheduleWorkItem or MFScheduleWorkItemEx.
MFConvertBuffer2SubtitleInfo Converts a buffer to subtitle information.
MFCopyImage Copies an image or image plane from one buffer to another.
MFCreate2DMediaBuffer Creates a system-memory buffer object to hold 2D image data.
MFCreateAggregateSource Creates a media source that aggregates a collection of media sources.
MFCreateAlignedMemoryBuffer Allocates system memory with a specified byte alignment and creates a media buffer to manage the memory.
MFCreateAsyncResult Creates an asynchronous result object. Use this function if you are implementing an asynchronous method.
MFCreateAttributes Creates an empty attribute store.
MFCreateCollection Creates an empty collection object.
MFCreateDXGIDeviceManager Creates an instance of the Microsoft DirectX Graphics Infrastructure (DXGI) Device Manager.
MFCreateDXGISurfaceBuffer Creates a media buffer to manage a Microsoft DirectX Graphics Infrastructure (DXGI) surface.
MFCreateDXGISurfaceBufferX Creates a media buffer to manage a Microsoft DirectX Graphics Infrastructure (DXGI) surface, for Xbox One.
MFCreateDxvaSampleRendererX Creates an object with IXboxNV12MFSampleRenderer interface, which renders DXVA accelerated decoded Media Foundation samples outputted by Media Foundation Source Reader or by decoder Media Foundation Transform.
MFCreateEventQueue Creates an event queue.
MFCreateFile Creates a byte stream from a file.
MFCreateMediaBufferFromMediaType Allocates a system-memory buffer that is optimal for a specified media type.
MFCreateMediaBufferWrapper Creates a media buffer that wraps an existing media buffer. The new media buffer points to the same memory as the original media buffer, or to an offset from the start of the memory.
MFCreateMediaEvent Creates a media event object.
MFCreateMediaExtensionActivate Creates an activation object for a Windows Runtime class.
MFCreateMediaType Creates an empty media type.
MFCreateMediaTypeFromProperties Create an IMFMediaType from properties.
MFCreateMemoryBuffer Allocates system memory and creates a media buffer to manage it.
MFCreateMFByteStreamOnStream Creates a Microsoft Media Foundation byte stream that wraps an IStream pointer.
MFCreateNV12ToRGB32ConverterX Creates a converter to convert from an NV12 texture to an RGB texture. This function is for Xbox exclusive applications.
MFCreatePresentationDescriptor Creates a presentation descriptor.
MFCreatePropertiesFromMediaType Creates properties from a IMFMediaType.
MFCreateProtectedEnvironmentAccess Creates an IMFProtectedEnvironmentAccess object that allows content protection systems to perform a handshake with the protected environment.
MFCreateRGB32ToNV12ConverterX Creates a converter to convert from an RGB texture to an NV12 texture. This function is for Xbox exclusive applications.
MFCreateSample Creates an empty media sample.
MFCreateSinkWriterFromMediaSink Creates the sink writer from a media sink.
MFCreateSinkWriterFromURL Creates the sink writer from a URL or byte stream.
MFCreateSourceReaderFromByteStream Creates the source reader from a byte stream.
MFCreateSourceReaderFromMediaSource Creates the source reader from a media source.
MFCreateSourceReaderFromURL Creates the source reader from a URL.
MFCreateSourceResolver Creates the source resolver, which is used to create a media source from a URL or byte stream.
MFCreateStreamDescriptor Creates a stream descriptor.
MFCreateStreamOnMFByteStreamEx Creates an IRandomAccessStream object that wraps a Microsoft Media Foundation byte stream.
MFCreateTempFile Creates a byte stream that is backed by a temporary local file.
MFCreateTrackedSample Creates an IMFTrackedSample object that tracks the reference counts on a video media sample.
MFCreateVideoSampleAllocatorEx Creates an object that allocates video samples that are compatible with Microsoft DirectX Graphics Infrastructure (DXGI).
MFCreateWaveFormatExFromMFMediaType Converts a Media Foundation audio media type to a WAVEFORMATEX structure.
MFDeserializeAttributesFromStream Loads attributes from a stream into an attribute store.
MFEndCreateFile Completes an asynchronous request to create a byte stream from a file.
MFGetAttribute2UINT32asUINT64 Gets an attribute whose value is two UINT32 values packed into a UINT64.
MFGetAttributeDouble Returns a double value from an attribute store, or a default value if the attribute is not present.
MFGetAttributeRatio Retrieves an attribute whose value is a ratio.
MFGetAttributesAsBlob Converts the contents of an attribute store to a byte array.
MFGetAttributesAsBlobSize Retrieves the size of the buffer needed for the MFGetAttributesAsBlob function.
MFGetAttributeSize Retrieves an attribute whose value is a size, expressed as a width and height.
MFGetAttributeString Gets a string value from an attribute store.
MFGetAttributeUINT32 Returns a UINT32 value from an attribute store, or a default value if the attribute is not present.
MFGetAttributeUINT64 Returns a UINT64 value from an attribute store, or a default value if the attribute is not present.
MFGetLocalId Gets the local system ID.
MFGetService Queries an object for a specified service interface.This function is a helper function that wraps the IMFGetService::GetService method. The function queries the object for the IMFGetService interface and, if successful, calls GetService on the object.
MFGetSystemId Returns an IMFSystemId object for retrieving system id data.
MFGetSystemTime Returns the system time.
MFInitAttributesFromBlob Initializes the contents of an attribute store from a byte array.
MFInitMediaTypeFromWaveFormatEx Initializes a media type from a WAVEFORMATEX structure.
MFInvokeCallback Invokes a callback method to complete an asynchronous operation.
MFllMulDiv Calculates ((a * b) + d) / c, where each term is a 64-bit signed value.
MFLoadSignedLibrary Loads a dynamic link library that is signed for the protected environment.
MFLockDXGIDeviceManager Locks the shared Microsoft DirectX Graphics Infrastructure (DXGI) Device Manager.
MFLockPlatform Blocks the MFShutdown function.
MFLockSharedWorkQueue Obtains and locks a shared work queue.
MFLockWorkQueue Locks a work queue.
MFPutWaitingWorkItem Queues a work item that waits for an event to be signaled.
MFPutWorkItem2 Puts an asynchronous operation on a work queue, with a specified priority.
MFPutWorkItemEx2 Puts an asynchronous operation on a work queue, with a specified priority.
MFResetDXGIDeviceManagerX Resets the DXGI device manager, for Xbox One.
MFSerializeAttributesToStream Writes the contents of an attribute store to a stream.
MFSetAttribute2UINT32asUINT64 Packs two UINT32 values into a UINT64 attribute value.
MFSetAttributeRatio Sets a ratio as a 64-bit attribute value.
MFSetAttributeSize Sets width and height as a single 64-bit attribute value.
MFShutdown Shuts down the Microsoft Media Foundation platform. Call this function once for every call to MFStartup. Do not call this function from work queue threads.
MFStartup Initializes Microsoft Media Foundation.
MFUnlockDXGIDeviceManager Unlocks the shared Microsoft DirectX Graphics Infrastructure (DXGI) Device Manager.
MFUnlockPlatform Unlocks the Media Foundation platform after it was locked by a call to the MFLockPlatform function.
MFUnlockWorkQueue Unlocks a work queue.
MFUnwrapMediaType Retrieves a media type that was wrapped in another media type by the MFWrapMediaType function.
MFWrapMediaType Creates a media type that wraps another media type.
Pack2UINT32AsUINT64 Packs two UINT32 values into a UINT64 value.
PackRatio Packs two UINT32 values, which represent a ratio, into a UINT64 value.
PackSize Packs a UINT32 width value and a UINT32 height value into a UINT64 value that represents a size.
Unpack2UINT32AsUINT64 Gets the low-order and high-order UINT32 values from a UINT64 value.
UnpackRatio Gets the low-order and high-order UINT32 values from a UINT64 value that represents a ratio.
UnpackSize Gets the low-order and high-order UINT32 values from a UINT64 value that represnets a size.