segment.h
Go to the documentation of this file.
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
2 /*
3  * segment.h
4  *
5  * Created by Mark Levy on 06/04/2006.
6  * Copyright 2006 Centre for Digital Music, Queen Mary, University of London.
7 
8  This program is free software; you can redistribute it and/or
9  modify it under the terms of the GNU General Public License as
10  published by the Free Software Foundation; either version 2 of the
11  License, or (at your option) any later version. See the file
12  COPYING included with this distribution for more information.
13  *
14  */
15 
16 #ifndef QM_DSP_SEGMENT_H
17 #define QM_DSP_SEGMENT_H
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
23 typedef struct segment_t
24 {
25  long start; /* in samples */
26  long end;
27  int type;
28 } segment_t;
29 
30 typedef struct segmentation_t
31 {
32  int nsegs; /* number of segments */
33  int nsegtypes; /* number of segment types, so possible types are {0,1,...,nsegtypes-1} */
37 
38 typedef enum
39 {
45 
46 #ifdef __cplusplus
47 }
48 #endif
49 
50 #endif
51 
long start
Definition: segment.h:25
int samplerate
Definition: segment.h:34
struct segment_t segment_t
struct segmentation_t segmentation_t
feature_types
Definition: segment.h:38
long end
Definition: segment.h:26
segment_t * segments
Definition: segment.h:35
int nsegtypes
Definition: segment.h:33
int type
Definition: segment.h:27