@@ -76,7 +76,7 @@ ZimtohrliParameters DefaultZimtohrliParameters(float sample_rate);
76
76
typedef void * Zimtohrli ;
77
77
78
78
// Returns a zimtohrli::Zimtohrli for the given parameters.
79
- Zimtohrli CreateZimtohrli (const ZimtohrliParameters params );
79
+ Zimtohrli CreateZimtohrli (ZimtohrliParameters params );
80
80
81
81
// Deletes a zimtohrli::Zimtohrli.
82
82
void FreeZimtohrli (Zimtohrli z );
@@ -88,7 +88,7 @@ typedef struct {
88
88
} EnergyAndMaxAbsAmplitude ;
89
89
90
90
// Returns the energy in dB FS, and maximum absolute amplitude, of the signal.
91
- EnergyAndMaxAbsAmplitude Measure (const float * signal , int size );
91
+ EnergyAndMaxAbsAmplitude Measure (float * signal , int size );
92
92
93
93
// Normalizes the amplitudes of the signal so that it has the provided max
94
94
// amplitude, and returns the new energ in dB FS, and the new maximum absolute
@@ -102,10 +102,10 @@ EnergyAndMaxAbsAmplitude NormalizeAmplitude(float max_abs_amplitude,
102
102
// minimum channel bandwidth (zimtohrli::Cam.minimum_bandwidth_hz)
103
103
// of 5Hz and perceptual sample rate
104
104
// (zimtohrli::Distance(..., perceptual_sample_rate, ...) of 100Hz.
105
- float MOSFromZimtohrli (const Zimtohrli zimtohrli , float zimtohrli_distance );
105
+ float MOSFromZimtohrli (Zimtohrli zimtohrli , float zimtohrli_distance );
106
106
107
107
// Returns the Zimtohrli distance between data_b and data_b.
108
- float Distance (const Zimtohrli zimtohrli , float * data_a , int size_a ,
108
+ float Distance (Zimtohrli zimtohrli , float * data_a , int size_a ,
109
109
float * data_b , int size_b );
110
110
111
111
// Sets the parameters.
@@ -116,7 +116,7 @@ void SetZimtohrliParameters(Zimtohrli zimtohrli,
116
116
ZimtohrliParameters parameters );
117
117
118
118
// Returns the parameters.
119
- ZimtohrliParameters GetZimtohrliParameters (const Zimtohrli zimtohrli );
119
+ ZimtohrliParameters GetZimtohrliParameters (Zimtohrli zimtohrli );
120
120
121
121
// void* representation of zimtohrli::ViSQOL.
122
122
typedef void * ViSQOL ;
@@ -134,8 +134,8 @@ typedef struct {
134
134
} MOSResult ;
135
135
136
136
// MOS returns a ViSQOL MOS between reference and distorted.
137
- MOSResult MOS (const ViSQOL v , float sample_rate , const float * reference ,
138
- int reference_size , const float * distorted , int distorted_size );
137
+ MOSResult MOS (ViSQOL v , float sample_rate , float * reference ,
138
+ int reference_size , float * distorted , int distorted_size );
139
139
140
140
#ifdef __cplusplus
141
141
}
0 commit comments