SDL  2.0
SDL_test_imageBlitBlend.c File Reference
#include "SDL_config.h"
#include "SDL_test.h"
+ Include dependency graph for SDL_test_imageBlitBlend.c:

Go to the source code of this file.

Functions

SDL_SurfaceSDLTest_ImageBlitBlendAdd ()
 Returns the BlitBlendAdd test image as SDL_Surface. More...
 
SDL_SurfaceSDLTest_ImageBlitBlend ()
 Returns the BlitBlend test image as SDL_Surface. More...
 
SDL_SurfaceSDLTest_ImageBlitBlendMod ()
 Returns the BlitBlendMod test image as SDL_Surface. More...
 
SDL_SurfaceSDLTest_ImageBlitBlendNone ()
 Returns the BlitBlendNone test image as SDL_Surface. More...
 
SDL_SurfaceSDLTest_ImageBlitBlendAll ()
 Returns the BlitBlendAll test image as SDL_Surface. More...
 

Variables

static const SDLTest_SurfaceImage_t SDLTest_imageBlitBlendAdd
 
static const SDLTest_SurfaceImage_t SDLTest_imageBlitBlend
 
static const SDLTest_SurfaceImage_t SDLTest_imageBlitBlendMod
 
static const SDLTest_SurfaceImage_t SDLTest_imageBlitBlendNone
 
static const SDLTest_SurfaceImage_t SDLTest_imageBlitBlendAll
 

Function Documentation

◆ SDLTest_ImageBlitBlend()

SDL_Surface* SDLTest_ImageBlitBlend ( )

Returns the BlitBlend test image as SDL_Surface.

Definition at line 1111 of file SDL_test_imageBlitBlend.c.

1112 {
1120  0xff000000, /* Red bit mask. */
1121  0x00ff0000, /* Green bit mask. */
1122  0x0000ff00, /* Blue bit mask. */
1123  0x000000ff /* Alpha bit mask. */
1124 #else
1125  0x000000ff, /* Red bit mask. */
1126  0x0000ff00, /* Green bit mask. */
1127  0x00ff0000, /* Blue bit mask. */
1128  0xff000000 /* Alpha bit mask. */
1129 #endif
1130  );
1131  return surface;
1132 }

References SDLTest_SurfaceImage_t::bytes_per_pixel, endif, SDLTest_SurfaceImage_t::height, if, SDLTest_SurfaceImage_t::pixel_data, SDL_BIG_ENDIAN, SDL_BYTEORDER, SDL_CreateRGBSurfaceFrom, SDLTest_imageBlitBlend, and SDLTest_SurfaceImage_t::width.

Referenced by render_testBlitBlend(), and surface_testBlitBlendBlend().

◆ SDLTest_ImageBlitBlendAdd()

SDL_Surface* SDLTest_ImageBlitBlendAdd ( )

Returns the BlitBlendAdd test image as SDL_Surface.

Definition at line 581 of file SDL_test_imageBlitBlend.c.

582 {
590  0xff000000, /* Red bit mask. */
591  0x00ff0000, /* Green bit mask. */
592  0x0000ff00, /* Blue bit mask. */
593  0x000000ff /* Alpha bit mask. */
594 #else
595  0x000000ff, /* Red bit mask. */
596  0x0000ff00, /* Green bit mask. */
597  0x00ff0000, /* Blue bit mask. */
598  0xff000000 /* Alpha bit mask. */
599 #endif
600  );
601  return surface;
602 }

References SDLTest_SurfaceImage_t::bytes_per_pixel, endif, SDLTest_SurfaceImage_t::height, if, SDLTest_SurfaceImage_t::pixel_data, SDL_BIG_ENDIAN, SDL_BYTEORDER, SDL_CreateRGBSurfaceFrom, SDLTest_imageBlitBlendAdd, and SDLTest_SurfaceImage_t::width.

Referenced by render_testBlitBlend(), and surface_testBlitBlendAdd().

◆ SDLTest_ImageBlitBlendAll()

SDL_Surface* SDLTest_ImageBlitBlendAll ( )

Returns the BlitBlendAll test image as SDL_Surface.

Definition at line 2822 of file SDL_test_imageBlitBlend.c.

2823 {
2831  0xff000000, /* Red bit mask. */
2832  0x00ff0000, /* Green bit mask. */
2833  0x0000ff00, /* Blue bit mask. */
2834  0x000000ff /* Alpha bit mask. */
2835 #else
2836  0x000000ff, /* Red bit mask. */
2837  0x0000ff00, /* Green bit mask. */
2838  0x00ff0000, /* Blue bit mask. */
2839  0xff000000 /* Alpha bit mask. */
2840 #endif
2841  );
2842  return surface;
2843 }

References SDLTest_SurfaceImage_t::bytes_per_pixel, endif, SDLTest_SurfaceImage_t::height, if, SDLTest_SurfaceImage_t::pixel_data, SDL_BIG_ENDIAN, SDL_BYTEORDER, SDL_CreateRGBSurfaceFrom, SDLTest_imageBlitBlendAll, and SDLTest_SurfaceImage_t::width.

Referenced by render_testBlitBlend(), and surface_testBlitBlendLoop().

◆ SDLTest_ImageBlitBlendMod()

SDL_Surface* SDLTest_ImageBlitBlendMod ( )

Returns the BlitBlendMod test image as SDL_Surface.

Definition at line 1541 of file SDL_test_imageBlitBlend.c.

1542 {
1550  0xff000000, /* Red bit mask. */
1551  0x00ff0000, /* Green bit mask. */
1552  0x0000ff00, /* Blue bit mask. */
1553  0x000000ff /* Alpha bit mask. */
1554 #else
1555  0x000000ff, /* Red bit mask. */
1556  0x0000ff00, /* Green bit mask. */
1557  0x00ff0000, /* Blue bit mask. */
1558  0xff000000 /* Alpha bit mask. */
1559 #endif
1560  );
1561  return surface;
1562 }

References SDLTest_SurfaceImage_t::bytes_per_pixel, endif, SDLTest_SurfaceImage_t::height, if, SDLTest_SurfaceImage_t::pixel_data, SDL_BIG_ENDIAN, SDL_BYTEORDER, SDL_CreateRGBSurfaceFrom, SDLTest_imageBlitBlendMod, and SDLTest_SurfaceImage_t::width.

Referenced by render_testBlitBlend(), and surface_testBlitBlendMod().

◆ SDLTest_ImageBlitBlendNone()

SDL_Surface* SDLTest_ImageBlitBlendNone ( )

Returns the BlitBlendNone test image as SDL_Surface.

Definition at line 2354 of file SDL_test_imageBlitBlend.c.

2355 {
2363  0xff000000, /* Red bit mask. */
2364  0x00ff0000, /* Green bit mask. */
2365  0x0000ff00, /* Blue bit mask. */
2366  0x000000ff /* Alpha bit mask. */
2367 #else
2368  0x000000ff, /* Red bit mask. */
2369  0x0000ff00, /* Green bit mask. */
2370  0x00ff0000, /* Blue bit mask. */
2371  0xff000000 /* Alpha bit mask. */
2372 #endif
2373  );
2374  return surface;
2375 }

References SDLTest_SurfaceImage_t::bytes_per_pixel, endif, SDLTest_SurfaceImage_t::height, if, SDLTest_SurfaceImage_t::pixel_data, SDL_BIG_ENDIAN, SDL_BYTEORDER, SDL_CreateRGBSurfaceFrom, SDLTest_imageBlitBlendNone, and SDLTest_SurfaceImage_t::width.

Referenced by render_testBlitBlend(), and surface_testBlitBlendNone().

Variable Documentation

◆ SDLTest_imageBlitBlend

const SDLTest_SurfaceImage_t SDLTest_imageBlitBlend
static

Definition at line 604 of file SDL_test_imageBlitBlend.c.

Referenced by SDLTest_ImageBlitBlend().

◆ SDLTest_imageBlitBlendAdd

const SDLTest_SurfaceImage_t SDLTest_imageBlitBlendAdd
static

Definition at line 27 of file SDL_test_imageBlitBlend.c.

Referenced by SDLTest_ImageBlitBlendAdd().

◆ SDLTest_imageBlitBlendAll

const SDLTest_SurfaceImage_t SDLTest_imageBlitBlendAll
static

Definition at line 2377 of file SDL_test_imageBlitBlend.c.

Referenced by SDLTest_ImageBlitBlendAll().

◆ SDLTest_imageBlitBlendMod

const SDLTest_SurfaceImage_t SDLTest_imageBlitBlendMod
static

Definition at line 1134 of file SDL_test_imageBlitBlend.c.

Referenced by SDLTest_ImageBlitBlendMod().

◆ SDLTest_imageBlitBlendNone

const SDLTest_SurfaceImage_t SDLTest_imageBlitBlendNone
static

Definition at line 1564 of file SDL_test_imageBlitBlend.c.

Referenced by SDLTest_ImageBlitBlendNone().

SDLTest_imageBlitBlendAll
static const SDLTest_SurfaceImage_t SDLTest_imageBlitBlendAll
Definition: SDL_test_imageBlitBlend.c:2377
SDL_Surface
A collection of pixels used in software blitting.
Definition: SDL_surface.h:71
if
set set set set set set set macro pixldst1 abits if abits op else op endif endm macro pixldst2 abits if abits op else op endif endm macro pixldst4 abits if abits op else op endif endm macro pixldst0 abits op endm macro pixldst3 mem_operand op endm macro pixldst30 mem_operand op endm macro pixldst abits if abits elseif abits elseif abits elseif abits elseif abits pixldst0 abits else pixldst0 abits pixldst0 abits pixldst0 abits pixldst0 abits endif elseif abits else pixldst0 abits pixldst0 abits endif elseif abits else error unsupported bpp *numpix else pixst endif endm macro pixld1_s mem_operand if asr adds SRC_WIDTH_FIXED bpl add asl mov asr adds SRC_WIDTH_FIXED bpl add asl mov asr adds SRC_WIDTH_FIXED bpl add asl mov asr adds SRC_WIDTH_FIXED bpl add asl elseif asr adds SRC_WIDTH_FIXED bpl add asl mov asr adds SRC_WIDTH_FIXED bpl add asl else error unsupported endif endm macro pixld2_s mem_operand if mov asr add asl add asl mov asr sub UNIT_X add asl mov asr add asl add asl mov asr add UNIT_X add asl else pixld1_s mem_operand pixld1_s mem_operand endif endm macro pixld0_s mem_operand if asr adds SRC_WIDTH_FIXED bpl add asl elseif asr adds SRC_WIDTH_FIXED bpl add asl endif endm macro pixld_s_internal mem_operand if mem_operand pixld2_s mem_operand pixdeinterleave basereg elseif mem_operand elseif mem_operand elseif mem_operand elseif mem_operand pixld0_s mem_operand else pixld0_s mem_operand pixld0_s mem_operand pixld0_s mem_operand pixld0_s mem_operand endif elseif mem_operand else pixld0_s mem_operand pixld0_s mem_operand endif elseif mem_operand else error unsupported mem_operand if bpp mem_operand endif endm macro vuzp8 reg2 vuzp d d &reg2 endm macro vzip8 reg2 vzip d d &reg2 endm macro pixdeinterleave basereg basereg basereg basereg basereg endif endm macro pixinterleave basereg basereg basereg basereg basereg endif endm macro PF boost_increment endif if endif PF tst PF addne PF subne PF cmp ORIG_W if endif if endif if endif PF subge ORIG_W PF subges if endif if endif if endif endif endm macro cache_preload_simple endif if dst_r_bpp pld[DST_R, #(PREFETCH_DISTANCE_SIMPLE *dst_r_bpp/8)] endif if mask_bpp pld if[MASK, #(PREFETCH_DISTANCE_SIMPLE *mask_bpp/8)] endif endif endm macro fetch_mask_pixblock pixld mask_basereg pixblock_size MASK endm macro ensure_destination_ptr_alignment process_pixblock_tail_head if beq irp skip1(dst_w_bpp<=(lowbit *8)) &&((lowbit *8)<(pixblock_size *dst_w_bpp)) .if lowbit< 16 tst DST_R
Definition: pixman-arm-neon-asm.h:469
surface
EGLSurface surface
Definition: eglext.h:248
endif
set set set set set set set macro pixldst1 abits if abits op else op endif endm macro pixldst2 abits if abits op else op endif endm macro pixldst4 abits if abits op else op endif endm macro pixldst0 abits op endm macro pixldst3 mem_operand op endm macro pixldst30 mem_operand op endm macro pixldst abits if abits elseif abits elseif abits elseif abits elseif abits pixldst0 abits else pixldst0 abits pixldst0 abits pixldst0 abits pixldst0 abits endif elseif abits else pixldst0 abits pixldst0 abits endif elseif abits else error unsupported bpp *numpix else pixst endif endm macro pixld1_s mem_operand if asr adds SRC_WIDTH_FIXED bpl add asl mov asr adds SRC_WIDTH_FIXED bpl add asl mov asr adds SRC_WIDTH_FIXED bpl add asl mov asr adds SRC_WIDTH_FIXED bpl add asl elseif asr adds SRC_WIDTH_FIXED bpl add asl mov asr adds SRC_WIDTH_FIXED bpl add asl else error unsupported endif endm macro pixld2_s mem_operand if mov asr add asl add asl mov asr sub UNIT_X add asl mov asr add asl add asl mov asr add UNIT_X add asl else pixld1_s mem_operand pixld1_s mem_operand endif endm macro pixld0_s mem_operand if asr adds SRC_WIDTH_FIXED bpl add asl elseif asr adds SRC_WIDTH_FIXED bpl add asl endif endm macro pixld_s_internal mem_operand if mem_operand pixld2_s mem_operand pixdeinterleave basereg elseif mem_operand elseif mem_operand elseif mem_operand elseif mem_operand pixld0_s mem_operand else pixld0_s mem_operand pixld0_s mem_operand pixld0_s mem_operand pixld0_s mem_operand endif elseif mem_operand else pixld0_s mem_operand pixld0_s mem_operand endif elseif mem_operand else error unsupported mem_operand if bpp mem_operand endif endm macro vuzp8 reg2 vuzp d d &reg2 endm macro vzip8 reg2 vzip d d &reg2 endm macro pixdeinterleave basereg basereg basereg basereg basereg endif endm macro pixinterleave basereg basereg basereg basereg basereg endif endm macro PF boost_increment endif if endif PF tst PF addne PF subne PF cmp ORIG_W if endif if endif if endif PF subge ORIG_W PF subges if endif if endif if endif endif endm macro cache_preload_simple endif if dst_r_bpp pld[DST_R, #(PREFETCH_DISTANCE_SIMPLE *dst_r_bpp/8)] endif if mask_bpp pld endif[MASK, #(PREFETCH_DISTANCE_SIMPLE *mask_bpp/8)] endif endif endm macro fetch_mask_pixblock pixld mask_basereg pixblock_size MASK endm macro ensure_destination_ptr_alignment process_pixblock_tail_head if beq irp skip1 beq endif SRC MASK if dst_r_bpp DST_R else add endif PF add sub src_basereg pixdeinterleave mask_basereg pixdeinterleave dst_r_basereg process_pixblock_head pixblock_size cache_preload_simple process_pixblock_tail pixinterleave dst_w_basereg irp beq endif process_pixblock_tail_head tst beq irp if pixblock_size chunk_size tst beq pixld_src SRC pixld MASK if DST_R else pixld DST_R endif if
Definition: pixman-arm-neon-asm.h:549
SDLTest_imageBlitBlend
static const SDLTest_SurfaceImage_t SDLTest_imageBlitBlend
Definition: SDL_test_imageBlitBlend.c:604
SDLTest_SurfaceImage_t::pixel_data
const char * pixel_data
Definition: SDL_test_images.h:54
SDLTest_imageBlitBlendAdd
static const SDLTest_SurfaceImage_t SDLTest_imageBlitBlendAdd
Definition: SDL_test_imageBlitBlend.c:27
SDL_BIG_ENDIAN
#define SDL_BIG_ENDIAN
Definition: SDL_endian.h:38
SDL_CreateRGBSurfaceFrom
#define SDL_CreateRGBSurfaceFrom
Definition: SDL_dynapi_overrides.h:445
SDLTest_imageBlitBlendNone
static const SDLTest_SurfaceImage_t SDLTest_imageBlitBlendNone
Definition: SDL_test_imageBlitBlend.c:1564
SDLTest_SurfaceImage_t::bytes_per_pixel
unsigned int bytes_per_pixel
Definition: SDL_test_images.h:53
SDLTest_SurfaceImage_t::width
int width
Definition: SDL_test_images.h:51
SDL_BYTEORDER
#define SDL_BYTEORDER
Definition: SDL_config_pandora.h:37
SDLTest_SurfaceImage_t::height
int height
Definition: SDL_test_images.h:52
SDLTest_imageBlitBlendMod
static const SDLTest_SurfaceImage_t SDLTest_imageBlitBlendMod
Definition: SDL_test_imageBlitBlend.c:1134