-
Notifications
You must be signed in to change notification settings - Fork 116
Expand file tree
/
Copy pathlou_test.go
More file actions
64 lines (61 loc) · 1.32 KB
/
lou_test.go
File metadata and controls
64 lines (61 loc) · 1.32 KB
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
60
61
62
63
64
package mp4_test
import (
"testing"
"github.com/Eyevinn/mp4ff/mp4"
)
func TestTlou(t *testing.T) {
tlou := mp4.LoudnessBaseBox{
Name: "tlou",
Version: 1,
Flags: 0,
LoudnessBases: []*mp4.LoudnessBase{
{
EQSetID: 0,
DownmixID: 0,
DRCSetID: 0,
BsSamplePeakLevel: 1087,
BsTruePeakLevel: 1086,
MeasurementSystemForTP: 2,
ReliabilityForTP: 3,
Measurements: []mp4.LoudnessMeasurement{
{
MethodDefinition: 1,
MethodValue: 121,
MeasurementSystem: 2,
Reliability: 3,
},
{
MethodDefinition: 3,
MethodValue: 122,
MeasurementSystem: 1,
Reliability: 3,
},
},
},
{
EQSetID: 0,
DownmixID: 0,
DRCSetID: 0,
BsSamplePeakLevel: 1087,
BsTruePeakLevel: 1086,
MeasurementSystemForTP: 2,
ReliabilityForTP: 3,
Measurements: []mp4.LoudnessMeasurement{
{
MethodDefinition: 4,
MethodValue: 124,
MeasurementSystem: 1,
Reliability: 3,
},
{
MethodDefinition: 5,
MethodValue: 122,
MeasurementSystem: 1,
Reliability: 3,
},
},
},
},
}
boxDiffAfterEncodeAndDecode(t, &tlou)
}