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

version» Context lines:

pike.git/src/modules/Image/orient.c:104:   {    int i;    struct { int x,y; } or[4]={ {1,0}, {1,1}, {0,1}, {-1,1} };    int x,y;       for (i=0; i<5; i++)    {    push_int(source->xsize);    push_int(source->ysize);    o[i]=clone_object(image_program,2); -  img[i]=(struct image*)get_storage(o[i],image_program); +  img[i]=get_storage(o[i],image_program);    push_object(o[i]);    }      THREADS_ALLOW();   CHRONO("start");    for (i=0; i<4; i++) /* four directions */    {    rgb_group *d=img[i]->img;    rgb_group *s=source->img;    int xz=source->xsize;
pike.git/src/modules/Image/orient.c:200:    h=this->ysize;       for(i=0; i<4; i++)    {    img1=(struct image*)sp[1-args].u.array->item[i].u.object->storage;    if ((img1->xsize!=w)||    (img1->ysize!=h))    Pike_error("The images in the array given as argument 2 to image->orient have different sizes\n");    }    for(i=0; i<4; i++) -  img[i]=(struct image*)sp[1-args].u.array->item[i].u.object->storage; +  img[i]=get_storage(sp[1-args].u.array->item[i].u.object,image_program);    pop_n_elems(args);    push_int(this->xsize);    push_int(this->ysize);    o[4]=clone_object(image_program,2); -  img[4]=(struct image*)get_storage(o[4],image_program); +  img[4]=get_storage(o[4],image_program);    push_object(o[4]);    w=1;    }    else    {    _image_orient(this,o,img);    w=0;    }    s0=img[0]->img;    s1=img[1]->img;