pike.git
/
src
/
modules
/
Image
/
dct.c
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/modules/Image/dct.c:1:
-
/* $Id: dct.c,v 1.
2
1997/03/
10
21
:
33
:
36
grubba
Exp $ */
+
/* $Id: dct.c,v 1.
3
1997/03/
12
12
:
19
:
25
hubbe
Exp $ */
#include "global.h" #include <math.h> #include <ctype.h> #include "stralloc.h" #include "global.h" #include "types.h" #include "macros.h"
pike.git/src/modules/Image/dct.c:47:
if (!(area=malloc(sizeof(rgbd_group)*THIS->xsize*THIS->ysize+1))) error("Out of memory\n"); if (!(costbl=malloc(sizeof(double)*THIS->xsize+1))) { free(area); error("Out of memory\n"); }
-
o=clone(image_program,0);
+
o=clone
_object
(image_program,0);
img=(struct image*)(o->storage); *img=*THIS; if (args>=2 && sp[-args].type==T_INT && sp[1-args].type==T_INT) { img->xsize=max(1,sp[-args].u.integer); img->ysize=max(1,sp[1-args].u.integer); }