/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
#include "mlib_image.h"
#include "mlib_ImageAffine.h"
#include "mlib_ImageColormap.h"
/***************************************************************/
/***************************************************************/
/***************************************************************/
#define DECLAREVAR_IND() \
DECLAREVAR0(); \
/***************************************************************/
#define GET_FILTERS_KOEF() \
\
\
\
/***************************************************************/
#define GET_POINTER() \
/***************************************************************/
/***************************************************************/
/***************************************************************/
#ifdef MLIB_USE_FTOI_CLAMPING
/***********/
/***********/
#else
/***********/
if (val0 >= MLIB_S32_MAX) \
else if (val0 <= MLIB_S32_MIN) \
else \
/***********/
if (val0 >= MLIB_S32_MAX) \
else if (val0 <= MLIB_S32_MIN) \
else \
#endif /* MLIB_USE_FTOI_CLAMPING */
/***************************************************************/
X += dX; \
Y += dY; \
STORE_SAT_VALUE_##lut_format(0); \
GET_FILTERS_KOEF(); \
GET_POINTER(); \
LOAD_FIRST_ROW(3, 0); \
/***************************************************************/
STORE_SAT_VALUE_##lut_format(0); \
/***************************************************************/
X += dX; \
Y += dY; \
STORE_SAT_VALUE_##lut_format(0); \
GET_FILTERS_KOEF(); \
GET_POINTER(); \
LOAD_FIRST_ROW(4, 0); \
/***************************************************************/
STORE_SAT_VALUE_##lut_format(0); \
/***************************************************************/
/***************************************************************/
/***************************************************************/
const void *colormap) \
{ \
DECLAREVAR_IND(); \
\
if (max_xsize > MLIB_LIMIT) { \
} \
\
\
NEW_LINE(1); \
\
GET_FILTERS_KOEF(); \
GET_POINTER(); \
LOAD_FIRST_ROW(NCHAN, 0);
/* pragma pipeloop(0) must be here */
/***************************************************************/
\
} \
\
\
} \
\
\
return MLIB_SUCCESS; \
}
/***************************************************************/
/***************************************************************/
#ifdef __SUNPRO_C
#pragma pipeloop(0)
#endif /* __SUNPRO_C */
/***************************************************************/
#ifdef __SUNPRO_C
#pragma pipeloop(0)
#endif /* __SUNPRO_C */
/***************************************************************/
#ifdef __SUNPRO_C
#pragma pipeloop(0)
#endif /* __SUNPRO_C */
/***************************************************************/
#ifdef __SUNPRO_C
#pragma pipeloop(0)
#endif /* __SUNPRO_C */
/***************************************************************/
/***************************************************************/
#ifdef __SUNPRO_C
#pragma pipeloop(0)
#endif /* __SUNPRO_C */
/***************************************************************/
#ifdef __SUNPRO_C
#pragma pipeloop(0)
#endif /* __SUNPRO_C */
/***************************************************************/
#ifdef __SUNPRO_C
#pragma pipeloop(0)
#endif /* __SUNPRO_C */
/***************************************************************/
#ifdef __SUNPRO_C
#pragma pipeloop(0)
#endif /* __SUNPRO_C */
/***************************************************************/