|
nx_cloud_storage_sdk
1.0
Cloud Storage SDK
|
Portion of media data. More...
#include <camera_plugin.h>
Public Types | |
| enum | Flags { fKeyPacket = 0x01, fReverseStream = 0x02, fReverseBlockStart = 0x04, DEPRECATED_fLowQuality = 0x08, fStreamReset = 0x10 } |
Public Member Functions | |
| virtual UsecUTCTimestamp | timestamp () const =0 |
| Packet's timestamp (usec (microseconds) since 1970-01-01, UTC) | |
| virtual DataPacketType | type () const =0 |
| Packet type. | |
| virtual const void * | data () const =0 |
| Coded media stream data. More... | |
| virtual unsigned int | dataSize () const =0 |
| Returns size (in bytes) of packet's data. More... | |
| virtual unsigned int | channelNumber () const =0 |
| virtual CompressionType | codecType () const =0 |
| virtual unsigned int | flags () const =0 |
| Returns combination of values from MediaDataPacket::Flags enumeration. | |
| virtual unsigned int | cSeq () const =0 |
| Returns sequence number of command this packet belongs to. More... | |
Public Member Functions inherited from nxpl::PluginInterface | |
| virtual void * | queryInterface (const nxpl::NX_GUID &interfaceID)=0 |
| Cast to type, specified by interfaceID. More... | |
| virtual int | addRef () const =0 |
| Increment reference counter. More... | |
| virtual int | releaseRef () const =0 |
| Decrement reference counter. More... | |
Portion of media data.
| Enumerator | |
|---|---|
| fKeyPacket | e.g., h.264 IDR frame |
| fReverseStream | packet has been generated during playback of reverse stream. Packets of type dptEmpty MUST have this flag set if end-of-stream has been reached with reverse mode |
| fReverseBlockStart | set in first packet of gop block of reverse stream (see nxcip::DtsArchiveReader::setReverseMode) |
| fStreamReset | MUST be set after each nxcip::DtsArchiveReader::seek, nxcip::DtsArchiveReader::reverseModeCapability, nxcip::DtsArchiveReader::setQuality to signal discontinuity in timestamp |
|
pure virtual |
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)
|
pure virtual |
|
pure virtual |
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
|
pure virtual |
Coded media stream data.
Data format for different codecs:
|
pure virtual |
Returns size (in bytes) of packet's data.
1.8.14