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

version» Context lines:

pike.git/src/modules/Image/layers.c:1:   /*   **! module Image   **! note - **! $Id: layers.c,v 1.40 2000/01/30 22:14:05 hubbe Exp $ + **! $Id: layers.c,v 1.41 2000/02/03 19:02:22 grubba Exp $   **! class Layer   **! see also: layers   **!      **!   **!   **! <add_appendix name="layers" title="Image.Layer modes">   **! <dl compact>   **! <dt><i>The variables in the expression:</i>   **! <dt>L<dd><i>The active layer</i>
pike.git/src/modules/Image/layers.c:208:   **! }   **!   **! </execute>   **! </add_appendix>   */      #include "global.h"      #include <math.h> /* floor */    - RCSID("$Id: layers.c,v 1.40 2000/01/30 22:14:05 hubbe Exp $"); + RCSID("$Id: layers.c,v 1.41 2000/02/03 19:02:22 grubba Exp $");      #include "image_machine.h"      #include "stralloc.h"   #include "pike_macros.h"   #include "object.h"   #include "constants.h"   #include "interpret.h"   #include "svalue.h"   #include "array.h"
pike.git/src/modules/Image/layers.c:2704:    !(img=(struct image*)get_storage(sp[-1].u.object,image_program)))    error("No image returned from image->copy\n");    if (img->xsize!=xz || img->ysize!=yz)    error("Image returned from image->copy had "    "unexpected size (%d,%d, expected %d,%d)\n",    img->xsize,img->ysize,xz,yz);       free_object(l->image);    l->image=sp[-1].u.object;    sp--; +  dmalloc_touch_svalue(sp);    l->img=img;    }       if (zot && l->alpha)    {    ref_push_object(l->alpha);    push_constant_text("copy");    f_index(2);    push_int(xi);    push_int(yi);
pike.git/src/modules/Image/layers.c:2730:    if (sp[-1].type!=T_OBJECT ||    !(img=(struct image*)get_storage(sp[-1].u.object,image_program)))    error("No image returned from alpha->copy\n");    if (img->xsize!=xz || img->ysize!=yz)    error("Image returned from alpha->copy had "    "unexpected size (%d,%d, expected %d,%d)\n",    img->xsize,img->ysize,xz,yz);    free_object(l->alpha);    l->alpha=sp[-1].u.object;    sp--; +  dmalloc_touch_svalue(sp);    l->alp=img;    }       l->xoffs=x;    l->yoffs=y;    l->xsize=xz;    l->ysize=yz;       stack_pop_n_elems_keep_top(args);   }
pike.git/src/modules/Image/layers.c:2812:    push_int(y1+THIS->yoffs);    push_int(x2-x1+1);    push_int(y2-y1+1);    f_aggregate(4);   }      void image_layer_autocrop(INT32 args)   {    image_layer_find_autocrop(args);    sp--; +  dmalloc_touch_svalue(sp);    push_array_items(sp->u.array); /* frees */    image_layer_crop(4);   }         /******************************************************/      void init_image_layers(void)   {    char buf[100];