nx_metadata_sdk 1.0 Metadata SDK

Classes | Public Member Functions | List of all members
nx::sdk::MediaStreamStatistics Class Reference

`#include <media_stream_statistics.h>`

## Public Member Functions
| MediaStreamStatistics (std::chrono::microseconds windowSize=std::chrono::seconds(2), int maxDurationInFrames=0)
void | setWindowSize (std::chrono::microseconds windowSize)
void | setMaxDurationInFrames (int maxDurationInFrames)
void | reset ()
void | onData (std::chrono::microseconds timestamp, size_t dataSize, bool isKeyFrame)
int64_t | bitrateBitsPerSecond () const
float | getFrameRate () const
float | getAverageGopSize () const
bool | hasMediaData () const

## Detailed Description

This class calculates media stream bitrate, average frame rate and GOP size.

The documentation for this class was generated from the following files:

- src/nx/sdk/helpers/media_stream_statistics.h
- src/nx/sdk/helpers/media_stream_statistics.cpp