29 if ((vert->width!=1)||(vert->height!=source->height))
30 initialize_vert_stripe(vert,source->height);
33 for (j=0;j<source->height;j++){
35 for (i=0;i<source->width;i++)
36 sum+=get_pixel(source,i,j,0);
37 put_pixel_direct(vert,j,sum/source->width);
53 if ((vert->width!=1)||(vert->height!=source->height))
54 initialize_vert_stripe(vert,source->height);
57 for (j=0;j<source->height;j++){
59 for (i=0;i<source->width;i++)
60 sum+=get_pixel(source,i,j,0);
61 put_pixel_direct(vert,j,sum/source->width);