Minor Replay & GPS baseband optimizations (#1289)

* No need to scale progress now that widget is fixed
* Use memcpy vs byte copy, elim progress scaling, correct comments
* Minor optimization in C16->C8 conversion
* Only copy bytes actually read from file
This commit is contained in:
Mark Thompson 2023-07-21 11:50:00 -05:00 committed by GitHub
parent 2af95456a2
commit 8eafe27955
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 21 deletions

View file

@ -59,7 +59,7 @@ void ReplayProcessor::execute(const buffer_c8_t& buffer) {
// Fill and "stretch"
for (size_t i = 0; i < buffer.count; i++) {
if (i & 3) {
if (i & 7) {
buffer.p[i] = buffer.p[i - 1];
} else {
auto re_out = iq_buffer.p[i >> 3].real() >> 8;