/*
* 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 "jni.h"
#include "awt_Mlib.h"
#include "java_awt_image_BufferedImage.h"
#include <windows.h>
#include "alloc.h"
extern "C"
{
/*
* This is called by awt_ImagingLib.initLib() to figure out if there
* is a native imaging lib tied to the ImagingLib.java (other than
* the shared medialib).
*/
/* Try to receive handle for the library. Routine should find
* the library successfully because this library is already
* loaded to the process space by the System.loadLibrary() call.
* Here we just need to get handle to initialize the pointers to
* required mlib routines.
*/
return MLIB_FAILURE;
}
/* Initialize pointers to medilib routines... */
ret = MLIB_FAILURE;
}
if (ret == MLIB_SUCCESS) {
ret = MLIB_FAILURE;
}
}
if (ret == MLIB_SUCCESS) {
ret = MLIB_FAILURE;
}
}
if (ret == MLIB_SUCCESS) {
}
mlib_status (*fPtr)();
int i = 0;
fPtr = (mlib_status (*)())
} else {
ret = MLIB_FAILURE;
}
i++;
}
return ret;
}
return NULL;
}
return NULL;
}
switch(type) {
colorOrder[0] = 2;
colorOrder[2] = 0;
break;
colorOrder[0] = 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] = 0;
break;
colorOrder[0] = 0;
break;
}
}
}