8 namespace vms_server_plugins {
11 namespace special_objects {
13 const std::string kGenerateFixedObjectSetting{
"generateFixedObject"};
14 const std::string kFixedObjectColorSetting{
"fixedObjectColor"};
15 const std::string kNoSpecialColorSettingValue{
"No special color"};
17 const std::string kGenerateCounterSetting{
"generateCounter"};
18 const std::string kCounterBoundingBoxSideSizeSetting{
"counterBoundingBoxSideSize"};
19 const std::string kCounterXOffsetSetting{
"counterXOffset"};
20 const std::string kCounterYOffsetSetting{
"counterYOffset"};
22 const std::string kBlinkingObjectPeriodMsSetting{
"blinkingObjectPeriodMs"};
23 const std::string kBlinkingObjectInDedicatedPacketSetting{
"blinkingObjectInDedicatedPacket"};
25 const std::string kGenerateObjectsEveryNFramesSetting{
"generateObjectsEveryNFrames"};
26 const std::string kAdditionalFrameProcessingDelayMsSetting{
"additionalFrameProcessingDelayMs"};
27 const std::string kOverallMetadataDelayMsSetting{
"overallMetadataDelayMs"};
29 static const std::string kSettingsModel = 1 + R
"json( 36 "caption": "Stub DeviceAgent settings", 41 "caption": "Object generation settings", 46 "name": ")json" + kGenerateFixedObjectSetting + R"json(", 47 "caption": "Generate fixed object", 48 "description": "Generates a fixed object with coordinates (0.25, 0.25, 0.25, 0.25)", 53 "name": ")json" + kFixedObjectColorSetting + R"json(", 54 "caption": "Fixed object color", 56 ")json" + kNoSpecialColorSettingValue + R"json(", 57 "Magenta", "Blue", "Green", "Yellow", "Cyan", "Purple", "Orange", 58 "Red", "White", "#FFFFC0", "!invalid!", "#NONHEX" 60 "defaultValue": ")json" + kNoSpecialColorSettingValue + R"json(" 64 "name": ")json" + kGenerateCounterSetting + R"json(", 65 "caption": "Generate counter", 66 "description": "Generates a counter", 70 "type": "DoubleSpinBox", 71 "caption": "Size of the side of the counter bounding box", 72 "name": ")json" + kCounterBoundingBoxSideSizeSetting + R"json(", 78 "type": "DoubleSpinBox", 79 "caption": "Counter bounding box X-Offset", 80 "name": ")json" + kCounterXOffsetSetting + R"json(", 86 "type": "DoubleSpinBox", 87 "caption": "Counter bounding box Y-Offset", 88 "name": ")json" + kCounterYOffsetSetting + R"json(", 95 "name": ")json" + kBlinkingObjectPeriodMsSetting + R"json(", 96 "caption": "Generate 1-frame BlinkingObject every N ms (if not 0)", 103 "name": ")json" + kBlinkingObjectInDedicatedPacketSetting + R"json(", 104 "caption": "Put BlinkingObject into a dedicated MetadataPacket", 105 "defaultValue": false 109 "name": ")json" + kGenerateObjectsEveryNFramesSetting + R"json(", 110 "caption": "Generate objects every N frames", 117 "name": ")json" + kOverallMetadataDelayMsSetting + R"json(", 118 "caption": "Overall metadata delay, ms", 121 "maxValue": 1000000000 127 "name": ")json" + kAdditionalFrameProcessingDelayMsSetting + R"json(", 128 "caption": "Additional frame processing delay, ms", 131 "maxValue": 1000000000 Definition: apple_utils.h:6