nx_server_plugin_sdk 1.0 Server Plugin SDK

ilp_empty_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 <camera/camera_plugin.h>
6 #include <plugins/plugin_tools.h>
7
8 class ILPEmptyPacket
9 :
10 public nxcip::VideoDataPacket
11 {
12 public:
13 ILPEmptyPacket(
14 int channelNumber,
15 nxcip::UsecUTCTimestamp _timestamp,
16 unsigned int flags,
17 unsigned int cSeq );
18 virtual ~ILPEmptyPacket();
19
21 virtual void* queryInterface( const nxpl::NX_GUID& interfaceID ) override;
23 virtual int addRef() const override;
25 virtual int releaseRef() const override;
26
28 virtual nxcip::UsecUTCTimestamp timestamp() const override;
30 virtual nxcip::DataPacketType type() const override;
32 virtual const void* data() const override;
34 virtual unsigned int dataSize() const override;
36 virtual unsigned int channelNumber() const override;
38 virtual nxcip::CompressionType codecType() const override;
40 virtual unsigned int flags() const override;
42 virtual unsigned int cSeq() const override;
43
45 virtual nxcip::Picture* getMotionData() const override;
46
47 private:
48 nxpt::CommonRefManager m_refManager;
49 const int m_channelNumber;
50 nxcip::UsecUTCTimestamp m_timestamp;
51 unsigned int m_flags;
52 unsigned int m_cSeq;
53 };
ILPEmptyPacket::flags
virtual unsigned int flags() const override
Implementation of nxpl::MediaDataPacket::flags.
Definition: ilp_empty_packet.cpp:93
ILPEmptyPacket::dataSize
virtual unsigned int dataSize() const override
Implementation of nxpl::MediaDataPacket::dataSize.
Definition: ilp_empty_packet.cpp:76
nxcip::DataPacketType
DataPacketType
Type of packets provided by StreamReader.
Definition: camera_plugin.h:1010
ILPEmptyPacket::queryInterface
virtual void * queryInterface(const nxpl::NX_GUID &interfaceID) override
Implementation of nxpl::PluginInterface::queryInterface.
Definition: ilp_empty_packet.cpp:30
ILPEmptyPacket::type
virtual nxcip::DataPacketType type() const override
Implementation of nxpl::MediaDataPacket::type.
Definition: ilp_empty_packet.cpp:64
ILPEmptyPacket::getMotionData
virtual nxcip::Picture * getMotionData() const override
Implementation of nxpl::VideoDataPacket::getMotionData.
Definition: ilp_empty_packet.cpp:104
ILPEmptyPacket::releaseRef
virtual int releaseRef() const override
Implementation of nxpl::PluginInterface::releaseRef.
Definition: ilp_empty_packet.cpp:52
ILPEmptyPacket::codecType
virtual nxcip::CompressionType codecType() const override
Implementation of nxpl::MediaDataPacket::codecType.
Definition: ilp_empty_packet.cpp:88
ILPEmptyPacket::addRef
virtual int addRef() const override
Implementation of nxpl::PluginInterface::addRef.
Definition: ilp_empty_packet.cpp:46
ILPEmptyPacket::cSeq
virtual unsigned int cSeq() const override
Implementation of nxpl::MediaDataPacket::cSeq.
Definition: ilp_empty_packet.cpp:98
nxpl::NX_GUID
GUID of plugin interface.
Definition: plugin_api.h:26
ILPEmptyPacket::data
virtual const void * data() const override
Implementation of nxpl::MediaDataPacket::data.
Definition: ilp_empty_packet.cpp:70
nxcip::Picture
Picture.
Definition: camera_plugin.h:654
nxpt::CommonRefManager
Definition: plugin_tools.h:67
plugin_tools.h
ILPEmptyPacket
Definition: ilp_empty_packet.h:8
nxcip::VideoDataPacket
Video packet. MUST contain complete frame (or field in case of interlaced video)
Definition: camera_plugin.h:1139
ILPEmptyPacket::channelNumber
virtual unsigned int channelNumber() const override
Implementation of nxpl::MediaDataPacket::channelNumber.
Definition: ilp_empty_packet.cpp:82
ILPEmptyPacket::timestamp
virtual nxcip::UsecUTCTimestamp timestamp() const override
Implementation of nxpl::MediaDataPacket::isKeyFrame.
Definition: ilp_empty_packet.cpp:58