Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ICodecAPI::GetParameterValues method

The GetParameterValues method gets the list of possible values for a codec property.

This method applies only to properties that support a list of possible values, as opposed to a linear range.

Syntax


HRESULT GetParameterValues(
  [in]  const GUID    *Api,
  [out]       VARIANT **Values,
  [out]       ULONG   *ValuesCount
);

Parameters

Api [in]

Pointer to a GUID that specifies the property to query. For a list of standard codec properties, see Codec API Properties.

Values [out]

Receives a pointer to an array of VARIANT types. The array contains the list of values that the encoder supports for this property. The caller must free each VARIANT by calling VariantClear. The caller must also free the array by calling CoTaskMemFree.

ValuesCount [out]

Receives the number of elements in the Values array.

Return value

This method can return one of these values.

Return codeDescription
S_OK

The method succeeded.

E_INVALIDARG

Invalid argument.

VFW_E_CODECAPI_LINEAR_RANGE

The property supports a range of values, not a list.

 

Remarks

If the property supports a range of values, instead of a list, the method returns VFW_E_CODECAPI_LINEAR_RANGE. In that case, call ICodecAPI::GetParameterRange to get the range of values.

Requirements

Minimum supported client

Windows XP with SP2 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2003 R2 [desktop apps | Windows Store apps]

Header

Strmif.h (include Dshow.h)

Library

Strmiids.lib

See also

Codec API Reference
ICodecAPI
Encoder API

 

 

Community Additions

ADD
Show:
© 2015 Microsoft