diff --git a/plugins/fengyun2_support/fengyun2/svissr/module_svissr_image_decoder.cpp b/plugins/fengyun2_support/fengyun2/svissr/module_svissr_image_decoder.cpp index 101f3b01c..8b78edba6 100644 --- a/plugins/fengyun2_support/fengyun2/svissr/module_svissr_image_decoder.cpp +++ b/plugins/fengyun2_support/fengyun2/svissr/module_svissr_image_decoder.cpp @@ -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; diff --git a/plugins/goes_support/goes/gvar/gvar_deframer.h b/plugins/goes_support/goes/gvar/gvar_deframer.h index 2e832eee3..8b8cf98c5 100644 --- a/plugins/goes_support/goes/gvar/gvar_deframer.h +++ b/plugins/goes_support/goes/gvar/gvar_deframer.h @@ -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 frameBuffer; // PN Stuff - uint64_t pn_shifter; + uint64_t pn_shifter = 0; int pn_right_bit_counter = 0; public: diff --git a/plugins/goes_support/goes/gvar/gvar_derand.cpp b/plugins/goes_support/goes/gvar/gvar_derand.cpp index 281c0dbb9..e7aed6255 100644 --- a/plugins/goes_support/goes/gvar/gvar_derand.cpp +++ b/plugins/goes_support/goes/gvar/gvar_derand.cpp @@ -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(shifter, 14); bool xor2 = getBit(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]; } } - } -} \ No newline at end of file + } // namespace gvar +} // namespace goes \ No newline at end of file diff --git a/plugins/goes_support/goes/gvar/image/visible_reader.cpp b/plugins/goes_support/goes/gvar/image/visible_reader.cpp index a90236500..3b42b946e 100644 --- a/plugins/goes_support/goes/gvar/image/visible_reader.cpp +++ b/plugins/goes_support/goes/gvar/image/visible_reader.cpp @@ -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); } - } -} \ No newline at end of file + } // namespace gvar +} // namespace goes \ No newline at end of file diff --git a/plugins/goes_support/goes/gvar/module_gvar_decoder.h b/plugins/goes_support/goes/gvar/module_gvar_decoder.h index 5c31f0fe8..19fec8d13 100644 --- a/plugins/goes_support/goes/gvar/module_gvar_decoder.h +++ b/plugins/goes_support/goes/gvar/module_gvar_decoder.h @@ -1,9 +1,9 @@ #pragma once +#include "common/dsp/utils/random.h" #include "core/module.h" #include #include -#include "common/dsp/utils/random.h" namespace goes { @@ -17,8 +17,8 @@ namespace goes std::ifstream data_in; std::ofstream data_out; - std::atomic filesize; - std::atomic progress; + std::atomic filesize = 0; + std::atomic progress = 0; // UI Stuff dsp::Random rng; @@ -37,5 +37,5 @@ namespace goes static std::vector getParameters(); static std::shared_ptr getInstance(std::string input_file, std::string output_file_hint, nlohmann::json parameters); }; - } // namespace elektro_arktika -} \ No newline at end of file + } // namespace gvar +} // namespace goes \ No newline at end of file