示例#1
0
DECLARE_ALPHA_MASKBLIT(ByteBinary1Bit, IntArgb);
DECLARE_ALPHA_MASKBLIT(IntArgb, ByteBinary1Bit);
DECLARE_ALPHA_MASKFILL(ByteBinary1Bit);

NativePrimitive ByteBinary1BitPrimitives[] = {
    REGISTER_SOLID_FILLRECT(ByteBinary1Bit),
    REGISTER_SOLID_FILLSPANS(ByteBinary1Bit),
    REGISTER_SOLID_LINE_PRIMITIVES(ByteBinary1Bit),
    REGISTER_XOR_FILLRECT(ByteBinary1Bit),
    REGISTER_XOR_FILLSPANS(ByteBinary1Bit),
    REGISTER_XOR_LINE_PRIMITIVES(ByteBinary1Bit),
    REGISTER_SOLID_DRAWGLYPHLIST(ByteBinary1Bit),
    REGISTER_SOLID_DRAWGLYPHLISTAA(ByteBinary1Bit),
    REGISTER_XOR_DRAWGLYPHLIST(ByteBinary1Bit),

    REGISTER_CONVERT_BLIT(ByteBinary1Bit, ByteBinary1Bit),
    REGISTER_CONVERT_BLIT(ByteBinary1Bit, IntArgb),
    REGISTER_CONVERT_BLIT(IntArgb, ByteBinary1Bit),
    REGISTER_XOR_BLIT(IntArgb, ByteBinary1Bit),

    REGISTER_ALPHA_MASKBLIT(ByteBinary1Bit, IntArgb),
    REGISTER_ALPHA_MASKBLIT(IntArgb, ByteBinary1Bit),
    REGISTER_ALPHA_MASKFILL(ByteBinary1Bit),
};

jboolean RegisterByteBinary1Bit(JNIEnv *env)
{
    return RegisterPrimitives(env, ByteBinary1BitPrimitives,
			      ArraySize(ByteBinary1BitPrimitives));
}
示例#2
0
DECLARE_XPAR_BLITBG(ByteIndexedBm, Index8Gray);

DECLARE_XOR_BLIT(IntArgb, Index8Gray);
DECLARE_ALPHA_MASKFILL(Index8Gray);
DECLARE_ALPHA_MASKBLIT(IntArgb, Index8Gray);
DECLARE_ALPHA_MASKBLIT(IntArgbPre, Index8Gray);
DECLARE_ALPHA_MASKBLIT(IntRgb, Index8Gray);
DECLARE_SRCOVER_MASKFILL(Index8Gray);
DECLARE_SRCOVER_MASKBLIT(IntArgb, Index8Gray);
DECLARE_SRCOVER_MASKBLIT(IntArgbPre, Index8Gray);
DECLARE_SOLID_DRAWGLYPHLISTAA(Index8Gray);

DECLARE_TRANSFORMHELPER_FUNCS(Index8Gray);

NativePrimitive Index8GrayPrimitives[] = {
    REGISTER_CONVERT_BLIT(IntArgb, Index8Gray),
    REGISTER_CONVERT_BLIT_EQUIV(IntRgb, Index8Gray,
                                NAME_CONVERT_BLIT(IntArgb, Index8Gray)),
    REGISTER_CONVERT_BLIT(ThreeByteBgr, Index8Gray),
    REGISTER_CONVERT_BLIT(ByteGray, Index8Gray),
    REGISTER_CONVERT_BLIT(Index12Gray, Index8Gray),
    REGISTER_CONVERT_BLIT_FLAGS(Index8Gray, Index8Gray,
                                SD_LOCK_LUT,
                                SD_LOCK_LUT | SD_LOCK_INVGRAY),
    REGISTER_CONVERT_BLIT(ByteIndexed, Index8Gray),

    REGISTER_SCALE_BLIT(IntArgb, Index8Gray),
    REGISTER_SCALE_BLIT_EQUIV(IntRgb, Index8Gray,
                              NAME_SCALE_BLIT(IntArgb, Index8Gray)),
    REGISTER_SCALE_BLIT(ThreeByteBgr, Index8Gray),
    REGISTER_SCALE_BLIT(UshortGray, Index8Gray),
示例#3
0
DECLARE_SRCOVER_MASKBLIT(IntArgb, IntRgb);
DECLARE_ALPHA_MASKBLIT(IntArgb, IntRgb);
DECLARE_SRCOVER_MASKBLIT(IntArgbPre, IntRgb);
DECLARE_ALPHA_MASKBLIT(IntArgbPre, IntRgb);
DECLARE_ALPHA_MASKBLIT(IntRgb, IntRgb);
DECLARE_SOLID_DRAWGLYPHLISTAA(IntRgb);
DECLARE_SOLID_DRAWGLYPHLISTLCD(IntRgb);
DECLARE_XPAR_SCALE_BLIT(IntArgbBm, IntArgb);

DECLARE_TRANSFORMHELPER_FUNCS(IntRgb);

NativePrimitive IntRgbPrimitives[] = {
    REGISTER_ANYINT_ISOCOPY_BLIT(IntRgb),
    REGISTER_ANYINT_ISOSCALE_BLIT(IntRgb),
    REGISTER_ANYINT_ISOXOR_BLIT(IntRgb),
    REGISTER_CONVERT_BLIT(IntRgb, IntArgb),
    REGISTER_CONVERT_BLIT_EQUIV(IntArgb, IntRgb,
				NAME_ISOCOPY_BLIT(AnyInt)),
    REGISTER_CONVERT_BLIT_EQUIV(IntArgbBm, IntRgb,
				NAME_ISOCOPY_BLIT(AnyInt)),
    REGISTER_CONVERT_BLIT(ThreeByteBgr, IntRgb),
    REGISTER_CONVERT_BLIT(ByteGray, IntRgb),
    REGISTER_CONVERT_BLIT_EQUIV(ByteIndexed, IntRgb,
				NAME_CONVERT_BLIT(ByteIndexed, IntArgb)),
    REGISTER_CONVERT_BLIT_EQUIV(Index12Gray, IntRgb,
				NAME_CONVERT_BLIT(Index12Gray, IntArgb)),
    REGISTER_SCALE_BLIT(IntRgb, IntArgb),
    REGISTER_SCALE_BLIT_EQUIV(IntArgb, IntRgb,
			      NAME_ISOSCALE_BLIT(AnyInt)),
    REGISTER_SCALE_BLIT_EQUIV(IntArgbBm, IntRgb,
			      NAME_ISOSCALE_BLIT(AnyInt)),
DECLARE_XPAR_BLITBG(ByteIndexedBm, IntArgbBm);

DECLARE_XOR_BLIT(IntArgb, IntArgbBm);
DECLARE_ALPHA_MASKFILL(IntArgbBm);
DECLARE_ALPHA_MASKBLIT(IntArgb, IntArgbBm);
DECLARE_ALPHA_MASKBLIT(IntArgbPre, IntArgbBm);
DECLARE_SOLID_DRAWGLYPHLISTAA(IntArgbBm);
DECLARE_SOLID_DRAWGLYPHLISTLCD(IntArgbBm);

DECLARE_TRANSFORMHELPER_FUNCS(IntArgbBm);

NativePrimitive IntArgbBmPrimitives[] = {
    REGISTER_ANYINT_ISOCOPY_BLIT(IntArgbBm),
    REGISTER_ANYINT_ISOSCALE_BLIT(IntArgbBm),
    REGISTER_ANYINT_ISOXOR_BLIT(IntArgbBm),
    REGISTER_CONVERT_BLIT(IntArgbBm, IntArgb),
    REGISTER_CONVERT_BLIT(IntArgb, IntArgbBm),
    REGISTER_CONVERT_BLIT(ByteIndexed, IntArgbBm),
    REGISTER_SCALE_BLIT(IntArgb, IntArgbBm),
    REGISTER_SCALE_BLIT(ByteIndexed, IntArgbBm),
    REGISTER_XPAR_CONVERT_BLIT(ByteIndexedBm, IntArgbBm),
    REGISTER_XPAR_SCALE_BLIT(ByteIndexedBm, IntArgbBm),
    REGISTER_XPAR_BLITBG(ByteIndexedBm, IntArgbBm),

    REGISTER_XOR_BLIT(IntArgb, IntArgbBm),
    REGISTER_ALPHA_MASKFILL(IntArgbBm),
    REGISTER_ALPHA_MASKBLIT(IntArgb, IntArgbBm),
    REGISTER_ALPHA_MASKBLIT(IntArgbPre, IntArgbBm),
    REGISTER_SOLID_DRAWGLYPHLISTAA(IntArgbBm),
    REGISTER_SOLID_DRAWGLYPHLISTLCD(IntArgbBm),
示例#5
0
DECLARE_SRCOVER_MASKBLIT(IntArgb, IntBgr);
DECLARE_ALPHA_MASKBLIT(IntArgb, IntBgr);
DECLARE_SRCOVER_MASKBLIT(IntArgbPre, IntBgr);
DECLARE_ALPHA_MASKBLIT(IntArgbPre, IntBgr);
DECLARE_ALPHA_MASKBLIT(IntRgb, IntBgr);
DECLARE_ALPHA_MASKBLIT(IntBgr, IntBgr);
DECLARE_SOLID_DRAWGLYPHLISTAA(IntBgr);
DECLARE_SOLID_DRAWGLYPHLISTLCD(IntBgr);

DECLARE_TRANSFORMHELPER_FUNCS(IntBgr);

NativePrimitive IntBgrPrimitives[] = {
    REGISTER_ANYINT_ISOCOPY_BLIT(IntBgr),
    REGISTER_ANYINT_ISOSCALE_BLIT(IntBgr),
    REGISTER_ANYINT_ISOXOR_BLIT(IntBgr),
    REGISTER_CONVERT_BLIT(IntBgr, IntArgb),
    REGISTER_CONVERT_BLIT(IntArgb, IntBgr),
    REGISTER_CONVERT_BLIT(ThreeByteBgr, IntBgr),
    REGISTER_CONVERT_BLIT_EQUIV(IntRgb, IntBgr,
                                NAME_CONVERT_BLIT(IntArgb, IntBgr)),
    REGISTER_CONVERT_BLIT_EQUIV(IntArgbBm, IntBgr,
                                NAME_CONVERT_BLIT(IntArgb, IntBgr)),
    REGISTER_CONVERT_BLIT_EQUIV(IntBgr, IntRgb,
                                NAME_CONVERT_BLIT(IntArgb, IntBgr)),
    REGISTER_CONVERT_BLIT(ByteIndexed, IntBgr),

    REGISTER_SCALE_BLIT(IntBgr, IntArgb),
    REGISTER_SCALE_BLIT(IntArgb, IntBgr),
    REGISTER_SCALE_BLIT(ThreeByteBgr, IntBgr),
    REGISTER_SCALE_BLIT_EQUIV(IntRgb, IntBgr,
                              NAME_SCALE_BLIT(IntArgb, IntBgr)),
示例#6
0
DECLARE_ALPHA_MASKFILL(IntArgb);
DECLARE_SRCOVER_MASKBLIT(IntArgb, IntArgb);
DECLARE_ALPHA_MASKBLIT(IntArgb, IntArgb);
DECLARE_SRCOVER_MASKBLIT(IntArgbPre, IntArgb);
DECLARE_ALPHA_MASKBLIT(IntArgbPre, IntArgb);
DECLARE_ALPHA_MASKBLIT(IntRgb, IntArgb);
DECLARE_SOLID_DRAWGLYPHLISTAA(IntArgb);
DECLARE_SOLID_DRAWGLYPHLISTLCD(IntArgb);
DECLARE_XPAR_SCALE_BLIT(IntArgbBm, IntArgb);

DECLARE_TRANSFORMHELPER_FUNCS(IntArgb);

NativePrimitive IntArgbPrimitives[] = {
    REGISTER_ANYINT_ISOCOPY_BLIT(IntArgb),
    REGISTER_ANYINT_ISOSCALE_BLIT(IntArgb),
    REGISTER_CONVERT_BLIT(ByteIndexed, IntArgb),
    REGISTER_CONVERT_BLIT(Index12Gray, IntArgb),
    REGISTER_SCALE_BLIT(ByteIndexed, IntArgb),
    REGISTER_XPAR_CONVERT_BLIT(ByteIndexedBm, IntArgb),
    REGISTER_XPAR_SCALE_BLIT(ByteIndexedBm, IntArgb),
    REGISTER_XPAR_SCALE_BLIT(IntArgbBm, IntArgb),
    REGISTER_XPAR_BLITBG(ByteIndexedBm, IntArgb),

    REGISTER_XOR_BLIT(IntArgb, IntArgb),
    REGISTER_SRC_MASKFILL(IntArgb),
    REGISTER_SRCOVER_MASKFILL(IntArgb),
    REGISTER_ALPHA_MASKFILL(IntArgb),
    REGISTER_SRCOVER_MASKBLIT(IntArgb, IntArgb),
    REGISTER_ALPHA_MASKBLIT(IntArgb, IntArgb),
    REGISTER_SRCOVER_MASKBLIT(IntArgbPre, IntArgb),
    REGISTER_ALPHA_MASKBLIT(IntArgbPre, IntArgb),
DECLARE_SCALE_BLIT(IntArgb, Ushort555Rgbx);
DECLARE_SCALE_BLIT(ThreeByteBgr, Ushort555Rgbx);
DECLARE_SCALE_BLIT(ByteGray, Ushort555Rgbx);
DECLARE_SCALE_BLIT(ByteIndexed, Ushort555Rgbx);
DECLARE_XPAR_CONVERT_BLIT(ByteIndexedBm, Ushort555Rgbx);
DECLARE_XPAR_SCALE_BLIT(ByteIndexedBm, Ushort555Rgbx);
DECLARE_XPAR_SCALE_BLIT(IntArgbBm, Ushort555Rgbx);
DECLARE_XPAR_BLITBG(ByteIndexedBm, Ushort555Rgbx);
DECLARE_XOR_BLIT(IntArgb, Ushort555Rgbx);
DECLARE_SOLID_DRAWGLYPHLISTAA(Ushort555Rgbx); 

NativePrimitive Ushort555RgbxPrimitives[] = {
    REGISTER_ANYSHORT_ISOCOPY_BLIT(Ushort555Rgbx),
    REGISTER_ANYSHORT_ISOSCALE_BLIT(Ushort555Rgbx),
    REGISTER_ANYSHORT_ISOXOR_BLIT(Ushort555Rgbx),
    REGISTER_CONVERT_BLIT(Ushort555Rgbx, IntArgb),
    REGISTER_CONVERT_BLIT(IntArgb, Ushort555Rgbx),
    REGISTER_CONVERT_BLIT_EQUIV(IntRgb, Ushort555Rgbx,
				NAME_CONVERT_BLIT(IntArgb, Ushort555Rgbx)),
    REGISTER_CONVERT_BLIT(ThreeByteBgr, Ushort555Rgbx),
    REGISTER_CONVERT_BLIT(ByteGray, Ushort555Rgbx),
    REGISTER_CONVERT_BLIT(ByteIndexed, Ushort555Rgbx),
    REGISTER_SCALE_BLIT(Ushort555Rgbx, IntArgb),
    REGISTER_SCALE_BLIT(IntArgb, Ushort555Rgbx),
    REGISTER_SCALE_BLIT_EQUIV(IntRgb, Ushort555Rgbx,
			      NAME_SCALE_BLIT(IntArgb, Ushort555Rgbx)),
    REGISTER_SCALE_BLIT(ThreeByteBgr, Ushort555Rgbx),
    REGISTER_SCALE_BLIT(ByteGray, Ushort555Rgbx),
    REGISTER_SCALE_BLIT(ByteIndexed, Ushort555Rgbx),
    REGISTER_XPAR_CONVERT_BLIT(ByteIndexedBm, Ushort555Rgbx),
    REGISTER_XPAR_SCALE_BLIT(ByteIndexedBm, Ushort555Rgbx),
示例#8
0
DECLARE_SCALE_BLIT(ByteIndexed, ByteIndexed);
DECLARE_XPAR_CONVERT_BLIT(ByteIndexedBm, ByteIndexed);
DECLARE_XPAR_SCALE_BLIT(ByteIndexedBm, ByteIndexed);
DECLARE_XPAR_SCALE_BLIT(IntArgbBm, ByteIndexed);
DECLARE_XPAR_BLITBG(ByteIndexedBm, ByteIndexed);
DECLARE_XPAR_CONVERT_BLIT(IntArgbBm, ByteIndexed);
DECLARE_XPAR_BLITBG(IntArgbBm, ByteIndexed);

DECLARE_XOR_BLIT(IntArgb, ByteIndexed);
DECLARE_ALPHA_MASKFILL(ByteIndexed);
DECLARE_ALPHA_MASKBLIT(IntArgb, ByteIndexed);
DECLARE_ALPHA_MASKBLIT(IntRgb, ByteIndexed);
DECLARE_SOLID_DRAWGLYPHLISTAA(ByteIndexed); 

NativePrimitive ByteIndexedPrimitives[] = {
    REGISTER_CONVERT_BLIT(IntArgb, ByteIndexed),
    REGISTER_CONVERT_BLIT_EQUIV(IntRgb, ByteIndexed,
				NAME_CONVERT_BLIT(IntArgb, ByteIndexed)),
    REGISTER_CONVERT_BLIT_EQUIV(IntArgbBm, ByteIndexed,
				NAME_CONVERT_BLIT(IntArgb, ByteIndexed)),
    REGISTER_CONVERT_BLIT(ThreeByteBgr, ByteIndexed),
    REGISTER_CONVERT_BLIT(ByteGray, ByteIndexed),
    REGISTER_CONVERT_BLIT(Index12Gray, ByteIndexed),
    REGISTER_CONVERT_BLIT_FLAGS(ByteIndexed, ByteIndexed, 0, SD_LOCK_LUT),
    REGISTER_SCALE_BLIT(IntArgb, ByteIndexed),
    REGISTER_SCALE_BLIT_EQUIV(IntRgb, ByteIndexed,
			      NAME_SCALE_BLIT(IntArgb, ByteIndexed)),
    REGISTER_SCALE_BLIT_EQUIV(IntArgbBm, ByteIndexed,
			      NAME_SCALE_BLIT(IntArgb, ByteIndexed)),
    REGISTER_SCALE_BLIT(ThreeByteBgr, ByteIndexed),
    REGISTER_SCALE_BLIT(ByteGray, ByteIndexed),