cannam@484: /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ c@243: /* c@243: * segment.h c@243: * c@243: * Created by Mark Levy on 06/04/2006. c@309: * Copyright 2006 Centre for Digital Music, Queen Mary, University of London. c@309: c@309: This program is free software; you can redistribute it and/or c@309: modify it under the terms of the GNU General Public License as c@309: published by the Free Software Foundation; either version 2 of the c@309: License, or (at your option) any later version. See the file c@309: COPYING included with this distribution for more information. c@243: * c@243: */ c@243: cannam@489: #ifndef QM_DSP_SEGMENT_H cannam@489: #define QM_DSP_SEGMENT_H cannam@480: cannam@480: #ifdef __cplusplus cannam@480: extern "C" { cannam@480: #endif cannam@480: c@243: typedef struct segment_t c@243: { cannam@480: long start; /* in samples */ cannam@480: long end; cannam@480: int type; c@243: } segment_t; c@243: c@243: typedef struct segmentation_t c@243: { cannam@480: int nsegs; /* number of segments */ cannam@480: int nsegtypes; /* number of segment types, so possible types are {0,1,...,nsegtypes-1} */ cannam@480: int samplerate; cannam@480: segment_t* segments; c@243: } segmentation_t; c@243: c@243: typedef enum c@243: { cannam@480: FEATURE_TYPE_UNKNOWN = 0, cannam@480: FEATURE_TYPE_CONSTQ = 1, cannam@480: FEATURE_TYPE_CHROMA = 2, cannam@480: FEATURE_TYPE_MFCC = 3 c@243: } feature_types; c@243: c@245: #ifdef __cplusplus c@245: } c@243: #endif c@243: c@245: #endif c@245: