PFNKSDEFAULTFREE callback function (ks.h)
An AVStream minidriver's AVStrMiniAllocatorFreeFrame routine frees the specified frame.
Syntax
PFNKSDEFAULTFREE Pfnksdefaultfree;
void Pfnksdefaultfree(
[in] PVOID Context,
[in] PVOID Buffer
)
{...}
Parameters
[in] Context
Pointer to the allocator's context structure created in AVStrMiniInitializeAllocator.
[in] Buffer
Pointer to the frame to be freed.
Return value
None
Remarks
The minidriver specifies this routine's address in the Free member of its KSALLOCATOR_DISPATCH structure. The minidriver passes this structure to the class driver in KSPIN_DISPATCH.
AVStream calls AVStrMiniFree to free a frame, passing as parameters the context structure set in the initialization dispatch and a pointer to the frame to free.
For more information, see KS Allocators.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Available in Microsoft Windows XP and later operating systems and DirectX 8.0 and later DirectX versions. |
Target Platform | Desktop |
Header | ks.h (include Ks.h) |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for