Esempio n. 1
0
    REGISTER_XPAR_BLITBG_EQUIV(ByteIndexedBm, IntRgb,
			       NAME_XPAR_BLITBG(ByteIndexedBm, IntArgb)),

    REGISTER_XOR_BLIT(IntArgb, IntRgb),
    REGISTER_SRC_MASKFILL(IntRgb),
    REGISTER_SRCOVER_MASKFILL(IntRgb),
    REGISTER_ALPHA_MASKFILL(IntRgb),
    REGISTER_SRCOVER_MASKBLIT(IntArgb, IntRgb),
    REGISTER_ALPHA_MASKBLIT(IntArgb, IntRgb),
    REGISTER_SRCOVER_MASKBLIT(IntArgbPre, IntRgb),
    REGISTER_ALPHA_MASKBLIT(IntArgbPre, IntRgb),
    REGISTER_ALPHA_MASKBLIT(IntRgb, IntRgb),
    REGISTER_SOLID_DRAWGLYPHLISTAA(IntRgb),
    REGISTER_SOLID_DRAWGLYPHLISTLCD(IntRgb),

    REGISTER_TRANSFORMHELPER_FUNCS(IntRgb),
};

jboolean RegisterIntRgb(JNIEnv *env)
{
    return RegisterPrimitives(env, IntRgbPrimitives,
			      ArraySize(IntRgbPrimitives));
}

DEFINE_CONVERT_BLIT(IntRgb, IntArgb, 1IntRgb)

DEFINE_CONVERT_BLIT(ThreeByteBgr, IntRgb, 1IntRgb)

DEFINE_CONVERT_BLIT(ByteGray, IntRgb, 1IntRgb)

DEFINE_XPAR_CONVERT_BLIT(IntArgbBm, IntRgb, 1IntRgb)
    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),

    REGISTER_TRANSFORMHELPER_FUNCS(IntArgbBm),
};

jboolean RegisterIntArgbBm(JNIEnv *env)
{
    return RegisterPrimitives(env, IntArgbBmPrimitives,
                              ArraySize(IntArgbBmPrimitives));
}

jint PixelForIntArgbBm(SurfaceDataRasInfo *pRasInfo, jint rgb)
{
    return (rgb | ((rgb >> 31) << 24));
}

DEFINE_CONVERT_BLIT(IntArgbBm, IntArgb, 1IntArgb)
Esempio n. 3
0
                              SD_LOCK_LUT | SD_LOCK_INVGRAY),

    REGISTER_XPAR_CONVERT_BLIT(ByteIndexedBm, Index8Gray),
    REGISTER_XPAR_BLITBG(ByteIndexedBm, Index8Gray),

    REGISTER_XOR_BLIT(IntArgb, Index8Gray),
    REGISTER_ALPHA_MASKFILL(Index8Gray),
    REGISTER_ALPHA_MASKBLIT(IntArgb, Index8Gray),
    REGISTER_ALPHA_MASKBLIT(IntArgbPre, Index8Gray),
    REGISTER_ALPHA_MASKBLIT(IntRgb, Index8Gray),
    REGISTER_SRCOVER_MASKFILL(Index8Gray),
    REGISTER_SRCOVER_MASKBLIT(IntArgb, Index8Gray),
    REGISTER_SRCOVER_MASKBLIT(IntArgbPre, Index8Gray),
    REGISTER_SOLID_DRAWGLYPHLISTAA(Index8Gray),

    REGISTER_TRANSFORMHELPER_FUNCS(Index8Gray),
};

extern jboolean checkSameLut(jint *SrcReadLut, jint *DstReadLut,
                             SurfaceDataRasInfo *pSrcInfo,
                             SurfaceDataRasInfo *pDstInfo);

jboolean RegisterIndex8Gray(JNIEnv *env)
{
    return RegisterPrimitives(env, Index8GrayPrimitives,
                              ArraySize(Index8GrayPrimitives));
}

jint PixelForIndex8Gray(SurfaceDataRasInfo *pRasInfo, jint rgb)
{
    jint r, g, b, gray;
Esempio n. 4
0
                                NAME_CONVERT_BLIT(Index12Gray, IntArgb)),

    REGISTER_XOR_BLIT(IntArgb, IntBgr),
    REGISTER_SRC_MASKFILL(IntBgr),
    REGISTER_SRCOVER_MASKFILL(IntBgr),
    REGISTER_ALPHA_MASKFILL(IntBgr),
    REGISTER_SRCOVER_MASKBLIT(IntArgb, IntBgr),
    REGISTER_ALPHA_MASKBLIT(IntArgb, IntBgr),
    REGISTER_SRCOVER_MASKBLIT(IntArgbPre, IntBgr),
    REGISTER_ALPHA_MASKBLIT(IntArgbPre, IntBgr),
    REGISTER_ALPHA_MASKBLIT(IntRgb, IntBgr),
    REGISTER_ALPHA_MASKBLIT(IntBgr, IntBgr),
    REGISTER_SOLID_DRAWGLYPHLISTAA(IntBgr),
    REGISTER_SOLID_DRAWGLYPHLISTLCD(IntBgr),

    REGISTER_TRANSFORMHELPER_FUNCS(IntBgr),
};

jboolean RegisterIntBgr(JNIEnv *env)
{
    return RegisterPrimitives(env, IntBgrPrimitives,
                              ArraySize(IntBgrPrimitives));
}

jint PixelForIntBgr(SurfaceDataRasInfo *pRasInfo, jint rgb)
{
    return SwapIntDcmComponentsX123ToX321(rgb);
}

DEFINE_CONVERT_BLIT(IntBgr, IntArgb, 1IntRgb)