CreateElementAttribute
|
[in] const char* feature
|
Name of the feature to which the element belongs.
|
|
[in] const char* element
|
Name of the element for which the attribute will be created.
|
|
[in] const char* elemValue
|
String representing the value of the element.
|
|
[in] const char* attr
|
Name of the attribute to be created.
|
|
[in] const char* value
|
String representing the value of the attribute.
|
S_OK
|
Success
|
E_FAIL
|
Failure
|
E_NOINTERFACE
|
Feature or element does not exist
|
|
CreateAdvancedFeature("SwissKnife", "MaxFrameRate", "");
|
|
SetFeatureElement("MaxFrameRate", "pVariable", "regPayloadSize", true);
|
SetFeatureElement("MaxFrameRate", "pVariable", "regExposureTime", true);
|
SetFeatureElement("MaxFrameRate", "pVariable", "regMultiplierFPS", true);
|
SetFeatureElement("MaxFrameRate", "Formula", "( (1000000000 / 8 / PS < 1000000 / ET) ? (1000000000 / 8 / PS) * MUL : (1000000 / ET) * MUL)", true);
|
|
CreateElementAttribute("MaxFrameRate", "pVariable", "regPayloadSize", "Name", "PS");
|
CreateElementAttribute("MaxFrameRate", "pVariable", "regExposureTime", "Name", "ET");
|
CreateElementAttribute("MaxFrameRate", "pVariable", "regMultiplierFPS", "Name", "MUL");
|
|