Home | History | Annotate | Download | only in dist

Lines Matching defs:Table

344 	    Error("Can't malloc color table");
756 } Table;
767 Table table;
813 table.x = (Position *) malloc(sizeof(Position) * (src_image->width + 1));
814 if (table.x == NULL)
815 Error("Can't malloc scaled image X table");
816 table.y = (Position *) malloc(sizeof(Position) * (src_image->height + 1));
817 if (table.y == NULL)
818 Error("Can't malloc scaled image Y table");
819 table.width = (Dimension *) malloc(sizeof(Dimension) * src_image->width);
820 if (table.width == NULL)
821 Error("Can't malloc scaled image width table");
822 table.height = (Dimension *) malloc(sizeof(Dimension)*src_image->height);
823 if (table.height == NULL)
824 Error("Can't malloc scaled image height table");
826 table.x[0] = 0;
828 table.x[x] = roundint(ratio_x * x);
829 table.width[x - 1] = table.x[x] - table.x[x - 1];
832 table.y[0] = 0;
834 table.y[y] = roundint(ratio_y * y);
835 table.height[y - 1] = table.y[y] - table.y[y - 1];
838 for (min_y = table.y[src_y]; min_y < exp_max_y; min_y = table.y[y]) {
844 for (y = src_y; table.y[y] < max_y; y++) {
845 if (table.y[y] < min_y)
851 for (h = 0; h < table.height[y]; h++) {
853 (table.y[y] + h - min_y) *
854 dest_image->bytes_per_line + table.x[x],
855 pixel, table.width[x]);
861 for (h = 0; h < table.height[y]; h++) {
862 for (w = 0; w < table.width[x]; w++)
864 table.x[x] + w,
865 table.y[y] + h - min_y,
872 exp_x, min_y, exp_width, table.y[y] - min_y);
877 free(table.x);
878 free(table.y);
879 free(table.width);
880 free(table.height);