1 /* 2 * * Copyright (C) 2006-2011 Anders Brander <anders@brander.dk>, 3 * * Anders Kvist <akv@lnxbx.dk> and Klaus Post <klauspost@gmail.com> 4 * 5 * This program is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU General Public License 7 * as published by the Free Software Foundation; either version 2 8 * of the License, or (at your option) any later version. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program; if not, write to the Free Software 17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 18 */ 19 20 #ifndef planarimageslice_h__ 21 #define planarimageslice_h__ 22 #include <rawstudio.h> 23 24 namespace RawStudio { 25 namespace FFTFilter { 26 27 28 class FloatImagePlane; 29 class ComplexFilter; 30 class FFTWindow; 31 32 class PlanarImageSlice 33 { 34 public: 35 PlanarImageSlice(void); 36 virtual ~PlanarImageSlice(void); 37 void setOut(FloatImagePlane *p); 38 FloatImagePlane *in; 39 FloatImagePlane *out; 40 void allocateOut(); 41 gint offset_x; 42 gint offset_y; 43 gint overlap_x; 44 gint overlap_y; 45 gboolean blockSkipped; 46 gboolean ownAlloc; 47 ComplexFilter *filter; 48 FFTWindow *window; 49 }; 50 51 }} // namespace RawStudio::FFTFilter 52 53 #endif // planarimageslice_h__ 54