zenilib: zenilib/jni/external/sdl/src/video/SDL_blit.h File Reference

zenilib 0.5.3.0

- Main Page
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Macros | Typedefs | Functions | Variables
SDL_blit.h File Reference
`#include "SDL_config.h"`
`#include "SDL_cpuinfo.h"`
`#include "SDL_endian.h"`
`#include "SDL_surface.h"`

Go to the source code of this file.

## Classes

struct | SDL_BlitFuncEntry
struct | SDL_BlitInfo
struct | SDL_BlitMap

## Macros

#define | ABGR8888_FROM_RGBA(Pixel, r, g, b, a)
#define | ALPHA_BLEND_RGB(sR, sG, sB, A, dR, dG, dB)
#define | ALPHA_BLEND_RGBA(sR, sG, sB, sA, dR, dG, dB, dA)
#define | ARGB2101010_FROM_RGBA(Pixel, r, g, b, a)
#define | ARGB8888_FROM_RGBA(Pixel, r, g, b, a)
#define | ASSEMBLE_RGB(buf, bpp, fmt, r, g, b)
#define | ASSEMBLE_RGBA(buf, bpp, fmt, r, g, b, a)
#define | BGRA8888_FROM_RGBA(Pixel, r, g, b, a)
#define | DECLARE_ALIGNED(t, v, a) t v
#define | DISEMBLE_RGB(buf, bpp, fmt, Pixel, r, g, b)
#define | DISEMBLE_RGBA(buf, bpp, fmt, Pixel, r, g, b, a)
#define | DUFFS_LOOP(pixel_copy_increment, width) DUFFS_LOOP8(pixel_copy_increment, width)
#define | DUFFS_LOOP4(pixel_copy_increment, width)
#define | DUFFS_LOOP8(pixel_copy_increment, width)
#define | DUFFS_LOOP_124(pixel_copy_increment1,pixel_copy_increment2,pixel_copy_increment4, width)
#define | PIXEL_FROM_RGB(Pixel, fmt, r, g, b)
#define | PIXEL_FROM_RGBA(Pixel, fmt, r, g, b, a)
#define | RETRIEVE_RGB_PIXEL(buf, bpp, Pixel)
#define | RGB555_FROM_RGB(Pixel, r, g, b)
#define | RGB565_FROM_RGB(Pixel, r, g, b)
#define | RGB888_FROM_RGB(Pixel, r, g, b)
#define | RGB_FROM_PIXEL(Pixel, fmt, r, g, b)
#define | RGB_FROM_RGB555(Pixel, r, g, b)
#define | RGB_FROM_RGB565(Pixel, r, g, b)
#define | RGB_FROM_RGB888(Pixel, r, g, b)
#define | RGBA8888_FROM_RGBA(Pixel, r, g, b, a)
#define | RGBA_FROM_8888(Pixel, fmt, r, g, b, a)
#define | RGBA_FROM_ABGR8888(Pixel, r, g, b, a)
#define | RGBA_FROM_ARGB2101010(Pixel, r, g, b, a)
#define | RGBA_FROM_ARGB8888(Pixel, r, g, b, a)
#define | RGBA_FROM_BGRA8888(Pixel, r, g, b, a)
#define | RGBA_FROM_PIXEL(Pixel, fmt, r, g, b, a)
#define | RGBA_FROM_RGBA8888(Pixel, r, g, b, a)
#define | SDL_COPY_ADD 0x00000020
#define | SDL_COPY_BLEND 0x00000010
#define | SDL_COPY_COLORKEY 0x00000100
#define | SDL_COPY_MOD 0x00000040
#define | SDL_COPY_MODULATE_ALPHA 0x00000002
#define | SDL_COPY_MODULATE_COLOR 0x00000001
#define | SDL_COPY_NEAREST 0x00000200
#define | SDL_COPY_RLE_ALPHAKEY 0x00004000
#define | SDL_COPY_RLE_COLORKEY 0x00002000
#define | SDL_COPY_RLE_DESIRED 0x00001000
#define | SDL_COPY_RLE_MASK (SDL_COPY_RLE_DESIRED|SDL_COPY_RLE_COLORKEY|SDL_COPY_RLE_ALPHAKEY)
#define | SDL_CPU_3DNOW 0x00000002
#define | SDL_CPU_ALTIVEC_NOPREFETCH 0x00000020
#define | SDL_CPU_ALTIVEC_PREFETCH 0x00000010
#define | SDL_CPU_ANY 0x00000000
#define | SDL_CPU_MMX 0x00000001
#define | SDL_CPU_SSE 0x00000004
#define | SDL_CPU_SSE2 0x00000008
#define | USE_DUFFS_LOOP

## Typedefs

typedef struct SDL_BlitMap | SDL_BlitMap

## Functions

int | SDL_CalculateBlit (SDL_Surface *surface)
SDL_BlitFunc | SDL_CalculateBlit0 (SDL_Surface *surface)
SDL_BlitFunc | SDL_CalculateBlit1 (SDL_Surface *surface)
SDL_BlitFunc | SDL_CalculateBlitA (SDL_Surface *surface)
SDL_BlitFunc | SDL_CalculateBlitN (SDL_Surface *surface)
typedef | void (SDLCALL *SDL_BlitFunc)(SDL_BlitInfo *info)

## Variables

Uint8 * | SDL_expand_byte [9]

## Macro Definition Documentation

#define ABGR8888_FROM_RGBA | ( |  | Pixel,
|  |  | r,
|  |  | g,
|  |  | b,
|  |  | a
| ) |  |

Value:
{ \
Pixel = (a<<24)|(b<<16)|(g<<8)|r; \
}
g
GLboolean GLboolean g
Definition: glew.h:8736
a
GLboolean GLboolean GLboolean GLboolean a
Definition: glew.h:8736
r
GLdouble GLdouble GLdouble r
Definition: glew.h:1392
b
GLdouble GLdouble GLdouble b
Definition: glew.h:8383

Definition at line 244 of file SDL_blit.h.

#define ALPHA_BLEND_RGB | ( |  | sR,
|  |  | sG,
|  |  | sB,
|  |  | A,
|  |  | dR,
|  |  | dG,
|  |  | dB
| ) |  |

Value:
do { \
dR = ((((unsigned)(sR-dR)*(unsigned)A)/255)+dR); \
dG = ((((unsigned)(sG-dG)*(unsigned)A)/255)+dG); \
dB = ((((unsigned)(sB-dB)*(unsigned)A)/255)+dB); \
} while(0)

Definition at line 444 of file SDL_blit.h.

Referenced by BlitNto1PixelAlpha(), BlitNto1SurfaceAlpha(), and BlitNto1SurfaceAlphaKey().

#define ALPHA_BLEND_RGBA | ( |  | sR,
|  |  | sG,
|  |  | sB,
|  |  | sA,
|  |  | dR,
|  |  | dG,
|  |  | dB,
|  |  | dA
| ) |  |

Value:
do { \
dR = ((((unsigned)(sR-dR)*(unsigned)sA)/255)+dR); \
dG = ((((unsigned)(sG-dG)*(unsigned)sA)/255)+dG); \
dB = ((((unsigned)(sB-dB)*(unsigned)sA)/255)+dB); \
dA = ((unsigned)sA+(unsigned)dA-((unsigned)sA*dA)/255); \
} while(0)

Definition at line 453 of file SDL_blit.h.

Referenced by Blit1toNAlpha(), Blit1toNAlphaKey(), BlitBtoNAlpha(), BlitBtoNAlphaKey(), BlitNtoNPixelAlpha(), BlitNtoNSurfaceAlpha(), and BlitNtoNSurfaceAlphaKey().

#define ARGB2101010_FROM_RGBA | ( |  | Pixel,
|  |  | r,
|  |  | g,
|  |  | b,
|  |  | a
| ) |  |

Value:
{ \
r = r ? ((r << 2) | 0x3) : 0; \
g = g ? ((g << 2) | 0x3) : 0; \
b = b ? ((b << 2) | 0x3) : 0; \
a = (a * 3) / 255; \
Pixel = (a<<30)|(r<<20)|(g<<10)|b; \
}
g
GLboolean GLboolean g
Definition: glew.h:8736
a
GLboolean GLboolean GLboolean GLboolean a
Definition: glew.h:8736
r
GLdouble GLdouble GLdouble r
Definition: glew.h:1392
b
GLdouble GLdouble GLdouble b
Definition: glew.h:8383

Definition at line 252 of file SDL_blit.h.

Referenced by BlitNto2101010().

#define ARGB8888_FROM_RGBA | ( |  | Pixel,
|  |  | r,
|  |  | g,
|  |  | b,
|  |  | a
| ) |  |

Value:
{ \
Pixel = (a<<24)|(r<<16)|(g<<8)|b; \
}
g
GLboolean GLboolean g
Definition: glew.h:8736
a
GLboolean GLboolean GLboolean GLboolean a
Definition: glew.h:8736
r
GLdouble GLdouble GLdouble r
Definition: glew.h:1392
b
GLdouble GLdouble GLdouble b
Definition: glew.h:8383

Definition at line 236 of file SDL_blit.h.

#define ASSEMBLE_RGB | ( |  | buf,
|  |  | bpp,
|  |  | fmt,
|  |  | r,
|  |  | g,
|  |  | b
| ) |  |

Definition at line 260 of file SDL_blit.h.

Referenced by SDL_Blit_Slow().

#define ASSEMBLE_RGBA | ( |  | buf,
|  |  | bpp,
|  |  | fmt,
|  |  | r,
|  |  | g,
|  |  | b,
|  |  | a
| ) |  |

Definition at line 401 of file SDL_blit.h.

Referenced by Blit1toNAlpha(), Blit1toNAlphaKey(), Blit2101010toN(), BlitBtoNAlpha(), BlitBtoNAlphaKey(), BlitNtoN(), BlitNtoNCopyAlpha(), BlitNtoNKey(), BlitNtoNKeyCopyAlpha(), BlitNtoNPixelAlpha(), BlitNtoNSurfaceAlpha(), BlitNtoNSurfaceAlphaKey(), Map1toN(), and SDL_Blit_Slow().

#define BGRA8888_FROM_RGBA | ( |  | Pixel,
|  |  | r,
|  |  | g,
|  |  | b,
|  |  | a
| ) |  |

Value:
{ \
Pixel = (b<<24)|(g<<16)|(r<<8)|a; \
}
g
GLboolean GLboolean g
Definition: glew.h:8736
a
GLboolean GLboolean GLboolean GLboolean a
Definition: glew.h:8736
r
GLdouble GLdouble GLdouble r
Definition: glew.h:1392
b
GLdouble GLdouble GLdouble b
Definition: glew.h:8383

Definition at line 248 of file SDL_blit.h.

#define DECLARE_ALIGNED | ( |  | t,
|  |  | v,
|  |  | a
| ) |  | t v

Definition at line 117 of file SDL_blit.h.

#define DISEMBLE_RGB | ( |  | buf,
|  |  | bpp,
|  |  | fmt,
|  |  | Pixel,
|  |  | r,
|  |  | g,
|  |  | b
| ) |  |

Definition at line 176 of file SDL_blit.h.

Referenced by BlitNto1(), BlitNto1Key(), BlitNto1SurfaceAlpha(), BlitNto1SurfaceAlphaKey(), BlitNtoN(), BlitNtoNSurfaceAlpha(), and SDL_Blit_Slow().

#define DISEMBLE_RGBA | ( |  | buf,
|  |  | bpp,
|  |  | fmt,
|  |  | Pixel,
|  |  | r,
|  |  | g,
|  |  | b,
|  |  | a
| ) |  |

Definition at line 352 of file SDL_blit.h.

Referenced by Blit1toNAlpha(), Blit1toNAlphaKey(), BlitBtoNAlpha(), BlitBtoNAlphaKey(), BlitNto1PixelAlpha(), BlitNto2101010(), BlitNtoNCopyAlpha(), BlitNtoNKeyCopyAlpha(), BlitNtoNPixelAlpha(), BlitNtoNSurfaceAlpha(), BlitNtoNSurfaceAlphaKey(), and SDL_Blit_Slow().

#define DUFFS_LOOP | ( |  | pixel_copy_increment,
|  |  | width
| ) |  | DUFFS_LOOP8(pixel_copy_increment, width)

Definition at line 499 of file SDL_blit.h.

Referenced by Blit1to1(), Blit1to1Key(), Blit1to2(), Blit1to2Key(), Blit1to3(), Blit1to3Key(), Blit1to4(), Blit1to4Key(), Blit1toNAlphaKey(), Blit2101010toN(), Blit2to2Key(), Blit4to4MaskAlpha(), Blit_RGB101010_index8(), Blit_RGB565_32(), Blit_RGB888_index8(), Blit_RGB888_RGB555(), Blit_RGB888_RGB565(), BlitNto1(), BlitNto1Key(), BlitNto1SurfaceAlphaKey(), BlitNto2101010(), BlitNtoN(), BlitNtoNKey(), and BlitNtoNKeyCopyAlpha().

#define DUFFS_LOOP4 | ( |  | pixel_copy_increment,
|  |  | width
| ) |  |

Value:
{ int n = (width+3)/4; \
switch (width & 3) { \
case 0: do { pixel_copy_increment; \
case 3: pixel_copy_increment; \
case 2: pixel_copy_increment; \
case 1: pixel_copy_increment; \
} while (--n > 0); \
} \
}
n
GLclampd n
Definition: glew.h:7287
switch
switch(yytype)
Definition: glslang_tab.cpp:1918
width
EGLSurface EGLint EGLint EGLint width
Definition: eglext.h:293

Definition at line 487 of file SDL_blit.h.

Referenced by Blit1toNAlpha(), Blit555to555SurfaceAlpha(), Blit565to565SurfaceAlpha(), BlitARGBto555PixelAlpha(), BlitARGBto565PixelAlpha(), BlitNto1PixelAlpha(), BlitNto1SurfaceAlpha(), BlitNtoNPixelAlpha(), BlitNtoNSurfaceAlpha(), BlitNtoNSurfaceAlphaKey(), BlitRGBtoRGBPixelAlpha(), BlitRGBtoRGBSurfaceAlpha(), and BlitRGBtoRGBSurfaceAlpha128().

#define DUFFS_LOOP8 | ( |  | pixel_copy_increment,
|  |  | width
| ) |  |

Value:
{ int n = (width+7)/8; \
switch (width & 7) { \
case 0: do { pixel_copy_increment; \
case 7: pixel_copy_increment; \
case 6: pixel_copy_increment; \
case 5: pixel_copy_increment; \
case 4: pixel_copy_increment; \
case 3: pixel_copy_increment; \
case 2: pixel_copy_increment; \
case 1: pixel_copy_increment; \
} while ( --n > 0 ); \
} \
}
n
GLclampd n
Definition: glew.h:7287
switch
switch(yytype)
Definition: glslang_tab.cpp:1918
width
EGLSurface EGLint EGLint EGLint width
Definition: eglext.h:293

Definition at line 471 of file SDL_blit.h.

#define DUFFS_LOOP_124 | ( |  | pixel_copy_increment1,
|  |  | pixel_copy_increment2,
|  |  | pixel_copy_increment4,
|  |  | width
| ) |  |

Value:
{ int n = width; \
if (n & 1) { \
pixel_copy_increment1; n -= 1; \
} \
if (n & 2) { \
pixel_copy_increment2; n -= 2; \
} \
if (n & 4) { \
pixel_copy_increment4; n -= 4; \
} \
if (n) { \
n /= 8; \
do { \
pixel_copy_increment4; \
pixel_copy_increment4; \
} while (--n > 0); \
} \
}
n
GLclampd n
Definition: glew.h:7287
if
if(!yyg->yy_init)
Definition: glslang_lex.cpp:1037
width
EGLSurface EGLint EGLint EGLint width
Definition: eglext.h:293

Definition at line 503 of file SDL_blit.h.

#define PIXEL_FROM_RGB | ( |  | Pixel,
|  |  | fmt,
|  |  | r,
|  |  | g,
|  |  | b
| ) |  |

Value:
{ \
Pixel = ((r>>fmt->Rloss)<<fmt->Rshift)| \
((g>>fmt->Gloss)<<fmt->Gshift)| \
((b>>fmt->Bloss)<<fmt->Bshift)| \
fmt->Amask; \
}
g
GLboolean GLboolean g
Definition: glew.h:8736
r
GLdouble GLdouble GLdouble r
Definition: glew.h:1392
b
GLdouble GLdouble GLdouble b
Definition: glew.h:8383

Definition at line 217 of file SDL_blit.h.

Referenced by copy_opaque_16(), copy_transl_555(), and copy_transl_565().

#define PIXEL_FROM_RGBA | ( |  | Pixel,
|  |  | fmt,
|  |  | r,
|  |  | g,
|  |  | b,
|  |  | a
| ) |  |

Value:
{ \
Pixel = ((r>>fmt->Rloss)<<fmt->Rshift)| \
((g>>fmt->Gloss)<<fmt->Gshift)| \
((b>>fmt->Bloss)<<fmt->Bshift)| \
((a>>fmt->Aloss)<<fmt->Ashift); \
}
g
GLboolean GLboolean g
Definition: glew.h:8736
a
GLboolean GLboolean GLboolean GLboolean a
Definition: glew.h:8736
r
GLdouble GLdouble GLdouble r
Definition: glew.h:1392
b
GLdouble GLdouble GLdouble b
Definition: glew.h:8383

Definition at line 394 of file SDL_blit.h.

Referenced by copy_32(), uncopy_32(), uncopy_opaque_16(), and uncopy_transl_16().

#define RETRIEVE_RGB_PIXEL | ( |  | buf,
|  |  | bpp,
|  |  | Pixel
| ) |  |

Value:
do { \
switch (bpp) { \
case 1: \
Pixel = *((Uint8 *)(buf)); \
break; \
\
case 2: \
Pixel = *((Uint16 *)(buf)); \
break; \
\
case 3: { \
Uint8 *B = (Uint8 *)(buf); \
if (SDL_BYTEORDER == SDL_LIL_ENDIAN) { \
Pixel = B[0] + (B[1] << 8) + (B[2] << 16); \
} else { \
Pixel = (B[0] << 16) + (B[1] << 8) + B[2]; \
} \
} \
break; \
\
case 4: \
Pixel = *((Uint32 *)(buf)); \
break; \
\
default: \
Pixel = 0; /* stop gcc complaints */ \
break; \
} \
} while (0)
SDL_LIL_ENDIAN
#define SDL_LIL_ENDIAN
Definition: SDL_endian.h:37
switch
switch(yytype)
Definition: glslang_tab.cpp:1918
if
if(!yyg->yy_init)
Definition: glslang_lex.cpp:1037
Uint32
uint32_t Uint32
An unsigned 32-bit integer type.
Definition: SDL_stdinc.h:145
buf
GLenum GLuint GLsizei const GLchar * buf
Definition: glew.h:2539
Uint8
uint8_t Uint8
An unsigned 8-bit integer type.
Definition: SDL_stdinc.h:129
Uint16
uint16_t Uint16
An unsigned 16-bit integer type.
Definition: SDL_stdinc.h:137
SDL_BYTEORDER
#define SDL_BYTEORDER
Definition: SDL_config_pandora.h:36

Definition at line 145 of file SDL_blit.h.

Referenced by BlitNtoNKey(), and BlitNtoNSurfaceAlphaKey().

#define RGB555_FROM_RGB | ( |  | Pixel,
|  |  | r,
|  |  | g,
|  |  | b
| ) |  |

Value:
{ \
Pixel = ((r>>3)<<10)|((g>>3)<<5)|(b>>3); \
}
g
GLboolean GLboolean g
Definition: glew.h:8736
r
GLdouble GLdouble GLdouble r
Definition: glew.h:1392
b
GLdouble GLdouble GLdouble b
Definition: glew.h:8383

Definition at line 228 of file SDL_blit.h.

#define RGB565_FROM_RGB | ( |  | Pixel,
|  |  | r,
|  |  | g,
|  |  | b
| ) |  |

Value:
{ \
Pixel = ((r>>3)<<11)|((g>>2)<<5)|(b>>3); \
}
g
GLboolean GLboolean g
Definition: glew.h:8736
r
GLdouble GLdouble GLdouble r
Definition: glew.h:1392
b
GLdouble GLdouble GLdouble b
Definition: glew.h:8383

Definition at line 224 of file SDL_blit.h.

#define RGB888_FROM_RGB | ( |  | Pixel,
|  |  | r,
|  |  | g,
|  |  | b
| ) |  |

Value:
{ \
Pixel = (r<<16)|(g<<8)|b; \
}
g
GLboolean GLboolean g
Definition: glew.h:8736
r
GLdouble GLdouble GLdouble r
Definition: glew.h:1392
b
GLdouble GLdouble GLdouble b
Definition: glew.h:8383

Definition at line 232 of file SDL_blit.h.

#define RGB_FROM_PIXEL | ( |  | Pixel,
|  |  | fmt,
|  |  | r,
|  |  | g,
|  |  | b
| ) |  |

Value:
{ \
r = SDL_expand_byte[fmt->Rloss][((Pixel&fmt->Rmask)>>fmt->Rshift)]; \
g = SDL_expand_byte[fmt->Gloss][((Pixel&fmt->Gmask)>>fmt->Gshift)]; \
b = SDL_expand_byte[fmt->Bloss][((Pixel&fmt->Bmask)>>fmt->Bshift)]; \
}
g
GLboolean GLboolean g
Definition: glew.h:8736
SDL_expand_byte
Uint8 * SDL_expand_byte[9]
Definition: SDL_pixels.c:71
r
GLdouble GLdouble GLdouble r
Definition: glew.h:1392
b
GLdouble GLdouble GLdouble b
Definition: glew.h:8383

Definition at line 121 of file SDL_blit.h.

Referenced by BlitNtoNKey(), BlitNtoNSurfaceAlphaKey(), copy_opaque_16(), uncopy_32(), uncopy_opaque_16(), and uncopy_transl_16().

#define RGB_FROM_RGB555 | ( |  | Pixel,
|  |  | r,
|  |  | g,
|  |  | b
| ) |  |

Value:
{ \
r = SDL_expand_byte[3][((Pixel&0x7C00)>>10)]; \
g = SDL_expand_byte[3][((Pixel&0x03E0)>>5)]; \
b = SDL_expand_byte[3][(Pixel&0x001F)]; \
}
g
GLboolean GLboolean g
Definition: glew.h:8736
SDL_expand_byte
Uint8 * SDL_expand_byte[9]
Definition: SDL_pixels.c:71
r
GLdouble GLdouble GLdouble r
Definition: glew.h:1392
b
GLdouble GLdouble GLdouble b
Definition: glew.h:8383

Definition at line 133 of file SDL_blit.h.

#define RGB_FROM_RGB565 | ( |  | Pixel,
|  |  | r,
|  |  | g,
|  |  | b
| ) |  |

Value:
{ \
r = SDL_expand_byte[3][((Pixel&0xF800)>>11)]; \
g = SDL_expand_byte[2][((Pixel&0x07E0)>>5)]; \
b = SDL_expand_byte[3][(Pixel&0x001F)]; \
}
g
GLboolean GLboolean g
Definition: glew.h:8736
SDL_expand_byte
Uint8 * SDL_expand_byte[9]
Definition: SDL_pixels.c:71
r
GLdouble GLdouble GLdouble r
Definition: glew.h:1392
b
GLdouble GLdouble GLdouble b
Definition: glew.h:8383

Definition at line 127 of file SDL_blit.h.

#define RGB_FROM_RGB888 | ( |  | Pixel,
|  |  | r,
|  |  | g,
|  |  | b
| ) |  |

Value:
{ \
r = ((Pixel&0xFF0000)>>16); \
g = ((Pixel&0xFF00)>>8); \
b = (Pixel&0xFF); \
}
g
GLboolean GLboolean g
Definition: glew.h:8736
r
GLdouble GLdouble GLdouble r
Definition: glew.h:1392
b
GLdouble GLdouble GLdouble b
Definition: glew.h:8383

Definition at line 139 of file SDL_blit.h.

#define RGBA8888_FROM_RGBA | ( |  | Pixel,
|  |  | r,
|  |  | g,
|  |  | b,
|  |  | a
| ) |  |

Value:
{ \
Pixel = (r<<24)|(g<<16)|(b<<8)|a; \
}
g
GLboolean GLboolean g
Definition: glew.h:8736
a
GLboolean GLboolean GLboolean GLboolean a
Definition: glew.h:8736
r
GLdouble GLdouble GLdouble r
Definition: glew.h:1392
b
GLdouble GLdouble GLdouble b
Definition: glew.h:8383

Definition at line 240 of file SDL_blit.h.

#define RGBA_FROM_8888 | ( |  | Pixel,
|  |  | fmt,
|  |  | r,
|  |  | g,
|  |  | b,
|  |  | a
| ) |  |

Value:
{ \
r = (Pixel&fmt->Rmask)>>fmt->Rshift; \
g = (Pixel&fmt->Gmask)>>fmt->Gshift; \
b = (Pixel&fmt->Bmask)>>fmt->Bshift; \
a = (Pixel&fmt->Amask)>>fmt->Ashift; \
}
g
GLboolean GLboolean g
Definition: glew.h:8736
a
GLboolean GLboolean GLboolean GLboolean a
Definition: glew.h:8736
r
GLdouble GLdouble GLdouble r
Definition: glew.h:1392
b
GLdouble GLdouble GLdouble b
Definition: glew.h:8383

Definition at line 310 of file SDL_blit.h.

Referenced by copy_32(), copy_transl_555(), and copy_transl_565().

#define RGBA_FROM_ABGR8888 | ( |  | Pixel,
|  |  | r,
|  |  | g,
|  |  | b,
|  |  | a
| ) |  |

Value:
{ \
r = (Pixel&0xFF); \
g = ((Pixel>>8)&0xFF); \
b = ((Pixel>>16)&0xFF); \
a = (Pixel>>24); \
}
g
GLboolean GLboolean g
Definition: glew.h:8736
a
GLboolean GLboolean GLboolean GLboolean a
Definition: glew.h:8736
r
GLdouble GLdouble GLdouble r
Definition: glew.h:1392
b
GLdouble GLdouble GLdouble b
Definition: glew.h:8383

Definition at line 331 of file SDL_blit.h.

#define RGBA_FROM_ARGB2101010 | ( |  | Pixel,
|  |  | r,
|  |  | g,
|  |  | b,
|  |  | a
| ) |  |

Value:
{ \
r = ((Pixel>>22)&0xFF); \
g = ((Pixel>>12)&0xFF); \
b = ((Pixel>>2)&0xFF); \
a = SDL_expand_byte[6][(Pixel>>30)]; \
}
g
GLboolean GLboolean g
Definition: glew.h:8736
a
GLboolean GLboolean GLboolean GLboolean a
Definition: glew.h:8736
SDL_expand_byte
Uint8 * SDL_expand_byte[9]
Definition: SDL_pixels.c:71
r
GLdouble GLdouble GLdouble r
Definition: glew.h:1392
b
GLdouble GLdouble GLdouble b
Definition: glew.h:8383

Definition at line 345 of file SDL_blit.h.

Referenced by Blit2101010toN().

#define RGBA_FROM_ARGB8888 | ( |  | Pixel,
|  |  | r,
|  |  | g,
|  |  | b,
|  |  | a
| ) |  |

Value:
{ \
r = ((Pixel>>16)&0xFF); \
g = ((Pixel>>8)&0xFF); \
b = (Pixel&0xFF); \
a = (Pixel>>24); \
}
g
GLboolean GLboolean g
Definition: glew.h:8736
a
GLboolean GLboolean GLboolean GLboolean a
Definition: glew.h:8736
r
GLdouble GLdouble GLdouble r
Definition: glew.h:1392
b
GLdouble GLdouble GLdouble b
Definition: glew.h:8383

Definition at line 324 of file SDL_blit.h.

#define RGBA_FROM_BGRA8888 | ( |  | Pixel,
|  |  | r,
|  |  | g,
|  |  | b,
|  |  | a
| ) |  |

Value:
{ \
r = ((Pixel>>8)&0xFF); \
g = ((Pixel>>16)&0xFF); \
b = (Pixel>>24); \
a = (Pixel&0xFF); \
}
g
GLboolean GLboolean g
Definition: glew.h:8736
a
GLboolean GLboolean GLboolean GLboolean a
Definition: glew.h:8736
r
GLdouble GLdouble GLdouble r
Definition: glew.h:1392
b
GLdouble GLdouble GLdouble b
Definition: glew.h:8383

Definition at line 338 of file SDL_blit.h.

#define RGBA_FROM_PIXEL | ( |  | Pixel,
|  |  | fmt,
|  |  | r,
|  |  | g,
|  |  | b,
|  |  | a
| ) |  |

Value:
{ \
r = SDL_expand_byte[fmt->Rloss][((Pixel&fmt->Rmask)>>fmt->Rshift)]; \
g = SDL_expand_byte[fmt->Gloss][((Pixel&fmt->Gmask)>>fmt->Gshift)]; \
b = SDL_expand_byte[fmt->Bloss][((Pixel&fmt->Bmask)>>fmt->Bshift)]; \
a = SDL_expand_byte[fmt->Aloss][((Pixel&fmt->Amask)>>fmt->Ashift)]; \
}
g
GLboolean GLboolean g
Definition: glew.h:8736
a
GLboolean GLboolean GLboolean GLboolean a
Definition: glew.h:8736
SDL_expand_byte
Uint8 * SDL_expand_byte[9]
Definition: SDL_pixels.c:71
r
GLdouble GLdouble GLdouble r
Definition: glew.h:1392
b
GLdouble GLdouble GLdouble b
Definition: glew.h:8383

Definition at line 303 of file SDL_blit.h.

#define RGBA_FROM_RGBA8888 | ( |  | Pixel,
|  |  | r,
|  |  | g,
|  |  | b,
|  |  | a
| ) |  |

Value:
{ \
r = (Pixel>>24); \
g = ((Pixel>>16)&0xFF); \
b = ((Pixel>>8)&0xFF); \
a = (Pixel&0xFF); \
}
g
GLboolean GLboolean g
Definition: glew.h:8736
a
GLboolean GLboolean GLboolean GLboolean a
Definition: glew.h:8736
r
GLdouble GLdouble GLdouble r
Definition: glew.h:1392
b
GLdouble GLdouble GLdouble b
Definition: glew.h:8383

Definition at line 317 of file SDL_blit.h.

#define SDL_COPY_ADD 0x00000020

Definition at line 37 of file SDL_blit.h.

Referenced by SDL_Blit_ABGR8888_ARGB8888_Blend(), SDL_Blit_ABGR8888_ARGB8888_Blend_Scale(), SDL_Blit_ABGR8888_ARGB8888_Modulate_Blend(), SDL_Blit_ABGR8888_ARGB8888_Modulate_Blend_Scale(), SDL_Blit_ABGR8888_BGR888_Blend(), SDL_Blit_ABGR8888_BGR888_Blend_Scale(), SDL_Blit_ABGR8888_BGR888_Modulate_Blend(), SDL_Blit_ABGR8888_BGR888_Modulate_Blend_Scale(), SDL_Blit_ABGR8888_RGB888_Blend(), SDL_Blit_ABGR8888_RGB888_Blend_Scale(), SDL_Blit_ABGR8888_RGB888_Modulate_Blend(), SDL_Blit_ABGR8888_RGB888_Modulate_Blend_Scale(), SDL_Blit_ARGB8888_ARGB8888_Blend(), SDL_Blit_ARGB8888_ARGB8888_Blend_Scale(), SDL_Blit_ARGB8888_ARGB8888_Modulate_Blend(), SDL_Blit_ARGB8888_ARGB8888_Modulate_Blend_Scale(), SDL_Blit_ARGB8888_BGR888_Blend(), SDL_Blit_ARGB8888_BGR888_Blend_Scale(), SDL_Blit_ARGB8888_BGR888_Modulate_Blend(), SDL_Blit_ARGB8888_BGR888_Modulate_Blend_Scale(), SDL_Blit_ARGB8888_RGB888_Blend(), SDL_Blit_ARGB8888_RGB888_Blend_Scale(), SDL_Blit_ARGB8888_RGB888_Modulate_Blend(), SDL_Blit_ARGB8888_RGB888_Modulate_Blend_Scale(), SDL_Blit_BGR888_ARGB8888_Blend(), SDL_Blit_BGR888_ARGB8888_Blend_Scale(), SDL_Blit_BGR888_ARGB8888_Modulate_Blend(), SDL_Blit_BGR888_ARGB8888_Modulate_Blend_Scale(), SDL_Blit_BGR888_BGR888_Blend(), SDL_Blit_BGR888_BGR888_Blend_Scale(), SDL_Blit_BGR888_BGR888_Modulate_Blend(), SDL_Blit_BGR888_BGR888_Modulate_Blend_Scale(), SDL_Blit_BGR888_RGB888_Blend(), SDL_Blit_BGR888_RGB888_Blend_Scale(), SDL_Blit_BGR888_RGB888_Modulate_Blend(), SDL_Blit_BGR888_RGB888_Modulate_Blend_Scale(), SDL_Blit_BGRA8888_ARGB8888_Blend(), SDL_Blit_BGRA8888_ARGB8888_Blend_Scale(), SDL_Blit_BGRA8888_ARGB8888_Modulate_Blend(), SDL_Blit_BGRA8888_ARGB8888_Modulate_Blend_Scale(), SDL_Blit_BGRA8888_BGR888_Blend(), SDL_Blit_BGRA8888_BGR888_Blend_Scale(), SDL_Blit_BGRA8888_BGR888_Modulate_Blend(), SDL_Blit_BGRA8888_BGR888_Modulate_Blend_Scale(), SDL_Blit_BGRA8888_RGB888_Blend(), SDL_Blit_BGRA8888_RGB888_Blend_Scale(), SDL_Blit_BGRA8888_RGB888_Modulate_Blend(), SDL_Blit_BGRA8888_RGB888_Modulate_Blend_Scale(), SDL_Blit_RGB888_ARGB8888_Blend(), SDL_Blit_RGB888_ARGB8888_Blend_Scale(), SDL_Blit_RGB888_ARGB8888_Modulate_Blend(), SDL_Blit_RGB888_ARGB8888_Modulate_Blend_Scale(), SDL_Blit_RGB888_BGR888_Blend(), SDL_Blit_RGB888_BGR888_Blend_Scale(), SDL_Blit_RGB888_BGR888_Modulate_Blend(), SDL_Blit_RGB888_BGR888_Modulate_Blend_Scale(), SDL_Blit_RGB888_RGB888_Blend(), SDL_Blit_RGB888_RGB888_Blend_Scale(), SDL_Blit_RGB888_RGB888_Modulate_Blend(), SDL_Blit_RGB888_RGB888_Modulate_Blend_Scale(), SDL_Blit_RGBA8888_ARGB8888_Blend(), SDL_Blit_RGBA8888_ARGB8888_Blend_Scale(), SDL_Blit_RGBA8888_ARGB8888_Modulate_Blend(), SDL_Blit_RGBA8888_ARGB8888_Modulate_Blend_Scale(), SDL_Blit_RGBA8888_BGR888_Blend(), SDL_Blit_RGBA8888_BGR888_Blend_Scale(), SDL_Blit_RGBA8888_BGR888_Modulate_Blend(), SDL_Blit_RGBA8888_BGR888_Modulate_Blend_Scale(), SDL_Blit_RGBA8888_RGB888_Blend(), SDL_Blit_RGBA8888_RGB888_Blend_Scale(), SDL_Blit_RGBA8888_RGB888_Modulate_Blend(), SDL_Blit_RGBA8888_RGB888_Modulate_Blend_Scale(), SDL_Blit_Slow(), SDL_ChooseBlitFunc(), SDL_GetSurfaceBlendMode(), SDL_LowerBlitScaled(), SDL_RLESurface(), and SDL_SetSurfaceBlendMode().

#define SDL_COPY_BLEND 0x00000010

Definition at line 36 of file SDL_blit.h.

Referenced by SDL_Blit_ABGR8888_ARGB8888_Blend(), SDL_Blit_ABGR8888_ARGB8888_Blend_Scale(), SDL_Blit_ABGR8888_ARGB8888_Modulate_Blend(), SDL_Blit_ABGR8888_ARGB8888_Modulate_Blend_Scale(), SDL_Blit_ABGR8888_BGR888_Blend(), SDL_Blit_ABGR8888_BGR888_Blend_Scale(), SDL_Blit_ABGR8888_BGR888_Modulate_Blend(), SDL_Blit_ABGR8888_BGR888_Modulate_Blend_Scale(), SDL_Blit_ABGR8888_RGB888_Blend(), SDL_Blit_ABGR8888_RGB888_Blend_Scale(), SDL_Blit_ABGR8888_RGB888_Modulate_Blend(), SDL_Blit_ABGR8888_RGB888_Modulate_Blend_Scale(), SDL_Blit_ARGB8888_ARGB8888_Blend(), SDL_Blit_ARGB8888_ARGB8888_Blend_Scale(), SDL_Blit_ARGB8888_ARGB8888_Modulate_Blend(), SDL_Blit_ARGB8888_ARGB8888_Modulate_Blend_Scale(), SDL_Blit_ARGB8888_BGR888_Blend(), SDL_Blit_ARGB8888_BGR888_Blend_Scale(), SDL_Blit_ARGB8888_BGR888_Modulate_Blend(), SDL_Blit_ARGB8888_BGR888_Modulate_Blend_Scale(), SDL_Blit_ARGB8888_RGB888_Blend(), SDL_Blit_ARGB8888_RGB888_Blend_Scale(), SDL_Blit_ARGB8888_RGB888_Modulate_Blend(), SDL_Blit_ARGB8888_RGB888_Modulate_Blend_Scale(), SDL_Blit_BGR888_ARGB8888_Blend(), SDL_Blit_BGR888_ARGB8888_Blend_Scale(), SDL_Blit_BGR888_ARGB8888_Modulate_Blend(), SDL_Blit_BGR888_ARGB8888_Modulate_Blend_Scale(), SDL_Blit_BGR888_BGR888_Blend(), SDL_Blit_BGR888_BGR888_Blend_Scale(), SDL_Blit_BGR888_BGR888_Modulate_Blend(), SDL_Blit_BGR888_BGR888_Modulate_Blend_Scale(), SDL_Blit_BGR888_RGB888_Blend(), SDL_Blit_BGR888_RGB888_Blend_Scale(), SDL_Blit_BGR888_RGB888_Modulate_Blend(), SDL_Blit_BGR888_RGB888_Modulate_Blend_Scale(), SDL_Blit_BGRA8888_ARGB8888_Blend(), SDL_Blit_BGRA8888_ARGB8888_Blend_Scale(), SDL_Blit_BGRA8888_ARGB8888_Modulate_Blend(), SDL_Blit_BGRA8888_ARGB8888_Modulate_Blend_Scale(), SDL_Blit_BGRA8888_BGR888_Blend(), SDL_Blit_BGRA8888_BGR888_Blend_Scale(), SDL_Blit_BGRA8888_BGR888_Modulate_Blend(), SDL_Blit_BGRA8888_BGR888_Modulate_Blend_Scale(), SDL_Blit_BGRA8888_RGB888_Blend(), SDL_Blit_BGRA8888_RGB888_Blend_Scale(), SDL_Blit_BGRA8888_RGB888_Modulate_Blend(), SDL_Blit_BGRA8888_RGB888_Modulate_Blend_Scale(), SDL_Blit_RGB888_ARGB8888_Blend(), SDL_Blit_RGB888_ARGB8888_Blend_Scale(), SDL_Blit_RGB888_ARGB8888_Modulate_Blend(), SDL_Blit_RGB888_ARGB8888_Modulate_Blend_Scale(), SDL_Blit_RGB888_BGR888_Blend(), SDL_Blit_RGB888_BGR888_Blend_Scale(), SDL_Blit_RGB888_BGR888_Modulate_Blend(), SDL_Blit_RGB888_BGR888_Modulate_Blend_Scale(), SDL_Blit_RGB888_RGB888_Blend(), SDL_Blit_RGB888_RGB888_Blend_Scale(), SDL_Blit_RGB888_RGB888_Modulate_Blend(), SDL_Blit_RGB888_RGB888_Modulate_Blend_Scale(), SDL_Blit_RGBA8888_ARGB8888_Blend(), SDL_Blit_RGBA8888_ARGB8888_Blend_Scale(), SDL_Blit_RGBA8888_ARGB8888_Modulate_Blend(), SDL_Blit_RGBA8888_ARGB8888_Modulate_Blend_Scale(), SDL_Blit_RGBA8888_BGR888_Blend(), SDL_Blit_RGBA8888_BGR888_Blend_Scale(), SDL_Blit_RGBA8888_BGR888_Modulate_Blend(), SDL_Blit_RGBA8888_BGR888_Modulate_Blend_Scale(), SDL_Blit_RGBA8888_RGB888_Blend(), SDL_Blit_RGBA8888_RGB888_Blend_Scale(), SDL_Blit_RGBA8888_RGB888_Modulate_Blend(), SDL_Blit_RGBA8888_RGB888_Modulate_Blend_Scale(), SDL_Blit_Slow(), SDL_CalculateBlit(), SDL_CalculateBlit0(), SDL_CalculateBlit1(), SDL_CalculateBlitA(), SDL_ChooseBlitFunc(), SDL_ConvertSurface(), SDL_GetSurfaceBlendMode(), SDL_LowerBlitScaled(), SDL_RLESurface(), and SDL_SetSurfaceBlendMode().

#define SDL_COPY_COLORKEY 0x00000100

Definition at line 39 of file SDL_blit.h.

Referenced by SDL_Blit_Slow(), SDL_CalculateBlit0(), SDL_CalculateBlit1(), SDL_CalculateBlitA(), SDL_CalculateBlitN(), SDL_ChooseBlitFunc(), SDL_ConvertColorkeyToAlpha(), SDL_ConvertSurface(), SDL_GetColorKey(), SDL_LowerBlitScaled(), SDL_RLESurface(), SDL_SaveBMP_RW(), and SDL_SetColorKey().

#define SDL_COPY_MOD 0x00000040

Definition at line 38 of file SDL_blit.h.

Referenced by SDL_Blit_ABGR8888_ARGB8888_Blend(), SDL_Blit_ABGR8888_ARGB8888_Blend_Scale(), SDL_Blit_ABGR8888_ARGB8888_Modulate_Blend(), SDL_Blit_ABGR8888_ARGB8888_Modulate_Blend_Scale(), SDL_Blit_ABGR8888_BGR888_Blend(), SDL_Blit_ABGR8888_BGR888_Blend_Scale(), SDL_Blit_ABGR8888_BGR888_Modulate_Blend(), SDL_Blit_ABGR8888_BGR888_Modulate_Blend_Scale(), SDL_Blit_ABGR8888_RGB888_Blend(), SDL_Blit_ABGR8888_RGB888_Blend_Scale(), SDL_Blit_ABGR8888_RGB888_Modulate_Blend(), SDL_Blit_ABGR8888_RGB888_Modulate_Blend_Scale(), SDL_Blit_ARGB8888_ARGB8888_Blend(), SDL_Blit_ARGB8888_ARGB8888_Blend_Scale(), SDL_Blit_ARGB8888_ARGB8888_Modulate_Blend(), SDL_Blit_ARGB8888_ARGB8888_Modulate_Blend_Scale(), SDL_Blit_ARGB8888_BGR888_Blend(), SDL_Blit_ARGB8888_BGR888_Blend_Scale(), SDL_Blit_ARGB8888_BGR888_Modulate_Blend(), SDL_Blit_ARGB8888_BGR888_Modulate_Blend_Scale(), SDL_Blit_ARGB8888_RGB888_Blend(), SDL_Blit_ARGB8888_RGB888_Blend_Scale(), SDL_Blit_ARGB8888_RGB888_Modulate_Blend(), SDL_Blit_ARGB8888_RGB888_Modulate_Blend_Scale(), SDL_Blit_BGR888_ARGB8888_Blend(), SDL_Blit_BGR888_ARGB8888_Blend_Scale(), SDL_Blit_BGR888_ARGB8888_Modulate_Blend(), SDL_Blit_BGR888_ARGB8888_Modulate_Blend_Scale(), SDL_Blit_BGR888_BGR888_Blend(), SDL_Blit_BGR888_BGR888_Blend_Scale(), SDL_Blit_BGR888_BGR888_Modulate_Blend(), SDL_Blit_BGR888_BGR888_Modulate_Blend_Scale(), SDL_Blit_BGR888_RGB888_Blend(), SDL_Blit_BGR888_RGB888_Blend_Scale(), SDL_Blit_BGR888_RGB888_Modulate_Blend(), SDL_Blit_BGR888_RGB888_Modulate_Blend_Scale(), SDL_Blit_BGRA8888_ARGB8888_Blend(), SDL_Blit_BGRA8888_ARGB8888_Blend_Scale(), SDL_Blit_BGRA8888_ARGB8888_Modulate_Blend(), SDL_Blit_BGRA8888_ARGB8888_Modulate_Blend_Scale(), SDL_Blit_BGRA8888_BGR888_Blend(), SDL_Blit_BGRA8888_BGR888_Blend_Scale(), SDL_Blit_BGRA8888_BGR888_Modulate_Blend(), SDL_Blit_BGRA8888_BGR888_Modulate_Blend_Scale(), SDL_Blit_BGRA8888_RGB888_Blend(), SDL_Blit_BGRA8888_RGB888_Blend_Scale(), SDL_Blit_BGRA8888_RGB888_Modulate_Blend(), SDL_Blit_BGRA8888_RGB888_Modulate_Blend_Scale(), SDL_Blit_RGB888_ARGB8888_Blend(), SDL_Blit_RGB888_ARGB8888_Blend_Scale(), SDL_Blit_RGB888_ARGB8888_Modulate_Blend(), SDL_Blit_RGB888_ARGB8888_Modulate_Blend_Scale(), SDL_Blit_RGB888_BGR888_Blend(), SDL_Blit_RGB888_BGR888_Blend_Scale(), SDL_Blit_RGB888_BGR888_Modulate_Blend(), SDL_Blit_RGB888_BGR888_Modulate_Blend_Scale(), SDL_Blit_RGB888_RGB888_Blend(), SDL_Blit_RGB888_RGB888_Blend_Scale(), SDL_Blit_RGB888_RGB888_Modulate_Blend(), SDL_Blit_RGB888_RGB888_Modulate_Blend_Scale(), SDL_Blit_RGBA8888_ARGB8888_Blend(), SDL_Blit_RGBA8888_ARGB8888_Blend_Scale(), SDL_Blit_RGBA8888_ARGB8888_Modulate_Blend(), SDL_Blit_RGBA8888_ARGB8888_Modulate_Blend_Scale(), SDL_Blit_RGBA8888_BGR888_Blend(), SDL_Blit_RGBA8888_BGR888_Blend_Scale(), SDL_Blit_RGBA8888_BGR888_Modulate_Blend(), SDL_Blit_RGBA8888_BGR888_Modulate_Blend_Scale(), SDL_Blit_RGBA8888_RGB888_Blend(), SDL_Blit_RGBA8888_RGB888_Blend_Scale(), SDL_Blit_RGBA8888_RGB888_Modulate_Blend(), SDL_Blit_RGBA8888_RGB888_Modulate_Blend_Scale(), SDL_Blit_Slow(), SDL_ChooseBlitFunc(), SDL_GetSurfaceBlendMode(), SDL_LowerBlitScaled(), SDL_RLESurface(), and SDL_SetSurfaceBlendMode().

#define SDL_COPY_MODULATE_ALPHA 0x00000002

Definition at line 35 of file SDL_blit.h.

Referenced by SDL_Blit_ABGR8888_ARGB8888_Modulate(), SDL_Blit_ABGR8888_ARGB8888_Modulate_Blend(), SDL_Blit_ABGR8888_ARGB8888_Modulate_Blend_Scale(), SDL_Blit_ABGR8888_ARGB8888_Modulate_Scale(), SDL_Blit_ABGR8888_BGR888_Modulate(), SDL_Blit_ABGR8888_BGR888_Modulate_Blend(), SDL_Blit_ABGR8888_BGR888_Modulate_Blend_Scale(), SDL_Blit_ABGR8888_BGR888_Modulate_Scale(), SDL_Blit_ABGR8888_RGB888_Modulate(), SDL_Blit_ABGR8888_RGB888_Modulate_Blend(), SDL_Blit_ABGR8888_RGB888_Modulate_Blend_Scale(), SDL_Blit_ABGR8888_RGB888_Modulate_Scale(), SDL_Blit_ARGB8888_ARGB8888_Modulate(), SDL_Blit_ARGB8888_ARGB8888_Modulate_Blend(), SDL_Blit_ARGB8888_ARGB8888_Modulate_Blend_Scale(), SDL_Blit_ARGB8888_ARGB8888_Modulate_Scale(), SDL_Blit_ARGB8888_BGR888_Modulate(), SDL_Blit_ARGB8888_BGR888_Modulate_Blend(), SDL_Blit_ARGB8888_BGR888_Modulate_Blend_Scale(), SDL_Blit_ARGB8888_BGR888_Modulate_Scale(), SDL_Blit_ARGB8888_RGB888_Modulate(), SDL_Blit_ARGB8888_RGB888_Modulate_Blend(), SDL_Blit_ARGB8888_RGB888_Modulate_Blend_Scale(), SDL_Blit_ARGB8888_RGB888_Modulate_Scale(), SDL_Blit_BGR888_ARGB8888_Modulate(), SDL_Blit_BGR888_ARGB8888_Modulate_Blend(), SDL_Blit_BGR888_ARGB8888_Modulate_Blend_Scale(), SDL_Blit_BGR888_ARGB8888_Modulate_Scale(), SDL_Blit_BGR888_BGR888_Modulate(), SDL_Blit_BGR888_BGR888_Modulate_Blend(), SDL_Blit_BGR888_BGR888_Modulate_Blend_Scale(), SDL_Blit_BGR888_BGR888_Modulate_Scale(), SDL_Blit_BGR888_RGB888_Modulate(), SDL_Blit_BGR888_RGB888_Modulate_Blend(), SDL_Blit_BGR888_RGB888_Modulate_Blend_Scale(), SDL_Blit_BGR888_RGB888_Modulate_Scale(), SDL_Blit_BGRA8888_ARGB8888_Modulate(), SDL_Blit_BGRA8888_ARGB8888_Modulate_Blend(), SDL_Blit_BGRA8888_ARGB8888_Modulate_Blend_Scale(), SDL_Blit_BGRA8888_ARGB8888_Modulate_Scale(), SDL_Blit_BGRA8888_BGR888_Modulate(), SDL_Blit_BGRA8888_BGR888_Modulate_Blend(), SDL_Blit_BGRA8888_BGR888_Modulate_Blend_Scale(), SDL_Blit_BGRA8888_BGR888_Modulate_Scale(), SDL_Blit_BGRA8888_RGB888_Modulate(), SDL_Blit_BGRA8888_RGB888_Modulate_Blend(), SDL_Blit_BGRA8888_RGB888_Modulate_Blend_Scale(), SDL_Blit_BGRA8888_RGB888_Modulate_Scale(), SDL_Blit_RGB888_ARGB8888_Modulate(), SDL_Blit_RGB888_ARGB8888_Modulate_Blend(), SDL_Blit_RGB888_ARGB8888_Modulate_Blend_Scale(), SDL_Blit_RGB888_ARGB8888_Modulate_Scale(), SDL_Blit_RGB888_BGR888_Modulate(), SDL_Blit_RGB888_BGR888_Modulate_Blend(), SDL_Blit_RGB888_BGR888_Modulate_Blend_Scale(), SDL_Blit_RGB888_BGR888_Modulate_Scale(), SDL_Blit_RGB888_RGB888_Modulate(), SDL_Blit_RGB888_RGB888_Modulate_Blend(), SDL_Blit_RGB888_RGB888_Modulate_Blend_Scale(), SDL_Blit_RGB888_RGB888_Modulate_Scale(), SDL_Blit_RGBA8888_ARGB8888_Modulate(), SDL_Blit_RGBA8888_ARGB8888_Modulate_Blend(), SDL_Blit_RGBA8888_ARGB8888_Modulate_Blend_Scale(), SDL_Blit_RGBA8888_ARGB8888_Modulate_Scale(), SDL_Blit_RGBA8888_BGR888_Modulate(), SDL_Blit_RGBA8888_BGR888_Modulate_Blend(), SDL_Blit_RGBA8888_BGR888_Modulate_Blend_Scale(), SDL_Blit_RGBA8888_BGR888_Modulate_Scale(), SDL_Blit_RGBA8888_RGB888_Modulate(), SDL_Blit_RGBA8888_RGB888_Modulate_Blend(), SDL_Blit_RGBA8888_RGB888_Modulate_Blend_Scale(), SDL_Blit_RGBA8888_RGB888_Modulate_Scale(), SDL_Blit_Slow(), SDL_CalculateBlit0(), SDL_CalculateBlit1(), SDL_CalculateBlitA(), SDL_ChooseBlitFunc(), SDL_ConvertSurface(), SDL_LowerBlitScaled(), SDL_RLESurface(), and SDL_SetSurfaceAlphaMod().

#define SDL_COPY_MODULATE_COLOR 0x00000001

Definition at line 34 of file SDL_blit.h.

Referenced by SDL_Blit_ABGR8888_ARGB8888_Modulate(), SDL_Blit_ABGR8888_ARGB8888_Modulate_Blend(), SDL_Blit_ABGR8888_ARGB8888_Modulate_Blend_Scale(), SDL_Blit_ABGR8888_ARGB8888_Modulate_Scale(), SDL_Blit_ABGR8888_BGR888_Modulate(), SDL_Blit_ABGR8888_BGR888_Modulate_Blend(), SDL_Blit_ABGR8888_BGR888_Modulate_Blend_Scale(), SDL_Blit_ABGR8888_BGR888_Modulate_Scale(), SDL_Blit_ABGR8888_RGB888_Modulate(), SDL_Blit_ABGR8888_RGB888_Modulate_Blend(), SDL_Blit_ABGR8888_RGB888_Modulate_Blend_Scale(), SDL_Blit_ABGR8888_RGB888_Modulate_Scale(), SDL_Blit_ARGB8888_ARGB8888_Modulate(), SDL_Blit_ARGB8888_ARGB8888_Modulate_Blend(), SDL_Blit_ARGB8888_ARGB8888_Modulate_Blend_Scale(), SDL_Blit_ARGB8888_ARGB8888_Modulate_Scale(), SDL_Blit_ARGB8888_BGR888_Modulate(), SDL_Blit_ARGB8888_BGR888_Modulate_Blend(), SDL_Blit_ARGB8888_BGR888_Modulate_Blend_Scale(), SDL_Blit_ARGB8888_BGR888_Modulate_Scale(), SDL_Blit_ARGB8888_RGB888_Modulate(), SDL_Blit_ARGB8888_RGB888_Modulate_Blend(), SDL_Blit_ARGB8888_RGB888_Modulate_Blend_Scale(), SDL_Blit_ARGB8888_RGB888_Modulate_Scale(), SDL_Blit_BGR888_ARGB8888_Modulate(), SDL_Blit_BGR888_ARGB8888_Modulate_Blend(), SDL_Blit_BGR888_ARGB8888_Modulate_Blend_Scale(), SDL_Blit_BGR888_ARGB8888_Modulate_Scale(), SDL_Blit_BGR888_BGR888_Modulate(), SDL_Blit_BGR888_BGR888_Modulate_Blend(), SDL_Blit_BGR888_BGR888_Modulate_Blend_Scale(), SDL_Blit_BGR888_BGR888_Modulate_Scale(), SDL_Blit_BGR888_RGB888_Modulate(), SDL_Blit_BGR888_RGB888_Modulate_Blend(), SDL_Blit_BGR888_RGB888_Modulate_Blend_Scale(), SDL_Blit_BGR888_RGB888_Modulate_Scale(), SDL_Blit_BGRA8888_ARGB8888_Modulate(), SDL_Blit_BGRA8888_ARGB8888_Modulate_Blend(), SDL_Blit_BGRA8888_ARGB8888_Modulate_Blend_Scale(), SDL_Blit_BGRA8888_ARGB8888_Modulate_Scale(), SDL_Blit_BGRA8888_BGR888_Modulate(), SDL_Blit_BGRA8888_BGR888_Modulate_Blend(), SDL_Blit_BGRA8888_BGR888_Modulate_Blend_Scale(), SDL_Blit_BGRA8888_BGR888_Modulate_Scale(), SDL_Blit_BGRA8888_RGB888_Modulate(), SDL_Blit_BGRA8888_RGB888_Modulate_Blend(), SDL_Blit_BGRA8888_RGB888_Modulate_Blend_Scale(), SDL_Blit_BGRA8888_RGB888_Modulate_Scale(), SDL_Blit_RGB888_ARGB8888_Modulate(), SDL_Blit_RGB888_ARGB8888_Modulate_Blend(), SDL_Blit_RGB888_ARGB8888_Modulate_Blend_Scale(), SDL_Blit_RGB888_ARGB8888_Modulate_Scale(), SDL_Blit_RGB888_BGR888_Modulate(), SDL_Blit_RGB888_BGR888_Modulate_Blend(), SDL_Blit_RGB888_BGR888_Modulate_Blend_Scale(), SDL_Blit_RGB888_BGR888_Modulate_Scale(), SDL_Blit_RGB888_RGB888_Modulate(), SDL_Blit_RGB888_RGB888_Modulate_Blend(), SDL_Blit_RGB888_RGB888_Modulate_Blend_Scale(), SDL_Blit_RGB888_RGB888_Modulate_Scale(), SDL_Blit_RGBA8888_ARGB8888_Modulate(), SDL_Blit_RGBA8888_ARGB8888_Modulate_Blend(), SDL_Blit_RGBA8888_ARGB8888_Modulate_Blend_Scale(), SDL_Blit_RGBA8888_ARGB8888_Modulate_Scale(), SDL_Blit_RGBA8888_BGR888_Modulate(), SDL_Blit_RGBA8888_BGR888_Modulate_Blend(), SDL_Blit_RGBA8888_BGR888_Modulate_Blend_Scale(), SDL_Blit_RGBA8888_BGR888_Modulate_Scale(), SDL_Blit_RGBA8888_RGB888_Modulate(), SDL_Blit_RGBA8888_RGB888_Modulate_Blend(), SDL_Blit_RGBA8888_RGB888_Modulate_Blend_Scale(), SDL_Blit_RGBA8888_RGB888_Modulate_Scale(), SDL_Blit_Slow(), SDL_ChooseBlitFunc(), SDL_LowerBlitScaled(), SDL_RLESurface(), and SDL_SetSurfaceColorMod().

#define SDL_COPY_NEAREST 0x00000200

Definition at line 40 of file SDL_blit.h.

Referenced by SDL_ChooseBlitFunc(), SDL_LowerBlitScaled(), and SDL_RLESurface().

#define SDL_COPY_RLE_ALPHAKEY 0x00004000

Definition at line 43 of file SDL_blit.h.

Referenced by SDL_ConvertSurface(), SDL_RLESurface(), and SDL_UnRLESurface().

#define SDL_COPY_RLE_COLORKEY 0x00002000

Definition at line 42 of file SDL_blit.h.

Referenced by SDL_ConvertSurface(), SDL_RLESurface(), and SDL_UnRLESurface().

#define SDL_COPY_RLE_DESIRED 0x00001000

Definition at line 41 of file SDL_blit.h.

Referenced by SDL_CalculateBlit(), SDL_ConvertSurface(), and SDL_SetSurfaceRLE().

#define SDL_COPY_RLE_MASK (SDL_COPY_RLE_DESIRED|SDL_COPY_RLE_COLORKEY|SDL_COPY_RLE_ALPHAKEY)

Definition at line 44 of file SDL_blit.h.

Referenced by SDL_CalculateBlit0(), SDL_CalculateBlit1(), SDL_CalculateBlitA(), and SDL_CalculateBlitN().

#define SDL_CPU_3DNOW 0x00000002

Definition at line 49 of file SDL_blit.h.

Referenced by SDL_ChooseBlitFunc().

#define SDL_CPU_ALTIVEC_NOPREFETCH 0x00000020

Definition at line 53 of file SDL_blit.h.

Referenced by SDL_ChooseBlitFunc().

#define SDL_CPU_ALTIVEC_PREFETCH 0x00000010

Definition at line 52 of file SDL_blit.h.

Referenced by SDL_ChooseBlitFunc().

#define SDL_CPU_ANY 0x00000000

Definition at line 47 of file SDL_blit.h.

Referenced by SDL_ChooseBlitFunc().

#define SDL_CPU_MMX 0x00000001

Definition at line 48 of file SDL_blit.h.

Referenced by SDL_ChooseBlitFunc().

#define SDL_CPU_SSE 0x00000004

Definition at line 50 of file SDL_blit.h.

Referenced by SDL_ChooseBlitFunc().

#define SDL_CPU_SSE2 0x00000008

Definition at line 51 of file SDL_blit.h.

Referenced by SDL_ChooseBlitFunc().

#define USE_DUFFS_LOOP

Definition at line 466 of file SDL_blit.h.

Referenced by Blit1to2().

## Typedef Documentation

typedef struct SDL_BlitMap SDL_BlitMap

## Function Documentation

int SDL_CalculateBlit | ( | SDL_Surface * | surface | ) |

Definition at line 216 of file SDL_blit.c.

References SDL_PixelFormat::BitsPerPixel, SDL_BlitMap::blit, SDL_PixelFormat::BytesPerPixel, SDL_BlitMap::data, SDL_BlitMap::dst, SDL_BlitInfo::dst_fmt, SDL_BlitInfo::dst_pitch, SDL_BlitInfo::flags, SDL_Surface::flags, SDL_Surface::format, SDL_PixelFormat::format, SDL_BlitMap::identity, SDL_BlitMap::info, SDL_Surface::map, map, NULL, SDL_Surface::pitch, SDL_Blit_Slow(), SDL_BlitCopy(), SDL_CalculateBlit0(), SDL_CalculateBlit1(), SDL_CalculateBlitA(), SDL_CalculateBlitN(), SDL_ChooseBlitFunc(), SDL_COPY_BLEND, SDL_COPY_RLE_DESIRED, SDL_GeneratedBlitFuncTable, SDL_InvalidateMap(), SDL_ISPIXELFORMAT_FOURCC, SDL_ISPIXELFORMAT_INDEXED, SDL_RLEACCEL, SDL_RLESurface(), SDL_SetError(), SDL_SoftBlit(), SDL_UnRLESurface(), SDL_BlitInfo::src_fmt, and SDL_BlitInfo::src_pitch.

Referenced by SDL_MapSurface().

SDL_BlitFunc SDL_CalculateBlit0 | ( | SDL_Surface * | surface | ) |

Definition at line 454 of file SDL_blit_0.c.

References bitmap_blit, SDL_PixelFormat::BitsPerPixel, BlitBtoNAlpha(), BlitBtoNAlphaKey(), SDL_PixelFormat::BytesPerPixel, SDL_BlitMap::dst, SDL_BlitInfo::flags, SDL_Surface::format, SDL_BlitMap::info, SDL_Surface::map, NULL, SDL_COPY_BLEND, SDL_COPY_COLORKEY, SDL_COPY_MODULATE_ALPHA, and SDL_COPY_RLE_MASK.

Referenced by SDL_CalculateBlit().

SDL_BlitFunc SDL_CalculateBlit1 | ( | SDL_Surface * | surface | ) |

Definition at line 520 of file SDL_blit_1.c.

References SDL_PixelFormat::BitsPerPixel, Blit1toNAlpha(), Blit1toNAlphaKey(), SDL_PixelFormat::BytesPerPixel, SDL_BlitMap::dst, SDL_BlitInfo::flags, SDL_Surface::format, SDL_BlitMap::info, SDL_Surface::map, NULL, one_blit, SDL_COPY_BLEND, SDL_COPY_COLORKEY, SDL_COPY_MODULATE_ALPHA, and SDL_COPY_RLE_MASK.

Referenced by SDL_CalculateBlit().

SDL_BlitFunc SDL_CalculateBlitA | ( | SDL_Surface * | surface | ) |

Definition at line 1271 of file SDL_blit_A.c.

References SDL_PixelFormat::Aloss, SDL_PixelFormat::Amask, SDL_PixelFormat::Ashift, Blit555to555SurfaceAlpha(), Blit565to565SurfaceAlpha(), BlitARGBto555PixelAlpha(), BlitARGBto565PixelAlpha(), BlitNto1PixelAlpha(), BlitNto1SurfaceAlpha(), BlitNto1SurfaceAlphaKey(), BlitNtoNPixelAlpha(), BlitNtoNSurfaceAlpha(), BlitNtoNSurfaceAlphaKey(), BlitRGBtoRGBPixelAlpha(), BlitRGBtoRGBSurfaceAlpha(), SDL_PixelFormat::Bmask, SDL_PixelFormat::Bshift, SDL_PixelFormat::BytesPerPixel, SDL_BlitMap::dst, SDL_BlitInfo::flags, SDL_Surface::format, SDL_PixelFormat::Gmask, SDL_PixelFormat::Gshift, SDL_BlitMap::identity, SDL_BlitMap::info, SDL_Surface::map, NULL, SDL_PixelFormat::Rmask, SDL_PixelFormat::Rshift, SDL_COPY_BLEND, SDL_COPY_COLORKEY, SDL_COPY_MODULATE_ALPHA, SDL_COPY_RLE_MASK, SDL_Has3DNow(), and SDL_HasMMX().

Referenced by SDL_CalculateBlit().

SDL_BlitFunc SDL_CalculateBlitN | ( | SDL_Surface * | surface | ) |

Definition at line 2500 of file SDL_blit_N.c.

References SDL_PixelFormat::Amask, SDL_PixelFormat::BitsPerPixel, Blit2101010toN(), Blit2to2Key(), Blit4to4MaskAlpha(), Blit_RGB101010_index8(), Blit_RGB888_index8(), BlitNto1(), BlitNto1Key(), BlitNto2101010(), BlitNtoN(), BlitNtoNCopyAlpha(), BlitNtoNKey(), BlitNtoNKeyCopyAlpha(), SDL_PixelFormat::Bmask, SDL_PixelFormat::BytesPerPixel, SDL_BlitMap::dst, SDL_BlitInfo::flags, SDL_Surface::format, SDL_PixelFormat::format, GetBlitFeatures, SDL_PixelFormat::Gmask, SDL_BlitMap::identity, SDL_BlitMap::info, SDL_Surface::map, MASKOK, NULL, SDL_PixelFormat::Rmask, SDL_COPY_COLORKEY, SDL_COPY_RLE_MASK, SDL_HasAltiVec(), and SDL_PIXELFORMAT_ARGB2101010.

Referenced by SDL_CalculateBlit().

typedef void | ( | SDLCALL * | SDL_AudioCallback | ) |

This function is called when the audio device needs more data.

Parameters

  userdata | An application-specific parameter saved in the SDL_AudioSpec structure
  stream | A pointer to the audio data buffer.
  len | The length of that buffer in bytes.

Once the callback returns, the buffer will no longer be valid. Stereo samples are stored in a LRLRLR ordering.

## Variable Documentation

Uint8* SDL_expand_byte[9]

Definition at line 71 of file SDL_pixels.c.

Referenced by SDL_GetRGB(), and SDL_GetRGBA().