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.
16
2000/
08
/
10
16
:
48
:
59
grubba
Exp $ */
+
/* $Id: dct.c,v 1.
17
2000/
12
/
01
08
:
10
:
00
hubbe
Exp $ */
/* **! module Image **! note
-
**! $Id: dct.c,v 1.
16
2000/
08
/
10
16
:
48
:
59
grubba
Exp $
+
**! $Id: dct.c,v 1.
17
2000/
12
/
01
08
:
10
:
00
hubbe
Exp $
**! class Image */ #include "global.h" #include <math.h> #include <ctype.h> #include "stralloc.h" #include "global.h" #include "pike_macros.h" #include "object.h" #include "constants.h" #include "interpret.h" #include "svalue.h" #include "array.h"
-
#include "error.h"
+
#include "
pike_
error.h"
#include "image.h" /* This must be included last! */ #include "module_magic.h" extern struct program *image_program; #ifdef THIS #undef THIS /* Needed for NT */ #endif
pike.git/src/modules/Image/dct.c:74:
void image_dct(INT32 args) { rgbd_group *area,*val; struct object *o; struct image *img; INT32 x,y,u,v; double xsz2,ysz2,enh,xp,yp,dx,dy; double *costbl; rgb_group *pix;
-
if (!THIS->img) error("Called Image.Image object is not initialized\n");;
+
if (!THIS->img)
Pike_
error("Called Image.Image object is not initialized\n");;
fprintf(stderr,"%lu bytes, %lu bytes\n", DO_NOT_WARN((unsigned long)(sizeof(rgbd_group)*THIS->xsize*THIS->ysize)), DO_NOT_WARN((unsigned long)(sizeof(rgb_group)*THIS->xsize*THIS->ysize+1))); if (!(area=malloc(sizeof(rgbd_group)*THIS->xsize*THIS->ysize+1))) resource_error(NULL,0,0,"memory",0,"Out of memory.\n"); if (!(costbl=malloc(sizeof(double)*THIS->xsize+1))) {