nx_video_source_sdk
1.0
Video Source SDK
|
Public Member Functions | |
VideoPacket (const uint8_t *data, size_t size, uint64_t ts, unsigned flags) | |
virtual void * | queryInterface (const nxpl::NX_GUID &interfaceID) override |
Cast to type, specified by interfaceID. More... | |
virtual nxcip::UsecUTCTimestamp | timestamp () const override |
Packet's timestamp (usec (microseconds) since 1970-01-01, UTC) | |
virtual nxcip::DataPacketType | type () const override |
Packet type. | |
virtual const void * | data () const override |
Coded media stream data. More... | |
virtual unsigned int | dataSize () const override |
Returns size (in bytes) of packet's data. More... | |
virtual unsigned int | channelNumber () const override |
virtual nxcip::CompressionType | codecType () const override |
virtual unsigned int | flags () const override |
Returns combination of values from MediaDataPacket::Flags enumeration. | |
virtual unsigned int | cSeq () const override |
Returns sequence number of command this packet belongs to. More... | |
virtual nxcip::Picture * | getMotionData () const override |
Returns motion data. Can be NULL, if no motion. More... | |
void | swap (VideoPacket &vp) |
![]() | |
virtual int | addRef () const override |
virtual int | releaseRef () const override |
Additional Inherited Members | |
![]() | |
enum | Flags { fKeyPacket = 0x01, fReverseStream = 0x02, fReverseBlockStart = 0x04, DEPRECATED_fLowQuality = 0x08, fStreamReset = 0x10 } |
![]() | |
DefaultRefCounter (nxpt::CommonRefManager *refManager) | |
![]() | |
nxpt::CommonRefManager | m_refManager |
|
overridevirtual |
For video packet data contains number of camera sensor starting with 0 (e.g., panoramic camera has multiple sensors).
For audio, this is audio track number (in case of multiple microphones on camera device)
Implements nxcip::MediaDataPacket.
|
overridevirtual |
Implements nxcip::MediaDataPacket.
|
overridevirtual |
Returns sequence number of command this packet belongs to.
Command - it is a call to DtsArchiveReader::seek, DtsArchiveReader::setReverseMode, DtsArchiveReader::playRange. In case of live stream cSeq is ignored
Implements nxcip::MediaDataPacket.
|
overridevirtual |
Coded media stream data.
Data format for different codecs:
Implements nxcip::MediaDataPacket.
|
overridevirtual |
Returns size (in bytes) of packet's data.
Implements nxcip::MediaDataPacket.
|
overridevirtual |
Returns motion data. Can be NULL, if no motion.
Motion data is a monochrome (format nxcip::AV_PIX_FMT_MONOBLACK) picture of size (nxcip::DEFAULT_MOTION_DATA_PICTURE_WIDTH, nxcip::DEFAULT_MOTION_DATA_PICTURE_HEIGHT) pixels, '1' bit designates motion presence in that pixel. It is not required that motion data dimensions same as those of video picture. Motion data just designates regions of video picture where motion has been detected.
Implements nxcip::VideoDataPacket.
|
overridevirtual |
Cast to type, specified by interfaceID.
If pointer cannot be cast, NULL MUST be returned
Implements nxpl::PluginInterface.