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 IObjectTrackInfo0: public Interface<IObjectTrackInfo0>
17 {
18 public:
19 static auto interfaceId() { return makeId("nx::sdk::analytics::IObjectTrackInfo"); }
20
22 protected: virtual IList<ITimestampedObjectMetadata>* getTrack() const = 0;
24 public: Ptr<IList<ITimestampedObjectMetadata>> track() const { return toPtr(getTrack()); }
25
27 protected: virtual IUncompressedVideoFrame* getBestShotVideoFrame() const = 0;
34 public: Ptr<IUncompressedVideoFrame> bestShotVideoFrame() const
35 {
36 return toPtr(getBestShotVideoFrame());
37 }
38
40 protected: virtual ITimestampedObjectMetadata* getBestShotObjectMetadata() const = 0;
47 public: Ptr<ITimestampedObjectMetadata> bestShotObjectMetadata() const
48 {
49 return toPtr(getBestShotObjectMetadata());
50 }
51 };
52
53 class IObjectTrackInfo: public Interface<IObjectTrackInfo, IObjectTrackInfo0>
54 {
55 public:
56 static auto interfaceId() { return makeId("nx::sdk::analytics::IObjectTrackInfo1"); }
57
64 virtual const char* bestShotImageData() const = 0;
65
70 virtual int bestShotImageDataSize() const = 0;
71
76 virtual const char* bestShotImageDataFormat() const = 0;
77 };
78 using IObjectTrackInfo1 = IObjectTrackInfo;
79
80 } // namespace analytics
81 } // namespace sdk
82 } // namespace nx
nx::sdk::analytics::IObjectTrackInfo0::track
Ptr< IList< ITimestampedObjectMetadata > > track() const
Definition: i_object_track_info.h:24
nx::sdk::Interface
Definition: interface.h:49
nx::sdk::analytics::IObjectTrackInfo0::bestShotObjectMetadata
Ptr< ITimestampedObjectMetadata > bestShotObjectMetadata() const
Definition: i_object_track_info.h:47
nx::sdk::analytics::IObjectTrackInfo0::getTrack
virtual IList< ITimestampedObjectMetadata > * getTrack() const =0
nx::sdk::analytics::IObjectTrackInfo::bestShotImageData
virtual const char * bestShotImageData() const =0
nx::sdk::Ptr
Definition: ptr.h:18
nx::sdk::analytics::IObjectTrackInfo
Definition: i_object_track_info.h:53
nx::sdk::analytics::IObjectTrackInfo0::getBestShotVideoFrame
virtual IUncompressedVideoFrame * getBestShotVideoFrame() const =0
nx::sdk::analytics::IObjectTrackInfo::bestShotImageDataFormat
virtual const char * bestShotImageDataFormat() const =0
nx
Definition: apple_utils.h:6
nx::sdk::analytics::IObjectTrackInfo0::bestShotVideoFrame
Ptr< IUncompressedVideoFrame > bestShotVideoFrame() const
Definition: i_object_track_info.h:34
nx::sdk::analytics::IObjectTrackInfo0
Definition: i_object_track_info.h:16
nx::sdk::analytics::ITimestampedObjectMetadata
Definition: i_timestamped_object_metadata.h:11
nx::sdk::IRefCountable::makeId
static constexpr const InterfaceId * makeId(const char(&charArray)[len])
Definition: i_ref_countable.h:77
nx::sdk::analytics::IUncompressedVideoFrame
Definition: i_uncompressed_video_frame.h:73
nx::sdk::analytics::IObjectTrackInfo::bestShotImageDataSize
virtual int bestShotImageDataSize() const =0
nx::sdk::IList
Definition: i_list.h:9
nx::sdk::analytics::IObjectTrackInfo0::getBestShotObjectMetadata
virtual ITimestampedObjectMetadata * getBestShotObjectMetadata() const =0