comparison dsp/segmentation/segment.h @ 505:930b5b0f707d

Merge branch 'codestyle-and-tidy'
author Chris Cannam <cannam@all-day-breakfast.com>
date Wed, 05 Jun 2019 12:55:15 +0100
parents 701233f8ed41
children
comparison
equal deleted inserted replaced
471:e3335cb213da 505:930b5b0f707d
1 #ifndef _SEGMENT_H 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
2 #define _SEGMENT_H
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7
8 /* 2 /*
9 * segment.h 3 * segment.h
10 * 4 *
11 * Created by Mark Levy on 06/04/2006. 5 * Created by Mark Levy on 06/04/2006.
12 * Copyright 2006 Centre for Digital Music, Queen Mary, University of London. 6 * Copyright 2006 Centre for Digital Music, Queen Mary, University of London.
17 License, or (at your option) any later version. See the file 11 License, or (at your option) any later version. See the file
18 COPYING included with this distribution for more information. 12 COPYING included with this distribution for more information.
19 * 13 *
20 */ 14 */
21 15
16 #ifndef QM_DSP_SEGMENT_H
17 #define QM_DSP_SEGMENT_H
18
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22
22 typedef struct segment_t 23 typedef struct segment_t
23 { 24 {
24 long start; /* in samples */ 25 long start; /* in samples */
25 long end; 26 long end;
26 int type; 27 int type;
27 } segment_t; 28 } segment_t;
28 29
29 typedef struct segmentation_t 30 typedef struct segmentation_t
30 { 31 {
31 int nsegs; /* number of segments */ 32 int nsegs; /* number of segments */
32 int nsegtypes; /* number of segment types, so possible types are {0,1,...,nsegtypes-1} */ 33 int nsegtypes; /* number of segment types, so possible types are {0,1,...,nsegtypes-1} */
33 int samplerate; 34 int samplerate;
34 segment_t* segments; 35 segment_t* segments;
35 } segmentation_t; 36 } segmentation_t;
36 37
37 typedef enum 38 typedef enum
38 { 39 {
39 FEATURE_TYPE_UNKNOWN = 0, 40 FEATURE_TYPE_UNKNOWN = 0,
40 FEATURE_TYPE_CONSTQ = 1, 41 FEATURE_TYPE_CONSTQ = 1,
41 FEATURE_TYPE_CHROMA = 2, 42 FEATURE_TYPE_CHROMA = 2,
42 FEATURE_TYPE_MFCC = 3 43 FEATURE_TYPE_MFCC = 3
43 } feature_types; 44 } feature_types;
44 45
45 #ifdef __cplusplus 46 #ifdef __cplusplus
46 } 47 }
47 #endif 48 #endif