Olaf
Overly Lightweight Acoustic Fingerprinting
Loading...
Searching...
No Matches
olaf_fp_db_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
24#ifndef OLAF_FP_DB_WRITER_H
25#define OLAF_FP_DB_WRITER_H
26 #include <stdint.h>
27
28 #include "olaf_db.h"
29 #include "olaf_fp_extractor.h"
30
37
46 Olaf_FP_DB_Writer * olaf_fp_db_writer_new(Olaf_DB* db,uint32_t audio_file_identifier);
47
54 void olaf_fp_db_writer_store( Olaf_FP_DB_Writer * olaf_fp_db_writer, struct extracted_fingerprints * fingerprints);
55
62 void olaf_fp_db_writer_delete( Olaf_FP_DB_Writer * olaf_fp_db_writer, struct extracted_fingerprints * fingerprints);
63
70 void olaf_fp_db_writer_destroy(Olaf_FP_DB_Writer * olaf_fp_db_writer, bool store);
71
72#endif //OLAF_FP_DB_WRITER_H
73
Olaf fingerprint database.
void olaf_fp_db_writer_store(Olaf_FP_DB_Writer *olaf_fp_db_writer, struct extracted_fingerprints *fingerprints)
Cache and store fingerprints.
Definition: olaf_fp_db_writer.c:50
Olaf_FP_DB_Writer * olaf_fp_db_writer_new(Olaf_DB *db, uint32_t audio_file_identifier)
Initialize a new db writer.
Definition: olaf_fp_db_writer.c:38
void olaf_fp_db_writer_destroy(Olaf_FP_DB_Writer *olaf_fp_db_writer, bool store)
Free up memory and release resources.
Definition: olaf_fp_db_writer.c:99
void olaf_fp_db_writer_delete(Olaf_FP_DB_Writer *olaf_fp_db_writer, struct extracted_fingerprints *fingerprints)
Cache and delete fingerprints.
Definition: olaf_fp_db_writer.c:72
Olaf fingerprint extractor: combines event points into fingerprints.
A struct with state information on the data store.
Definition: olaf_db.c:27
An opaque struct with state information related to the stream processor.
Definition: olaf_fp_db_writer.c:24
The result of fingerprint extraction: a list of fingerprints with a size.
Definition: olaf_fp_extractor.h:63