zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
SDL_RLEaccel.c File Reference
#include "SDL_config.h"
#include "SDL_video.h"
#include "SDL_sysvideo.h"
#include "SDL_blit.h"
#include "SDL_RLEaccel_c.h"

Go to the source code of this file.

Macros

#define ADD_COUNTS(n, m)
 
#define ADD_OPAQUE_COUNTS(n, m)
 
#define ADD_TRANSL_COUNTS(n, m)   (((Uint16 *)dst)[0] = n, ((Uint16 *)dst)[1] = m, dst += 4)
 
#define ALPHA_BLIT16_50(to, from, length, bpp, alpha, mask)
 
#define ALPHA_BLIT16_555(to, from, length, bpp, alpha)
 
#define ALPHA_BLIT16_555_50(to, from, length, bpp, alpha)   ALPHA_BLIT16_50(to, from, length, bpp, alpha, 0xfbde)
 
#define ALPHA_BLIT16_565(to, from, length, bpp, alpha)
 
#define ALPHA_BLIT16_565_50(to, from, length, bpp, alpha)   ALPHA_BLIT16_50(to, from, length, bpp, alpha, 0xf7de)
 
#define ALPHA_BLIT32_888(to, from, length, bpp, alpha)
 
#define ALPHA_BLIT32_888_50(to, from, length, bpp, alpha)
 
#define ALPHA_BLIT_ANY(to, from, length, bpp, alpha)
 
#define BLEND16_50(dst, src, mask)
 
#define BLIT_TRANSL_555(src, dst)
 
#define BLIT_TRANSL_565(src, dst)
 
#define BLIT_TRANSL_888(src, dst)
 
#define CHOOSE_BLIT(blitter, alpha, fmt)
 
#define ISOPAQUE(pixel, fmt)   ((((pixel) & fmt->Amask) >> fmt->Ashift) == 255)
 
#define ISTRANSL(pixel, fmt)   ((unsigned)((((pixel) & fmt->Amask) >> fmt->Ashift) - 1U) < 254U)
 
#define MAX(a, b)   ((a) > (b) ? (a) : (b))
 
#define MIN(a, b)   ((a) < (b) ? (a) : (b))
 
#define OPAQUE_BLIT(to, from, length, bpp, alpha)   PIXEL_COPY(to, from, length, bpp)
 
#define PIXEL_COPY(to, from, len, bpp)   SDL_memcpy(to, from, (size_t)(len) * (bpp))
 
#define RLEALPHABLIT(Ptype, Ctype, do_blend)
 
#define RLEALPHACLIPBLIT(Ptype, Ctype, do_blend)
 
#define RLEBLIT(bpp, Type, do_blit)
 
#define RLECLIPBLIT(bpp, Type, do_blit)
 
#define RLESKIP(bpp, Type)
 

Typedefs

typedef Uint32(* getpix_func )(Uint8 *)
 

Functions

static int copy_32 (void *dst, Uint32 *src, int n, SDL_PixelFormat *sfmt, SDL_PixelFormat *dfmt)
 
static int copy_opaque_16 (void *dst, Uint32 *src, int n, SDL_PixelFormat *sfmt, SDL_PixelFormat *dfmt)
 
static int copy_transl_555 (void *dst, Uint32 *src, int n, SDL_PixelFormat *sfmt, SDL_PixelFormat *dfmt)
 
static int copy_transl_565 (void *dst, Uint32 *src, int n, SDL_PixelFormat *sfmt, SDL_PixelFormat *dfmt)
 
static Uint32 getpix_16 (Uint8 *srcbuf)
 
static Uint32 getpix_24 (Uint8 *srcbuf)
 
static Uint32 getpix_32 (Uint8 *srcbuf)
 
static Uint32 getpix_8 (Uint8 *srcbuf)
 
static void RLEAlphaClipBlit (int w, Uint8 *srcbuf, SDL_Surface *dst, Uint8 *dstbuf, SDL_Rect *srcrect)
 
static int RLEAlphaSurface (SDL_Surface *surface)
 
static void RLEClipBlit (int w, Uint8 *srcbuf, SDL_Surface *dst, Uint8 *dstbuf, SDL_Rect *srcrect, unsigned alpha)
 
static int RLEColorkeySurface (SDL_Surface *surface)
 
int SDL_RLEAlphaBlit (SDL_Surface *src, SDL_Rect *srcrect, SDL_Surface *dst, SDL_Rect *dstrect)
 
int SDL_RLEBlit (SDL_Surface *src, SDL_Rect *srcrect, SDL_Surface *dst, SDL_Rect *dstrect)
 
int SDL_RLESurface (SDL_Surface *surface)
 
void SDL_UnRLESurface (SDL_Surface *surface, int recode)
 
static int uncopy_32 (Uint32 *dst, void *src, int n, RLEDestFormat *sfmt, SDL_PixelFormat *dfmt)
 
static int uncopy_opaque_16 (Uint32 *dst, void *src, int n, RLEDestFormat *sfmt, SDL_PixelFormat *dfmt)
 
static int uncopy_transl_16 (Uint32 *dst, void *src, int n, RLEDestFormat *sfmt, SDL_PixelFormat *dfmt)
 
static SDL_bool UnRLEAlpha (SDL_Surface *surface)
 

Variables

static const getpix_func getpixes [4]
 

Macro Definition Documentation

#define ADD_COUNTS (   n,
  m 
)
Value:
if(bpp == 4) { \
((Uint16 *)dst)[0] = n; \
((Uint16 *)dst)[1] = m; \
dst += 4; \
} else { \
dst[0] = n; \
dst[1] = m; \
dst += 2; \
}
GLclampd n
Definition: glew.h:7287
GLenum GLenum dst
Definition: glew.h:2396
uint16_t Uint16
An unsigned 16-bit integer type.
Definition: SDL_stdinc.h:137
#define m(i, j)

Referenced by RLEColorkeySurface().

#define ADD_OPAQUE_COUNTS (   n,
  m 
)
Value:
if(df->BytesPerPixel == 4) { \
((Uint16 *)dst)[0] = n; \
((Uint16 *)dst)[1] = m; \
dst += 4; \
} else { \
dst[0] = n; \
dst[1] = m; \
dst += 2; \
}
GLclampd n
Definition: glew.h:7287
GLenum GLenum dst
Definition: glew.h:2396
uint16_t Uint16
An unsigned 16-bit integer type.
Definition: SDL_stdinc.h:137
#define m(i, j)

Referenced by RLEAlphaSurface().

#define ADD_TRANSL_COUNTS (   n,
  m 
)    (((Uint16 *)dst)[0] = n, ((Uint16 *)dst)[1] = m, dst += 4)

Referenced by RLEAlphaSurface().

#define ALPHA_BLIT16_50 (   to,
  from,
  length,
  bpp,
  alpha,
  mask 
)
Value:
do { \
unsigned n = (length); \
Uint16 *src = (Uint16 *)(from); \
Uint16 *dst = (Uint16 *)(to); \
if(((uintptr_t)src ^ (uintptr_t)dst) & 3) { \
/* source and destination not in phase, blit one by one */ \
while(n--) \
BLEND16_50(dst, src, mask); \
} else { \
if((uintptr_t)src & 3) { \
/* first odd pixel */ \
BLEND16_50(dst, src, mask); \
n--; \
} \
for(; n > 1; n -= 2) { \
Uint32 s = *(Uint32 *)src; \
Uint32 d = *(Uint32 *)dst; \
*(Uint32 *)dst = ((s & (mask | mask << 16)) >> 1) \
+ ((d & (mask | mask << 16)) >> 1) \
+ (s & d & (~(mask | mask << 16))); \
src += 2; \
dst += 2; \
} \
if(n) \
BLEND16_50(dst, src, mask); /* last odd pixel */ \
} \
} while(0)
GLdouble s
Definition: glew.h:1376
GLclampd n
Definition: glew.h:7287
return Display return Display Bool Bool int d
Definition: SDL_x11sym.h:30
if(!yyg->yy_init)
#define BLEND16_50(dst, src, mask)
Definition: SDL_RLEaccel.c:262
uint32_t Uint32
An unsigned 32-bit integer type.
Definition: SDL_stdinc.h:145
GLenum GLenum dst
Definition: glew.h:2396
for(;;)
GLsizei GLsizei * length
Definition: gl2ext.h:792
unsigned int uintptr_t
GLint GLint GLint GLint GLint GLint GLint GLbitfield mask
Definition: gl2ext.h:961
uint16_t Uint16
An unsigned 16-bit integer type.
Definition: SDL_stdinc.h:137
GLenum src
Definition: glew.h:2396
while(1)

Definition at line 271 of file SDL_RLEaccel.c.

#define ALPHA_BLIT16_555 (   to,
  from,
  length,
  bpp,
  alpha 
)
Value:
do { \
Uint16 *src = (Uint16 *)(from); \
Uint16 *dst = (Uint16 *)(to); \
Uint32 ALPHA = alpha >> 3; \
for(i = 0; i < (int)(length); i++) { \
Uint32 s = *src++; \
s = (s | s << 16) & 0x03e07c1f; \
d = (d | d << 16) & 0x03e07c1f; \
d += (s - d) * ALPHA >> 5; \
d &= 0x03e07c1f; \
*dst++ = (Uint16)(d | d >> 16); \
} \
} while(0)
GLdouble s
Definition: glew.h:1376
return Display return Display Bool Bool int d
Definition: SDL_x11sym.h:30
uint32_t Uint32
An unsigned 32-bit integer type.
Definition: SDL_stdinc.h:145
GLenum GLenum dst
Definition: glew.h:2396
int
Definition: SDL_systhread.c:37
for(;;)
GLsizei GLsizei * length
Definition: gl2ext.h:792
GLclampf GLclampf GLclampf alpha
Definition: glew.h:1506
uint16_t Uint16
An unsigned 16-bit integer type.
Definition: SDL_stdinc.h:137
GLenum src
Definition: glew.h:2396
int i
Definition: pngrutil.c:1377

Definition at line 158 of file SDL_RLEaccel.c.

#define ALPHA_BLIT16_555_50 (   to,
  from,
  length,
  bpp,
  alpha 
)    ALPHA_BLIT16_50(to, from, length, bpp, alpha, 0xfbde)

Definition at line 303 of file SDL_RLEaccel.c.

#define ALPHA_BLIT16_565 (   to,
  from,
  length,
  bpp,
  alpha 
)
Value:
do { \
Uint16 *src = (Uint16 *)(from); \
Uint16 *dst = (Uint16 *)(to); \
Uint32 ALPHA = alpha >> 3; \
for(i = 0; i < (int)(length); i++) { \
Uint32 s = *src++; \
s = (s | s << 16) & 0x07e0f81f; \
d = (d | d << 16) & 0x07e0f81f; \
d += (s - d) * ALPHA >> 5; \
d &= 0x07e0f81f; \
*dst++ = (Uint16)(d | d >> 16); \
} \
} while(0)
GLdouble s
Definition: glew.h:1376
return Display return Display Bool Bool int d
Definition: SDL_x11sym.h:30
uint32_t Uint32
An unsigned 32-bit integer type.
Definition: SDL_stdinc.h:145
GLenum GLenum dst
Definition: glew.h:2396
int
Definition: SDL_systhread.c:37
for(;;)
GLsizei GLsizei * length
Definition: gl2ext.h:792
GLclampf GLclampf GLclampf alpha
Definition: glew.h:1506
uint16_t Uint16
An unsigned 16-bit integer type.
Definition: SDL_stdinc.h:137
GLenum src
Definition: glew.h:2396
int i
Definition: pngrutil.c:1377

Definition at line 141 of file SDL_RLEaccel.c.

#define ALPHA_BLIT16_565_50 (   to,
  from,
  length,
  bpp,
  alpha 
)    ALPHA_BLIT16_50(to, from, length, bpp, alpha, 0xf7de)

Definition at line 300 of file SDL_RLEaccel.c.

#define ALPHA_BLIT32_888 (   to,
  from,
  length,
  bpp,
  alpha 
)
Value:
do { \
Uint32 *src = (Uint32 *)(from); \
Uint32 *dst = (Uint32 *)(to); \
for(i = 0; i < (int)(length); i++) { \
Uint32 s = *src++; \
Uint32 s1 = s & 0xff00ff; \
Uint32 d1 = d & 0xff00ff; \
d1 = (d1 + ((s1 - d1) * alpha >> 8)) & 0xff00ff; \
s &= 0xff00; \
d &= 0xff00; \
d = (d + ((s - d) * alpha >> 8)) & 0xff00; \
*dst++ = d1 | d; \
} \
} while(0)
GLdouble s
Definition: glew.h:1376
return Display return Display Bool Bool int d
Definition: SDL_x11sym.h:30
uint32_t Uint32
An unsigned 32-bit integer type.
Definition: SDL_stdinc.h:145
GLenum GLenum dst
Definition: glew.h:2396
int
Definition: SDL_systhread.c:37
for(;;)
GLsizei GLsizei * length
Definition: gl2ext.h:792
GLclampf GLclampf GLclampf alpha
Definition: glew.h:1506
GLuint GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat s1
Definition: glew.h:11582
GLenum src
Definition: glew.h:2396
int i
Definition: pngrutil.c:1377

Definition at line 117 of file SDL_RLEaccel.c.

#define ALPHA_BLIT32_888_50 (   to,
  from,
  length,
  bpp,
  alpha 
)
Value:
do { \
Uint32 *src = (Uint32 *)(from); \
Uint32 *dst = (Uint32 *)(to); \
for(i = 0; i < (int)(length); i++) { \
Uint32 s = *src++; \
Uint32 d = *dst; \
*dst++ = (((s & 0x00fefefe) + (d & 0x00fefefe)) >> 1) \
+ (s & d & 0x00010101); \
} \
} while(0)
GLdouble s
Definition: glew.h:1376
return Display return Display Bool Bool int d
Definition: SDL_x11sym.h:30
uint32_t Uint32
An unsigned 32-bit integer type.
Definition: SDL_stdinc.h:145
GLenum GLenum dst
Definition: glew.h:2396
int
Definition: SDL_systhread.c:37
for(;;)
GLsizei GLsizei * length
Definition: gl2ext.h:792
GLenum src
Definition: glew.h:2396
int i
Definition: pngrutil.c:1377

Definition at line 243 of file SDL_RLEaccel.c.

#define ALPHA_BLIT_ANY (   to,
  from,
  length,
  bpp,
  alpha 
)

Definition at line 178 of file SDL_RLEaccel.c.

#define BLEND16_50 (   dst,
  src,
  mask 
)
Value:
do { \
Uint32 s = *src++; \
Uint32 d = *dst; \
*dst++ = (Uint16)((((s & mask) + (d & mask)) >> 1) + \
(s & d & (~mask & 0xffff))); \
} while(0)
GLdouble s
Definition: glew.h:1376
return Display return Display Bool Bool int d
Definition: SDL_x11sym.h:30
uint32_t Uint32
An unsigned 32-bit integer type.
Definition: SDL_stdinc.h:145
GLenum GLenum dst
Definition: glew.h:2396
GLint GLint GLint GLint GLint GLint GLint GLbitfield mask
Definition: gl2ext.h:961
uint16_t Uint16
An unsigned 16-bit integer type.
Definition: SDL_stdinc.h:137
GLenum src
Definition: glew.h:2396

Definition at line 262 of file SDL_RLEaccel.c.

#define BLIT_TRANSL_555 (   src,
  dst 
)
Value:
do { \
unsigned alpha = (s & 0x3e0) >> 5; \
s &= 0x03e07c1f; \
d = (d | d << 16) & 0x03e07c1f; \
d += (s - d) * alpha >> 5; \
d &= 0x03e07c1f; \
dst = (Uint16)(d | d >> 16); \
} while(0)
GLdouble s
Definition: glew.h:1376
return Display return Display Bool Bool int d
Definition: SDL_x11sym.h:30
uint32_t Uint32
An unsigned 32-bit integer type.
Definition: SDL_stdinc.h:145
GLenum GLenum dst
Definition: glew.h:2396
GLclampf GLclampf GLclampf alpha
Definition: glew.h:1506
uint16_t Uint16
An unsigned 16-bit integer type.
Definition: SDL_stdinc.h:137
GLenum src
Definition: glew.h:2396

Definition at line 589 of file SDL_RLEaccel.c.

Referenced by RLEAlphaClipBlit(), and SDL_RLEAlphaBlit().

#define BLIT_TRANSL_565 (   src,
  dst 
)
Value:
do { \
unsigned alpha = (s & 0x3e0) >> 5; \
s &= 0x07e0f81f; \
d = (d | d << 16) & 0x07e0f81f; \
d += (s - d) * alpha >> 5; \
d &= 0x07e0f81f; \
dst = (Uint16)(d | d >> 16); \
} while(0)
GLdouble s
Definition: glew.h:1376
return Display return Display Bool Bool int d
Definition: SDL_x11sym.h:30
uint32_t Uint32
An unsigned 32-bit integer type.
Definition: SDL_stdinc.h:145
GLenum GLenum dst
Definition: glew.h:2396
GLclampf GLclampf GLclampf alpha
Definition: glew.h:1506
uint16_t Uint16
An unsigned 16-bit integer type.
Definition: SDL_stdinc.h:137
GLenum src
Definition: glew.h:2396

Definition at line 577 of file SDL_RLEaccel.c.

Referenced by RLEAlphaClipBlit(), and SDL_RLEAlphaBlit().

#define BLIT_TRANSL_888 (   src,
  dst 
)
Value:
do { \
unsigned alpha = s >> 24; \
Uint32 s1 = s & 0xff00ff; \
Uint32 d1 = d & 0xff00ff; \
d1 = (d1 + ((s1 - d1) * alpha >> 8)) & 0xff00ff; \
s &= 0xff00; \
d &= 0xff00; \
d = (d + ((s - d) * alpha >> 8)) & 0xff00; \
dst = d1 | d | 0xff000000; \
} while(0)
GLdouble s
Definition: glew.h:1376
return Display return Display Bool Bool int d
Definition: SDL_x11sym.h:30
uint32_t Uint32
An unsigned 32-bit integer type.
Definition: SDL_stdinc.h:145
GLenum GLenum dst
Definition: glew.h:2396
GLclampf GLclampf GLclampf alpha
Definition: glew.h:1506
GLuint GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat s1
Definition: glew.h:11582
GLenum src
Definition: glew.h:2396

Definition at line 559 of file SDL_RLEaccel.c.

Referenced by RLEAlphaClipBlit(), and SDL_RLEAlphaBlit().

#define CHOOSE_BLIT (   blitter,
  alpha,
  fmt 
)

Definition at line 306 of file SDL_RLEaccel.c.

Referenced by RLEClipBlit(), and SDL_RLEBlit().

#define ISOPAQUE (   pixel,
  fmt 
)    ((((pixel) & fmt->Amask) >> fmt->Ashift) == 255)

Definition at line 1007 of file SDL_RLEaccel.c.

Referenced by RLEAlphaSurface().

#define ISTRANSL (   pixel,
  fmt 
)    ((unsigned)((((pixel) & fmt->Amask) >> fmt->Ashift) - 1U) < 254U)

Definition at line 1009 of file SDL_RLEaccel.c.

Referenced by RLEAlphaSurface().

#define MAX (   a,
  b 
)    ((a) > (b) ? (a) : (b))

Definition at line 94 of file SDL_RLEaccel.c.

#define MIN (   a,
  b 
)    ((a) < (b) ? (a) : (b))

Definition at line 97 of file SDL_RLEaccel.c.

Referenced by RLEAlphaSurface(), and RLEColorkeySurface().

#define OPAQUE_BLIT (   to,
  from,
  length,
  bpp,
  alpha 
)    PIXEL_COPY(to, from, length, bpp)

Definition at line 107 of file SDL_RLEaccel.c.

#define PIXEL_COPY (   to,
  from,
  len,
  bpp 
)    SDL_memcpy(to, from, (size_t)(len) * (bpp))

Definition at line 100 of file SDL_RLEaccel.c.

#define RLEALPHABLIT (   Ptype,
  Ctype,
  do_blend 
)

Referenced by SDL_RLEAlphaBlit().

#define RLEALPHACLIPBLIT (   Ptype,
  Ctype,
  do_blend 
)

Referenced by RLEAlphaClipBlit().

#define RLEBLIT (   bpp,
  Type,
  do_blit 
)
Value:
do { \
int linecount = srcrect->h; \
int ofs = 0; \
for(;;) { \
unsigned run; \
ofs += *(Type *)srcbuf; \
run = ((Type *)srcbuf)[1]; \
srcbuf += 2 * sizeof(Type); \
if(run) { \
do_blit(dstbuf + ofs * bpp, srcbuf, run, bpp, alpha); \
srcbuf += run * bpp; \
ofs += run; \
} else if(!ofs) \
break; \
if(ofs == w) { \
ofs = 0; \
dstbuf += dst->pitch; \
if(!--linecount) \
break; \
} \
} \
} while(0)
if(!yyg->yy_init)
GLenum GLenum dst
Definition: glew.h:2396
int
Definition: SDL_systhread.c:37
for(;;)
GLclampf GLclampf GLclampf alpha
Definition: glew.h:1506
GLint GLint GLint GLint GLint w
Definition: gl2ext.h:1215

Referenced by SDL_RLEBlit().

#define RLECLIPBLIT (   bpp,
  Type,
  do_blit 
)

Referenced by RLEClipBlit().

#define RLESKIP (   bpp,
  Type 
)
Value:
for(;;) { \
int run; \
ofs += *(Type *)srcbuf; \
run = ((Type *)srcbuf)[1]; \
srcbuf += sizeof(Type) * 2; \
if(run) { \
srcbuf += run * bpp; \
ofs += run; \
} else if(!ofs) \
goto done; \
if(ofs == w) { \
ofs = 0; \
if(!--vskip) \
break; \
} \
}
if(!yyg->yy_init)
int
Definition: SDL_systhread.c:37
GLint GLint GLint GLint GLint w
Definition: gl2ext.h:1215

Referenced by SDL_RLEBlit().

Typedef Documentation

typedef Uint32(* getpix_func)(Uint8 *)

Definition at line 1254 of file SDL_RLEaccel.c.

Function Documentation

static int copy_32 ( void dst,
Uint32 src,
int  n,
SDL_PixelFormat sfmt,
SDL_PixelFormat dfmt 
)
static

Definition at line 974 of file SDL_RLEaccel.c.

References d, i, PIXEL_FROM_RGBA, and RGBA_FROM_8888.

Referenced by RLEAlphaSurface().

static int copy_opaque_16 ( void dst,
Uint32 src,
int  n,
SDL_PixelFormat sfmt,
SDL_PixelFormat dfmt 
)
static

Definition at line 880 of file SDL_RLEaccel.c.

References d, i, PIXEL_FROM_RGB, and RGB_FROM_PIXEL.

Referenced by RLEAlphaSurface().

static int copy_transl_555 ( void dst,
Uint32 src,
int  n,
SDL_PixelFormat sfmt,
SDL_PixelFormat dfmt 
)
static

Definition at line 936 of file SDL_RLEaccel.c.

References d, i, PIXEL_FROM_RGB, and RGBA_FROM_8888.

Referenced by RLEAlphaSurface().

static int copy_transl_565 ( void dst,
Uint32 src,
int  n,
SDL_PixelFormat sfmt,
SDL_PixelFormat dfmt 
)
static

Definition at line 917 of file SDL_RLEaccel.c.

References d, i, PIXEL_FROM_RGB, and RGBA_FROM_8888.

Referenced by RLEAlphaSurface().

static Uint32 getpix_16 ( Uint8 srcbuf)
static

Definition at line 1233 of file SDL_RLEaccel.c.

static Uint32 getpix_24 ( Uint8 srcbuf)
static

Definition at line 1239 of file SDL_RLEaccel.c.

static Uint32 getpix_32 ( Uint8 srcbuf)
static

Definition at line 1249 of file SDL_RLEaccel.c.

static Uint32 getpix_8 ( Uint8 srcbuf)
static

Definition at line 1227 of file SDL_RLEaccel.c.

static void RLEAlphaClipBlit ( int  w,
Uint8 srcbuf,
SDL_Surface dst,
Uint8 dstbuf,
SDL_Rect srcrect 
)
static
static void RLEClipBlit ( int  w,
Uint8 srcbuf,
SDL_Surface dst,
Uint8 dstbuf,
SDL_Rect srcrect,
unsigned  alpha 
)
static

Definition at line 379 of file SDL_RLEaccel.c.

References CHOOSE_BLIT, SDL_Surface::format, and RLECLIPBLIT.

Referenced by SDL_RLEBlit().

static int uncopy_32 ( Uint32 dst,
void src,
int  n,
RLEDestFormat *  sfmt,
SDL_PixelFormat dfmt 
)
static

Definition at line 991 of file SDL_RLEaccel.c.

References i, PIXEL_FROM_RGBA, and RGB_FROM_PIXEL.

Referenced by UnRLEAlpha().

static int uncopy_opaque_16 ( Uint32 dst,
void src,
int  n,
RLEDestFormat *  sfmt,
SDL_PixelFormat dfmt 
)
static

Definition at line 897 of file SDL_RLEaccel.c.

References SDL_PixelFormat::Amask, i, PIXEL_FROM_RGBA, and RGB_FROM_PIXEL.

Referenced by UnRLEAlpha().

static int uncopy_transl_16 ( Uint32 dst,
void src,
int  n,
RLEDestFormat *  sfmt,
SDL_PixelFormat dfmt 
)
static

Definition at line 955 of file SDL_RLEaccel.c.

References i, PIXEL_FROM_RGBA, and RGB_FROM_PIXEL.

Referenced by UnRLEAlpha().

Variable Documentation

const getpix_func getpixes[4]
static
Initial value:
= {
}
static Uint32 getpix_16(Uint8 *srcbuf)
static Uint32 getpix_32(Uint8 *srcbuf)
static Uint32 getpix_8(Uint8 *srcbuf)
static Uint32 getpix_24(Uint8 *srcbuf)

Definition at line 1256 of file SDL_RLEaccel.c.

Referenced by RLEColorkeySurface().