nx_metadata_sdk  1.0
Metadata SDK
engine.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 <memory>
6 
7 #include <nx/sdk/uuid.h>
8 #include <nx/sdk/analytics/helpers/plugin.h>
9 #include <nx/sdk/analytics/helpers/engine.h>
10 #include <nx/sdk/analytics/i_uncompressed_video_frame.h>
11 
12 namespace nx {
13 namespace vms_server_plugins {
14 namespace analytics {
15 namespace stub {
16 namespace video_frames {
17 
19 {
20 public:
21  using PixelFormat = nx::sdk::analytics::IUncompressedVideoFrame::PixelFormat;
22 
24 
25  virtual ~Engine() override;
26 
27  // Capabilities.
28  bool needUncompressedVideoFrames() const { return m_needUncompressedVideoFrames; }
29 
30  PixelFormat pixelFormat() const { return m_pixelFormat; }
31 
32 protected:
33  virtual std::string manifestString() const override;
34 
35 protected:
36  virtual void doObtainDeviceAgent(
38  const nx::sdk::IDeviceInfo* deviceInfo) override;
39 
40 private:
41  void initCapabilities();
42 
43 private:
44  nx::sdk::analytics::Plugin* const m_plugin;
45 
46  std::string m_capabilities;
47  std::string m_streamTypeFilter;
48  bool m_needUncompressedVideoFrames = false;
49  PixelFormat m_pixelFormat = PixelFormat::yuv420;
50 };
51 
52 } // namespace video_frames
53 } // namespace stub
54 } // namespace analytics
55 } // namespace vms_server_plugins
56 } // namespace nx
Definition: i_device_info.h:14
Definition: result.h:47
Definition: apple_utils.h:6
Definition: engine.h:34
Definition: plugin.h:23