annotate dsp/segmentation/segment.h @ 515:08bcc06c38ec tip master

Remove fast-math
author Chris Cannam <cannam@all-day-breakfast.com>
date Tue, 28 Jan 2020 15:27:37 +0000
parents 701233f8ed41
children
rev   line source
cannam@484 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
c@243 2 /*
c@243 3 * segment.h
c@243 4 *
c@243 5 * Created by Mark Levy on 06/04/2006.
c@309 6 * Copyright 2006 Centre for Digital Music, Queen Mary, University of London.
c@309 7
c@309 8 This program is free software; you can redistribute it and/or
c@309 9 modify it under the terms of the GNU General Public License as
c@309 10 published by the Free Software Foundation; either version 2 of the
c@309 11 License, or (at your option) any later version. See the file
c@309 12 COPYING included with this distribution for more information.
c@243 13 *
c@243 14 */
c@243 15
cannam@489 16 #ifndef QM_DSP_SEGMENT_H
cannam@489 17 #define QM_DSP_SEGMENT_H
cannam@480 18
cannam@480 19 #ifdef __cplusplus
cannam@480 20 extern "C" {
cannam@480 21 #endif
cannam@480 22
c@243 23 typedef struct segment_t
c@243 24 {
cannam@480 25 long start; /* in samples */
cannam@480 26 long end;
cannam@480 27 int type;
c@243 28 } segment_t;
c@243 29
c@243 30 typedef struct segmentation_t
c@243 31 {
cannam@480 32 int nsegs; /* number of segments */
cannam@480 33 int nsegtypes; /* number of segment types, so possible types are {0,1,...,nsegtypes-1} */
cannam@480 34 int samplerate;
cannam@480 35 segment_t* segments;
c@243 36 } segmentation_t;
c@243 37
c@243 38 typedef enum
c@243 39 {
cannam@480 40 FEATURE_TYPE_UNKNOWN = 0,
cannam@480 41 FEATURE_TYPE_CONSTQ = 1,
cannam@480 42 FEATURE_TYPE_CHROMA = 2,
cannam@480 43 FEATURE_TYPE_MFCC = 3
c@243 44 } feature_types;
c@243 45
c@245 46 #ifdef __cplusplus
c@245 47 }
c@243 48 #endif
c@243 49
c@245 50 #endif
c@245 51