annotate amrdiff/readone-common.c @ 21:3eb407b08b4c

pcmu2efr: confirm that we got 280 distinct outputs so far
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 12 May 2024 03:15:23 +0000
parents 75ba83624a29
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
75ba83624a29 readone-amr program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
1 /*
75ba83624a29 readone-amr program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
2 * The function in this module is common between readone-amr and readone-efr.
75ba83624a29 readone-amr program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
3 */
75ba83624a29 readone-amr program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
4
75ba83624a29 readone-amr program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
5 #include <stdio.h>
75ba83624a29 readone-amr program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
6 #include <stdint.h>
75ba83624a29 readone-amr program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
7 #include <stdlib.h>
75ba83624a29 readone-amr program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
8 #include <string.h>
75ba83624a29 readone-amr program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
9 #include <strings.h>
75ba83624a29 readone-amr program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
10
75ba83624a29 readone-amr program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
11 emit_frame244(bits)
75ba83624a29 readone-amr program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
12 uint8_t *bits;
75ba83624a29 readone-amr program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
13 {
75ba83624a29 readone-amr program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
14 unsigned n;
75ba83624a29 readone-amr program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
15
75ba83624a29 readone-amr program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
16 for (n = 0; n < 244; n++) {
75ba83624a29 readone-amr program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
17 printf("%u,", bits[n]);
75ba83624a29 readone-amr program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
18 if (n % 40 == 39 || n == 243)
75ba83624a29 readone-amr program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
19 putchar('\n');
75ba83624a29 readone-amr program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
20 }
75ba83624a29 readone-amr program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
21 }