00001 /* 00002 * $Id: dglitch.h,v 1.8 2009/05/30 00:45:51 kprox Exp $ 00003 * 00004 * Copyright (C) 2002-2006: 00005 * Ken Prox <kprox@users.sourceforge.net> 00006 * 00007 * This program is free software; you can redistribute it and/or modify 00008 * it under the terms of the GNU General Public License as published by 00009 * the Free Software Foundation; either version 2 of the License, or 00010 * (at your option) any later version. 00011 * 00012 * This program is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 * GNU General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU General Public License 00018 * along with this program; if not, write to the Free Software 00019 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA 00020 */ 00021 #ifndef DGLITCH_H 00022 #define DGLITCH_H 00023 00024 #include <stdint.h> 00025 00027 typedef enum { 00028 DG_MEDIAN = 0, 00029 DG_NUMBER_OF_DGLITCH_ALGORS 00030 } te_dglitch_type; 00031 00033 typedef struct ts_dglitch *p_dglitch; 00034 00040 p_dglitch dglitch_create(te_dglitch_type type, uint32_t window_size); 00041 00045 void dglitch_destroy(p_dglitch *dg); 00046 00052 void dglitch_apply(p_dglitch dg, double *data, uint32_t size); 00053 00054 #endif /* DGLITCH_H */