GNU Radio's DSD Package
provoice_const.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2010 DSD Author
3 * GPG Key ID: 0x3F1D7FD0 (74EF 430D F7F2 0A48 FCE6 F630 FAA2 635D 3F1D 7FD0)
4 *
5 * Permission to use, copy, modify, and/or distribute this software for any
6 * purpose with or without fee is hereby granted, provided that the above
7 * copyright notice and this permission notice appear in all copies.
8 *
9 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
10 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
11 * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
12 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
14 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15 * PERFORMANCE OF THIS SOFTWARE.
16 */
17
18#ifndef _MAIN
19
20extern const int pW[142];
21extern const int pX[142];
22
23#else
24/*
25 * ProVoice IMBE interleave schedule
26 */
27
28const int pW[142] = {
29 0, 1, 2, 3, 4, 6,
30 0, 1, 2, 3, 4, 6,
31 0, 1, 2, 3, 4, 6,
32 0, 1, 2, 3, 5, 6,
33 0, 1, 2, 3, 5, 6,
34 0, 1, 2, 3, 5, 6,
35 0, 1, 3, 4, 5, 6,
36 1, 2, 3, 4, 5, 6,
37 0, 1, 2, 3, 4, 6,
38 0, 1, 2, 3, 4, 6,
39 0, 1, 2, 3, 4, 6,
40 0, 1, 2, 3, 5, 6,
41 0, 1, 2, 3, 5, 6,
42 0, 1, 2, 3, 5, 6,
43 1, 2, 3, 4, 5, 6,
44 1, 2, 3, 4, 5,
45 0, 1, 2, 3, 4, 6,
46 0, 1, 2, 3, 4, 6,
47 0, 1, 2, 3, 5, 6,
48 0, 1, 2, 3, 5, 6,
49 0, 1, 2, 3, 5, 6,
50 0, 1, 2, 4, 5, 6,
51 1, 2, 3, 4, 5, 6,
52 1, 2, 3, 4, 6
53};
54
55const int pX[142] = {
56 18, 18, 17, 16, 7, 21,
57 15, 15, 14, 13, 4, 18,
58 12, 12, 11, 10, 1, 15,
59 9, 9, 8, 7, 13, 12,
60 6, 6, 5, 4, 10, 9,
61 3, 3, 2, 1, 7, 6,
62 0, 0, 22, 13, 4, 3,
63 21, 20, 19, 10, 1, 0,
64 17, 17, 16, 15, 6, 20,
65 14, 14, 13, 12, 3, 17,
66 11, 11, 10, 9, 0, 14,
67 8, 8, 7, 6, 12, 11,
68 5, 5, 4, 3, 9, 8,
69 2, 2, 1, 0, 6, 5,
70 23, 22, 21, 12, 3, 2,
71 20, 19, 18, 9, 0,
72 16, 16, 15, 14, 5, 19,
73 13, 13, 12, 11, 2, 16,
74 10, 10, 9, 8, 14, 13,
75 7, 7, 6, 5, 11, 10,
76 4, 4, 3, 2, 8, 7,
77 1, 1, 0, 14, 5, 4,
78 22, 21, 20, 11, 2, 1,
79 19, 18, 17, 8, 22
80};
81#endif
const int pW[142]
const int pX[142]