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/interface.h>
6
7 #include <nx/sdk/i_list.h>
8 #include <nx/sdk/analytics/i_metadata_packet.h>
9 #include <nx/sdk/analytics/i_compressed_media_packet.h>
10
11 namespace nx {
12 namespace sdk {
13 namespace analytics {
14
15 class ICompressedVideoPacket0: public Interface<ICompressedVideoPacket0, ICompressedMediaPacket0>
16 {
17 public:
18 static auto interfaceId() { return makeId("nx::sdk::analytics::ICompressedVideoPacket"); }
19
23 virtual int width() const = 0;
24
28 virtual int height() const = 0;
29 };
30
34 class ICompressedVideoPacket: public Interface<ICompressedVideoPacket, ICompressedVideoPacket0>
35 {
36 public:
37 static auto interfaceId() { return makeId("nx::sdk::analytics::ICompressedVideoPacket1"); }
38
40 protected: virtual IList<IMetadataPacket>* getMetadataList() const = 0;
41 public: Ptr<IList<IMetadataPacket>> metadataList() const
42 {
43 return toPtr(getMetadataList());
44 }
45 };
46 using ICompressedVideoPacket1 = ICompressedVideoPacket;
47
48 } // namespace analytics
49 } // namespace sdk
50 } // namespace nx
nx::sdk::Interface
Definition: interface.h:49
nx::sdk::analytics::ICompressedVideoPacket
Definition: i_compressed_video_packet.h:34
nx::sdk::Ptr
Definition: ptr.h:18
nx::sdk::analytics::ICompressedVideoPacket0::height
virtual int height() const =0
nx
Definition: apple_utils.h:6
nx::sdk::analytics::ICompressedVideoPacket::getMetadataList
virtual IList< IMetadataPacket > * getMetadataList() const =0
nx::sdk::analytics::ICompressedVideoPacket0
Definition: i_compressed_video_packet.h:15
nx::sdk::analytics::ICompressedVideoPacket0::width
virtual int width() const =0
nx::sdk::IList
Definition: i_list.h:9