Lines Matching refs:factorx
113 int _shrinkSurfaceRGBA(SDL_Surface * src, SDL_Surface * dst, int factorx, int factory) in _shrinkSurfaceRGBA() argument
125 n_average = factorx*factory; in _shrinkSurfaceRGBA()
145 for (dx=0; dx < factorx; dx++) { in _shrinkSurfaceRGBA()
154 sp = (tColorRGBA *)((Uint8*)sp + (src->pitch - 4*factorx)); // next y in _shrinkSurfaceRGBA()
159 sp = (tColorRGBA *)((Uint8*)oosp + 4*factorx); in _shrinkSurfaceRGBA()
202 int _shrinkSurfaceY(SDL_Surface * src, SDL_Surface * dst, int factorx, int factory) in _shrinkSurfaceY() argument
214 n_average = factorx*factory; in _shrinkSurfaceY()
234 for (dx=0; dx < factorx; dx++) { in _shrinkSurfaceY()
241 sp = (Uint8 *)((Uint8*)sp + (src->pitch - factorx)); in _shrinkSurfaceY()
246 sp = (Uint8 *)((Uint8*)oosp + factorx); in _shrinkSurfaceY()
1548 SDL_Surface *shrinkSurface(SDL_Surface *src, int factorx, int factory) in shrinkSurface() argument
1607 dstwidth=rz_src->w/factorx; in shrinkSurface()
1608 while (dstwidth*factorx>rz_src->w) { dstwidth--; } in shrinkSurface()
1647 result = _shrinkSurfaceRGBA(rz_src, rz_dst, factorx, factory); in shrinkSurface()
1672 result = _shrinkSurfaceY(rz_src, rz_dst, factorx, factory); in shrinkSurface()