Holds information for a single audio frame.
Audio batches reuse NvDsBatchMeta::frame_meta_list, but the list entries are NvDsAudioFrameMeta instead of NvDsFrameMeta.
Definition at line 522 of file service-maker/includes/metadata.hpp.


Public Types | |
| typedef std::unique_ptr< AbstractIterator< AudioFrameMetadata > > | Iterator |
| typedef std::unique_ptr< AbstractIterator< AudioFrameMetadata > > | Iterator |
Public Member Functions | |
| AudioFrameMetadata (void *data=nullptr) | |
| Constructor through opaque data pointer. More... | |
| virtual | ~AudioFrameMetadata () |
| Destructor. More... | |
| unsigned int | iterate (const std::function< void(const ClassifierMetadata &)> &func) const |
| Iterate the classifier metadata within it. More... | |
| void | initiateIterator (ClassifierMetadata::Iterator &) const |
| Get the iterator for classifier metadata within it. More... | |
| unsigned int | iterate (const std::function< void(const UserMetadata &)> &func, int meta_type) const |
| Iterate the user metadata within it. More... | |
| void | initiateIterator (UserMetadata::Iterator &, int meta_type) const |
| Get the iterator for user metadata within it. More... | |
| void | append (const UserMetadata &) |
| Append user metadata to the audio frame. More... | |
| unsigned int | padIndex () const |
| Index of the pad from which the audio frame is generated. More... | |
| unsigned int | batchId () const |
| Location the audio frame in the batch. More... | |
| int | frameNum () const |
| Frame number. More... | |
| unsigned int | sourceId () const |
| Identify the source of the frame, e.g. More... | |
| int | numSamplesPerFrame () const |
| Number of samples in the audio frame. More... | |
| unsigned int | sampleRate () const |
| Audio sample rate. More... | |
| unsigned int | numChannels () const |
| Audio channel count. More... | |
| int | format () const |
| Audio sample format. More... | |
| int | layout () const |
| Audio channel layout. More... | |
| uint64_t | bufferPTS () const |
| Holds the presentation timestamp (PTS) of the frame. More... | |
| uint64_t | ntpTimestamp () const |
| Holds the ntp timestamp. More... | |
| bool | inferDone () const |
| Whether inference was performed on the audio frame. More... | |
| int | classId () const |
| Class id of the last classified event. More... | |
| float | confidence () const |
| Confidence of the last classified event. More... | |
| std::string | classLabel () const |
| Label of the last classified event. More... | |
| AudioFrameMetadata (void *data=nullptr) | |
| Constructor through opaque data pointer. More... | |
| virtual | ~AudioFrameMetadata () |
| Destructor. More... | |
| unsigned int | iterate (const std::function< void(const ClassifierMetadata &)> &func) const |
| Iterate the classifier metadata within it. More... | |
| void | initiateIterator (ClassifierMetadata::Iterator &) const |
| Get the iterator for classifier metadata within it. More... | |
| unsigned int | iterate (const std::function< void(const UserMetadata &)> &func, int meta_type) const |
| Iterate the user metadata within it. More... | |
| void | initiateIterator (UserMetadata::Iterator &, int meta_type) const |
| Get the iterator for user metadata within it. More... | |
| void | append (const UserMetadata &) |
| Append user metadata to the audio frame. More... | |
| unsigned int | padIndex () const |
| Index of the pad from which the audio frame is generated. More... | |
| unsigned int | batchId () const |
| Location the audio frame in the batch. More... | |
| int | frameNum () const |
| Frame number. More... | |
| unsigned int | sourceId () const |
| Identify the source of the frame, e.g. More... | |
| int | numSamplesPerFrame () const |
| Number of samples in the audio frame. More... | |
| unsigned int | sampleRate () const |
| Audio sample rate. More... | |
| unsigned int | numChannels () const |
| Audio channel count. More... | |
| int | format () const |
| Audio sample format. More... | |
| int | layout () const |
| Audio channel layout. More... | |
| uint64_t | bufferPTS () const |
| Holds the presentation timestamp (PTS) of the frame. More... | |
| uint64_t | ntpTimestamp () const |
| Holds the ntp timestamp. More... | |
| bool | inferDone () const |
| Whether inference was performed on the audio frame. More... | |
| int | classId () const |
| Class id of the last classified event. More... | |
| float | confidence () const |
| Confidence of the last classified event. More... | |
| std::string | classLabel () const |
| Label of the last classified event. More... | |
| virtual | operator bool () |
| operator to check if a metadata is void More... | |
| virtual | operator bool () |
| operator to check if a metadata is void More... | |
Protected Attributes | |
| void * | data_ |
Friends | |
| class | BatchMetadata |
| typedef std::unique_ptr<AbstractIterator<AudioFrameMetadata> > deepstream::AudioFrameMetadata::Iterator |
Definition at line 524 of file service-maker/includes/metadata.hpp.
| typedef std::unique_ptr<AbstractIterator<AudioFrameMetadata> > deepstream::AudioFrameMetadata::Iterator |
Definition at line 524 of file 9.1/service-maker/includes/metadata.hpp.
| deepstream::AudioFrameMetadata::AudioFrameMetadata | ( | void * | data = nullptr | ) |
Constructor through opaque data pointer.
By default an empty audio frame metadata object is created.
|
virtual |
Destructor.
| deepstream::AudioFrameMetadata::AudioFrameMetadata | ( | void * | data = nullptr | ) |
Constructor through opaque data pointer.
By default an empty audio frame metadata object is created.
|
virtual |
Destructor.
| void deepstream::AudioFrameMetadata::append | ( | const UserMetadata & | ) |
Append user metadata to the audio frame.
| void deepstream::AudioFrameMetadata::append | ( | const UserMetadata & | ) |
Append user metadata to the audio frame.
| unsigned int deepstream::AudioFrameMetadata::batchId | ( | ) | const |
Location the audio frame in the batch.
| unsigned int deepstream::AudioFrameMetadata::batchId | ( | ) | const |
Location the audio frame in the batch.
| uint64_t deepstream::AudioFrameMetadata::bufferPTS | ( | ) | const |
Holds the presentation timestamp (PTS) of the frame.
| uint64_t deepstream::AudioFrameMetadata::bufferPTS | ( | ) | const |
Holds the presentation timestamp (PTS) of the frame.
| int deepstream::AudioFrameMetadata::classId | ( | ) | const |
Class id of the last classified event.
| int deepstream::AudioFrameMetadata::classId | ( | ) | const |
Class id of the last classified event.
| std::string deepstream::AudioFrameMetadata::classLabel | ( | ) | const |
Label of the last classified event.
| std::string deepstream::AudioFrameMetadata::classLabel | ( | ) | const |
Label of the last classified event.
| float deepstream::AudioFrameMetadata::confidence | ( | ) | const |
Confidence of the last classified event.
| float deepstream::AudioFrameMetadata::confidence | ( | ) | const |
Confidence of the last classified event.
| int deepstream::AudioFrameMetadata::format | ( | ) | const |
Audio sample format.
| int deepstream::AudioFrameMetadata::format | ( | ) | const |
Audio sample format.
| int deepstream::AudioFrameMetadata::frameNum | ( | ) | const |
Frame number.
| int deepstream::AudioFrameMetadata::frameNum | ( | ) | const |
Frame number.
| bool deepstream::AudioFrameMetadata::inferDone | ( | ) | const |
Whether inference was performed on the audio frame.
| bool deepstream::AudioFrameMetadata::inferDone | ( | ) | const |
Whether inference was performed on the audio frame.
| void deepstream::AudioFrameMetadata::initiateIterator | ( | ClassifierMetadata::Iterator & | ) | const |
Get the iterator for classifier metadata within it.
| void deepstream::AudioFrameMetadata::initiateIterator | ( | ClassifierMetadata::Iterator & | ) | const |
Get the iterator for classifier metadata within it.
| void deepstream::AudioFrameMetadata::initiateIterator | ( | UserMetadata::Iterator & | , |
| int | meta_type | ||
| ) | const |
Get the iterator for user metadata within it.
| void deepstream::AudioFrameMetadata::initiateIterator | ( | UserMetadata::Iterator & | , |
| int | meta_type | ||
| ) | const |
Get the iterator for user metadata within it.
| unsigned int deepstream::AudioFrameMetadata::iterate | ( | const std::function< void(const ClassifierMetadata &)> & | func | ) | const |
Iterate the classifier metadata within it.
| unsigned int deepstream::AudioFrameMetadata::iterate | ( | const std::function< void(const ClassifierMetadata &)> & | func | ) | const |
Iterate the classifier metadata within it.
| unsigned int deepstream::AudioFrameMetadata::iterate | ( | const std::function< void(const UserMetadata &)> & | func, |
| int | meta_type | ||
| ) | const |
Iterate the user metadata within it.
| unsigned int deepstream::AudioFrameMetadata::iterate | ( | const std::function< void(const UserMetadata &)> & | func, |
| int | meta_type | ||
| ) | const |
Iterate the user metadata within it.
| int deepstream::AudioFrameMetadata::layout | ( | ) | const |
Audio channel layout.
| int deepstream::AudioFrameMetadata::layout | ( | ) | const |
Audio channel layout.
| uint64_t deepstream::AudioFrameMetadata::ntpTimestamp | ( | ) | const |
Holds the ntp timestamp.
| uint64_t deepstream::AudioFrameMetadata::ntpTimestamp | ( | ) | const |
Holds the ntp timestamp.
| unsigned int deepstream::AudioFrameMetadata::numChannels | ( | ) | const |
Audio channel count.
| unsigned int deepstream::AudioFrameMetadata::numChannels | ( | ) | const |
Audio channel count.
| int deepstream::AudioFrameMetadata::numSamplesPerFrame | ( | ) | const |
Number of samples in the audio frame.
| int deepstream::AudioFrameMetadata::numSamplesPerFrame | ( | ) | const |
Number of samples in the audio frame.
|
inlinevirtualinherited |
operator to check if a metadata is void
Reimplemented in deepstream::UserMetadata, and deepstream::UserMetadata.
Definition at line 57 of file 9.1/service-maker/includes/metadata.hpp.
References deepstream::Metadata::data_.
|
inlinevirtualinherited |
operator to check if a metadata is void
Reimplemented in deepstream::UserMetadata, and deepstream::UserMetadata.
Definition at line 57 of file service-maker/includes/metadata.hpp.
References deepstream::Metadata::data_.
| unsigned int deepstream::AudioFrameMetadata::padIndex | ( | ) | const |
Index of the pad from which the audio frame is generated.
| unsigned int deepstream::AudioFrameMetadata::padIndex | ( | ) | const |
Index of the pad from which the audio frame is generated.
| unsigned int deepstream::AudioFrameMetadata::sampleRate | ( | ) | const |
Audio sample rate.
| unsigned int deepstream::AudioFrameMetadata::sampleRate | ( | ) | const |
Audio sample rate.
| unsigned int deepstream::AudioFrameMetadata::sourceId | ( | ) | const |
Identify the source of the frame, e.g.
camera ID
| unsigned int deepstream::AudioFrameMetadata::sourceId | ( | ) | const |
Identify the source of the frame, e.g.
camera ID
|
friend |
Definition at line 580 of file service-maker/includes/metadata.hpp.
|
protectedinherited |
Definition at line 60 of file service-maker/includes/metadata.hpp.
Referenced by deepstream::Metadata::operator bool(), and deepstream::UserMetadata::operator bool().