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

version» Context lines:

pike.git/src/modules/Image/dct.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: dct.c,v 1.28 2005/08/14 02:25:46 nilsson Exp $ + || $Id: dct.c,v 1.29 2005/08/15 17:00:39 grubba Exp $   */      /*   **! module Image   **! class Image   */      #include "global.h"      #include <math.h>
pike.git/src/modules/Image/dct.c:81:       if (!THIS->img)    Pike_error("Called Image.Image object is not initialized\n");      #ifdef DCT_DEBUG    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)));   #endif    -  area=xalloc(sizeof(rgbd_group)*THIS->xsize*THIS->ysize); +  area=xalloc(sizeof(rgbd_group)*THIS->xsize*THIS->ysize+1);    -  if (!(costbl=malloc(sizeof(double)*THIS->xsize))) +  if (!(costbl=malloc(sizeof(double)*THIS->xsize+1)))    {    free(area);    resource_error(NULL,0,0,"memory",0,"Out of memory.\n");    }       o=clone_object(image_program,0);    img=(struct image*)(o->storage);    *img=*THIS;       if (args>=2