annotate dsp/segmentation/segment.h @ 114:f6ccde089491
pvoc
Tidy real-to-complex FFT -- forward and inverse have different arguments, so make them separate functions; document
author |
Chris Cannam |
date |
Wed, 02 Oct 2013 15:04:38 +0100 |
parents |
e5907ae6de17 |
children |
175e51ae78eb |
rev |
line source |
cannam@18
|
1 #ifndef _SEGMENT_H
|
cannam@18
|
2 #define _SEGMENT_H
|
cannam@18
|
3
|
cannam@20
|
4 #ifdef __cplusplus
|
cannam@20
|
5 extern "C" {
|
cannam@20
|
6 #endif
|
cannam@20
|
7
|
cannam@18
|
8 /*
|
cannam@18
|
9 * segment.h
|
cannam@18
|
10 *
|
cannam@18
|
11 * Created by Mark Levy on 06/04/2006.
|
Chris@84
|
12 * Copyright 2006 Centre for Digital Music, Queen Mary, University of London.
|
Chris@84
|
13
|
Chris@84
|
14 This program is free software; you can redistribute it and/or
|
Chris@84
|
15 modify it under the terms of the GNU General Public License as
|
Chris@84
|
16 published by the Free Software Foundation; either version 2 of the
|
Chris@84
|
17 License, or (at your option) any later version. See the file
|
Chris@84
|
18 COPYING included with this distribution for more information.
|
cannam@18
|
19 *
|
cannam@18
|
20 */
|
cannam@18
|
21
|
cannam@18
|
22 typedef struct segment_t
|
cannam@18
|
23 {
|
cannam@18
|
24 long start; /* in samples */
|
cannam@18
|
25 long end;
|
cannam@18
|
26 int type;
|
cannam@18
|
27 } segment_t;
|
cannam@18
|
28
|
cannam@18
|
29 typedef struct segmentation_t
|
cannam@18
|
30 {
|
cannam@18
|
31 int nsegs; /* number of segments */
|
cannam@18
|
32 int nsegtypes; /* number of segment types, so possible types are {0,1,...,nsegtypes-1} */
|
cannam@18
|
33 int samplerate;
|
cannam@18
|
34 segment_t* segments;
|
cannam@18
|
35 } segmentation_t;
|
cannam@18
|
36
|
cannam@18
|
37 typedef enum
|
cannam@18
|
38 {
|
cannam@18
|
39 FEATURE_TYPE_UNKNOWN = 0,
|
cannam@18
|
40 FEATURE_TYPE_CONSTQ = 1,
|
cannam@26
|
41 FEATURE_TYPE_CHROMA = 2,
|
cannam@26
|
42 FEATURE_TYPE_MFCC = 3
|
cannam@18
|
43 } feature_types;
|
cannam@18
|
44
|
cannam@20
|
45 #ifdef __cplusplus
|
cannam@20
|
46 }
|
cannam@18
|
47 #endif
|
cannam@18
|
48
|
cannam@20
|
49 #endif
|
cannam@20
|
50
|