Libav 0.7.1
|
00001 /* 00002 * Copyright (c) 2008 Robert Swain 00003 * 00004 * This file is part of Libav. 00005 * 00006 * Libav is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU Lesser General Public 00008 * License as published by the Free Software Foundation; either 00009 * version 2.1 of the License, or (at your option) any later version. 00010 * 00011 * Libav is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 * Lesser General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU Lesser General Public 00017 * License along with Libav; if not, write to the Free Software 00018 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00019 */ 00020 00021 #ifndef AVCODEC_SINEWIN_H 00022 #define AVCODEC_SINEWIN_H 00023 00024 #include "config.h" 00025 #include "libavutil/mem.h" 00026 00027 #if CONFIG_HARDCODED_TABLES 00028 # define SINETABLE_CONST const 00029 #else 00030 # define SINETABLE_CONST 00031 #endif 00032 00033 #define SINETABLE(size) \ 00034 SINETABLE_CONST DECLARE_ALIGNED(16, float, ff_sine_##size)[size] 00035 00041 void ff_sine_window_init(float *window, int n); 00042 00046 void ff_init_ff_sine_windows(int index); 00047 00048 extern SINETABLE( 32); 00049 extern SINETABLE( 64); 00050 extern SINETABLE( 128); 00051 extern SINETABLE( 256); 00052 extern SINETABLE( 512); 00053 extern SINETABLE(1024); 00054 extern SINETABLE(2048); 00055 extern SINETABLE(4096); 00056 00057 extern SINETABLE_CONST float * const ff_sine_windows[13]; 00058 00059 #endif /* AVCODEC_SINEWIN_H */