Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ngscopeclient/scopehal
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: f150b8e8a989
Choose a base ref
...
head repository: ngscopeclient/scopehal
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: dec5c7f5519b
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Aug 10, 2020

  1. Copy the full SHA
    dec5c7f View commit details
Showing with 5 additions and 3 deletions.
  1. +5 −3 scopeprotocols/DeEmbedDecoder.cpp
8 changes: 5 additions & 3 deletions scopeprotocols/DeEmbedDecoder.cpp
Original file line number Diff line number Diff line change
@@ -354,14 +354,16 @@ void DeEmbedDecoder::DoRefresh(bool invert)
float scale = 1.0f / npoints;
float vmin = FLT_MAX;
float vmax = -FLT_MAX;
size_t outlen = iend - istart;
cap->Resize(outlen);
memcpy(&cap->m_offsets[0], &din->m_offsets[istart], outlen * sizeof(int64_t));
memcpy(&cap->m_durations[0], &din->m_durations[istart], outlen * sizeof(int64_t));
for(size_t i=istart; i<iend; i++)
{
cap->m_offsets.push_back(din->m_offsets[i]);
cap->m_durations.push_back(din->m_durations[i]);
float v = m_reverseOutBuf[i] * scale;
vmin = min(v, vmin);
vmax = max(v, vmax);
cap->m_samples.push_back(v);
cap->m_samples[i-istart] = v;
}

//Calculate bounds