Advanced Strategic Command
Macros | Functions
sdlstretch.cpp File Reference
#include "../global.h"
#include <stdio.h>
#include <cstring>
#include <math.h>
#include <stdlib.h>
#include "sdlstretch.h"
Include dependency graph for sdlstretch.cpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define sign(x)   ((x)>0 ? 1:-1)
 

Functions

template<class ST , class DT >
void StretchTemplateLUT (int x1, int x2, int y1, int y2, int yr, int yw, ST src_pixels, DT dst_pixels, Uint32 *lut)
 
template<class ST , class DT >
void StretchTemplate (int x1, int x2, int y1, int y2, int yr, int yw, ST src_pixels, DT dst_pixels)
 
template<class ST , class DT >
void RectStretchTemplate (SDL_Surface *src_surface, ST src, int xs1, int ys1, int xs2, int ys2, SDL_Surface *dst_surface, DT dst, int xd1, int yd1, int xd2, int yd2, Uint32 *lutVOI)
 
void SDL_StretchSurface (SDL_Surface *src_surface, int xs1, int ys1, int xs2, int ys2, SDL_Surface *dst_surface, int xd1, int yd1, int xd2, int yd2, Uint32 *lutVOI)
 
void SDL_StretchSurface (SDL_Surface *src_surface, SDL_Rect *src_rect, SDL_Surface *dst_surface, SDL_Rect *dst_rect, Uint32 *voiLUT)
 

Macro Definition Documentation

#define sign (   x)    ((x)>0 ? 1:-1)

Definition at line 32 of file sdlstretch.cpp.

Function Documentation

template<class ST , class DT >
void RectStretchTemplate ( SDL_Surface *  src_surface,
ST  src,
int  xs1,
int  ys1,
int  xs2,
int  ys2,
SDL_Surface *  dst_surface,
DT  dst,
int  xd1,
int  yd1,
int  xd2,
int  yd2,
Uint32 *  lutVOI 
)
inline

Definition at line 91 of file sdlstretch.cpp.

References StretchTemplate(), and StretchTemplateLUT().

Referenced by SDL_StretchSurface().

void SDL_StretchSurface ( SDL_Surface *  src_surface,
int  xs1,
int  ys1,
int  xs2,
int  ys2,
SDL_Surface *  dst_surface,
int  xd1,
int  yd1,
int  xd2,
int  yd2,
Uint32 *  lutVOI 
)

Definition at line 146 of file sdlstretch.cpp.

References RectStretchTemplate().

Referenced by SDL_StretchSurface(), and Surface::strech().

void SDL_StretchSurface ( SDL_Surface *  src_surface,
SDL_Rect *  src_rect,
SDL_Surface *  dst_surface,
SDL_Rect *  dst_rect,
Uint32 *  voiLUT 
)

Definition at line 203 of file sdlstretch.cpp.

References SDL_StretchSurface().

template<class ST , class DT >
void StretchTemplate ( int  x1,
int  x2,
int  y1,
int  y2,
int  yr,
int  yw,
ST  src_pixels,
DT  dst_pixels 
)
inline

Definition at line 65 of file sdlstretch.cpp.

Referenced by RectStretchTemplate().

template<class ST , class DT >
void StretchTemplateLUT ( int  x1,
int  x2,
int  y1,
int  y2,
int  yr,
int  yw,
ST  src_pixels,
DT  dst_pixels,
Uint32 *  lut 
)
inline

Definition at line 36 of file sdlstretch.cpp.

Referenced by RectStretchTemplate().