Mercurial > hg > qm-dsp
comparison dsp/segmentation/segment.h @ 480:175e51ae78eb
Untabify, indent, tidy
author | Chris Cannam <cannam@all-day-breakfast.com> |
---|---|
date | Fri, 31 May 2019 10:53:39 +0100 |
parents | d5014ab8b0e5 |
children | d48276a3ae24 |
comparison
equal
deleted
inserted
replaced
479:7e52c034cf62 | 480:175e51ae78eb |
---|---|
1 #ifndef _SEGMENT_H | |
2 #define _SEGMENT_H | |
3 | |
4 #ifdef __cplusplus | |
5 extern "C" { | |
6 #endif | |
7 | |
8 /* | 1 /* |
9 * segment.h | 2 * segment.h |
10 * | 3 * |
11 * Created by Mark Levy on 06/04/2006. | 4 * Created by Mark Levy on 06/04/2006. |
12 * Copyright 2006 Centre for Digital Music, Queen Mary, University of London. | 5 * Copyright 2006 Centre for Digital Music, Queen Mary, University of London. |
17 License, or (at your option) any later version. See the file | 10 License, or (at your option) any later version. See the file |
18 COPYING included with this distribution for more information. | 11 COPYING included with this distribution for more information. |
19 * | 12 * |
20 */ | 13 */ |
21 | 14 |
15 #ifndef _SEGMENT_H | |
16 #define _SEGMENT_H | |
17 | |
18 #ifdef __cplusplus | |
19 extern "C" { | |
20 #endif | |
21 | |
22 typedef struct segment_t | 22 typedef struct segment_t |
23 { | 23 { |
24 long start; /* in samples */ | 24 long start; /* in samples */ |
25 long end; | 25 long end; |
26 int type; | 26 int type; |
27 } segment_t; | 27 } segment_t; |
28 | 28 |
29 typedef struct segmentation_t | 29 typedef struct segmentation_t |
30 { | 30 { |
31 int nsegs; /* number of segments */ | 31 int nsegs; /* number of segments */ |
32 int nsegtypes; /* number of segment types, so possible types are {0,1,...,nsegtypes-1} */ | 32 int nsegtypes; /* number of segment types, so possible types are {0,1,...,nsegtypes-1} */ |
33 int samplerate; | 33 int samplerate; |
34 segment_t* segments; | 34 segment_t* segments; |
35 } segmentation_t; | 35 } segmentation_t; |
36 | 36 |
37 typedef enum | 37 typedef enum |
38 { | 38 { |
39 FEATURE_TYPE_UNKNOWN = 0, | 39 FEATURE_TYPE_UNKNOWN = 0, |
40 FEATURE_TYPE_CONSTQ = 1, | 40 FEATURE_TYPE_CONSTQ = 1, |
41 FEATURE_TYPE_CHROMA = 2, | 41 FEATURE_TYPE_CHROMA = 2, |
42 FEATURE_TYPE_MFCC = 3 | 42 FEATURE_TYPE_MFCC = 3 |
43 } feature_types; | 43 } feature_types; |
44 | 44 |
45 #ifdef __cplusplus | 45 #ifdef __cplusplus |
46 } | 46 } |
47 #endif | 47 #endif |