/*
* 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 <errno.h>
#include <dlfcn.h>
#include "jni.h"
#include <jni_util.h>
#include "jvm_md.h"
#include "awt_Mlib.h"
#include "java_awt_image_BufferedImage.h"
static void start_timer(int numsec);
/*
* This is called by awt_ImagingLib.initLib() to figure out if we
* can use the VIS version of medialib
*/
int status;
void *(*vPtr)();
int (*intPtr)();
mlib_status (*fPtr)();
int i;
static int s_timeIt = 0;
/*
* Find out the machine name. If it is an SUN ultra, we
* can use the vis library
*/
{
}
}
}
return MLIB_FAILURE;
}
/* So, if we are here, then either vis or generic version of
* medialib library was sucessfuly loaded.
* Let's try to initialize handlers...
*/
"j2d_mlib_ImageCreate")) == NULL) {
if (s_timeIt) {
}
ret = MLIB_FAILURE;
}
if (ret == MLIB_SUCCESS) {
"j2d_mlib_ImageCreateStruct")) == NULL) {
if (s_timeIt) {
}
ret = MLIB_FAILURE;
}
}
if (ret == MLIB_SUCCESS) {
"j2d_mlib_ImageDelete")) == NULL) {
if (s_timeIt) {
}
ret = MLIB_FAILURE;
}
}
/* Set the system functions */
if (ret == MLIB_SUCCESS) {
}
/* Loop through all of the fns and load them from the next library */
i = 0;
} else {
ret = MLIB_FAILURE;
}
i++;
}
if (ret != MLIB_SUCCESS) {
}
return ret;
}
return start_timer;
}
return stop_timer;
}
switch(type) {
colorOrder[0] = 1;
colorOrder[3] = 0;
break;
colorOrder[0] = 2;
colorOrder[2] = 0;
break;
colorOrder[0] = 3;
colorOrder[3] = 0;
break;
colorOrder[0] = 2;
colorOrder[2] = 0;
break;
colorOrder[0] = 1;
break;
colorOrder[0] = 0;
break;
colorOrder[0] = 0;
break;
}
}
/***************************************************************************
* Static Functions *
***************************************************************************/
{
}
{
double sec;
}