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 <stdarg.h>
21# include <stdbool.h>
22
23# include "utils/types.h"
24# include "utils/yaml.h"
25
26# include <chromaprint.h>
27
37typedef struct ChromaprintFingerprint
38{
39 uint32_t * fp;
40 int size;
41 char * compressed_str;
42} ChromaprintFingerprint;
43
44void
45z_chromaprint_fingerprint_free (ChromaprintFingerprint * self);
46
47ChromaprintFingerprint *
48z_chromaprint_get_fingerprint (const char * file1, unsigned_frame_t max_frames);
49
54void
55z_chromaprint_check_fingerprint_similarity (
56 const char * file1,
57 const char * file2,
58 int perc,
59 int expected_size);
60
65#endif /* HAVE_CHROMAPRINT */
66
67#endif /* header guard */
Chromaprint utils.
uint_fast64_t unsigned_frame_t
Unsigned type for frame index.
Definition types.h:60
Custom types.
YAML utils.