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

AVStrMiniInitializeAllocator

KSALLOCATOR_DISPATCH