FreeCalypso > hg > vband-misc
annotate amrdiff/readone-common.c @ 4:5aeebdcbddad
readone-efr program written
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Wed, 03 Apr 2024 20:07:50 +0000 |
parents | 75ba83624a29 |
children |
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 } |