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-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
25
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 #include "olaf_resource_meta_data.h"
32
43
52
59
66 void olaf_fp_file_writer_write( Olaf_FP_File_Writer * olaf_fp_file_writer, struct extracted_fingerprints * fingerprints);
67
75 void olaf_fp_file_writer_destroy(Olaf_FP_File_Writer * olaf_fp_file_writer, Olaf_Resource_Meta_data * meta_data, FILE * fp_meta_file);
76
77#endif //OLAF_FP_FILE_WRITER_H
Olaf fingerprint extractor: combines event points into fingerprints.
Olaf_FP_File_Writer * olaf_fp_file_writer_new(FILE *output_file)
Create a new file writer.
Definition olaf_fp_file_writer.c:29
void olaf_fp_file_writer_write_header(Olaf_FP_File_Writer *file_writer)
Write the header line to the file.
Definition olaf_fp_file_writer.c:35
void olaf_fp_file_writer_write(Olaf_FP_File_Writer *olaf_fp_file_writer, struct extracted_fingerprints *fingerprints)
Print the fingerprints to a file.
Definition olaf_fp_file_writer.c:42
void olaf_fp_file_writer_destroy(Olaf_FP_File_Writer *olaf_fp_file_writer, Olaf_Resource_Meta_data *meta_data, FILE *fp_meta_file)
Close the file and free up memory.
Definition olaf_fp_file_writer.c:52
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:25
FILE * output_file
Definition olaf_fp_file_writer.c:26
A struct containing meta data on indexed audio files.
Definition olaf_resource_meta_data.h:48
The result of fingerprint extraction: a list of fingerprints with a size.
Definition olaf_fp_extractor.h:63