Olaf
Overly Lightweight Acoustic Fingerprinting
Loading...
Searching...
No Matches
Typedefs | Functions
olaf_fp_file_writer.h File Reference

Olaf fingerprint extractor: combines event points into fingerprints. More...

#include <stdint.h>
#include "olaf_fp_extractor.h"

Go to the source code of this file.

Typedefs

typedef struct Olaf_FP_File_Writer Olaf_FP_File_Writer
 

Functions

Olaf_FP_File_Writerolaf_fp_file_writer_new (Olaf_Config *olaf_config, uint32_t audio_file_identifier)
 Create a new file writer.
 
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.
 
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 configured cache directory.
 

Detailed Description

Olaf fingerprint extractor: combines event points into fingerprints.

The fingerprint extractor is responsible for combining event points into fingerprints and also defines the fingerprint struct.

Function Documentation

◆ olaf_fp_file_writer_destroy()

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 configured cache directory.

Parameters
olaf_fp_file_writerThe olaf fp file writer state info.

◆ olaf_fp_file_writer_new()

Olaf_FP_File_Writer * olaf_fp_file_writer_new ( Olaf_Config olaf_config,
uint32_t  audio_file_identifier 
)

Create a new file writer.

Parameters
olaf_configThe olaf configuration with the location to store the cached file.
[in]audio_file_identifierThe audio file identifier. The audio file identifier is used in the file name.
Returns
State information related to file writer.

◆ olaf_fp_file_writer_store()

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.

Parameters
olaf_fp_file_writerThe olaf fp file writer state information.
fingerprintsThe fingerprint list to store.