nx_server_plugin_sdk 1.0 Server Plugin SDK

stub_analytics_plugin_video_frames_ini.h
1 // Copyright 2018-present Network Optix, Inc. Licensed under MPL 2.0: www.mozilla.org/MPL/2.0/
2
3 #pragma once
4
5 #include <nx/kit/ini_config.h>
6 #include <nx/sdk/analytics/helpers/pixel_format.h>
7
8 namespace nx {
9 namespace vms_server_plugins {
10 namespace analytics {
11 namespace stub {
12 namespace video_frames {
13
14 struct Ini: public nx::kit::IniConfig
15 {
16 const std::string needUncompressedVideoFramesDescription =
17 "Respective capability in the manifest: one of "
18 + nx::sdk::analytics::allPixelFormatsToStdString(", ") + ".\n"
19 "Empty means no such capability.";
20
21 Ini(): IniConfig("stub_analytics_plugin_video_frames.ini") { reload(); }
22
23 NX_INI_FLAG(0, enableOutput, "");
24
25 NX_INI_FLAG(0, deviceDependent, "Respective capability in the manifest.");
26
27 NX_INI_STRING("", needUncompressedVideoFrames, needUncompressedVideoFramesDescription.c_str());
28
29 NX_INI_INT(-1, crashDeviceAgentOnFrameN,
30 "If >= 0, intentionally crash DeviceAgent on processing a frame with this index.");
31
32 NX_INI_STRING("primary", preferredStream,
33 "Preferred stream in the Engine manifest. Possible values: \"primary\", \"secondary\",\n"
34 "\"undefined\".");
35 };
36
37 Ini& ini();
38
39 } // namespace video_frames
40 } // namespace stub
41 } // namespace analytics
42 } // namespace vms_server_plugins
43 } // namespace nx
nx::kit::IniConfig
Definition: ini_config.h:77
ini
static TestIni & ini()
Definition: ini_config_ut.cpp:69
nx
Definition: apple_utils.h:6
nx::kit::IniConfig::IniConfig
IniConfig(const char *iniFile)
Definition: ini_config.cpp:541
nx::kit::IniConfig::reload
void reload()
Definition: ini_config.cpp:589
nx::vms_server_plugins::analytics::stub::video_frames::Ini
Definition: stub_analytics_plugin_video_frames_ini.h:14