pike.git
/
src
/
modules
/
Image
/
orient.c
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/modules/Image/orient.c:1:
/* || This file is part of Pike. For copyright information see COPYRIGHT. || Pike is distributed under GPL, LGPL and MPL. See the file COPYING || for more information.
-
|| $Id: orient.c,v 1.
25
2004
/
03
/
05
23
:
04
:
03
nilsson
Exp $
+
|| $Id: orient.c,v 1.
26
2007
/
01
/
17
17
:
22
:
27
grubba
Exp $
*/ /* **! module Image **! class Image */ #include "global.h" #include <math.h>
pike.git/src/modules/Image/orient.c:93:
**! returns an image or an array of the four new image objects **! **! note **! experimental status; may not be exact the same **! output in later versions */ static INLINE int sq(int a) { return a*a; } static INLINE int my_abs(int a) { return (a<0)?-a:a; } static void _image_orient(struct image *source,
-
struct object *o[
4
],
-
struct image *img[
4
])
+
struct object *o[
5
],
+
struct image *img[
5
])
{ int i; struct { int x,y; } or[4]={ {1,0}, {1,1}, {0,1}, {-1,1} }; int x,y; for (i=0; i<5; i++) { push_int(source->xsize); push_int(source->ysize); o[i]=clone_object(image_program,2);