LibXtract 1.6.0
xtract_macros.h
Go to the documentation of this file.
1/* Part of LibXtract
2 *
3 * SPDX-FileCopyrightText: 2006 Jamie Bullock
4 * SPDX-License-Identifier: Zlib
5 */
6
8
9#ifndef XTRACT_MACROS_H
10#define XTRACT_MACROS_H
11
12#ifdef __cplusplus
13extern "C"
14{
15#endif
16
17#include <float.h>
18
19#define XTRACT_BARK_BANDS 26
20#define XTRACT_PITCH_CLASSES 12
21#define XTRACT_WINDOW_SIZE 1024 /* dummy macro for descriptors where argc is window size */
22#define XTRACT_NONE 0
23#define XTRACT_ANY -1 /* sentinel for int/enum fields (donor, unit) */
24#define XTRACT_UNKNOWN -2 /* sentinel for int/enum fields (unknown unit) */
25#define XTRACT_UNBOUNDED_MIN (-DBL_MAX) /* result/argv has no lower bound */
26#define XTRACT_UNBOUNDED_MAX DBL_MAX /* result/argv has no upper bound */
27#define XTRACT_UNKNOWN_MIN (-DBL_MAX) /* lower bound has not been determined */
28#define XTRACT_UNKNOWN_MAX DBL_MAX /* upper bound has not been determined */
29#define XTRACT_NO_DEFAULT 0 /* no default value defined */
30#define XTRACT_MAXARGS 5
31
32/* Recommended LPC cepstrum order Q for a given LPC order p. Rabiner & Juang
33 * recommend Q ~ (3/2)p with Q > p; this rounds (3/2)p to the nearest integer
34 * (and keeps Q > p for all p >= 1). Pass the result as xtract_lpcc's argv[0]
35 * to request this many cepstral coefficients. */
36#define XTRACT_LPCC_CEPSTRUM_ORDER(p) ((3 * (p) + 1) / 2)
37#define XTRACT_MAX_NAME_LENGTH 64
38#define XTRACT_MAX_AUTHOR_LENGTH 128
39#define XTRACT_MAX_DESC_LENGTH 256
40
41#ifdef __cplusplus
42}
43#endif
44
45#endif