다음을 통해 공유


CTransInPlaceInputPin::GetAllocator (Windows CE 5.0)

Send Feedback

Retrieves the upstream allocator.

HRESULT GetAllocator(IMemAllocator** ppAllocator);

Parameters

  • ppAllocator
    Returned allocator.

Return Values

Returns a NOERROR if the method retrieves an allocator being used by the downstream filter.

If no such allocator exists, returns S_OK if the method retrieves an allocator being used by the output pin of the in-place transform filter.

If neither of these types of allocators can be retrieved, returns VFW_E_NO_ALLOCATOR.

Remarks

This member function overrides the CBaseInputPin::GetAllocator member function and implements the IMemInputPin::GetAllocator method.

If an allocator has been agreed upon, this member function supplies that allocator.

Otherwise, if the downstream input pin can supply an allocator, it does so.

If no allocator is available, this member function returns VFW_E_NO_ALLOCATOR.

Requirements

DirectShow applications and DirectShow filters have different include file and link library requirements.

For more information, see Setting Up the Build Environment.

OS Versions: Windows CE 2.12 and later. Version 2.12 requires DXPAK 1.0 or later.
Header:

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.