/*
* 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.
*/
#ifndef Java2d_Mlib_h_Included
#define Java2d_Mlib_h_Included
#include <mlib_image.h>
#include "mlib_ImageCopy.h"
#include "AnyByte.h"
#include "Any3Byte.h"
#include "Any4Byte.h"
#include "AnyShort.h"
#include "AnyInt.h"
#include "IntArgb.h"
#include "IntArgbBm.h"
#include "IntRgb.h"
#include "ByteGray.h"
#include "ByteIndexed.h"
#include "Index8Gray.h"
#include "Index12Gray.h"
/***************************************************************/
#ifdef MLIB_ADD_SUFF
#else
#define ADD_SUFF(x) x
#endif
/***************************************************************/
/***************************************************************/
/***************************************************************/
#define BLIT_PARAMS \
NativePrimitive *pPrim, \
#define BLIT_CALL_PARAMS \
/***************************************************************/
#define SCALE_PARAMS \
NativePrimitive * pPrim, \
#define SCALE_CALL_PARAMS \
/***************************************************************/
#define BCOPY_PARAMS \
NativePrimitive * pPrim, \
#define BCOPY_CALL_PARAMS \
bgpixel, \
/***************************************************************/
#define MASKBLIT_PARAMS \
void *dstBase, \
void *srcBase, \
NativePrimitive *pPrim, \
#define MASKBLIT_CALL_PARAMS \
/***************************************************************/
#define GLYPH_LIST_PARAMS \
jint totalGlyphs, \
NativePrimitive * pPrim, \
/***************************************************************/
/***************************************************************/
/***************************************************************/
/***************************************************************/
/***************************************************************/
BODY(i, 0)
BODY(3*i, 0); \
BODY(4*i, 0); \
/***************************************************************/
{ \
mlib_s32 i, j; \
j = 0; \
do { \
i = 0; \
do { \
i++; \
} while (i < width); \
j++; \
} while (j < height); \
}
{ \
mlib_s32 i, j; \
for (j = 0; j < height; j++) { \
for (i = 0; i < width; i++) { \
} \
} \
}
/***************************************************************/
/***************************************************************/
/***************************************************************/
/***************************************************************/
jint * DstReadLut,
/***************************************************************/
#endif /* Java2d_Mlib_h_Included */