共用方式為


IAMVideoControl::GetFrameRateList

 
Microsoft DirectShow 9.0

IAMVideoControl::GetFrameRateList

The GetFrameRateList method retrieves a list of available frame rates.

Syntax

  HRESULT GetFrameRateList (
  IPin *pPin,
  long iIndex,
  SIZE Dimensions,
  long *ListSize,
  LONGLONG **FrameRates
);

Parameters

pPin

[in] Pointer to the pin to query for the list of frame rates.

iIndex

[in] Index of the format to query for frame rates. This index corresponds to the order in which formats are enumerated by IAMStreamConfig::GetStreamCaps. The value must range between zero and the number of supported VIDEO_STREAM_CONFIG_CAPS structures returned by IAMStreamConfig::GetNumberOfCapabilities) minus one.

Dimensions

[in] Frame image size (width and height) in pixels.

ListSize

[out] Pointer to the number of elements in the list of frame rates.

FrameRates

[out] Address of a pointer to an array of frame rates in 100-nanosecond units. Can be NULL if you only need ListSize.

Return Values

Returns an HRESULT value that depends on the implementation of the interface.

Remarks

The caller is responsible for freeing the memory through a call to CoTaskMemFree.

Requirements

Header: Declared in Strmif.h; include Dshow.h.

Library: Use Strmiids.lib.

See Also