Olaf
Overly Lightweight Acoustic Fingerprinting
|
Olaf fingerprint extractor: combines event points into fingerprints. More...
Go to the source code of this file.
Data Structures | |
struct | fingerprint |
A fingerprint is a combination of three event points each with a frequency bin, time bin and magnitude. More... | |
struct | extracted_fingerprints |
The result of fingerprint extraction: a list of fingerprints with a size. More... | |
Typedefs | |
typedef struct Olaf_FP_Extractor | Olaf_FP_Extractor |
Functions | |
Olaf_FP_Extractor * | olaf_fp_extractor_new (Olaf_Config *config) |
void | olaf_fp_extractor_destroy (Olaf_FP_Extractor *olaf_fp_extractor) |
struct extracted_fingerprints * | olaf_fp_extractor_extract (Olaf_FP_Extractor *olaf_fp_extractor, struct extracted_event_points *eps, int audioBlockIndex) |
size_t | olaf_fp_extractor_total (Olaf_FP_Extractor *fp_extractor) |
Returns the total number of extracted fingerprints. | |
uint64_t | olaf_fp_extractor_hash (struct fingerprint f) |
Calculate a hash for a fingerprint. | |
void | olaf_fp_extractor_print (struct fingerprint f) |
Print a single fingerprint, mainly for debug purposes. | |
int | olaf_fp_extractor_compare_fp (const void *a, const void *b) |
A comparator to sort fingerprint hashes. | |
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.
int olaf_fp_extractor_compare_fp | ( | const void * | a, |
const void * | b | ||
) |
A comparator to sort fingerprint hashes.
[in] | a | The first fingerprint hash. |
[in] | b | The second fingerprint hash. |
void olaf_fp_extractor_destroy | ( | Olaf_FP_Extractor * | olaf_fp_extractor | ) |
Free up memory and release resources.
olaf_fp_extractor | The state to clean up. |
struct extracted_fingerprints * olaf_fp_extractor_extract | ( | Olaf_FP_Extractor * | olaf_fp_extractor, |
struct extracted_event_points * | eps, | ||
int | audioBlockIndex | ||
) |
Extract fingerprints from a list of event points.
olaf_fp_extractor | The state information. |
eps | A pointer to a list of event points. |
audioBlockIndex | The current audio block index. |
uint64_t olaf_fp_extractor_hash | ( | struct fingerprint | f | ) |
Calculate a hash for a fingerprint.
[in] | f | The fingerprint to calculate a hash for. |
Olaf_FP_Extractor * olaf_fp_extractor_new | ( | Olaf_Config * | config | ) |
Create a new fingerprint extractor based on the current config.
config | The current configuration. |
void olaf_fp_extractor_print | ( | struct fingerprint | f | ) |
Print a single fingerprint, mainly for debug purposes.
[in] | f | The single fingerprint to print. |
size_t olaf_fp_extractor_total | ( | Olaf_FP_Extractor * | fp_extractor | ) |
Returns the total number of extracted fingerprints.
fp_extractor | The fp extractor |