Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Initializes the video sample allocator object.
Syntax
HRESULT InitializeSampleAllocatorEx(
[in] DWORD cInitialSamples,
[in] DWORD cMaximumSamples,
[in] IMFAttributes *pAttributes,
[in] IMFMediaType *pMediaType
);
Parameters
[in] cInitialSamples
The initial number of samples to allocate.
[in] cMaximumSamples
The maximum number of samples to allocate.
[in] pAttributes
A pointer to the IMFAttributes interface. You can use this interface to configure the allocator. Currently, the following configuration attributes are defined:
- MF_SA_BUFFERS_PER_SAMPLE
- MF_SA_D3D11_BINDFLAGS
- MF_SA_D3D11_USAGE
- MF_SA_D3D11_SHARED
- MF_SA_D3D11_SHARED_WITHOUT_MUTEX
[in] pMediaType
A pointer to the IMFMediaType interface of a media type that describes the video format.
Return value
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 8 [desktop apps | UWP apps] |
Minimum supported server | Windows Server 2012 [desktop apps | UWP apps] |
Target Platform | Windows |
Header | mfidl.h |