IMFVideoSampleAllocatorCallback::GetFreeSampleCount method
Gets the number of video samples that are currently available for use.
Syntax
HRESULT GetFreeSampleCount( [out] LONG *plSamples );
Parameters
- plSamples [out]
-
Receives the number of available samples.
Return value
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
To get a video sample from the allocator, call the IMFVideoSampleAllocator::AllocateSample method. The AllocateSample method removes a sample from the sample pool and returns it to the caller. When a sample is released, it returns to the pool. The GetFreeSampleCount method returns the count of samples that remain in the sample pool.
Requirements
|
Minimum supported client |
Windows 7 [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server |
Windows Server 2008 R2 [desktop apps | Windows Store apps] |
|
Header |
|
See also