00001 /* 00002 * $Id: dt_window.h,v 1.7 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 DT_WINDOW_H 00022 #define DT_WINDOW_H 00023 00024 #include <stdlib.h> 00025 #include <stdint.h> 00026 00027 typedef enum { 00028 DT_HAMMING_WINDOW = 0, 00029 DT_HANNING_WINDOW, 00030 DT_BLACKMAN_WINDOW, 00031 DT_NUMBER_OF_WINDOWS 00032 } te_dt_window_type; 00033 00034 typedef struct x_dt_window *dt_window; 00035 00037 00041 dt_window dt_window_create(te_dt_window_type type, uint32_t size); 00042 00044 void dt_window_destroy(dt_window *w); 00045 00047 00051 void dt_window_apply(dt_window w, double *data); 00052 00053 #endif /* DT_WINDOW_H */