mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-02 06:04:39 -04:00
Tidy.
This commit is contained in:
@@ -140,12 +140,12 @@ void RTLSDRThread::decimate2(SampleVector::iterator* it, const quint8* buf, qint
|
||||
for (int pos = 0; pos < len + 7; pos += 8) {
|
||||
xreal = buf[pos+0] - buf[pos+3];
|
||||
yimag = buf[pos+1] + buf[pos+2] - 255;
|
||||
Sample s( xreal << 5, yimag << 5 );
|
||||
Sample s( xreal << 6, yimag << 6 );
|
||||
**it = s;
|
||||
(*it)++;
|
||||
xreal = buf[pos+7] - buf[pos+4];
|
||||
yimag = 255 - buf[pos+5] - buf[pos+6];
|
||||
Sample t( xreal << 5, yimag << 5 );
|
||||
Sample t( xreal << 6, yimag << 6 );
|
||||
**it = t;
|
||||
(*it)++;
|
||||
}
|
||||
@@ -189,7 +189,7 @@ void RTLSDRThread::decimate16(SampleVector::iterator* it, const quint8* buf, qin
|
||||
xreal += buf[pos+0] - buf[pos+3] + buf[pos+7] - buf[pos+4];
|
||||
yimag += buf[pos+1] - buf[pos+5] + buf[pos+2] - buf[pos+6];
|
||||
}
|
||||
Sample s( xreal << 4, yimag << 4 );
|
||||
Sample s( xreal << 3, yimag << 3 );
|
||||
**it = s;
|
||||
(*it)++;
|
||||
}
|
||||
@@ -209,10 +209,10 @@ void RTLSDRThread::callback(const quint8* buf, qint32 len)
|
||||
phase *= -1;
|
||||
xreal = phase * (buf[pos+0] - 127);
|
||||
yimag = phase * (buf[pos+1] - 127);
|
||||
*it++ = Sample( xreal<<6,yimag<<6);
|
||||
*it++ = Sample( xreal<<7,yimag<<7);
|
||||
xreal = phase * (128 - buf[pos+3]);
|
||||
yimag = phase * (buf[pos+2] - 127);
|
||||
*it++ = Sample( xreal<<6,yimag<<6);
|
||||
*it++ = Sample( xreal<<7,yimag<<7);
|
||||
}
|
||||
break;
|
||||
case 1: // 1:2
|
||||
|
||||
Reference in New Issue
Block a user