- Timestamp:
- Nov 25, 2009 11:33:35 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/DisplayResampleImage.cpp
r24373 r24942 1 /** @file 2 * 3 * Image resampling code, used for snapshot thumbnails. 4 */ 5 6 /* 7 * Copyright (C) 2009 Sun Microsystems, Inc. 8 * 9 * This file is part of VirtualBox Open Source Edition (OSE), as 10 * available from http://www.virtualbox.org. This file is free software; 11 * you can redistribute it and/or modify it under the terms of the GNU 12 * General Public License (GPL) as published by the Free Software 13 * Foundation, in version 2 as it comes in the "COPYING" file of the 14 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the 15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 16 * 17 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa 18 * Clara, CA 95054 USA or visit http://www.sun.com if you need 19 * additional information or have any questions. 20 */ 21 1 22 /* 2 23 * Based on gdImageCopyResampled from libgd. 3 * Original copyright notice follow :24 * Original copyright notice follows: 4 25 5 26 Portions copyright 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 6 27 Pierre-Alain Joye ([email protected]). 7 28 8 29 Permission has been granted to copy, distribute and modify gd in … … 11 32 documentation. 12 33 13 This does not affect your ownership of the derived work itself, and 34 This does not affect your ownership of the derived work itself, and 14 35 the intent is to assure proper credit for the authors of gd, not to 15 36 interfere with your productive use of gd. If you have questions, 16 ask. "Derived works" includes all programs that utilize the 37 ask. "Derived works" includes all programs that utilize the 17 38 library. Credit must be given in user-accessible documentation. 18 39 19 This software is provided "AS IS." The copyright holders disclaim 40 This software is provided "AS IS." The copyright holders disclaim 20 41 all warranties, either express or implied, including but not 21 42 limited to implied warranties of merchantability and fitness for a 22 particular purpose, with respect to this code and accompanying 43 particular purpose, with respect to this code and accompanying 23 44 documentation. 24 45 */ … … 32 53 #include <iprt/types.h> 33 54 34 /* 2.0.10: cast instead of floor() yields 35% performance improvement. 55 /* 2.0.10: cast instead of floor() yields 35% performance improvement. 35 56 Thanks to John Buckman. */ 36 57 … … 130 151 } 131 152 pcontribution = xportion * yportion; 132 /* 2.08: previously srcX and srcY were ignored. 153 /* 2.08: previously srcX and srcY were ignored. 133 154 Andrew Pattison */ 134 155 p = gdImageGetTrueColorPixel (src,
Note:
See TracChangeset
for help on using the changeset viewer.