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

version» Context lines:

pike.git/src/modules/Image/dct.c:26:         #define sp Pike_sp      extern struct program *image_program;   #ifdef THIS   #undef THIS /* Needed for NT */   #endif   #define THIS ((struct image *)(Pike_fp->current_storage))    - #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.   **!   **! Method for scaling is rather complex;   **! the image is transformed via a cosine transform,   **! and then resampled back.