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

Go to the source code of this file.

Functions

SDL_SurfaceSDLTest_ImageBlit ()
 Returns the Blit test image as SDL_Surface. More...
 
SDL_SurfaceSDLTest_ImageBlitColor ()
 Returns the BlitColor test image as SDL_Surface. More...
 
SDL_SurfaceSDLTest_ImageBlitAlpha ()
 Returns the BlitAlpha test image as SDL_Surface. More...
 

Variables

static const SDLTest_SurfaceImage_t SDLTest_imageBlit
 
static const SDLTest_SurfaceImage_t SDLTest_imageBlitColor
 
static const SDLTest_SurfaceImage_t SDLTest_imageBlitAlpha
 

Function Documentation

◆ SDLTest_ImageBlit()

SDL_Surface* SDLTest_ImageBlit ( )

Returns the Blit test image as SDL_Surface.

Definition at line 541 of file SDL_test_imageBlit.c.

542 {
550  0xff000000, /* Red bit mask. */
551  0x00ff0000, /* Green bit mask. */
552  0x0000ff00, /* Blue bit mask. */
553  0x000000ff /* Alpha bit mask. */
554 #else
555  0x000000ff, /* Red bit mask. */
556  0x0000ff00, /* Green bit mask. */
557  0x00ff0000, /* Blue bit mask. */
558  0xff000000 /* Alpha bit mask. */
559 #endif
560  );
561  return surface;
562 }

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_imageBlit, and SDLTest_SurfaceImage_t::width.

Referenced by _surfaceSetUp(), render_testBlit(), and surface_testBlit().

◆ SDLTest_ImageBlitAlpha()

SDL_Surface* SDLTest_ImageBlitAlpha ( )

Returns the BlitAlpha test image as SDL_Surface.

Definition at line 1536 of file SDL_test_imageBlit.c.

1537 {
1545  0xff000000, /* Red bit mask. */
1546  0x00ff0000, /* Green bit mask. */
1547  0x0000ff00, /* Blue bit mask. */
1548  0x000000ff /* Alpha bit mask. */
1549 #else
1550  0x000000ff, /* Red bit mask. */
1551  0x0000ff00, /* Green bit mask. */
1552  0x00ff0000, /* Blue bit mask. */
1553  0xff000000 /* Alpha bit mask. */
1554 #endif
1555  );
1556  return surface;
1557 }

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_imageBlitAlpha, and SDLTest_SurfaceImage_t::width.

Referenced by render_testBlitAlpha(), and surface_testBlitAlphaMod().

◆ SDLTest_ImageBlitColor()

SDL_Surface* SDLTest_ImageBlitColor ( )

Returns the BlitColor test image as SDL_Surface.

Definition at line 1024 of file SDL_test_imageBlit.c.

1025 {
1033  0xff000000, /* Red bit mask. */
1034  0x00ff0000, /* Green bit mask. */
1035  0x0000ff00, /* Blue bit mask. */
1036  0x000000ff /* Alpha bit mask. */
1037 #else
1038  0x000000ff, /* Red bit mask. */
1039  0x0000ff00, /* Green bit mask. */
1040  0x00ff0000, /* Blue bit mask. */
1041  0xff000000 /* Alpha bit mask. */
1042 #endif
1043  );
1044  return surface;
1045 }

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_imageBlitColor, and SDLTest_SurfaceImage_t::width.

Referenced by render_testBlitColor(), and surface_testBlitColorMod().

Variable Documentation

◆ SDLTest_imageBlit

const SDLTest_SurfaceImage_t SDLTest_imageBlit
static

Definition at line 27 of file SDL_test_imageBlit.c.

Referenced by SDLTest_ImageBlit().

◆ SDLTest_imageBlitAlpha

const SDLTest_SurfaceImage_t SDLTest_imageBlitAlpha
static

Definition at line 1047 of file SDL_test_imageBlit.c.

Referenced by SDLTest_ImageBlitAlpha().

◆ SDLTest_imageBlitColor

const SDLTest_SurfaceImage_t SDLTest_imageBlitColor
static

Definition at line 564 of file SDL_test_imageBlit.c.

Referenced by SDLTest_ImageBlitColor().

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_SurfaceImage_t::pixel_data
const char * pixel_data
Definition: SDL_test_images.h:54
SDLTest_imageBlitAlpha
static const SDLTest_SurfaceImage_t SDLTest_imageBlitAlpha
Definition: SDL_test_imageBlit.c:1047
SDL_BIG_ENDIAN
#define SDL_BIG_ENDIAN
Definition: SDL_endian.h:38
SDL_CreateRGBSurfaceFrom
#define SDL_CreateRGBSurfaceFrom
Definition: SDL_dynapi_overrides.h:445
SDLTest_SurfaceImage_t::bytes_per_pixel
unsigned int bytes_per_pixel
Definition: SDL_test_images.h:53
SDLTest_imageBlitColor
static const SDLTest_SurfaceImage_t SDLTest_imageBlitColor
Definition: SDL_test_imageBlit.c:564
SDLTest_imageBlit
static const SDLTest_SurfaceImage_t SDLTest_imageBlit
Definition: SDL_test_imageBlit.c:27
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