mirror of
https://github.com/aicodix/modem.git
synced 2026-04-27 22:35:41 +00:00
restored short and long codes
This commit is contained in:
parent
f1539aacdc
commit
3765da54ff
5 changed files with 25 additions and 1 deletions
10
decode.cc
10
decode.cc
|
|
@ -147,6 +147,11 @@ struct Decoder : Common
|
|||
dest[0] = src[0];
|
||||
for (int i = 1; i < 256; ++i)
|
||||
dest[seq()] = src[i];
|
||||
} else if (order == 11) {
|
||||
CODE::XorShiftMask<int, 11, 1, 3, 4, 1> seq;
|
||||
dest[0] = src[0];
|
||||
for (int i = 1; i < 2048; ++i)
|
||||
dest[seq()] = src[i];
|
||||
} else if (order == 12) {
|
||||
CODE::XorShiftMask<int, 12, 1, 1, 4, 1> seq;
|
||||
dest[0] = src[0];
|
||||
|
|
@ -167,6 +172,11 @@ struct Decoder : Common
|
|||
dest[0] = src[0];
|
||||
for (int i = 1; i < 32768; ++i)
|
||||
dest[seq()] = src[i];
|
||||
} else if (order == 16) {
|
||||
CODE::XorShiftMask<int, 16, 1, 1, 14, 1> seq;
|
||||
dest[0] = src[0];
|
||||
for (int i = 1; i < 65536; ++i)
|
||||
dest[seq()] = src[i];
|
||||
}
|
||||
}
|
||||
const cmplx *next_sample()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue