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

version» Context lines:

pike.git/src/modules/Image/dct.c:85: Inside #if defined(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       area=xalloc(sizeof(rgbd_group)*THIS->xsize*THIS->ysize+1);       if (!(costbl=malloc(sizeof(double)*THIS->xsize+1)))    {    free(area); -  resource_error(NULL,0,0,"memory",0,"Out of memory.\n"); +  out_of_memory_error(NULL, -1, 0);    }       o=clone_object(image_program,0);    img=(struct image*)(o->storage);    *img=*THIS;       if (args>=2    && TYPEOF(sp[-args]) == T_INT    && TYPEOF(sp[1-args]) == T_INT)    {
pike.git/src/modules/Image/dct.c:113:    bad_arg_error("image->dct",sp-args,args,0,"",sp-args,    "Bad arguments to image->dct()\n");    }       if (!(img->img=malloc(sizeof(rgb_group)*    img->xsize*img->ysize+RGB_VEC_PAD)))    {    free(area);    free(costbl);    free_object(o); -  resource_error(NULL,0,0,"memory",0,"Out of memory.\n"); +  out_of_memory_error(NULL, -1, 0);    }       xsz2=THIS->xsize*2.0;    ysz2=THIS->ysize*2.0;       enh=(8.0/THIS->xsize)*(8.0/THIS->ysize);       for (u=0; u<THIS->xsize; u++)    {    double d,z0;