Skip to content

Latest commit

 

History

History
69 lines (55 loc) · 1.98 KB

nf-mfidl-imfsampleallocatorcontrol-setdefaultallocator.md

File metadata and controls

69 lines (55 loc) · 1.98 KB
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)
apiref
COM
mfuuid.lib
mfuuid.dll
IMFSampleAllocatorControl::SetDefaultAllocator
IMFSampleAllocatorControl::SetDefaultAllocator
mfidl/IMFSampleAllocatorControl::SetDefaultAllocator
c++

-description

Sets the default sample allocator to use for the specified output stream.

-parameters

-param dwOutputStreamID

The ID of the output stream that the pAllocator parameter applies to.

-param pAllocator

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.

-returns

The method returns an HRESULT.

-remarks

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.

-see-also