globally remove all trailing whitespace from ardour code base.
[ardour.git] / libs / qm-dsp / dsp / segmentation / segment.h
1 #ifndef _SEGMENT_H
2 #define _SEGMENT_H
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7
8 /*
9  *  segment.h
10  *
11  *  Created by Mark Levy on 06/04/2006.
12  *  Copyright 2006 Centre for Digital Music, Queen Mary, University of London.
13
14     This program is free software; you can redistribute it and/or
15     modify it under the terms of the GNU General Public License as
16     published by the Free Software Foundation; either version 2 of the
17     License, or (at your option) any later version.  See the file
18     COPYING included with this distribution for more information.
19  *
20  */
21
22 typedef struct segment_t
23 {
24         long start;                     /* in samples */
25         long end;
26         int type;
27 } segment_t;
28
29 typedef struct segmentation_t
30 {
31         int nsegs;                      /* number of segments */
32         int nsegtypes;          /* number of segment types, so possible types are {0,1,...,nsegtypes-1} */
33         int samplerate;
34         segment_t* segments;
35 } segmentation_t;
36
37 typedef enum
38 {
39         FEATURE_TYPE_UNKNOWN = 0,
40         FEATURE_TYPE_CONSTQ = 1,
41         FEATURE_TYPE_CHROMA = 2,
42         FEATURE_TYPE_MFCC = 3
43 } feature_types;
44
45 #ifdef __cplusplus
46 }
47 #endif
48
49 #endif
50