qm-dsp
1.8
segment.h
Go to the documentation of this file.
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
feature_types
feature_types
Definition
segment.h:38
FEATURE_TYPE_UNKNOWN
@ FEATURE_TYPE_UNKNOWN
Definition
segment.h:39
FEATURE_TYPE_CHROMA
@ FEATURE_TYPE_CHROMA
Definition
segment.h:41
FEATURE_TYPE_MFCC
@ FEATURE_TYPE_MFCC
Definition
segment.h:42
FEATURE_TYPE_CONSTQ
@ FEATURE_TYPE_CONSTQ
Definition
segment.h:40
segment_t
Definition
segment.h:23
segment_t::type
int type
Definition
segment.h:26
segment_t::end
long end
Definition
segment.h:25
segment_t::start
long start
Definition
segment.h:24
segmentation_t
Definition
segment.h:30
segmentation_t::nsegtypes
int nsegtypes
Definition
segment.h:32
segmentation_t::nsegs
int nsegs
Definition
segment.h:31
segmentation_t::segments
segment_t * segments
Definition
segment.h:34
segmentation_t::samplerate
int samplerate
Definition
segment.h:33
dsp
segmentation
segment.h
Generated by
1.9.8