-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdiff.h
executable file
·62 lines (57 loc) · 3.15 KB
/
diff.h
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
/*
* 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