Parent Directory
|
Revision Log
Release 2.0.5 tag
1 /* 2 DDS GIMP plugin 3 4 Copyright (C) 2004-2008 Shawn Kirst <skirst@insightbb.com>, 5 with parts (C) 2003 Arne Reuter <homepage@arnereuter.de> where specified. 6 7 This program is free software; you can redistribute it and/or 8 modify it under the terms of the GNU General Public 9 License as published by the Free Software Foundation; either 10 version 2 of the License, or (at your option) any later version. 11 12 This program is distributed in the hope that it will be useful, 13 but WITHOUT ANY WARRANTY; without even the implied warranty of 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 General Public License for more details. 16 17 You should have received a copy of the GNU General Public License 18 along with this program; see the file COPYING. If not, write to 19 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 20 Boston, MA 02111-1307, USA. 21 */ 22 23 #ifndef MIPMAP_H 24 #define MIPMAP_H 25 26 #define IS_POT(x) (!((x) & ((x) - 1))) 27 28 int get_num_mipmaps(int width, int height); 29 unsigned int get_mipmapped_size(int width, int height, int bpp, 30 int level, int num, int format); 31 unsigned int get_volume_mipmapped_size(int width, int height, 32 int depth, int bpp, int level, 33 int num, int format); 34 float cubic_interpolate(float a, float b, float c, float d, float x); 35 int generate_mipmaps(unsigned char *dst, unsigned char *src, 36 unsigned int width, unsigned int height, int bpp, 37 int indexed, int mipmaps, int filter); 38 int generate_volume_mipmaps(unsigned char *dst, unsigned char *src, 39 unsigned int width, unsigned int height, 40 unsigned int depth, int bpp, int indexed, 41 int mipmaps, int filter); 42 43 #endif
| ViewVC Help | |
| Powered by ViewVC 1.0.4 |