Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
chromaprint.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: © 2020-2021 Alexandros Theodotou <alex@zrythm.org>
3 *
4 * SPDX-License-Identifier: LicenseRef-ZrythmLicense
5 */
6
13#ifndef __UTILS_CHROMAPRINT_H__
14#define __UTILS_CHROMAPRINT_H__
15
16#include "zrythm-config.h"
17
18#ifdef HAVE_CHROMAPRINT
19
20# include "utils/types.h"
21# include "utils/yaml.h"
22
23# include <chromaprint.h>
24# include <stdarg.h>
25# include <stdbool.h>
26
36typedef struct ChromaprintFingerprint
37{
38 uint32_t * fp;
39 int size;
40 char * compressed_str;
41} ChromaprintFingerprint;
42
43void
44z_chromaprint_fingerprint_free (ChromaprintFingerprint * self);
45
46ChromaprintFingerprint *
47z_chromaprint_get_fingerprint (const char * file1, unsigned_frame_t max_frames);
48
53void
54z_chromaprint_check_fingerprint_similarity (
55 const char * file1,
56 const char * file2,
57 int perc,
58 int expected_size);
59
64#endif /* HAVE_CHROMAPRINT */
65
66#endif /* header guard */
Chromaprint utils.
uint_fast64_t unsigned_frame_t
Unsigned type for frame index.
Definition types.h:64
Custom types.
YAML utils.