Index: core/src/fxge/skia/fx_skia_blitter_new.h |
diff --git a/core/src/fxge/skia/fx_skia_blitter_new.h b/core/src/fxge/skia/fx_skia_blitter_new.h |
index a80e56b2aa05ecf18bc0394b0cc65d7ff410e114..8372ca33552abc7b0ef4d9eeee83092fce366655 100644 |
--- a/core/src/fxge/skia/fx_skia_blitter_new.h |
+++ b/core/src/fxge/skia/fx_skia_blitter_new.h |
@@ -25,12 +25,12 @@ protected: |
const CFX_ClipRgn* m_pClipRgn; |
const CFX_DIBitmap* m_pClipMask; |
- FX_LPBYTE m_pDestScan; |
- FX_LPBYTE m_pDestExtraAlphaScan; |
- FX_LPBYTE m_pOriScan; |
- FX_LPBYTE m_pClipScan; |
+ uint8_t* m_pDestScan; |
+ uint8_t* m_pDestExtraAlphaScan; |
+ uint8_t* m_pOriScan; |
+ uint8_t* m_pClipScan; |
- void (CFX_SkiaRenderer::*composite_span)(FX_LPBYTE,FX_LPBYTE,int,int,int,int,uint8_t,int,int,int,FX_LPBYTE,FX_LPBYTE); |
+ void (CFX_SkiaRenderer::*composite_span)(uint8_t*,uint8_t*,int,int,int,int,uint8_t,int,int,int,uint8_t*,uint8_t*); |
public: |
//-------------------------------------------------------------------- |
@@ -42,166 +42,166 @@ public: |
/*------------------------------------------------------------------------------------------------------*/ |
// A general alpha merge function (with clipping mask). Gray device. |
- void CompositeSpan1bpp_0(FX_LPBYTE dest_scan, FX_LPBYTE ori_scan,int Bpp, |
+ void CompositeSpan1bpp_0(uint8_t* dest_scan, uint8_t* ori_scan,int Bpp, |
int span_left, int span_len, int span_top, uint8_t cover_scan, |
- int clip_top, int clip_left, int clip_right, FX_LPBYTE clip_scan, |
- FX_LPBYTE dest_extra_alpha_scan); |
- void CompositeSpan1bpp_1(FX_LPBYTE dest_scan, FX_LPBYTE ori_scan,int Bpp, |
+ int clip_top, int clip_left, int clip_right, uint8_t* clip_scan, |
+ uint8_t* dest_extra_alpha_scan); |
+ void CompositeSpan1bpp_1(uint8_t* dest_scan, uint8_t* ori_scan,int Bpp, |
int span_left, int span_len, int span_top, uint8_t cover_scan, |
- int clip_top, int clip_left, int clip_right, FX_LPBYTE clip_scan, |
- FX_LPBYTE dest_extra_alpha_scan); |
- void CompositeSpan1bpp_4(FX_LPBYTE dest_scan, FX_LPBYTE ori_scan,int Bpp, |
+ int clip_top, int clip_left, int clip_right, uint8_t* clip_scan, |
+ uint8_t* dest_extra_alpha_scan); |
+ void CompositeSpan1bpp_4(uint8_t* dest_scan, uint8_t* ori_scan,int Bpp, |
int span_left, int span_len, int span_top, uint8_t cover_scan, |
- int clip_top, int clip_left, int clip_right, FX_LPBYTE clip_scan, |
- FX_LPBYTE dest_extra_alpha_scan); |
- void CompositeSpan1bpp_5(FX_LPBYTE dest_scan, FX_LPBYTE ori_scan,int Bpp, |
+ int clip_top, int clip_left, int clip_right, uint8_t* clip_scan, |
+ uint8_t* dest_extra_alpha_scan); |
+ void CompositeSpan1bpp_5(uint8_t* dest_scan, uint8_t* ori_scan,int Bpp, |
int span_left, int span_len, int span_top, uint8_t cover_scan, |
- int clip_top, int clip_left, int clip_right, FX_LPBYTE clip_scan, |
- FX_LPBYTE dest_extra_alpha_scan); |
- void CompositeSpan1bpp_8(FX_LPBYTE dest_scan, FX_LPBYTE ori_scan,int Bpp, |
+ int clip_top, int clip_left, int clip_right, uint8_t* clip_scan, |
+ uint8_t* dest_extra_alpha_scan); |
+ void CompositeSpan1bpp_8(uint8_t* dest_scan, uint8_t* ori_scan,int Bpp, |
int span_left, int span_len, int span_top, uint8_t cover_scan, |
- int clip_top, int clip_left, int clip_right, FX_LPBYTE clip_scan, |
- FX_LPBYTE dest_extra_alpha_scan); |
- void CompositeSpan1bpp_9(FX_LPBYTE dest_scan, FX_LPBYTE ori_scan,int Bpp, |
+ int clip_top, int clip_left, int clip_right, uint8_t* clip_scan, |
+ uint8_t* dest_extra_alpha_scan); |
+ void CompositeSpan1bpp_9(uint8_t* dest_scan, uint8_t* ori_scan,int Bpp, |
int span_left, int span_len, int span_top, uint8_t cover_scan, |
- int clip_top, int clip_left, int clip_right, FX_LPBYTE clip_scan, |
- FX_LPBYTE dest_extra_alpha_scan); |
- void CompositeSpan1bpp_12(FX_LPBYTE dest_scan, FX_LPBYTE ori_scan,int Bpp, |
+ int clip_top, int clip_left, int clip_right, uint8_t* clip_scan, |
+ uint8_t* dest_extra_alpha_scan); |
+ void CompositeSpan1bpp_12(uint8_t* dest_scan, uint8_t* ori_scan,int Bpp, |
int span_left, int span_len, int span_top, uint8_t cover_scan, |
- int clip_top, int clip_left, int clip_right, FX_LPBYTE clip_scan, |
- FX_LPBYTE dest_extra_alpha_scan); |
- void CompositeSpan1bpp_13(FX_LPBYTE dest_scan, FX_LPBYTE ori_scan,int Bpp, |
+ int clip_top, int clip_left, int clip_right, uint8_t* clip_scan, |
+ uint8_t* dest_extra_alpha_scan); |
+ void CompositeSpan1bpp_13(uint8_t* dest_scan, uint8_t* ori_scan,int Bpp, |
int span_left, int span_len, int span_top, uint8_t cover_scan, |
- int clip_top, int clip_left, int clip_right, FX_LPBYTE clip_scan, |
- FX_LPBYTE dest_extra_alpha_scan); |
+ int clip_top, int clip_left, int clip_right, uint8_t* clip_scan, |
+ uint8_t* dest_extra_alpha_scan); |
/*--------------------------------------------------------------------------------------------------------*/ |
// A general alpha merge function (with clipping mask). Gray device. |
- void CompositeSpanGray_2(FX_LPBYTE dest_scan, FX_LPBYTE ori_scan,int Bpp, |
+ void CompositeSpanGray_2(uint8_t* dest_scan, uint8_t* ori_scan,int Bpp, |
int span_left, int span_len, int span_top, uint8_t cover_scan, |
- int clip_top, int clip_left, int clip_right, FX_LPBYTE clip_scan, |
- FX_LPBYTE dest_extra_alpha_scan); |
+ int clip_top, int clip_left, int clip_right, uint8_t* clip_scan, |
+ uint8_t* dest_extra_alpha_scan); |
- void CompositeSpanGray_3(FX_LPBYTE dest_scan, FX_LPBYTE ori_scan,int Bpp, |
+ void CompositeSpanGray_3(uint8_t* dest_scan, uint8_t* ori_scan,int Bpp, |
int span_left, int span_len, int span_top, uint8_t cover_scan, |
- int clip_top, int clip_left, int clip_right, FX_LPBYTE clip_scan, |
- FX_LPBYTE dest_extra_alpha_scan); |
+ int clip_top, int clip_left, int clip_right, uint8_t* clip_scan, |
+ uint8_t* dest_extra_alpha_scan); |
- void CompositeSpanGray_6(FX_LPBYTE dest_scan, FX_LPBYTE ori_scan,int Bpp, |
+ void CompositeSpanGray_6(uint8_t* dest_scan, uint8_t* ori_scan,int Bpp, |
int span_left, int span_len, int span_top, uint8_t cover_scan, |
- int clip_top, int clip_left, int clip_right, FX_LPBYTE clip_scan, |
- FX_LPBYTE dest_extra_alpha_scan); |
+ int clip_top, int clip_left, int clip_right, uint8_t* clip_scan, |
+ uint8_t* dest_extra_alpha_scan); |
- void CompositeSpanGray_7(FX_LPBYTE dest_scan, FX_LPBYTE ori_scan,int Bpp, |
+ void CompositeSpanGray_7(uint8_t* dest_scan, uint8_t* ori_scan,int Bpp, |
int span_left, int span_len, int span_top, uint8_t cover_scan, |
- int clip_top, int clip_left, int clip_right, FX_LPBYTE clip_scan, |
- FX_LPBYTE dest_extra_alpha_scan); |
+ int clip_top, int clip_left, int clip_right, uint8_t* clip_scan, |
+ uint8_t* dest_extra_alpha_scan); |
- void CompositeSpanGray_10(FX_LPBYTE dest_scan, FX_LPBYTE ori_scan,int Bpp, |
+ void CompositeSpanGray_10(uint8_t* dest_scan, uint8_t* ori_scan,int Bpp, |
int span_left, int span_len, int span_top, uint8_t cover_scan, |
- int clip_top, int clip_left, int clip_right, FX_LPBYTE clip_scan, |
- FX_LPBYTE dest_extra_alpha_scan); |
+ int clip_top, int clip_left, int clip_right, uint8_t* clip_scan, |
+ uint8_t* dest_extra_alpha_scan); |
- void CompositeSpanGray_11(FX_LPBYTE dest_scan, FX_LPBYTE ori_scan,int Bpp, |
+ void CompositeSpanGray_11(uint8_t* dest_scan, uint8_t* ori_scan,int Bpp, |
int span_left, int span_len, int span_top, uint8_t cover_scan, |
- int clip_top, int clip_left, int clip_right, FX_LPBYTE clip_scan, |
- FX_LPBYTE dest_extra_alpha_scan); |
+ int clip_top, int clip_left, int clip_right, uint8_t* clip_scan, |
+ uint8_t* dest_extra_alpha_scan); |
- void CompositeSpanGray_14(FX_LPBYTE dest_scan, FX_LPBYTE ori_scan,int Bpp, |
+ void CompositeSpanGray_14(uint8_t* dest_scan, uint8_t* ori_scan,int Bpp, |
int span_left, int span_len, int span_top, uint8_t cover_scan, |
- int clip_top, int clip_left, int clip_right, FX_LPBYTE clip_scan, |
- FX_LPBYTE dest_extra_alpha_scan); |
+ int clip_top, int clip_left, int clip_right, uint8_t* clip_scan, |
+ uint8_t* dest_extra_alpha_scan); |
- void CompositeSpanGray_15(FX_LPBYTE dest_scan, FX_LPBYTE ori_scan,int Bpp, |
+ void CompositeSpanGray_15(uint8_t* dest_scan, uint8_t* ori_scan,int Bpp, |
int span_left, int span_len, int span_top, uint8_t cover_scan, |
- int clip_top, int clip_left, int clip_right, FX_LPBYTE clip_scan, |
- FX_LPBYTE dest_extra_alpha_scan); |
+ int clip_top, int clip_left, int clip_right, uint8_t* clip_scan, |
+ uint8_t* dest_extra_alpha_scan); |
/*--------------------------------------------------------------------------------------------------------*/ |
- void CompositeSpanARGB_2(FX_LPBYTE dest_scan, FX_LPBYTE ori_scan,int Bpp, |
+ void CompositeSpanARGB_2(uint8_t* dest_scan, uint8_t* ori_scan,int Bpp, |
int span_left, int span_len, int span_top, uint8_t cover_scan, |
- int clip_top, int clip_left, int clip_right, FX_LPBYTE clip_scan, |
- FX_LPBYTE dest_extra_alpha_scan); |
+ int clip_top, int clip_left, int clip_right, uint8_t* clip_scan, |
+ uint8_t* dest_extra_alpha_scan); |
- void CompositeSpanARGB_3(FX_LPBYTE dest_scan, FX_LPBYTE ori_scan,int Bpp, |
+ void CompositeSpanARGB_3(uint8_t* dest_scan, uint8_t* ori_scan,int Bpp, |
int span_left, int span_len, int span_top, uint8_t cover_scan, |
- int clip_top, int clip_left, int clip_right, FX_LPBYTE clip_scan, |
- FX_LPBYTE dest_extra_alpha_scan); |
+ int clip_top, int clip_left, int clip_right, uint8_t* clip_scan, |
+ uint8_t* dest_extra_alpha_scan); |
- void CompositeSpanARGB_6(FX_LPBYTE dest_scan, FX_LPBYTE ori_scan,int Bpp, |
+ void CompositeSpanARGB_6(uint8_t* dest_scan, uint8_t* ori_scan,int Bpp, |
int span_left, int span_len, int span_top, uint8_t cover_scan, |
- int clip_top, int clip_left, int clip_right, FX_LPBYTE clip_scan, |
- FX_LPBYTE dest_extra_alpha_scan); |
+ int clip_top, int clip_left, int clip_right, uint8_t* clip_scan, |
+ uint8_t* dest_extra_alpha_scan); |
- void CompositeSpanARGB_7(FX_LPBYTE dest_scan, FX_LPBYTE ori_scan,int Bpp, |
+ void CompositeSpanARGB_7(uint8_t* dest_scan, uint8_t* ori_scan,int Bpp, |
int span_left, int span_len, int span_top, uint8_t cover_scan, |
- int clip_top, int clip_left, int clip_right, FX_LPBYTE clip_scan, |
- FX_LPBYTE dest_extra_alpha_scan); |
+ int clip_top, int clip_left, int clip_right, uint8_t* clip_scan, |
+ uint8_t* dest_extra_alpha_scan); |
// ... |
/*--------------------------------------------------------------------------------------------------------*/ |
- void CompositeSpanRGB32_2(FX_LPBYTE dest_scan, FX_LPBYTE ori_scan,int Bpp, |
+ void CompositeSpanRGB32_2(uint8_t* dest_scan, uint8_t* ori_scan,int Bpp, |
int span_left, int span_len, int span_top, uint8_t cover_scan, |
- int clip_top, int clip_left, int clip_right, FX_LPBYTE clip_scan, |
- FX_LPBYTE dest_extra_alpha_scan); |
- void CompositeSpanRGB32_3(FX_LPBYTE dest_scan, FX_LPBYTE ori_scan,int Bpp, |
+ int clip_top, int clip_left, int clip_right, uint8_t* clip_scan, |
+ uint8_t* dest_extra_alpha_scan); |
+ void CompositeSpanRGB32_3(uint8_t* dest_scan, uint8_t* ori_scan,int Bpp, |
int span_left, int span_len, int span_top, uint8_t cover_scan, |
- int clip_top, int clip_left, int clip_right, FX_LPBYTE clip_scan, |
- FX_LPBYTE dest_extra_alpha_scan); |
- void CompositeSpanRGB32_6(FX_LPBYTE dest_scan, FX_LPBYTE ori_scan,int Bpp, |
+ int clip_top, int clip_left, int clip_right, uint8_t* clip_scan, |
+ uint8_t* dest_extra_alpha_scan); |
+ void CompositeSpanRGB32_6(uint8_t* dest_scan, uint8_t* ori_scan,int Bpp, |
int span_left, int span_len, int span_top, uint8_t cover_scan, |
- int clip_top, int clip_left, int clip_right, FX_LPBYTE clip_scan, |
- FX_LPBYTE dest_extra_alpha_scan); |
- void CompositeSpanRGB32_7(FX_LPBYTE dest_scan, FX_LPBYTE ori_scan,int Bpp, |
+ int clip_top, int clip_left, int clip_right, uint8_t* clip_scan, |
+ uint8_t* dest_extra_alpha_scan); |
+ void CompositeSpanRGB32_7(uint8_t* dest_scan, uint8_t* ori_scan,int Bpp, |
int span_left, int span_len, int span_top, uint8_t cover_scan, |
- int clip_top, int clip_left, int clip_right, FX_LPBYTE clip_scan, |
- FX_LPBYTE dest_extra_alpha_scan); |
+ int clip_top, int clip_left, int clip_right, uint8_t* clip_scan, |
+ uint8_t* dest_extra_alpha_scan); |
/*---------------------------------------------------------------------------------------------------------*/ |
- void CompositeSpanRGB24_2(FX_LPBYTE dest_scan, FX_LPBYTE ori_scan,int Bpp, |
+ void CompositeSpanRGB24_2(uint8_t* dest_scan, uint8_t* ori_scan,int Bpp, |
int span_left, int span_len, int span_top, uint8_t cover_scan, |
- int clip_top, int clip_left, int clip_right, FX_LPBYTE clip_scan, |
- FX_LPBYTE dest_extra_alpha_scan); |
- void CompositeSpanRGB24_3(FX_LPBYTE dest_scan, FX_LPBYTE ori_scan,int Bpp, |
+ int clip_top, int clip_left, int clip_right, uint8_t* clip_scan, |
+ uint8_t* dest_extra_alpha_scan); |
+ void CompositeSpanRGB24_3(uint8_t* dest_scan, uint8_t* ori_scan,int Bpp, |
int span_left, int span_len, int span_top, uint8_t cover_scan, |
- int clip_top, int clip_left, int clip_right, FX_LPBYTE clip_scan, |
- FX_LPBYTE dest_extra_alpha_scan); |
- void CompositeSpanRGB24_6(FX_LPBYTE dest_scan, FX_LPBYTE ori_scan,int Bpp, |
+ int clip_top, int clip_left, int clip_right, uint8_t* clip_scan, |
+ uint8_t* dest_extra_alpha_scan); |
+ void CompositeSpanRGB24_6(uint8_t* dest_scan, uint8_t* ori_scan,int Bpp, |
int span_left, int span_len, int span_top, uint8_t cover_scan, |
- int clip_top, int clip_left, int clip_right, FX_LPBYTE clip_scan, |
- FX_LPBYTE dest_extra_alpha_scan); |
- void CompositeSpanRGB24_7(FX_LPBYTE dest_scan, FX_LPBYTE ori_scan,int Bpp, |
+ int clip_top, int clip_left, int clip_right, uint8_t* clip_scan, |
+ uint8_t* dest_extra_alpha_scan); |
+ void CompositeSpanRGB24_7(uint8_t* dest_scan, uint8_t* ori_scan,int Bpp, |
int span_left, int span_len, int span_top, uint8_t cover_scan, |
- int clip_top, int clip_left, int clip_right, FX_LPBYTE clip_scan, |
- FX_LPBYTE dest_extra_alpha_scan); |
- void CompositeSpanRGB24_10(FX_LPBYTE dest_scan, FX_LPBYTE ori_scan,int Bpp, |
+ int clip_top, int clip_left, int clip_right, uint8_t* clip_scan, |
+ uint8_t* dest_extra_alpha_scan); |
+ void CompositeSpanRGB24_10(uint8_t* dest_scan, uint8_t* ori_scan,int Bpp, |
int span_left, int span_len, int span_top, uint8_t cover_scan, |
- int clip_top, int clip_left, int clip_right, FX_LPBYTE clip_scan, |
- FX_LPBYTE dest_extra_alpha_scan); |
- void CompositeSpanRGB24_11(FX_LPBYTE dest_scan, FX_LPBYTE ori_scan,int Bpp, |
+ int clip_top, int clip_left, int clip_right, uint8_t* clip_scan, |
+ uint8_t* dest_extra_alpha_scan); |
+ void CompositeSpanRGB24_11(uint8_t* dest_scan, uint8_t* ori_scan,int Bpp, |
int span_left, int span_len, int span_top, uint8_t cover_scan, |
- int clip_top, int clip_left, int clip_right, FX_LPBYTE clip_scan, |
- FX_LPBYTE dest_extra_alpha_scan); |
- void CompositeSpanRGB24_14(FX_LPBYTE dest_scan, FX_LPBYTE ori_scan,int Bpp, |
+ int clip_top, int clip_left, int clip_right, uint8_t* clip_scan, |
+ uint8_t* dest_extra_alpha_scan); |
+ void CompositeSpanRGB24_14(uint8_t* dest_scan, uint8_t* ori_scan,int Bpp, |
int span_left, int span_len, int span_top, uint8_t cover_scan, |
- int clip_top, int clip_left, int clip_right, FX_LPBYTE clip_scan, |
- FX_LPBYTE dest_extra_alpha_scan); |
- void CompositeSpanRGB24_15(FX_LPBYTE dest_scan, FX_LPBYTE ori_scan,int Bpp, |
+ int clip_top, int clip_left, int clip_right, uint8_t* clip_scan, |
+ uint8_t* dest_extra_alpha_scan); |
+ void CompositeSpanRGB24_15(uint8_t* dest_scan, uint8_t* ori_scan,int Bpp, |
int span_left, int span_len, int span_top, uint8_t cover_scan, |
- int clip_top, int clip_left, int clip_right, FX_LPBYTE clip_scan, |
- FX_LPBYTE dest_extra_alpha_scan); |
+ int clip_top, int clip_left, int clip_right, uint8_t* clip_scan, |
+ uint8_t* dest_extra_alpha_scan); |
/*----------------------------------------------------------------------------------------------------------*/ |
// A general alpha merge function (with clipping mask). Cmyka/Cmyk device. |
- void CompositeSpanCMYK(FX_LPBYTE dest_scan, FX_LPBYTE ori_scan,int Bpp, |
+ void CompositeSpanCMYK(uint8_t* dest_scan, uint8_t* ori_scan,int Bpp, |
int span_left, int span_len, int span_top, uint8_t cover_scan, |
- int clip_top, int clip_left, int clip_right, FX_LPBYTE clip_scan, |
- FX_LPBYTE dest_extra_alpha_scan); |
+ int clip_top, int clip_left, int clip_right, uint8_t* clip_scan, |
+ uint8_t* dest_extra_alpha_scan); |
//-------------------------------------------------------------------- |