nx_metadata_sdk  1.0
Metadata 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\".");
34 };
35 
36 Ini& ini();
37 
38 } // namespace video_frames
39 } // namespace stub
40 } // namespace analytics
41 } // namespace vms_server_plugins
42 } // namespace nx
Definition: ini_config.h:78
static TestIni & ini()
Definition: ini_config_ut.cpp:72
Definition: apple_utils.h:6
IniConfig(const char *iniFile)
Definition: ini_config.cpp:651
void reload()
Definition: ini_config.cpp:706
Definition: stub_analytics_plugin_video_frames_ini.h:14