blob: 48d6883125a52126922596477e21a84e5ec78a36 [file] [log] [blame]
Benny Prijono7f1c90f2007-04-07 12:29:46 +00001.\"
2.\" Copyright 1992 by Jutta Degener and Carsten Bormann, Technische
3.\" Universitaet Berlin. See the accompanying file "COPYRIGHT" for
4.\" details. THERE IS ABSOLUTELY NO WARRANTY FOR THIS SOFTWARE.
5.\"
6.PU
7.TH GSM_PRINT 3
8.SH NAME
9gsm_print \(em GSM\ 06.10 supplementary function for debugging
10.SH SYNOPSIS
11#include "gsm.h"
12#include <stdio.h>
13
14int gsm_print(f, g, frame);
15.br
16FILE * f;
17.br
18gsm g;
19.br
20gsm_frame frame;
21.SH "DESCRIPTION"
22Gsm is an implementation of the final draft GSM 06.10
23standard for full-rate speech transcoding, a lossy
24speech compression algorithm.
25The compressed form involves 76 variables with different numbers
26of significant bits packed into 33 bytes.
27.PP
28If you are interested in investigating the details of this
29coding scheme, gsm_print() can be used to dump the contents
30of individual gsm_frames to a file pointer provided by
31the application.
32.PP
33.SH "RETURN VALUE"
34gsm_print() returns -1 if the frame is invalid, else 0.
35.SH EXAMPLE
36A single frame looks like this:
37.br
38.nf
39LARc: 29 32 20 11 08 05 06 07
40#1: Nc 0040 bc 0 Mc 1 xmaxc 60
41 06 04 00 03 03 06 04 02 02 04 05 04 01
42#2: Nc 0045 bc 1 Mc 1 xmaxc 48
43 03 07 01 03 04 04 07 01 03 02 04 05 03
44#3: Nc 0091 bc 1 Mc 1 xmaxc 46
45 00 03 03 07 01 06 02 04 05 03 03 02 04
46#4: Nc 0120 bc 0 Mc 1 xmaxc 47
47 07 03 06 00 03 03 06 05 00 03 02 07 04
48.nf
49.SH BUGS
50Please direct bug reports to jutta@cs.tu-berlin.de and cabo@cs.tu-berlin.de.
51.SH "SEE ALSO"
52gsm(3), gsm_explode(3)