From edd6594bc31be96fb78dae7b75fe496e0654d9e7 Mon Sep 17 00:00:00 2001 From: Martin Bruse Date: Thu, 26 Sep 2024 12:55:21 +0200 Subject: [PATCH] Fixed lint issues. --- go/goohrli/goohrli.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/go/goohrli/goohrli.h b/go/goohrli/goohrli.h index 68fa90e..724390e 100644 --- a/go/goohrli/goohrli.h +++ b/go/goohrli/goohrli.h @@ -76,7 +76,7 @@ ZimtohrliParameters DefaultZimtohrliParameters(float sample_rate); typedef void* Zimtohrli; // Returns a zimtohrli::Zimtohrli for the given parameters. -Zimtohrli CreateZimtohrli(const ZimtohrliParameters params); +Zimtohrli CreateZimtohrli(ZimtohrliParameters params); // Deletes a zimtohrli::Zimtohrli. void FreeZimtohrli(Zimtohrli z); @@ -88,7 +88,7 @@ typedef struct { } EnergyAndMaxAbsAmplitude; // Returns the energy in dB FS, and maximum absolute amplitude, of the signal. -EnergyAndMaxAbsAmplitude Measure(const float* signal, int size); +EnergyAndMaxAbsAmplitude Measure(float* signal, int size); // Normalizes the amplitudes of the signal so that it has the provided max // amplitude, and returns the new energ in dB FS, and the new maximum absolute @@ -102,10 +102,10 @@ EnergyAndMaxAbsAmplitude NormalizeAmplitude(float max_abs_amplitude, // minimum channel bandwidth (zimtohrli::Cam.minimum_bandwidth_hz) // of 5Hz and perceptual sample rate // (zimtohrli::Distance(..., perceptual_sample_rate, ...) of 100Hz. -float MOSFromZimtohrli(const Zimtohrli zimtohrli, float zimtohrli_distance); +float MOSFromZimtohrli(Zimtohrli zimtohrli, float zimtohrli_distance); // Returns the Zimtohrli distance between data_b and data_b. -float Distance(const Zimtohrli zimtohrli, float* data_a, int size_a, +float Distance(Zimtohrli zimtohrli, float* data_a, int size_a, float* data_b, int size_b); // Sets the parameters. @@ -116,7 +116,7 @@ void SetZimtohrliParameters(Zimtohrli zimtohrli, ZimtohrliParameters parameters); // Returns the parameters. -ZimtohrliParameters GetZimtohrliParameters(const Zimtohrli zimtohrli); +ZimtohrliParameters GetZimtohrliParameters(Zimtohrli zimtohrli); // void* representation of zimtohrli::ViSQOL. typedef void* ViSQOL; @@ -134,8 +134,8 @@ typedef struct { } MOSResult; // MOS returns a ViSQOL MOS between reference and distorted. -MOSResult MOS(const ViSQOL v, float sample_rate, const float* reference, - int reference_size, const float* distorted, int distorted_size); +MOSResult MOS(ViSQOL v, float sample_rate, float* reference, + int reference_size, float* distorted, int distorted_size); #ifdef __cplusplus }