Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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

Mfidl.h

See also

IMFVideoSampleAllocatorCallback

 

 

Show:
© 2017 Microsoft