Olaf
Overly Lightweight Acoustic Fingerprinting
Loading...
Searching...
No Matches
olaf_fp_file_writer.h
Go to the documentation of this file.
1// Olaf: Overly Lightweight Acoustic Fingerprinting
2// Copyright (C) 2019-2023 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
26#ifndef OLAF_FP_FILE_WRITER_H
27#define OLAF_FP_FILE_WRITER_H
28 #include <stdint.h>
29
30 #include "olaf_fp_extractor.h"
31
39
48 Olaf_FP_File_Writer * olaf_fp_file_writer_new(Olaf_Config * olaf_config, uint32_t audio_file_identifier);
49
56 void olaf_fp_file_writer_store( Olaf_FP_File_Writer * olaf_fp_file_writer , struct extracted_fingerprints * fingerprints);
57
64 void olaf_fp_file_writer_destroy(Olaf_FP_File_Writer * olaf_fp_file_writer);
65
66#endif //OLAF_FP_FILE_WRITER_H
67
Olaf fingerprint extractor: combines event points into fingerprints.
void olaf_fp_file_writer_destroy(Olaf_FP_File_Writer *olaf_fp_file_writer)
Free resources related to the file writer. Also write the fingerprints to a ".tdb" file in the config...
Definition: olaf_fp_file_writer.c:103
void olaf_fp_file_writer_store(Olaf_FP_File_Writer *olaf_fp_file_writer, struct extracted_fingerprints *fingerprints)
Store fingerprints in memory to write to a file later on.
Definition: olaf_fp_file_writer.c:65
Olaf_FP_File_Writer * olaf_fp_file_writer_new(Olaf_Config *olaf_config, uint32_t audio_file_identifier)
Create a new file writer.
Definition: olaf_fp_file_writer.c:36
Configuration parameters defining the behaviour of Olaf.
Definition: olaf_config.h:48
A struct to keep the internal state of the file writer hidden. It should not be used in other places.
Definition: olaf_fp_file_writer.c:28
The result of fingerprint extraction: a list of fingerprints with a size.
Definition: olaf_fp_extractor.h:63