IMFTrackedSample Interface

Tracks the reference counts on a video media sample. Video samples created by the MFCreateVideoSampleFromSurface function expose this interface.

Syntax

interface IMFTrackedSample : public IUnknown  

Remarks

Use this interface to determine whether it is safe to delete or re-use the buffer contained in a sample. One object assigns itself as the owner of the video sample by calling SetAllocator. When all objects release their reference counts on the sample, the owner’s callback method is invoked.

Requirements

Header: Declared in mfidl.h.

Library: Use strmiids.lib.