added binary for moench04 and gain bits

This commit is contained in:
2022-10-24 12:36:24 +02:00
parent 9232776577
commit 22b16de6b5
4 changed files with 21 additions and 11 deletions

View File

@ -62,20 +62,30 @@ int main(int argc, char *argv[]) {
int nped = 10000;
int cf = 0;
int numberOfPackets=40;
#ifdef RECT
cout << "Should be rectangular but now it will crash! No data structure defined!" << endl;
#endif
#ifndef MOENCH04
moench03T1ReceiverDataNew *decoder = new moench03T1ReceiverDataNew();
cout << "MOENCH03!" << endl;
#endif
#ifdef MOENCH04
#ifndef MOENCH04_DGS
moench04CtbZmq10GbData *decoder = new moench04CtbZmq10GbData();
cout << "MOENCH04!" << endl;
#endif
#ifdef MOENCH04_DGS
moench04CtbZmq10GbData *decoder = new moench04CtbZmq10GbData(5000,5000);
cout << "MOENCH04 DGS!" << endl;
numberOfPackets=45;
#endif
#endif
int nx = 400, ny = 400;
@ -249,7 +259,7 @@ int main(int argc, char *argv[]) {
if (filebin.is_open()) {
ff = -1;
while (decoder->readNextFrame(filebin, ff, np, buff)) {
if (np == 40) {
if (np == numberOfPackets) {
mt->pushData(buff);
mt->nextThread();
mt->popFree(buff);
@ -331,7 +341,7 @@ int main(int argc, char *argv[]) {
ff = -1;
ifr = 0;
while (decoder->readNextFrame(filebin, ff, np, buff)) {
if (np == 40) {
if (np == numberOfPackets) {
// //push
mt->pushData(buff);
// // //pop