Mercurial > hg > libxtract
annotate xtract/xtract_types.h @ 1:b8f2448f7207
Initial import
author | Jamie Bullock <jamie@postlude.co.uk> |
---|---|
date | Mon, 02 Oct 2006 14:18:15 +0000 |
parents | |
children | 819937ea6359 |
rev | line source |
---|---|
jamie@1 | 1 /* libxtract feature extraction library |
jamie@1 | 2 * |
jamie@1 | 3 * Copyright (C) 2006 Jamie Bullock |
jamie@1 | 4 * |
jamie@1 | 5 * This program is free software; you can redistribute it and/or modify |
jamie@1 | 6 * it under the terms of the GNU General Public License as published by |
jamie@1 | 7 * the Free Software Foundation; either version 2 of the License, or |
jamie@1 | 8 * (at your option) any later version. |
jamie@1 | 9 * |
jamie@1 | 10 * This program is distributed in the hope that it will be useful, |
jamie@1 | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
jamie@1 | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
jamie@1 | 13 * GNU General Public License for more details. |
jamie@1 | 14 * |
jamie@1 | 15 * You should have received a copy of the GNU General Public License |
jamie@1 | 16 * along with this program; if not, write to the Free Software |
jamie@1 | 17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, |
jamie@1 | 18 * USA. |
jamie@1 | 19 */ |
jamie@1 | 20 |
jamie@1 | 21 /* xtract_types.h: declares specialised variable types used by libxtract */ |
jamie@1 | 22 |
jamie@1 | 23 #ifndef XTRACT_TYPES |
jamie@1 | 24 #define XTRACT_TYPES |
jamie@1 | 25 |
jamie@1 | 26 #ifdef __cplusplus |
jamie@1 | 27 extern "C" { |
jamie@1 | 28 #endif |
jamie@1 | 29 |
jamie@1 | 30 /* Data structure used to store amplitude data between calls to xtract_attack_time and other functions. */ |
jamie@1 | 31 |
jamie@1 | 32 typedef struct _xtract_amp_tracker { |
jamie@1 | 33 int count; |
jamie@1 | 34 float previous_amp; |
jamie@1 | 35 } xtract_amp_tracker; |
jamie@1 | 36 |
jamie@1 | 37 typedef struct _xtract_frame_tracker { |
jamie@1 | 38 int frame_count; |
jamie@1 | 39 float *previous_frame; |
jamie@1 | 40 } xtract_frame_tracker; |
jamie@1 | 41 |
jamie@1 | 42 #ifdef __cplusplus |
jamie@1 | 43 } |
jamie@1 | 44 #endif |
jamie@1 | 45 |
jamie@1 | 46 #endif |