pike.git / src / modules / Image / dct.c

version» Context lines:

pike.git/src/modules/Image/dct.c:1: - /* $Id: dct.c,v 1.19 2001/09/24 11:15:45 grubba Exp $ */ + /* $Id: dct.c,v 1.20 2002/05/11 00:19:12 nilsson Exp $ */      /*   **! module Image   **! note - **! $Id: dct.c,v 1.19 2001/09/24 11:15:45 grubba Exp $ + **! $Id: dct.c,v 1.20 2002/05/11 00:19:12 nilsson Exp $   **! class Image   */      #include "global.h"      #include <math.h>   #include <ctype.h>      #include "stralloc.h"   #include "global.h"
pike.git/src/modules/Image/dct.c:20:   #include "interpret.h"   #include "svalue.h"   #include "array.h"   #include "pike_error.h"      #include "image.h"      /* This must be included last! */   #include "module_magic.h"    + #define sp Pike_sp +    extern struct program *image_program;   #ifdef THIS   #undef THIS /* Needed for NT */   #endif - #define THIS ((struct image *)(fp->current_storage)) - #define THISOBJ (fp->current_object) + #define THIS ((struct image *)(Pike_fp->current_storage)) + #define THISOBJ (Pike_fp->current_object)      #define testrange(x) MAXIMUM(MINIMUM((x),255),0)      static const double c0=0.70710678118654752440;   static const double pi=3.14159265358979323846;      /*   **! method object dct(int newx,int newy)   **! Scales the image to a new size.   **!