![]() |
ImFusion SDK 4.3
|
#include <ImFusion/Stream/StreamFps.h>
Frames per second computation for a stream. More...
Inheritance diagram for StreamFps:Frames per second computation for a stream.
Public Member Functions | |
| void | connect (Stream *stream) |
| Connects to a stream's signals. | |
| void | disconnect (Stream *stream) |
| Disconnects from a stream's signals. | |
| void | setUseDeviceTimestamp (bool flag) |
| Use the device vs. arrival timestamp (default is false) | |
| void | setNumberOfFrames (int val) |
| Set the number of frames to use for computing the FPS (default is 10) | |
| void | setRounding (int digits) |
| Round FPS to the provided decimal digits, disabled if negative (default is 0) | |
| void | setUpdateInterval (double seconds) |
| Set upper limit on how frequently to recompute the FPS. | |
| double | fps () |
| Return current FPS or zero if not available yet, and also resets the changed flag. | |
| bool | changed () const |
| Returns whether the FPS value has changed since it was last retrieved. | |
Public Member Functions inherited from SignalReceiver | |
| SignalReceiver ()=default | |
| Default constructor. | |
| SignalReceiver (const SignalReceiver &other) | |
| Copy constructor, does not copy any existing signal connections from other. | |
| SignalReceiver & | operator= (SignalReceiver rhs) |
| Assignment operator, disconnects all existing connections, does not copy any existing signal connections from rhs. | |
| virtual | ~SignalReceiver () |
| Virtual destructor disconnects from all connected signals. | |
Additional Inherited Members | |
Protected Member Functions inherited from SignalReceiver | |
| void | disconnectAll () |
| Disconnects all existing connections. | |