| 280 | } |
| 281 | |
| 282 | const uint8_t *DsoSnapshot::get_samples(int64_t start_sample, int64_t end_sample, uint16_t ch_index) |
| 283 | { |
| 284 | std::lock_guard<std::mutex> lock(_mutex); |
| 285 | |
| 286 | assert(start_sample >= 0); |
| 287 | assert(start_sample < (int64_t)_sample_count); |
| 288 | assert(end_sample >= 0); |
| 289 | assert(end_sample < (int64_t)_sample_count); |
| 290 | assert(start_sample <= end_sample); |
| 291 | |
| 292 | int order = get_ch_order(ch_index); |
| 293 | |
| 294 | if (order == -1){ |
| 295 | dsv_err("The channel index is not exist:%d", ch_index); |
| 296 | assert(false); |
| 297 | } |
| 298 | |
| 299 | return (uint8_t*)_ch_data[order] + start_sample; |
| 300 | } |
| 301 | |
| 302 | void DsoSnapshot::get_envelope_section(EnvelopeSection &s, |
| 303 | uint64_t start, uint64_t end, float min_length, int probe_index) |
no outgoing calls