JWS C Library
C language utility library
|
00001 /* 00002 * This work is licensed under a Creative Commons 00003 * Attribution-Noncommercial-Share Alike 3.0 United States License. 00004 * 00005 * http://creativecommons.org/licenses/by-nc-sa/3.0/us/ 00006 * 00007 * You are free: 00008 * 00009 * to Share - to copy, distribute, display, and perform the work 00010 * to Remix - to make derivative works 00011 * 00012 * Under the following conditions: 00013 * 00014 * Attribution. You must attribute the work in the manner specified by the 00015 * author or licensor (but not in any way that suggests that they endorse you 00016 * or your use of the work). 00017 * 00018 * Noncommercial. You may not use this work for commercial purposes. 00019 * 00020 * Share Alike. If you alter, transform, or build upon this work, you may 00021 * distribute the resulting work only under the same or similar license to 00022 * this one. 00023 * 00024 * For any reuse or distribution, you must make clear to others the license 00025 * terms of this work. The best way to do this is by including this header. 00026 * 00027 * Any of the above conditions can be waived if you get permission from the 00028 * copyright holder. 00029 * 00030 * Apart from the remix rights granted under this license, nothing in this 00031 * license impairs or restricts the author's moral rights. 00032 */ 00033 00034 00046 #ifndef MATBLOCK_CONV_H 00047 #define MATBLOCK_CONV_H 00048 00049 00050 #include <jwsc/config.h> 00051 00052 #include <stdlib.h> 00053 00054 #include "jwsc/base/error.h" 00055 #include "jwsc/matblock/matblock.h" 00056 00057 00058 #ifdef __cplusplus 00059 namespace jwsc { 00060 extern "C" { 00061 #endif 00062 00063 00072 Error* convolve_matblock_f 00073 ( 00074 Matblock_f** m_out, 00075 const Matblock_f* m_in, 00076 const Matblock_f* h 00077 ); 00078 00080 Error* convolve_matblock_d 00081 ( 00082 Matblock_d** m_out, 00083 const Matblock_d* m_in, 00084 const Matblock_d* h 00085 ); 00086 00100 #ifdef JWSC_HAVE_FFTW3F 00101 Error* convolve_matblock_fft_f 00102 ( 00103 Matblock_f** m_out, 00104 const Matblock_f* m_in, 00105 const Matblock_f* h 00106 ); 00107 #endif 00108 00110 #ifdef JWSC_HAVE_FFTW3F 00111 Error* convolve_matblock_fft_d 00112 ( 00113 Matblock_d** m_out, 00114 const Matblock_d* m_in, 00115 const Matblock_d* h 00116 ); 00117 #endif 00118 00135 #ifdef JWSC_HAVE_FFTW3F 00136 Error* convolve_matblock_fft_scratch_f 00137 ( 00138 Matblock_f** m_out, 00139 const Matblock_f* m_in, 00140 const Matblock_f* h, 00141 Matblock_cf** s_1, 00142 Matblock_cf** s_2, 00143 Matblock_f** s_3, 00144 Matblock_cf** s_4 00145 ); 00146 #endif 00147 00152 #ifdef JWSC_HAVE_FFTW3F 00153 Error* convolve_matblock_fft_scratch_d 00154 ( 00155 Matblock_d** m_out, 00156 const Matblock_d* m_in, 00157 const Matblock_d* h, 00158 Matblock_cd** s_1, 00159 Matblock_cd** s_2, 00160 Matblock_d** s_3, 00161 Matblock_cd** s_4 00162 ); 00163 #endif 00164 00168 #ifdef __cplusplus 00169 } 00170 } 00171 #endif 00172 00173 00174 #endif