/* * MDFourier * A Fourier Transform analysis tool to compare game console audio * http://junkerhq.net/MDFourier/ * * Copyright (C)2019-2020 Artemio Urbina * * This file is part of the 240p Test Suite * * You can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this software; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * Requires the FFTW library: * http://www.fftw.org/ * */ #ifndef MDFOURIER_DIFF_H #define MDFOURIER_DIFF_H #include "mdfourier.h" AmplDifference *CreateAmplDifferences(int block, parameters *config); FreqDifference *CreateFreqDifferences(int block, parameters *config); PhaseDifference *CreatePhaseDifferences(int block, parameters *config); int CreateDifferenceArray(parameters *config); int InsertFreqNotFound(int block, double freq, double amplitude, char channel, parameters *config); int InsertAmplDifference(int block, Frequency ref, Frequency comp, char channel, parameters *config); int InsertPhaseDifference(int block, Frequency ref, Frequency comp, char channel, parameters *config); int IncrementCmpPhase(int block, parameters *config); int IncrementCmpAmpl(int block, char channel, parameters *config); int IncrementCmpFreq(int block, parameters *config); int IncrementCompared(int block, char channel, parameters *config); int IncrementPerfectMatch(int block, char channel, parameters *config); void PrintDifferentFrequencies(int block, parameters *config); void PrintDifferentAmplitudes(int block, parameters *config); void PrintDifferenceArray(parameters *config); void ReleaseDifferenceArray(parameters *config); long int FindDifferenceAveragesperBlock(double thresholdAmplitude, double thresholdMissing, double thresholdExtra, parameters *config); double FindDifferenceAverage(parameters *config); void SubstractDifferenceAverageFromResults(parameters *config); double FindDifferencePercentOutsideViewPort(double *maxAmpl, int *type, double threshold, parameters *config); double FindVisibleInViewPortWithinStandardDeviation(double *maxAmpl, double *outside, int type, int numstd, parameters *config); int FindDifferenceTypeTotals(int type, long int *cntAmplBlkDiff, long int *cmpAmplBlkDiff, char channel, parameters *config); int FindDifferenceWithinInterval(int type, long int *inside, long int *count, double MaxInterval, char channel, parameters *config); int FindPerfectMatches(int type, long int *inside, long int *count, char channel, parameters *config); int FindExtraFrequenciesByType(int type, long int *inside, long int *count, char channel, parameters *config); int FindMissingFrequenciesByType(int type, long int *inside, long int *count, char channel, parameters *config); #endif