/*
* 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 <stdlib.h>
#include <string.h>
#include "GraphicsPrimitiveMgr.h"
#include "java2d_Mlib.h"
typedef struct {
} AnyFunc_pair;
#define DEF_FUNC(x) \
void x(); \
void ADD_SUFF(x)();
#define ADD_FUNC(x) \
{ & x, & ADD_SUFF(x) }
/***************************************************************/
/***************************************************************/
};
/***************************************************************/
/***************************************************************/
/***************************************************************/
static int initialized;
#else
#endif
extern TransformInterpFunc *pBilinearFunc;
extern TransformInterpFunc *pBicubicFunc;
extern TransformInterpFunc vis_BilinearBlend;
extern TransformInterpFunc vis_BicubicBlend;
/*
* This function returns a pointer to the VIS accelerated version
* of the indicated C function if it exists and if the conditions
* are correct to use the VIS functions.
*/
{
jint i, j;
if (!initialized) {
/*
* Only use the vis loops if the environment variable is set.
* Find out the machine name. If it is an SUN ultra, we
* can use the vis library
*/
} else {
if (vis_env != 0) {
switch (*vis_env) {
case 'T':
case 't':
break;
case 'F':
case 'f':
break;
default:
break;
}
}
}
initialized = 1;
if (usevis) {
/* fill hash table */
for (i = 0; i < NUM_VIS_FUNCS; i++) {
while (hash_table[j] != NULL) {
j = NEXT_INDEX(j);
}
hash_table[j] = func;
}
}
}
if (!usevis) {
return func_c;
}
while (hash_table[j] != NULL) {
if (hash_table[j] == func_c) {
return hash_table_vis[j];
}
j = NEXT_INDEX(j);
}
return func_c;
}
/***************************************************************/