Skip to content

Commit edd6594

Browse files
committed
Fixed lint issues.
1 parent 1fdab55 commit edd6594

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

go/goohrli/goohrli.h

+7-7
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ ZimtohrliParameters DefaultZimtohrliParameters(float sample_rate);
7676
typedef void* Zimtohrli;
7777

7878
// Returns a zimtohrli::Zimtohrli for the given parameters.
79-
Zimtohrli CreateZimtohrli(const ZimtohrliParameters params);
79+
Zimtohrli CreateZimtohrli(ZimtohrliParameters params);
8080

8181
// Deletes a zimtohrli::Zimtohrli.
8282
void FreeZimtohrli(Zimtohrli z);
@@ -88,7 +88,7 @@ typedef struct {
8888
} EnergyAndMaxAbsAmplitude;
8989

9090
// 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);
9292

9393
// Normalizes the amplitudes of the signal so that it has the provided max
9494
// amplitude, and returns the new energ in dB FS, and the new maximum absolute
@@ -102,10 +102,10 @@ EnergyAndMaxAbsAmplitude NormalizeAmplitude(float max_abs_amplitude,
102102
// minimum channel bandwidth (zimtohrli::Cam.minimum_bandwidth_hz)
103103
// of 5Hz and perceptual sample rate
104104
// (zimtohrli::Distance(..., perceptual_sample_rate, ...) of 100Hz.
105-
float MOSFromZimtohrli(const Zimtohrli zimtohrli, float zimtohrli_distance);
105+
float MOSFromZimtohrli(Zimtohrli zimtohrli, float zimtohrli_distance);
106106

107107
// 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,
109109
float* data_b, int size_b);
110110

111111
// Sets the parameters.
@@ -116,7 +116,7 @@ void SetZimtohrliParameters(Zimtohrli zimtohrli,
116116
ZimtohrliParameters parameters);
117117

118118
// Returns the parameters.
119-
ZimtohrliParameters GetZimtohrliParameters(const Zimtohrli zimtohrli);
119+
ZimtohrliParameters GetZimtohrliParameters(Zimtohrli zimtohrli);
120120

121121
// void* representation of zimtohrli::ViSQOL.
122122
typedef void* ViSQOL;
@@ -134,8 +134,8 @@ typedef struct {
134134
} MOSResult;
135135

136136
// 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);
139139

140140
#ifdef __cplusplus
141141
}

0 commit comments

Comments
 (0)