6bfaf37997f481d653a90a090be3453dfa7244cb
[debian/gnuradio] / vrt / lib / expanded_header_parse_switch_body.h
1   case 0:
2     h->stream_id = 0;
3     h->class_id = 0;
4     h->integer_secs = 0;
5     h->fractional_secs = 0;
6     n32_bit_words_header = 1;
7     h->trailer = 0;
8     n32_bit_words_trailer = 0;
9     break;
10
11   case 1:
12     h->stream_id = ntohl(p[1]);
13     h->class_id = 0;
14     h->integer_secs = 0;
15     h->fractional_secs = 0;
16     n32_bit_words_header = 2;
17     h->trailer = 0;
18     n32_bit_words_trailer = 0;
19     break;
20
21   case 2:
22     h->stream_id = 0;
23     h->class_id = ((uint64_t)(ntohl(p[1])) << 32) | ntohl(p[2]);
24     h->integer_secs = 0;
25     h->fractional_secs = 0;
26     n32_bit_words_header = 3;
27     h->trailer = 0;
28     n32_bit_words_trailer = 0;
29     break;
30
31   case 3:
32     h->stream_id = ntohl(p[1]);
33     h->class_id = ((uint64_t)(ntohl(p[2])) << 32) | ntohl(p[3]);
34     h->integer_secs = 0;
35     h->fractional_secs = 0;
36     n32_bit_words_header = 4;
37     h->trailer = 0;
38     n32_bit_words_trailer = 0;
39     break;
40
41   case 4:
42     h->stream_id = 0;
43     h->class_id = 0;
44     h->integer_secs = ntohl(p[1]);
45     h->fractional_secs = 0;
46     n32_bit_words_header = 2;
47     h->trailer = 0;
48     n32_bit_words_trailer = 0;
49     break;
50
51   case 5:
52     h->stream_id = ntohl(p[1]);
53     h->class_id = 0;
54     h->integer_secs = ntohl(p[2]);
55     h->fractional_secs = 0;
56     n32_bit_words_header = 3;
57     h->trailer = 0;
58     n32_bit_words_trailer = 0;
59     break;
60
61   case 6:
62     h->stream_id = 0;
63     h->class_id = ((uint64_t)(ntohl(p[1])) << 32) | ntohl(p[2]);
64     h->integer_secs = ntohl(p[3]);
65     h->fractional_secs = 0;
66     n32_bit_words_header = 4;
67     h->trailer = 0;
68     n32_bit_words_trailer = 0;
69     break;
70
71   case 7:
72     h->stream_id = ntohl(p[1]);
73     h->class_id = ((uint64_t)(ntohl(p[2])) << 32) | ntohl(p[3]);
74     h->integer_secs = ntohl(p[4]);
75     h->fractional_secs = 0;
76     n32_bit_words_header = 5;
77     h->trailer = 0;
78     n32_bit_words_trailer = 0;
79     break;
80
81   case 8:
82     h->stream_id = 0;
83     h->class_id = 0;
84     h->integer_secs = 0;
85     h->fractional_secs = ((uint64_t)(ntohl(p[1])) << 32) | ntohl(p[2]);
86     n32_bit_words_header = 3;
87     h->trailer = 0;
88     n32_bit_words_trailer = 0;
89     break;
90
91   case 9:
92     h->stream_id = ntohl(p[1]);
93     h->class_id = 0;
94     h->integer_secs = 0;
95     h->fractional_secs = ((uint64_t)(ntohl(p[2])) << 32) | ntohl(p[3]);
96     n32_bit_words_header = 4;
97     h->trailer = 0;
98     n32_bit_words_trailer = 0;
99     break;
100
101   case 10:
102     h->stream_id = 0;
103     h->class_id = ((uint64_t)(ntohl(p[1])) << 32) | ntohl(p[2]);
104     h->integer_secs = 0;
105     h->fractional_secs = ((uint64_t)(ntohl(p[3])) << 32) | ntohl(p[4]);
106     n32_bit_words_header = 5;
107     h->trailer = 0;
108     n32_bit_words_trailer = 0;
109     break;
110
111   case 11:
112     h->stream_id = ntohl(p[1]);
113     h->class_id = ((uint64_t)(ntohl(p[2])) << 32) | ntohl(p[3]);
114     h->integer_secs = 0;
115     h->fractional_secs = ((uint64_t)(ntohl(p[4])) << 32) | ntohl(p[5]);
116     n32_bit_words_header = 6;
117     h->trailer = 0;
118     n32_bit_words_trailer = 0;
119     break;
120
121   case 12:
122     h->stream_id = 0;
123     h->class_id = 0;
124     h->integer_secs = ntohl(p[1]);
125     h->fractional_secs = ((uint64_t)(ntohl(p[2])) << 32) | ntohl(p[3]);
126     n32_bit_words_header = 4;
127     h->trailer = 0;
128     n32_bit_words_trailer = 0;
129     break;
130
131   case 13:
132     h->stream_id = ntohl(p[1]);
133     h->class_id = 0;
134     h->integer_secs = ntohl(p[2]);
135     h->fractional_secs = ((uint64_t)(ntohl(p[3])) << 32) | ntohl(p[4]);
136     n32_bit_words_header = 5;
137     h->trailer = 0;
138     n32_bit_words_trailer = 0;
139     break;
140
141   case 14:
142     h->stream_id = 0;
143     h->class_id = ((uint64_t)(ntohl(p[1])) << 32) | ntohl(p[2]);
144     h->integer_secs = ntohl(p[3]);
145     h->fractional_secs = ((uint64_t)(ntohl(p[4])) << 32) | ntohl(p[5]);
146     n32_bit_words_header = 6;
147     h->trailer = 0;
148     n32_bit_words_trailer = 0;
149     break;
150
151   case 15:
152     h->stream_id = ntohl(p[1]);
153     h->class_id = ((uint64_t)(ntohl(p[2])) << 32) | ntohl(p[3]);
154     h->integer_secs = ntohl(p[4]);
155     h->fractional_secs = ((uint64_t)(ntohl(p[5])) << 32) | ntohl(p[6]);
156     n32_bit_words_header = 7;
157     h->trailer = 0;
158     n32_bit_words_trailer = 0;
159     break;
160
161   case 16:
162     h->stream_id = 0;
163     h->class_id = 0;
164     h->integer_secs = 0;
165     h->fractional_secs = 0;
166     n32_bit_words_header = 1;
167     h->trailer = ntohl(p[len-1]);
168     n32_bit_words_trailer = 1;
169     break;
170
171   case 17:
172     h->stream_id = ntohl(p[1]);
173     h->class_id = 0;
174     h->integer_secs = 0;
175     h->fractional_secs = 0;
176     n32_bit_words_header = 2;
177     h->trailer = ntohl(p[len-1]);
178     n32_bit_words_trailer = 1;
179     break;
180
181   case 18:
182     h->stream_id = 0;
183     h->class_id = ((uint64_t)(ntohl(p[1])) << 32) | ntohl(p[2]);
184     h->integer_secs = 0;
185     h->fractional_secs = 0;
186     n32_bit_words_header = 3;
187     h->trailer = ntohl(p[len-1]);
188     n32_bit_words_trailer = 1;
189     break;
190
191   case 19:
192     h->stream_id = ntohl(p[1]);
193     h->class_id = ((uint64_t)(ntohl(p[2])) << 32) | ntohl(p[3]);
194     h->integer_secs = 0;
195     h->fractional_secs = 0;
196     n32_bit_words_header = 4;
197     h->trailer = ntohl(p[len-1]);
198     n32_bit_words_trailer = 1;
199     break;
200
201   case 20:
202     h->stream_id = 0;
203     h->class_id = 0;
204     h->integer_secs = ntohl(p[1]);
205     h->fractional_secs = 0;
206     n32_bit_words_header = 2;
207     h->trailer = ntohl(p[len-1]);
208     n32_bit_words_trailer = 1;
209     break;
210
211   case 21:
212     h->stream_id = ntohl(p[1]);
213     h->class_id = 0;
214     h->integer_secs = ntohl(p[2]);
215     h->fractional_secs = 0;
216     n32_bit_words_header = 3;
217     h->trailer = ntohl(p[len-1]);
218     n32_bit_words_trailer = 1;
219     break;
220
221   case 22:
222     h->stream_id = 0;
223     h->class_id = ((uint64_t)(ntohl(p[1])) << 32) | ntohl(p[2]);
224     h->integer_secs = ntohl(p[3]);
225     h->fractional_secs = 0;
226     n32_bit_words_header = 4;
227     h->trailer = ntohl(p[len-1]);
228     n32_bit_words_trailer = 1;
229     break;
230
231   case 23:
232     h->stream_id = ntohl(p[1]);
233     h->class_id = ((uint64_t)(ntohl(p[2])) << 32) | ntohl(p[3]);
234     h->integer_secs = ntohl(p[4]);
235     h->fractional_secs = 0;
236     n32_bit_words_header = 5;
237     h->trailer = ntohl(p[len-1]);
238     n32_bit_words_trailer = 1;
239     break;
240
241   case 24:
242     h->stream_id = 0;
243     h->class_id = 0;
244     h->integer_secs = 0;
245     h->fractional_secs = ((uint64_t)(ntohl(p[1])) << 32) | ntohl(p[2]);
246     n32_bit_words_header = 3;
247     h->trailer = ntohl(p[len-1]);
248     n32_bit_words_trailer = 1;
249     break;
250
251   case 25:
252     h->stream_id = ntohl(p[1]);
253     h->class_id = 0;
254     h->integer_secs = 0;
255     h->fractional_secs = ((uint64_t)(ntohl(p[2])) << 32) | ntohl(p[3]);
256     n32_bit_words_header = 4;
257     h->trailer = ntohl(p[len-1]);
258     n32_bit_words_trailer = 1;
259     break;
260
261   case 26:
262     h->stream_id = 0;
263     h->class_id = ((uint64_t)(ntohl(p[1])) << 32) | ntohl(p[2]);
264     h->integer_secs = 0;
265     h->fractional_secs = ((uint64_t)(ntohl(p[3])) << 32) | ntohl(p[4]);
266     n32_bit_words_header = 5;
267     h->trailer = ntohl(p[len-1]);
268     n32_bit_words_trailer = 1;
269     break;
270
271   case 27:
272     h->stream_id = ntohl(p[1]);
273     h->class_id = ((uint64_t)(ntohl(p[2])) << 32) | ntohl(p[3]);
274     h->integer_secs = 0;
275     h->fractional_secs = ((uint64_t)(ntohl(p[4])) << 32) | ntohl(p[5]);
276     n32_bit_words_header = 6;
277     h->trailer = ntohl(p[len-1]);
278     n32_bit_words_trailer = 1;
279     break;
280
281   case 28:
282     h->stream_id = 0;
283     h->class_id = 0;
284     h->integer_secs = ntohl(p[1]);
285     h->fractional_secs = ((uint64_t)(ntohl(p[2])) << 32) | ntohl(p[3]);
286     n32_bit_words_header = 4;
287     h->trailer = ntohl(p[len-1]);
288     n32_bit_words_trailer = 1;
289     break;
290
291   case 29:
292     h->stream_id = ntohl(p[1]);
293     h->class_id = 0;
294     h->integer_secs = ntohl(p[2]);
295     h->fractional_secs = ((uint64_t)(ntohl(p[3])) << 32) | ntohl(p[4]);
296     n32_bit_words_header = 5;
297     h->trailer = ntohl(p[len-1]);
298     n32_bit_words_trailer = 1;
299     break;
300
301   case 30:
302     h->stream_id = 0;
303     h->class_id = ((uint64_t)(ntohl(p[1])) << 32) | ntohl(p[2]);
304     h->integer_secs = ntohl(p[3]);
305     h->fractional_secs = ((uint64_t)(ntohl(p[4])) << 32) | ntohl(p[5]);
306     n32_bit_words_header = 6;
307     h->trailer = ntohl(p[len-1]);
308     n32_bit_words_trailer = 1;
309     break;
310
311   case 31:
312     h->stream_id = ntohl(p[1]);
313     h->class_id = ((uint64_t)(ntohl(p[2])) << 32) | ntohl(p[3]);
314     h->integer_secs = ntohl(p[4]);
315     h->fractional_secs = ((uint64_t)(ntohl(p[5])) << 32) | ntohl(p[6]);
316     n32_bit_words_header = 7;
317     h->trailer = ntohl(p[len-1]);
318     n32_bit_words_trailer = 1;
319     break;
320