2021-03-07 12:46:25 +01:00
|
|
|
/**********************************************************************
|
2022-03-20 20:56:32 +01:00
|
|
|
* This file is used for testing random stuff without running the
|
2021-03-07 12:46:25 +01:00
|
|
|
* whole of SatDump, which comes in handy for debugging individual
|
|
|
|
|
* elements before putting them all together in modules...
|
2022-03-20 20:56:32 +01:00
|
|
|
*
|
|
|
|
|
* If you are an user, ignore this file which will not be built by
|
2021-05-12 21:16:53 +02:00
|
|
|
* default, and if you're a developper in need of doing stuff here...
|
2021-03-07 12:46:25 +01:00
|
|
|
* Go ahead!
|
2022-03-20 20:56:32 +01:00
|
|
|
*
|
2021-03-07 12:46:25 +01:00
|
|
|
* Don't judge the code you might see in there! :)
|
|
|
|
|
**********************************************************************/
|
|
|
|
|
|
2022-03-28 11:51:13 +02:00
|
|
|
#include "logger.h"
|
2023-08-22 13:06:20 +02:00
|
|
|
#include <fstream>
|
|
|
|
|
#include "common/codings/rotation.h"
|
2023-08-18 16:38:39 +02:00
|
|
|
|
2023-07-01 18:11:08 +02:00
|
|
|
int main(int argc, char *argv[])
|
2023-05-23 20:18:15 +02:00
|
|
|
{
|
|
|
|
|
initLogger();
|
2023-08-22 13:06:20 +02:00
|
|
|
|
|
|
|
|
int8_t *buffer = new int8_t[8192];
|
|
|
|
|
|
|
|
|
|
std::ifstream data_in(argv[1], std::ios::binary);
|
|
|
|
|
std::ofstream data_out(argv[2], std::ios::binary);
|
|
|
|
|
|
|
|
|
|
while (!data_in.eof())
|
|
|
|
|
{
|
|
|
|
|
data_in.read((char *)buffer, 8192);
|
|
|
|
|
|
|
|
|
|
rotate_soft(buffer, 8192, PHASE_90, false);
|
|
|
|
|
|
|
|
|
|
data_out.write((char *)buffer, 8192);
|
|
|
|
|
}
|
2023-07-23 23:13:13 +02:00
|
|
|
}
|