2016-04-06 20:00:54 -04:00
|
|
|
#include "dsd.h"
|
|
|
|
#include "provoice_const.h"
|
|
|
|
|
|
|
|
void
|
|
|
|
processProVoice (dsd_opts * opts, dsd_state * state)
|
|
|
|
{
|
|
|
|
int i, j, dibit;
|
|
|
|
|
|
|
|
char imbe7100_fr1[7][24];
|
|
|
|
char imbe7100_fr2[7][24];
|
|
|
|
const int *w, *x;
|
|
|
|
|
|
|
|
if (opts->errorbars == 1)
|
|
|
|
{
|
2016-04-08 22:34:12 -04:00
|
|
|
fprintf(stderr, "VOICE e:");
|
2016-04-06 20:00:54 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
for (i = 0; i < 64; i++)
|
|
|
|
{
|
|
|
|
dibit = getDibit (opts, state);
|
|
|
|
#ifdef PROVOICE_DUMP
|
2016-04-08 22:34:12 -04:00
|
|
|
fprintf(stderr, "%i", dibit);
|
2016-04-06 20:00:54 -04:00
|
|
|
#endif
|
|
|
|
}
|
|
|
|
#ifdef PROVOICE_DUMP
|
2016-04-08 22:34:12 -04:00
|
|
|
fprintf(stderr, " ");
|
2016-04-06 20:00:54 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
// lid
|
|
|
|
for (i = 0; i < 16; i++)
|
|
|
|
{
|
|
|
|
dibit = getDibit (opts, state);
|
|
|
|
#ifdef PROVOICE_DUMP
|
2016-04-08 22:34:12 -04:00
|
|
|
fprintf(stderr, "%i", dibit);
|
2016-04-06 20:00:54 -04:00
|
|
|
#endif
|
|
|
|
}
|
|
|
|
#ifdef PROVOICE_DUMP
|
2016-04-08 22:34:12 -04:00
|
|
|
fprintf(stderr, " ");
|
2016-04-06 20:00:54 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
for (i = 0; i < 64; i++)
|
|
|
|
{
|
|
|
|
dibit = getDibit (opts, state);
|
|
|
|
#ifdef PROVOICE_DUMP
|
2016-04-08 22:34:12 -04:00
|
|
|
fprintf(stderr, "%i", dibit);
|
2016-04-06 20:00:54 -04:00
|
|
|
#endif
|
|
|
|
}
|
|
|
|
#ifdef PROVOICE_DUMP
|
2016-04-08 22:34:12 -04:00
|
|
|
fprintf(stderr, " ");
|
2016-04-06 20:00:54 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
// imbe frames 1,2 first half
|
|
|
|
w = pW;
|
|
|
|
x = pX;
|
|
|
|
|
|
|
|
for (i = 0; i < 11; i++)
|
|
|
|
{
|
|
|
|
for (j = 0; j < 6; j++)
|
|
|
|
{
|
|
|
|
dibit = getDibit (opts, state);
|
|
|
|
#ifdef PROVOICE_DUMP
|
2016-04-08 22:34:12 -04:00
|
|
|
fprintf(stderr, "%i", dibit);
|
2016-04-06 20:00:54 -04:00
|
|
|
#endif
|
|
|
|
imbe7100_fr1[*w][*x] = dibit;
|
|
|
|
w++;
|
|
|
|
x++;
|
|
|
|
}
|
|
|
|
#ifdef PROVOICE_DUMP
|
2016-04-08 22:34:12 -04:00
|
|
|
fprintf(stderr, "_");
|
2016-04-06 20:00:54 -04:00
|
|
|
#endif
|
|
|
|
w -= 6;
|
|
|
|
x -= 6;
|
|
|
|
for (j = 0; j < 6; j++)
|
|
|
|
{
|
|
|
|
dibit = getDibit (opts, state);
|
|
|
|
#ifdef PROVOICE_DUMP
|
2016-04-08 22:34:12 -04:00
|
|
|
fprintf(stderr, "%i", dibit);
|
2016-04-06 20:00:54 -04:00
|
|
|
#endif
|
|
|
|
imbe7100_fr2[*w][*x] = dibit;
|
|
|
|
w++;
|
|
|
|
x++;
|
|
|
|
}
|
|
|
|
#ifdef PROVOICE_DUMP
|
2016-04-08 22:34:12 -04:00
|
|
|
fprintf(stderr, "_");
|
2016-04-06 20:00:54 -04:00
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
for (j = 0; j < 6; j++)
|
|
|
|
{
|
|
|
|
dibit = getDibit (opts, state);
|
|
|
|
#ifdef PROVOICE_DUMP
|
2016-04-08 22:34:12 -04:00
|
|
|
fprintf(stderr, "%i", dibit);
|
2016-04-06 20:00:54 -04:00
|
|
|
#endif
|
|
|
|
imbe7100_fr1[*w][*x] = dibit;
|
|
|
|
w++;
|
|
|
|
x++;
|
|
|
|
}
|
|
|
|
#ifdef PROVOICE_DUMP
|
2016-04-08 22:34:12 -04:00
|
|
|
fprintf(stderr, "_");
|
2016-04-06 20:00:54 -04:00
|
|
|
#endif
|
|
|
|
w -= 6;
|
|
|
|
x -= 6;
|
|
|
|
for (j = 0; j < 4; j++)
|
|
|
|
{
|
|
|
|
dibit = getDibit (opts, state);
|
|
|
|
#ifdef PROVOICE_DUMP
|
2016-04-08 22:34:12 -04:00
|
|
|
fprintf(stderr, "%i", dibit);
|
2016-04-06 20:00:54 -04:00
|
|
|
#endif
|
|
|
|
imbe7100_fr2[*w][*x] = dibit;
|
|
|
|
w++;
|
|
|
|
x++;
|
|
|
|
}
|
|
|
|
#ifdef PROVOICE_DUMP
|
2016-04-08 22:34:12 -04:00
|
|
|
fprintf(stderr, " ");
|
2016-04-06 20:00:54 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
// spacer bits
|
|
|
|
dibit = getDibit (opts, state);
|
|
|
|
#ifdef PROVOICE_DUMP
|
2016-04-08 22:34:12 -04:00
|
|
|
fprintf(stderr, "%i", dibit);
|
2016-04-06 20:00:54 -04:00
|
|
|
#endif
|
|
|
|
dibit = getDibit (opts, state);
|
|
|
|
#ifdef PROVOICE_DUMP
|
2016-04-08 22:34:12 -04:00
|
|
|
fprintf(stderr, "%i", dibit);
|
|
|
|
fprintf(stderr, " ");
|
2016-04-06 20:00:54 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
// imbe frames 1,2 second half
|
|
|
|
|
|
|
|
for (j = 0; j < 2; j++)
|
|
|
|
{
|
|
|
|
dibit = getDibit (opts, state);
|
|
|
|
#ifdef PROVOICE_DUMP
|
2016-04-08 22:34:12 -04:00
|
|
|
fprintf(stderr, "%i", dibit);
|
2016-04-06 20:00:54 -04:00
|
|
|
#endif
|
|
|
|
imbe7100_fr2[*w][*x] = dibit;
|
|
|
|
w++;
|
|
|
|
x++;
|
|
|
|
}
|
|
|
|
#ifdef PROVOICE_DUMP
|
2016-04-08 22:34:12 -04:00
|
|
|
fprintf(stderr, "_");
|
2016-04-06 20:00:54 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
for (i = 0; i < 3; i++)
|
|
|
|
{
|
|
|
|
for (j = 0; j < 6; j++)
|
|
|
|
{
|
|
|
|
dibit = getDibit (opts, state);
|
|
|
|
#ifdef PROVOICE_DUMP
|
2016-04-08 22:34:12 -04:00
|
|
|
fprintf(stderr, "%i", dibit);
|
2016-04-06 20:00:54 -04:00
|
|
|
#endif
|
|
|
|
imbe7100_fr1[*w][*x] = dibit;
|
|
|
|
w++;
|
|
|
|
x++;
|
|
|
|
}
|
|
|
|
#ifdef PROVOICE_DUMP
|
2016-04-08 22:34:12 -04:00
|
|
|
fprintf(stderr, "_");
|
2016-04-06 20:00:54 -04:00
|
|
|
#endif
|
|
|
|
w -= 6;
|
|
|
|
x -= 6;
|
|
|
|
for (j = 0; j < 6; j++)
|
|
|
|
{
|
|
|
|
dibit = getDibit (opts, state);
|
|
|
|
#ifdef PROVOICE_DUMP
|
2016-04-08 22:34:12 -04:00
|
|
|
fprintf(stderr, "%i", dibit);
|
2016-04-06 20:00:54 -04:00
|
|
|
#endif
|
|
|
|
imbe7100_fr2[*w][*x] = dibit;
|
|
|
|
w++;
|
|
|
|
x++;
|
|
|
|
}
|
|
|
|
#ifdef PROVOICE_DUMP
|
2016-04-08 22:34:12 -04:00
|
|
|
fprintf(stderr, "_");
|
2016-04-06 20:00:54 -04:00
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
for (j = 0; j < 5; j++)
|
|
|
|
{
|
|
|
|
dibit = getDibit (opts, state);
|
|
|
|
#ifdef PROVOICE_DUMP
|
2016-04-08 22:34:12 -04:00
|
|
|
fprintf(stderr, "%i", dibit);
|
2016-04-06 20:00:54 -04:00
|
|
|
#endif
|
|
|
|
imbe7100_fr1[*w][*x] = dibit;
|
|
|
|
w++;
|
|
|
|
x++;
|
|
|
|
}
|
|
|
|
#ifdef PROVOICE_DUMP
|
2016-04-08 22:34:12 -04:00
|
|
|
fprintf(stderr, "_");
|
2016-04-06 20:00:54 -04:00
|
|
|
#endif
|
|
|
|
w -= 5;
|
|
|
|
x -= 5;
|
|
|
|
for (j = 0; j < 5; j++)
|
|
|
|
{
|
|
|
|
dibit = getDibit (opts, state);
|
|
|
|
#ifdef PROVOICE_DUMP
|
2016-04-08 22:34:12 -04:00
|
|
|
fprintf(stderr, "%i", dibit);
|
2016-04-06 20:00:54 -04:00
|
|
|
#endif
|
|
|
|
imbe7100_fr2[*w][*x] = dibit;
|
|
|
|
w++;
|
|
|
|
x++;
|
|
|
|
}
|
|
|
|
#ifdef PROVOICE_DUMP
|
2016-04-08 22:34:12 -04:00
|
|
|
fprintf(stderr, "_");
|
2016-04-06 20:00:54 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
for (i = 0; i < 7; i++)
|
|
|
|
{
|
|
|
|
for (j = 0; j < 6; j++)
|
|
|
|
{
|
|
|
|
dibit = getDibit (opts, state);
|
|
|
|
#ifdef PROVOICE_DUMP
|
2016-04-08 22:34:12 -04:00
|
|
|
fprintf(stderr, "%i", dibit);
|
2016-04-06 20:00:54 -04:00
|
|
|
#endif
|
|
|
|
imbe7100_fr1[*w][*x] = dibit;
|
|
|
|
w++;
|
|
|
|
x++;
|
|
|
|
}
|
|
|
|
#ifdef PROVOICE_DUMP
|
2016-04-08 22:34:12 -04:00
|
|
|
fprintf(stderr, "_");
|
2016-04-06 20:00:54 -04:00
|
|
|
#endif
|
|
|
|
w -= 6;
|
|
|
|
x -= 6;
|
|
|
|
for (j = 0; j < 6; j++)
|
|
|
|
{
|
|
|
|
dibit = getDibit (opts, state);
|
|
|
|
#ifdef PROVOICE_DUMP
|
2016-04-08 22:34:12 -04:00
|
|
|
fprintf(stderr, "%i", dibit);
|
2016-04-06 20:00:54 -04:00
|
|
|
#endif
|
|
|
|
imbe7100_fr2[*w][*x] = dibit;
|
|
|
|
w++;
|
|
|
|
x++;
|
|
|
|
}
|
|
|
|
#ifdef PROVOICE_DUMP
|
2016-04-08 22:34:12 -04:00
|
|
|
fprintf(stderr, "_");
|
2016-04-06 20:00:54 -04:00
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
for (j = 0; j < 5; j++)
|
|
|
|
{
|
|
|
|
dibit = getDibit (opts, state);
|
|
|
|
#ifdef PROVOICE_DUMP
|
2016-04-08 22:34:12 -04:00
|
|
|
fprintf(stderr, "%i", dibit);
|
2016-04-06 20:00:54 -04:00
|
|
|
#endif
|
|
|
|
imbe7100_fr1[*w][*x] = dibit;
|
|
|
|
w++;
|
|
|
|
x++;
|
|
|
|
}
|
|
|
|
#ifdef PROVOICE_DUMP
|
2016-04-08 22:34:12 -04:00
|
|
|
fprintf(stderr, "_");
|
2016-04-06 20:00:54 -04:00
|
|
|
#endif
|
|
|
|
w -= 5;
|
|
|
|
x -= 5;
|
|
|
|
for (j = 0; j < 5; j++)
|
|
|
|
{
|
|
|
|
dibit = getDibit (opts, state);
|
|
|
|
#ifdef PROVOICE_DUMP
|
2016-04-08 22:34:12 -04:00
|
|
|
fprintf(stderr, "%i", dibit);
|
2016-04-06 20:00:54 -04:00
|
|
|
#endif
|
|
|
|
imbe7100_fr2[*w][*x] = dibit;
|
|
|
|
w++;
|
|
|
|
x++;
|
|
|
|
}
|
|
|
|
#ifdef PROVOICE_DUMP
|
2016-04-08 22:34:12 -04:00
|
|
|
fprintf(stderr, " ");
|
2016-04-06 20:00:54 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
processMbeFrame (opts, state, NULL, NULL, imbe7100_fr1);
|
|
|
|
processMbeFrame (opts, state, NULL, NULL, imbe7100_fr2);
|
|
|
|
|
|
|
|
// spacer bits
|
|
|
|
dibit = getDibit (opts, state);
|
|
|
|
#ifdef PROVOICE_DUMP
|
2016-04-08 22:34:12 -04:00
|
|
|
fprintf(stderr, "%i", dibit);
|
2016-04-06 20:00:54 -04:00
|
|
|
#endif
|
|
|
|
dibit = getDibit (opts, state);
|
|
|
|
#ifdef PROVOICE_DUMP
|
2016-04-08 22:34:12 -04:00
|
|
|
fprintf(stderr, "%i", dibit);
|
|
|
|
fprintf(stderr, " ");
|
2016-04-06 20:00:54 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
for (i = 0; i < 16; i++)
|
|
|
|
{
|
|
|
|
dibit = getDibit (opts, state);
|
|
|
|
#ifdef PROVOICE_DUMP
|
2016-04-08 22:34:12 -04:00
|
|
|
fprintf(stderr, "%i", dibit);
|
2016-04-06 20:00:54 -04:00
|
|
|
#endif
|
|
|
|
}
|
|
|
|
#ifdef PROVOICE_DUMP
|
2016-04-08 22:34:12 -04:00
|
|
|
fprintf(stderr, " ");
|
2016-04-06 20:00:54 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
// imbe frames 3,4 first half
|
|
|
|
w = pW;
|
|
|
|
x = pX;
|
|
|
|
for (i = 0; i < 11; i++)
|
|
|
|
{
|
|
|
|
for (j = 0; j < 6; j++)
|
|
|
|
{
|
|
|
|
dibit = getDibit (opts, state);
|
|
|
|
#ifdef PROVOICE_DUMP
|
2016-04-08 22:34:12 -04:00
|
|
|
fprintf(stderr, "%i", dibit);
|
2016-04-06 20:00:54 -04:00
|
|
|
#endif
|
|
|
|
imbe7100_fr1[*w][*x] = dibit;
|
|
|
|
w++;
|
|
|
|
x++;
|
|
|
|
}
|
|
|
|
#ifdef PROVOICE_DUMP
|
2016-04-08 22:34:12 -04:00
|
|
|
fprintf(stderr, "_");
|
2016-04-06 20:00:54 -04:00
|
|
|
#endif
|
|
|
|
w -= 6;
|
|
|
|
x -= 6;
|
|
|
|
for (j = 0; j < 6; j++)
|
|
|
|
{
|
|
|
|
dibit = getDibit (opts, state);
|
|
|
|
#ifdef PROVOICE_DUMP
|
2016-04-08 22:34:12 -04:00
|
|
|
fprintf(stderr, "%i", dibit);
|
2016-04-06 20:00:54 -04:00
|
|
|
#endif
|
|
|
|
imbe7100_fr2[*w][*x] = dibit;
|
|
|
|
w++;
|
|
|
|
x++;
|
|
|
|
}
|
|
|
|
#ifdef PROVOICE_DUMP
|
2016-04-08 22:34:12 -04:00
|
|
|
fprintf(stderr, "_");
|
2016-04-06 20:00:54 -04:00
|
|
|
#endif
|
|
|
|
}
|
|
|
|
for (j = 0; j < 6; j++)
|
|
|
|
{
|
|
|
|
dibit = getDibit (opts, state);
|
|
|
|
#ifdef PROVOICE_DUMP
|
2016-04-08 22:34:12 -04:00
|
|
|
fprintf(stderr, "%i", dibit);
|
2016-04-06 20:00:54 -04:00
|
|
|
#endif
|
|
|
|
imbe7100_fr1[*w][*x] = dibit;
|
|
|
|
w++;
|
|
|
|
x++;
|
|
|
|
}
|
|
|
|
#ifdef PROVOICE_DUMP
|
2016-04-08 22:34:12 -04:00
|
|
|
fprintf(stderr, "_");
|
2016-04-06 20:00:54 -04:00
|
|
|
#endif
|
|
|
|
w -= 6;
|
|
|
|
x -= 6;
|
|
|
|
for (j = 0; j < 4; j++)
|
|
|
|
{
|
|
|
|
dibit = getDibit (opts, state);
|
|
|
|
#ifdef PROVOICE_DUMP
|
2016-04-08 22:34:12 -04:00
|
|
|
fprintf(stderr, "%i", dibit);
|
2016-04-06 20:00:54 -04:00
|
|
|
#endif
|
|
|
|
imbe7100_fr2[*w][*x] = dibit;
|
|
|
|
w++;
|
|
|
|
x++;
|
|
|
|
}
|
|
|
|
#ifdef PROVOICE_DUMP
|
2016-04-08 22:34:12 -04:00
|
|
|
fprintf(stderr, " ");
|
2016-04-06 20:00:54 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
// spacer bits
|
|
|
|
dibit = getDibit (opts, state);
|
|
|
|
#ifdef PROVOICE_DUMP
|
2016-04-08 22:34:12 -04:00
|
|
|
fprintf(stderr, "%i", dibit);
|
2016-04-06 20:00:54 -04:00
|
|
|
#endif
|
|
|
|
dibit = getDibit (opts, state);
|
|
|
|
#ifdef PROVOICE_DUMP
|
2016-04-08 22:34:12 -04:00
|
|
|
fprintf(stderr, "%i", dibit);
|
|
|
|
fprintf(stderr, "_");
|
2016-04-06 20:00:54 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
// imbe frames 3,4 second half
|
|
|
|
for (j = 0; j < 2; j++)
|
|
|
|
{
|
|
|
|
dibit = getDibit (opts, state);
|
|
|
|
#ifdef PROVOICE_DUMP
|
2016-04-08 22:34:12 -04:00
|
|
|
fprintf(stderr, "%i", dibit);
|
2016-04-06 20:00:54 -04:00
|
|
|
#endif
|
|
|
|
imbe7100_fr2[*w][*x] = dibit;
|
|
|
|
w++;
|
|
|
|
x++;
|
|
|
|
}
|
|
|
|
#ifdef PROVOICE_DUMP
|
2016-04-08 22:34:12 -04:00
|
|
|
fprintf(stderr, "_");
|
2016-04-06 20:00:54 -04:00
|
|
|
#endif
|
|
|
|
for (i = 0; i < 3; i++)
|
|
|
|
{
|
|
|
|
for (j = 0; j < 6; j++)
|
|
|
|
{
|
|
|
|
dibit = getDibit (opts, state);
|
|
|
|
#ifdef PROVOICE_DUMP
|
2016-04-08 22:34:12 -04:00
|
|
|
fprintf(stderr, "%i", dibit);
|
2016-04-06 20:00:54 -04:00
|
|
|
#endif
|
|
|
|
imbe7100_fr1[*w][*x] = dibit;
|
|
|
|
w++;
|
|
|
|
x++;
|
|
|
|
}
|
|
|
|
#ifdef PROVOICE_DUMP
|
2016-04-08 22:34:12 -04:00
|
|
|
fprintf(stderr, "_");
|
2016-04-06 20:00:54 -04:00
|
|
|
#endif
|
|
|
|
w -= 6;
|
|
|
|
x -= 6;
|
|
|
|
for (j = 0; j < 6; j++)
|
|
|
|
{
|
|
|
|
dibit = getDibit (opts, state);
|
|
|
|
#ifdef PROVOICE_DUMP
|
2016-04-08 22:34:12 -04:00
|
|
|
fprintf(stderr, "%i", dibit);
|
2016-04-06 20:00:54 -04:00
|
|
|
#endif
|
|
|
|
imbe7100_fr2[*w][*x] = dibit;
|
|
|
|
w++;
|
|
|
|
x++;
|
|
|
|
}
|
|
|
|
#ifdef PROVOICE_DUMP
|
2016-04-08 22:34:12 -04:00
|
|
|
fprintf(stderr, "_");
|
2016-04-06 20:00:54 -04:00
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
for (j = 0; j < 5; j++)
|
|
|
|
{
|
|
|
|
dibit = getDibit (opts, state);
|
|
|
|
#ifdef PROVOICE_DUMP
|
2016-04-08 22:34:12 -04:00
|
|
|
fprintf(stderr, "%i", dibit);
|
2016-04-06 20:00:54 -04:00
|
|
|
#endif
|
|
|
|
imbe7100_fr1[*w][*x] = dibit;
|
|
|
|
w++;
|
|
|
|
x++;
|
|
|
|
}
|
|
|
|
#ifdef PROVOICE_DUMP
|
2016-04-08 22:34:12 -04:00
|
|
|
fprintf(stderr, "_");
|
2016-04-06 20:00:54 -04:00
|
|
|
#endif
|
|
|
|
w -= 5;
|
|
|
|
x -= 5;
|
|
|
|
for (j = 0; j < 5; j++)
|
|
|
|
{
|
|
|
|
dibit = getDibit (opts, state);
|
|
|
|
#ifdef PROVOICE_DUMP
|
2016-04-08 22:34:12 -04:00
|
|
|
fprintf(stderr, "%i", dibit);
|
2016-04-06 20:00:54 -04:00
|
|
|
#endif
|
|
|
|
imbe7100_fr2[*w][*x] = dibit;
|
|
|
|
w++;
|
|
|
|
x++;
|
|
|
|
}
|
|
|
|
#ifdef PROVOICE_DUMP
|
2016-04-08 22:34:12 -04:00
|
|
|
fprintf(stderr, " ");
|
2016-04-06 20:00:54 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
for (i = 0; i < 7; i++)
|
|
|
|
{
|
|
|
|
for (j = 0; j < 6; j++)
|
|
|
|
{
|
|
|
|
dibit = getDibit (opts, state);
|
|
|
|
#ifdef PROVOICE_DUMP
|
2016-04-08 22:34:12 -04:00
|
|
|
fprintf(stderr, "%i", dibit);
|
2016-04-06 20:00:54 -04:00
|
|
|
#endif
|
|
|
|
imbe7100_fr1[*w][*x] = dibit;
|
|
|
|
w++;
|
|
|
|
x++;
|
|
|
|
}
|
|
|
|
#ifdef PROVOICE_DUMP
|
2016-04-08 22:34:12 -04:00
|
|
|
fprintf(stderr, "_");
|
2016-04-06 20:00:54 -04:00
|
|
|
#endif
|
|
|
|
w -= 6;
|
|
|
|
x -= 6;
|
|
|
|
for (j = 0; j < 6; j++)
|
|
|
|
{
|
|
|
|
dibit = getDibit (opts, state);
|
|
|
|
#ifdef PROVOICE_DUMP
|
2016-04-08 22:34:12 -04:00
|
|
|
fprintf(stderr, "%i", dibit);
|
2016-04-06 20:00:54 -04:00
|
|
|
#endif
|
|
|
|
imbe7100_fr2[*w][*x] = dibit;
|
|
|
|
w++;
|
|
|
|
x++;
|
|
|
|
}
|
|
|
|
#ifdef PROVOICE_DUMP
|
2016-04-08 22:34:12 -04:00
|
|
|
fprintf(stderr, "_");
|
2016-04-06 20:00:54 -04:00
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
for (j = 0; j < 5; j++)
|
|
|
|
{
|
|
|
|
dibit = getDibit (opts, state);
|
|
|
|
#ifdef PROVOICE_DUMP
|
2016-04-08 22:34:12 -04:00
|
|
|
fprintf(stderr, "%i", dibit);
|
2016-04-06 20:00:54 -04:00
|
|
|
#endif
|
|
|
|
imbe7100_fr1[*w][*x] = dibit;
|
|
|
|
w++;
|
|
|
|
x++;
|
|
|
|
}
|
|
|
|
#ifdef PROVOICE_DUMP
|
2016-04-08 22:34:12 -04:00
|
|
|
fprintf(stderr, "_");
|
2016-04-06 20:00:54 -04:00
|
|
|
#endif
|
|
|
|
w -= 5;
|
|
|
|
x -= 5;
|
|
|
|
for (j = 0; j < 5; j++)
|
|
|
|
{
|
|
|
|
dibit = getDibit (opts, state);
|
|
|
|
#ifdef PROVOICE_DUMP
|
2016-04-08 22:34:12 -04:00
|
|
|
fprintf(stderr, "%i", dibit);
|
2016-04-06 20:00:54 -04:00
|
|
|
#endif
|
|
|
|
imbe7100_fr2[*w][*x] = dibit;
|
|
|
|
w++;
|
|
|
|
x++;
|
|
|
|
}
|
|
|
|
#ifdef PROVOICE_DUMP
|
2016-04-08 22:34:12 -04:00
|
|
|
fprintf(stderr, " ");
|
2016-04-06 20:00:54 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
processMbeFrame (opts, state, NULL, NULL, imbe7100_fr1);
|
|
|
|
processMbeFrame (opts, state, NULL, NULL, imbe7100_fr2);
|
|
|
|
|
|
|
|
// spacer bits
|
|
|
|
dibit = getDibit (opts, state);
|
|
|
|
#ifdef PROVOICE_DUMP
|
2016-04-08 22:34:12 -04:00
|
|
|
fprintf(stderr, "%i", dibit);
|
2016-04-06 20:00:54 -04:00
|
|
|
#endif
|
|
|
|
dibit = getDibit (opts, state);
|
|
|
|
#ifdef PROVOICE_DUMP
|
2016-04-08 22:34:12 -04:00
|
|
|
fprintf(stderr, "%i", dibit);
|
|
|
|
fprintf(stderr, " ");
|
2016-04-06 20:00:54 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
if (opts->errorbars == 1)
|
|
|
|
{
|
2016-04-08 22:34:12 -04:00
|
|
|
fprintf(stderr, "\n");
|
2016-04-06 20:00:54 -04:00
|
|
|
}
|
|
|
|
}
|