-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathg722.go
More file actions
59 lines (57 loc) · 821 Bytes
/
Copy pathg722.go
File metadata and controls
59 lines (57 loc) · 821 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
package g722
const (
FlagSampleRate8000 = 0x1
FlagPacked = 0x2
)
type Encoder struct {
ituTestMode bool
packed bool
eightK bool
bitsPerSample int
x [24]int
band [2]struct {
s int
sp int
sz int
r [3]int
a [3]int
ap [3]int
p [3]int
d [7]int
b [7]int
bp [7]int
sg [7]int
nb int
det int
}
inBuffer uint
inBits int
outBuffer uint
outBits int
}
type Decoder struct {
ituTestMode bool
packed bool
eightK bool
bitsPerSample int
x [24]int
band [2]struct {
s int
sp int
sz int
r [3]int
a [3]int
ap [3]int
p [3]int
d [7]int
b [7]int
bp [7]int
sg [7]int
nb int
det int
}
inBuffer uint
inBits int
outBuffer uint
outBits int
}