nx_metadata_sdk  1.0
Metadata SDK
i_object_track_info.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/sdk/interface.h>
6 #include <nx/sdk/i_list.h>
7 
8 #include <nx/sdk/analytics/i_timestamped_object_metadata.h>
9 #include <nx/sdk/analytics/i_uncompressed_video_frame.h>
10 #include <nx/sdk/analytics/i_compressed_video_packet.h>
11 
12 namespace nx {
13 namespace sdk {
14 namespace analytics {
15 
16 class IObjectTrackInfo: public Interface<IObjectTrackInfo>
17 {
18 public:
19  static auto interfaceId() { return makeId("nx::sdk::analytics::IObjectTrackInfo"); }
20 
22  protected: virtual IList<ITimestampedObjectMetadata>* getTrack() const = 0;
23  public: Ptr<IList<ITimestampedObjectMetadata>> track() const { return toPtr(getTrack()); }
24 
31  protected: virtual IUncompressedVideoFrame* getBestShotVideoFrame() const = 0;
32  public: Ptr<IUncompressedVideoFrame> bestShotVideoFrame() const
33  {
34  return toPtr(getBestShotVideoFrame());
35  }
36 
43  protected: virtual ITimestampedObjectMetadata* getBestShotObjectMetadata() const = 0;
44  public: Ptr<ITimestampedObjectMetadata> bestShotObjectMetadata() const
45  {
46  return toPtr(getBestShotObjectMetadata());
47  }
48 };
49 
50 } // namespace analytics
51 } // namespace sdk
52 } // namespace nx
virtual IList< ITimestampedObjectMetadata > * getTrack() const =0
Definition: interface.h:28
virtual ITimestampedObjectMetadata * getBestShotObjectMetadata() const =0
Definition: ptr.h:18
Definition: i_object_track_info.h:16
virtual IUncompressedVideoFrame * getBestShotVideoFrame() const =0
Definition: apple_utils.h:6
Definition: i_timestamped_object_metadata.h:11
static constexpr const InterfaceId * makeId(const char(&charArray)[len])
Definition: i_ref_countable.h:78
Definition: i_uncompressed_video_frame.h:13
Definition: i_list.h:11