Mercurial > hg > qm-dsp
diff dsp/segmentation/segment.h @ 480:175e51ae78eb
Untabify, indent, tidy
author | Chris Cannam <cannam@all-day-breakfast.com> |
---|---|
date | Fri, 31 May 2019 10:53:39 +0100 |
parents | d5014ab8b0e5 |
children | d48276a3ae24 |
line wrap: on
line diff
--- a/dsp/segmentation/segment.h Fri May 31 10:35:08 2019 +0100 +++ b/dsp/segmentation/segment.h Fri May 31 10:53:39 2019 +0100 @@ -1,10 +1,3 @@ -#ifndef _SEGMENT_H -#define _SEGMENT_H - -#ifdef __cplusplus -extern "C" { -#endif - /* * segment.h * @@ -19,27 +12,34 @@ * */ +#ifndef _SEGMENT_H +#define _SEGMENT_H + +#ifdef __cplusplus +extern "C" { +#endif + typedef struct segment_t { - long start; /* in samples */ - long end; - int type; + long start; /* in samples */ + long end; + int type; } segment_t; typedef struct segmentation_t { - int nsegs; /* number of segments */ - int nsegtypes; /* number of segment types, so possible types are {0,1,...,nsegtypes-1} */ - int samplerate; - segment_t* segments; + int nsegs; /* number of segments */ + int nsegtypes; /* number of segment types, so possible types are {0,1,...,nsegtypes-1} */ + int samplerate; + segment_t* segments; } segmentation_t; typedef enum { - FEATURE_TYPE_UNKNOWN = 0, - FEATURE_TYPE_CONSTQ = 1, - FEATURE_TYPE_CHROMA = 2, - FEATURE_TYPE_MFCC = 3 + FEATURE_TYPE_UNKNOWN = 0, + FEATURE_TYPE_CONSTQ = 1, + FEATURE_TYPE_CHROMA = 2, + FEATURE_TYPE_MFCC = 3 } feature_types; #ifdef __cplusplus