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

version» Context lines:

pike.git/src/modules/Image/dct.c:69:   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) -  Pike_error("Called Image.Image object is not initialized\n"); +  CHECK_INIT();       get_all_args("dct", args, "%d%d", &x, &y);    x = MAXIMUM(1, x);    y = MAXIMUM(1, y);      #ifdef DCT_DEBUG    fprintf(stderr,"%lu bytes, %lu bytes\n",    (unsigned long)(sizeof(rgbd_group)*THIS->xsize*THIS->ysize),    (unsigned long)(sizeof(rgb_group)*THIS->xsize*THIS->ysize+1));   #endif