mirror of
https://github.com/SatDump/SatDump
synced 2026-08-13 17:47:30 -04:00
Other bugfixes
This commit is contained in:
parent
cf54eeef35
commit
aca4a5dec0
5 changed files with 16 additions and 19 deletions
|
|
@ -107,7 +107,7 @@ namespace fengyun_svissr
|
|||
SVISSRImageDecoderModule::SVISSRImageDecoderModule(std::string input_file, std::string output_file_hint, nlohmann::json parameters)
|
||||
: ProcessingModule(input_file, output_file_hint, parameters), sat_name(parameters["satname"])
|
||||
{
|
||||
frame = new uint8_t[FRAME_SIZE];
|
||||
frame = new uint8_t[FRAME_SIZE * 2];
|
||||
|
||||
// Counter related vars
|
||||
counter_locked = false;
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ namespace goes
|
|||
|
||||
private:
|
||||
// Main shifter
|
||||
uint64_t shifter;
|
||||
uint64_t shifter = 0;
|
||||
// Small function to push a bit into the frame
|
||||
void pushBit(uint8_t bit);
|
||||
// Framing variables
|
||||
|
|
@ -30,7 +30,7 @@ namespace goes
|
|||
std::vector<uint8_t> frameBuffer;
|
||||
|
||||
// PN Stuff
|
||||
uint64_t pn_shifter;
|
||||
uint64_t pn_shifter = 0;
|
||||
int pn_right_bit_counter = 0;
|
||||
|
||||
public:
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ namespace goes
|
|||
{
|
||||
PNDerandomizer::PNDerandomizer()
|
||||
{
|
||||
derandTable = new uint8_t[26150];
|
||||
derandTable = new uint8_t[32786];
|
||||
|
||||
// Generate derandomization table
|
||||
int oo = 0;
|
||||
|
|
@ -21,7 +21,7 @@ namespace goes
|
|||
|
||||
uint16_t shifter = 0b101001110110101;
|
||||
|
||||
for (int i = 0; i < 10032 + 209200; i++)
|
||||
for (int i = 0; i < /*10032 + 209200*/ 262288; i++)
|
||||
{
|
||||
bool xor1 = getBit<uint16_t>(shifter, 14);
|
||||
bool xor2 = getBit<uint16_t>(shifter, 7);
|
||||
|
|
@ -43,10 +43,7 @@ namespace goes
|
|||
}
|
||||
}
|
||||
|
||||
PNDerandomizer::~PNDerandomizer()
|
||||
{
|
||||
delete[] derandTable;
|
||||
}
|
||||
PNDerandomizer::~PNDerandomizer() { delete[] derandTable; }
|
||||
|
||||
void PNDerandomizer::derandData(uint8_t *frame, int length)
|
||||
{
|
||||
|
|
@ -59,5 +56,5 @@ namespace goes
|
|||
frame[8 + byten] = derandTable[byten] ^ frame[8 + byten];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} // namespace gvar
|
||||
} // namespace goes
|
||||
|
|
@ -10,7 +10,7 @@ namespace goes
|
|||
VisibleReader::VisibleReader()
|
||||
{
|
||||
imageBuffer = new unsigned short[HEIGHT * WIDTH];
|
||||
imageLineBuffer = new unsigned short[WIDTH + 10];
|
||||
imageLineBuffer = new unsigned short[WIDTH + 10 + 4];
|
||||
goodLines = new bool[HEIGHT];
|
||||
}
|
||||
|
||||
|
|
@ -79,5 +79,5 @@ namespace goes
|
|||
|
||||
return image::Image(&imageBuffer[0], 16, WIDTH, HEIGHT, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
} // namespace gvar
|
||||
} // namespace goes
|
||||
|
|
@ -1,9 +1,9 @@
|
|||
#pragma once
|
||||
|
||||
#include "common/dsp/utils/random.h"
|
||||
#include "core/module.h"
|
||||
#include <complex>
|
||||
#include <fstream>
|
||||
#include "common/dsp/utils/random.h"
|
||||
|
||||
namespace goes
|
||||
{
|
||||
|
|
@ -17,8 +17,8 @@ namespace goes
|
|||
|
||||
std::ifstream data_in;
|
||||
std::ofstream data_out;
|
||||
std::atomic<uint64_t> filesize;
|
||||
std::atomic<uint64_t> progress;
|
||||
std::atomic<uint64_t> filesize = 0;
|
||||
std::atomic<uint64_t> progress = 0;
|
||||
|
||||
// UI Stuff
|
||||
dsp::Random rng;
|
||||
|
|
@ -37,5 +37,5 @@ namespace goes
|
|||
static std::vector<std::string> getParameters();
|
||||
static std::shared_ptr<ProcessingModule> getInstance(std::string input_file, std::string output_file_hint, nlohmann::json parameters);
|
||||
};
|
||||
} // namespace elektro_arktika
|
||||
}
|
||||
} // namespace gvar
|
||||
} // namespace goes
|
||||
Loading…
Add table
Add a link
Reference in a new issue