Compartir a través de


IAMDevMemoryAllocator::GetInfo

 
Microsoft DirectShow 9.0

IAMDevMemoryAllocator::GetInfo

  • Note   The IAMDevMemoryAllocator interface is deprecated.

Retrieves information about the memory capabilities.

Syntax

  HRESULT GetInfo(
    DWORD *pdwcbTotalFree,
    DWORD *pdwcbLargestFree,
    DWORD *pdwcbTotalMemory,
    DWORD *pdwcbMinimumChunk
);

Parameters

pdwcbTotalFree

[out] Pointer to the total free memory size.

pdwcbLargestFree

[out] Pointer to the returned largest free memory size.

pdwcbTotalMemory

[out] Pointer to the returned total memory size.

pdwcbMinimumChunk

[out] Pointer to the returned minimum chunk size, giving granularity and alignment rules.

Return Value

Returns an HRESULT value.

Remarks

Use this method to find out the total amount of memory available. This method returns values for the entire on-board memory that is available on that device. If multiple filters (devices) share the memory, it will return the amount available to that specific device, which might be a portion of the total amount of on-board memory. This amount will be implementation-specific. For example, the on-board memory manager on the codec might be able to access all 32 megabytes (MB) of memory on the card. However, individual pin implementations of IAMDevMemoryAllocator only report a portion of this memory.

Requirements

Reference: Dshow.h.

Library: Quartz.dll.

See Also