Olaf
Overly Lightweight Acoustic Fingerprinting
Loading...
Searching...
No Matches
olaf.c File Reference

OLAF. More...

#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <string.h>
#include <stdbool.h>
#include "olaf_stream_processor.h"
#include "olaf_runner.h"
#include "olaf_config.h"
#include "olaf_db.h"
#include "olaf_fp_db_writer_cache.h"

Functions

void olaf_print_help (const char *message)
 Prints usage information and exits the program.
int olaf_stats (void)
 Prints database statistics and exits the program.
int olaf_has (int argc, const char *argv[])
 Checks if fingerprints exist in the database for given audio files.
int olaf_store_cached (int argc, const char *argv[])
 Stores cached fingerprints from CSV files to the database.
int main (int argc, const char *argv[])
 Main entry point for the Olaf command-line application.

Detailed Description

OLAF.

Function Documentation

◆ main()

int main ( int argc,
const char * argv[] )

Main entry point for the Olaf command-line application.

Parameters
argcThe argument count.
argvThe argument vector.
Returns
0 on success, non-zero on failure.

◆ olaf_has()

int olaf_has ( int argc,
const char * argv[] )

Checks if fingerprints exist in the database for given audio files.

Parameters
argcThe argument count.
argvThe argument vector.
Returns
Does not return; calls exit(0).

◆ olaf_print_help()

void olaf_print_help ( const char * message)

Prints usage information and exits the program.

Parameters
messageThe error message to display before usage text.

◆ olaf_stats()

int olaf_stats ( void )

Prints database statistics and exits the program.

Returns
Does not return; calls exit(0).

◆ olaf_store_cached()

int olaf_store_cached ( int argc,
const char * argv[] )

Stores cached fingerprints from CSV files to the database.

Parameters
argcThe argument count.
argvThe argument vector.
Returns
Does not return; calls exit(0).