UID | title | ms.date | targetos | description | tech.root | req.assembly | req.construct-type | req.ddi-compliance | req.dll | req.header | req.idl | req.include-header | req.irql | req.kmdf-ver | req.lib | req.max-support | req.namespace | req.redist | req.target-min-winverclnt | req.target-min-winversvr | req.target-type | req.type-library | req.umdf-ver | req.unicode-ansi | topic_type | api_type | api_location | api_name | f1_keywords | dev_langs | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
NF:mfidl.IMFSampleAllocatorControl.SetDefaultAllocator |
IMFSampleAllocatorControl::SetDefaultAllocator |
11/4/2019 |
Windows |
Sets the default sample allocator to use for the specified output stream. |
mf |
function |
mfuuid.dll |
mfidl.h |
Windows 10, version 2004 (10.0; Build 19041) |
Windows Server, version 2004 (10.0; Build 19041) |
|
|
|
|
|
|
Sets the default sample allocator to use for the specified output stream.
The ID of the output stream that the pAllocator parameter applies to.
Receives a pointer to a sample allocator to use for the specified output stream. The allocator supports one of the MF allocator interfaces, such as IMFVideoCaptureSampleAllocator or IMFVideoSampleAllocatorEx.
The method returns an HRESULT.
The system calls this method to provide components with a sample allocator that allows the component to allocate samples using memory that is accessible from within a container.
Components that use the provided allocator should return MFSampleAllocatorUsage_UsesProvidedAllocator from calls to IMFSampleAllocatorControl::GetAllocatorUsage.