#include <SettingsInterface.h>
The settings interface is used to configure filters before they are connected downstream. The downstream connection finalises the media type and often, such as in the scale and crop filter, the media type is modified when configuring the filter.
Usage:
IBaseFilterPtr pScaleFilter = NULL; ... ISettingsInterfacePtr pSettingsInterface = pScaleFilter; char szParamValue[255]; int nLength = 0; HRESULT hr; hr = pSettingsInterface->GetParameter("targetwidth", 255, szParamValue, nLength); hr = pSettingsInterface->GetParameter("targetheight", 255, szParamValue, nLength); hr = pSettingsInterface->SetParameter("targetwidth", "800"); hr = pSettingsInterface->SetParameter("targetheight", "600");