/*
* 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.
*/
/*
* FUNCTION
* and MLIB_EDGE_DST_NO_WRITE mask.
*/
#include "mlib_image.h"
#include "mlib_ImageConv.h"
#include "mlib_c_ImageConv.h"
/***************************************************************/
#ifdef i386 /* do not copy by mlib_d64 data type for x86 */
typedef struct {
} two_int;
#else /* i386 */
#endif /* i386 ( do not copy by mlib_d64 data type for x86 ) */
/***************************************************************/
#define LOAD_KERNEL_INTO_DOUBLE() \
while (scalef_expon > 30) { \
scalef_expon -= 30; \
} \
\
\
/* keep kernel in regs */ \
/***************************************************************/
/***************************************************************/
#ifndef MLIB_USE_FTOI_CLAMPING
#define CLAMP_S32(x) \
(((x) <= MLIB_S32_MIN) ? MLIB_S32_MIN : \
#else
#endif /* MLIB_USE_FTOI_CLAMPING */
/***************************************************************/
#if defined(_LITTLE_ENDIAN) && !defined(_NO_LONGLONG)
/* NB: Explicit cast to DTYPE is necessary to avoid warning from Microsoft VC compiler.
And we need to explicitly define cast behavior if source exceeds destination range.
(it is undefined according to C99 spec). We use mask here because this macro is typically
used to extract bit regions. */
#else
#endif /* defined(_LITTLE_ENDIAN) && !defined(_NO_LONGLONG) */
/***************************************************************/
#ifdef _NO_LONGLONG
#else /* _NO_LONGLONG */
#ifdef _LITTLE_ENDIAN
#else /* _LITTLE_ENDIAN */
#endif /* _LITTLE_ENDIAN */
#endif /* _NO_LONGLONG */
/***************************************************************/
typedef union {
struct {
} i32s;
} d64_2x32;
/***************************************************************/
/***************************************************************/
{
#ifdef _NO_LONGLONG
#else /* _NO_LONGLONG */
#endif /* _NO_LONGLONG */
mlib_s32 j;
hgt = 1;
}
for (j = 0; j < hgt; j++) {
#ifdef __SUNPRO_C
#pragma pipeloop(0)
#endif /* __SUNPRO_C */
#ifdef _NO_LONGLONG
#else /* _NO_LONGLONG */
#endif /* _NO_LONGLONG */
}
}
}
/***************************************************************/
{
mlib_s32 i, j, c;
for (j = 0; j < hgt; j++) {
for (c = 0; c < nchan; c++) {
#ifdef __SUNPRO_C
#pragma pipeloop(0)
#endif /* __SUNPRO_C */
}
}
}
}
/***************************************************************/
const mlib_image *src,
{
mlib_s32 i, j, c;
}
for (c = 0; c < nchannel; c++) {
#ifdef __SUNPRO_C
#pragma pipeloop(0)
#endif /* __SUNPRO_C */
}
for (j = 0; j < hgt; j++) {
#ifdef __SUNPRO_C
#pragma pipeloop(0)
#endif /* __SUNPRO_C */
#ifdef _NO_LONGLONG
#else /* _NO_LONGLONG */
#endif /* _NO_LONGLONG */
#ifdef _NO_LONGLONG
#else /* _NO_LONGLONG */
#endif /* _NO_LONGLONG */
}
for (; i < wid; i++) {
}
}
}
return MLIB_SUCCESS;
}
/***************************************************************/
const mlib_image *src,
{
}
for (c = 0; c < nchannel; c++) {
#ifdef __SUNPRO_C
#pragma pipeloop(0)
#endif /* __SUNPRO_C */
for (i = 0; i < swid; i++) {
}
if (dx_r != 0) {
}
for (j = 0; j < hgt; j++) {
#ifdef __SUNPRO_C
#pragma pipeloop(0)
#endif /* __SUNPRO_C */
#ifdef _NO_LONGLONG
#else /* _NO_LONGLONG */
#endif /* _NO_LONGLONG */
#ifdef _NO_LONGLONG
#else /* _NO_LONGLONG */
#endif /* _NO_LONGLONG */
}
for (; i < wid; i++) {
}
}
}
return MLIB_SUCCESS;
}
/***************************************************************/
const mlib_image *src,
{
mlib_s32 i, j, c;
}
for (c = 0; c < nchannel; c++) {
#ifdef __SUNPRO_C
#pragma pipeloop(0)
#endif /* __SUNPRO_C */
}
for (j = 0; j < hgt; j++) {
#ifdef __SUNPRO_C
#pragma pipeloop(0)
#endif /* __SUNPRO_C */
#ifdef _NO_LONGLONG
#else /* _NO_LONGLONG */
#endif /* _NO_LONGLONG */
#ifdef _NO_LONGLONG
#else /* _NO_LONGLONG */
#endif /* _NO_LONGLONG */
}
for (; i < wid; i++) {
}
}
}
return MLIB_SUCCESS;
}
/***************************************************************/
const mlib_image *src,
{
}
for (c = 0; c < nchannel; c++) {
#ifdef __SUNPRO_C
#pragma pipeloop(0)
#endif /* __SUNPRO_C */
for (i = 0; i < swid; i++) {
}
if (dx_r != 0) {
}
for (j = 0; j < hgt; j++) {
#ifdef __SUNPRO_C
#pragma pipeloop(0)
#endif /* __SUNPRO_C */
#ifdef _NO_LONGLONG
#else /* _NO_LONGLONG */
#endif /* _NO_LONGLONG */
#ifdef _NO_LONGLONG
#else /* _NO_LONGLONG */
#endif /* _NO_LONGLONG */
}
for (; i < wid; i++) {
}
}
}
return MLIB_SUCCESS;
}
/***************************************************************/
const mlib_image *src,
{
mlib_s32 i, j, c;
}
for (c = 0; c < nchannel; c++) {
#ifdef __SUNPRO_C
#pragma pipeloop(0)
#endif /* __SUNPRO_C */
}
for (j = 0; j < hgt; j++) {
#ifdef __SUNPRO_C
#pragma pipeloop(0)
#endif /* __SUNPRO_C */
#ifdef _NO_LONGLONG
#else /* _NO_LONGLONG */
#endif /* _NO_LONGLONG */
#ifdef _NO_LONGLONG
#else /* _NO_LONGLONG */
#endif /* _NO_LONGLONG */
}
for (; i < wid; i++) {
}
}
}
{
} else {
}
}
return MLIB_SUCCESS;
}
/***************************************************************/
const mlib_image *src,
{
}
for (c = 0; c < nchannel; c++) {
#ifdef __SUNPRO_C
#pragma pipeloop(0)
#endif /* __SUNPRO_C */
for (i = 0; i < swid; i++) {
}
if (dx_r != 0) {
}
for (j = 0; j < hgt; j++) {
#ifdef __SUNPRO_C
#pragma pipeloop(0)
#endif /* __SUNPRO_C */
#ifdef _NO_LONGLONG
#else /* _NO_LONGLONG */
#endif /* _NO_LONGLONG */
#ifdef _NO_LONGLONG
#else /* _NO_LONGLONG */
#endif /* _NO_LONGLONG */
}
for (; i < wid; i++) {
}
}
}
{
} else {
}
}
return MLIB_SUCCESS;
}
/***************************************************************/