| 220 | } |
| 221 | |
| 222 | void DsoSnapshot::append_payload(const sr_datafeed_dso &dso) |
| 223 | { |
| 224 | std::lock_guard<std::mutex> lock(_mutex); |
| 225 | |
| 226 | if (_channel_num > 0 && dso.num_samples > 0) { |
| 227 | append_data(dso.data, dso.num_samples, _instant); |
| 228 | |
| 229 | // Generate the first mip-map from the data |
| 230 | if (_envelope_en) |
| 231 | append_payload_to_envelope_levels(dso.samplerate_tog); |
| 232 | } |
| 233 | } |
| 234 | |
| 235 | void DsoSnapshot::append_data(void *data, uint64_t samples, bool instant) |
| 236 | { |
no outgoing calls