qm-dsp  1.8
segment.h
Go to the documentation of this file.
00001 #ifndef _SEGMENT_H
00002 #define _SEGMENT_H
00003 
00004 #ifdef __cplusplus
00005 extern "C" {
00006 #endif
00007 
00008 /*
00009  *  segment.h
00010  *
00011  *  Created by Mark Levy on 06/04/2006.
00012  *  Copyright 2006 Centre for Digital Music, Queen Mary, University of London.
00013 
00014     This program is free software; you can redistribute it and/or
00015     modify it under the terms of the GNU General Public License as
00016     published by the Free Software Foundation; either version 2 of the
00017     License, or (at your option) any later version.  See the file
00018     COPYING included with this distribution for more information.
00019  *
00020  */
00021 
00022 typedef struct segment_t
00023 {
00024         long start;                     /* in samples */
00025         long end;
00026         int type;
00027 } segment_t;
00028 
00029 typedef struct segmentation_t
00030 {
00031         int nsegs;                      /* number of segments */
00032         int nsegtypes;          /* number of segment types, so possible types are {0,1,...,nsegtypes-1} */
00033         int samplerate;
00034         segment_t* segments;
00035 } segmentation_t;
00036 
00037 typedef enum 
00038 { 
00039         FEATURE_TYPE_UNKNOWN = 0, 
00040         FEATURE_TYPE_CONSTQ = 1, 
00041         FEATURE_TYPE_CHROMA = 2,
00042         FEATURE_TYPE_MFCC = 3
00043 } feature_types;
00044 
00045 #ifdef __cplusplus
00046 }
00047 #endif
00048 
00049 #endif
00050