|
ngscopeclient v0.1
|
Implementation of WaveformBase. More...

Macros | |
| #define | IM_COL32_R_SHIFT 0 |
| #define | IM_COL32_G_SHIFT 8 |
| #define | IM_COL32_B_SHIFT 16 |
| #define | IM_COL32_A_SHIFT 24 |
| #define | IM_COL32_A_MASK 0xFF000000 |
Functions | |
| template<class T > | |
| size_t | BinarySearchForGequal (T *buf, size_t len, T value) |
| Look for a value greater than or equal to "value" in buf and return the index. | |
| template size_t | BinarySearchForGequal< int64_t > (int64_t *buf, size_t len, int64_t value) |
| template size_t | BinarySearchForGequal< float > (float *buf, size_t len, float value) |
| size_t | GetIndexNearestAtOrBeforeTimestamp (WaveformBase *wfm, int64_t time_fs, bool &out_of_bounds) |
| Find the index of the sample in a (possibly sparse) waveform that COULD include the time time_fs. More... | |
| optional< float > | GetValueAtTime (WaveformBase *waveform, int64_t time_fs, bool zero_hold_behavior) |
| Gets the value of our channel at the specified timestamp (absolute, not waveform ticks) and interpolates if possible. | |
| optional< bool > | GetDigitalValueAtTime (WaveformBase *waveform, int64_t time_fs) |
| Gets the value of our channel at the specified timestamp (absolute, not waveform ticks). | |
| optional< string > | GetProtocolValueAtTime (WaveformBase *waveform, int64_t time_fs) |
| Gets the value of our channel at the specified timestamp (absolute, not waveform ticks). | |
| uint32_t | ColorFromString (const string &str, unsigned int alpha) |
| Converts a hex color code plus externally supplied default alpha value into a packed RGBA color. More... | |
Implementation of WaveformBase.
| uint32_t ColorFromString | ( | const string & | str, |
| unsigned int | alpha | ||
| ) |
Converts a hex color code plus externally supplied default alpha value into a packed RGBA color.
Supported formats: #RRGGBB #RRGGBBAA #RRRRGGGGBBBB