Olaf
Overly Lightweight Acoustic Fingerprinting
Loading...
Searching...
No Matches
olaf_config.h
Go to the documentation of this file.
1// Olaf: Overly Lightweight Acoustic Fingerprinting
2// Copyright (C) 2019-2025 Joren Six
3
4// This program is free software: you can redistribute it and/or modify
5// it under the terms of the GNU Affero General Public License as published by
6// the Free Software Foundation, either version 3 of the License, or
7// (at your option) any later version.
8
9// This program is distributed in the hope that it will be useful,
10// but WITHOUT ANY WARRANTY; without even the implied warranty of
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12// GNU Affero General Public License for more details.
13
14// You should have received a copy of the GNU Affero General Public License
15// along with this program. If not, see <https://www.gnu.org/licenses/>.
16#include <stdbool.h> //bool
17#include <string.h> //bool
18#include <stdlib.h> //bool
19#include <stdio.h>
20
32
33
34#ifndef OLAF_CONFIG_H
35#define OLAF_CONFIG_H
36
40 typedef struct Olaf_Config Olaf_Config;
41
52
53 char * dbFolder;
54
55 //------ General Configuration
56
59
62
65
68
70 bool verbose;
71
72 //------ EVENT POINT Configuration
73
76
79
82
86
89
92
95
96
106
112 //-----------Fingerprint configuration
113
119
122
127
132
135
136
137 //------------ Matcher configuration
138
141
144
147
153
156
159
164 };
165
171
172
178
184
190
195 void olaf_config_destroy(Olaf_Config *config);
196
197#endif // OLAF_CONFIG_H
198
Olaf_Config * olaf_config_test(void)
Definition olaf_config.c:108
Olaf_Config * olaf_config_mem(void)
Definition olaf_config.c:162
Olaf_Config * olaf_config_esp_32(void)
Definition olaf_config.c:122
Olaf_Config * olaf_config_default(void)
Definition olaf_config.c:23
void olaf_config_destroy(Olaf_Config *config)
Definition olaf_config.c:177
Configuration parameters defining the behaviour of Olaf.
Definition olaf_config.h:51
float keepMatchesFor
Definition olaf_config.h:155
int maxEventPointsPerBlock
Definition olaf_config.h:75
size_t maxFingerprints
Definition olaf_config.h:134
bool sqrtMagnitude
Definition olaf_config.h:111
bool useMagnitudeInfo
Definition olaf_config.h:118
size_t maxDBCollisions
Definition olaf_config.h:163
int maxTimeDistance
Definition olaf_config.h:126
int maxEventPointUsages
Definition olaf_config.h:94
int bytesPerAudioSample
Definition olaf_config.h:67
int halfFilterSizeTime
Definition olaf_config.h:81
int audioSampleRate
Definition olaf_config.h:61
int audioBlockSize
Definition olaf_config.h:58
int halfFilterSizeFrequency
Definition olaf_config.h:85
int audioStepSize
Definition olaf_config.h:64
int filterSizeTime
Definition olaf_config.h:78
float printResultEvery
Definition olaf_config.h:158
int filterSizeFrequency
Definition olaf_config.h:84
float minMatchTimeDiff
Definition olaf_config.h:152
int minFreqDistance
Definition olaf_config.h:129
int minMatchCount
Definition olaf_config.h:146
int minTimeDistance
Definition olaf_config.h:124
int numberOfEPsPerFP
Definition olaf_config.h:121
size_t maxResults
Definition olaf_config.h:140
int eventPointThreshold
Definition olaf_config.h:105
int minFrequencyBin
Definition olaf_config.h:91
int maxEventPoints
Definition olaf_config.h:101
int searchRange
Definition olaf_config.h:143
float minEventPointMagnitude
Definition olaf_config.h:88
int maxFreqDistance
Definition olaf_config.h:131
char * dbFolder
Definition olaf_config.h:53
bool verbose
Definition olaf_config.h:70