nx_metadata_sdk 1.0 Metadata SDK

i_compressed_video_packet.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/analytics/i_compressed_media_packet.h>
6 #include <nx/sdk/analytics/i_metadata_packet.h>
7 #include <nx/sdk/i_list.h>
8 #include <nx/sdk/interface.h>
9
10 namespace nx::sdk::analytics {
11
12 class ICompressedVideoPacket0: public Interface<ICompressedVideoPacket0, ICompressedMediaPacket0>
13 {
14 public:
15 static auto interfaceId() { return makeId("nx::sdk::analytics::ICompressedVideoPacket"); }
16
20 virtual int width() const = 0;
21
25 virtual int height() const = 0;
26 };
27
31 class ICompressedVideoPacket: public Interface<ICompressedVideoPacket, ICompressedVideoPacket0>
32 {
33 public:
34 static auto interfaceId() { return makeId("nx::sdk::analytics::ICompressedVideoPacket1"); }
35
37 protected: virtual IList<IMetadataPacket>* getMetadataList() const = 0;
38 public: Ptr<IList<IMetadataPacket>> metadataList() const
39 {
40 return Ptr(getMetadataList());
41 }
42 };
43 using ICompressedVideoPacket1 = ICompressedVideoPacket;
44
45 } // namespace nx::sdk::analytics
nx::sdk::Interface
Definition: interface.h:48
nx::sdk::analytics::ICompressedVideoPacket
Definition: i_compressed_video_packet.h:31
nx::sdk::Ptr
Definition: ptr.h:18
nx::sdk::analytics
Definition: consuming_device_agent.cpp:24
nx::sdk::analytics::ICompressedVideoPacket0::height
virtual int height() const =0
nx::sdk::analytics::ICompressedVideoPacket::getMetadataList
virtual IList< IMetadataPacket > * getMetadataList() const =0
nx::sdk::analytics::ICompressedVideoPacket0
Definition: i_compressed_video_packet.h:12
nx::sdk::analytics::ICompressedVideoPacket0::width
virtual int width() const =0
nx::sdk::IList
Definition: i_list.h:10