Share via


IMSVidVideoRenderer2::SetAllocator Method

This topic applies to Windows XP Service Pack 1 or later.
The SetAllocator method specifies an allocator-presenter for the VMR. Applications can use this method to provide their own custom allocator-presenter objects.

Syntax

HRESULT SetAllocator(
  [in]  IUnknown *pAllocPresent,
  [in]  long ID = -1
);

Parameters

  • pAllocPresent [in]
    Pointer to the IUnknown interface of the allocator-presenter object.

  • ID [in]
    Optionally, specifies an identifier (ID) for the allocator-presenter object. The default value of -1 indicates that the MSVidVideoRenderer object will create an ID when it builds the filter graph. In that case, the MSVidVideoRenderer object uses the lower 32 bits of the allocator-presenter's IUnknown interface pointer as the ID. Note that the ID is for application use; the VMR does not use it.

Return Value

Returns an HRESULT value. Possible values include the following.

Return code Description

S_OK

Success.

Requirements

Header Declared in Dshow.h.
DLL Requires Quartz.dll.

See Also

IMSVidVideoRenderer2 Interface

Send comments about this topic to Microsoft

Build date: 12/4/2008