Changeset 9875 for trunk/psLib/src/mathtypes
- Timestamp:
- Nov 6, 2006, 9:45:33 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/mathtypes/psImage.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/mathtypes/psImage.c
r9864 r9875 9 9 * @author Ross Harman, MHPCC 10 10 * 11 * @version $Revision: 1.11 7$ $Name: not supported by cvs2svn $12 * @date $Date: 2006-11-0 6 02:00:40$11 * @version $Revision: 1.118 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2006-11-07 07:45:33 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 811 811 if (valid00 && valid10 && valid01 && valid11) { \ 812 812 /* formula from the ADD */ \ 813 /* XXX this had V01 and V10 exchanged! */ \ 813 814 return V00*FRACFUNC((1.0-fracX)*(1.0-fracY)) + V10*FRACFUNC(fracX*(1.0-fracY)) + \ 814 815 V01*FRACFUNC(fracY*(1.0-fracX)) + V11*FRACFUNC(fracX*fracY); \ … … 852 853 } 853 854 855 // XXX this would be much faster to use a 3x3 kernel to determine the shift 856 // the same function can be used for all equivalent (kernel-based) shifts... 854 857 #define PSIMAGE_PIXEL_INTERPOLATE_BICUBE(TYPE, RETURNTYPE, SUFFIX, FRACFUNC) \ 855 858 inline RETURNTYPE p_psImagePixelInterpolateBICUBE_##SUFFIX( \
Note:
See TracChangeset
for help on using the changeset viewer.
