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 code | Description |
|---|---|
|
The method succeeded. |
|
Invalid argument. |
|
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 |
|
|
Library |
|
See also