Lines Matching refs:padding
93 int bitmap_size = 0, info_size, total_size, padding; in gdImageBmpCtx() local
156 padding = ((int)(im->trueColor ? 3 : 1) * im->sx) % 4; in gdImageBmpCtx()
157 if (padding) { in gdImageBmpCtx()
158 padding = 4 - padding; in gdImageBmpCtx()
194 for (xpos = padding; xpos > 0; --xpos) { in gdImageBmpCtx()
244 for (xpos = padding; xpos > 0; --xpos) { in gdImageBmpCtx()
675 int padding = 0, alpha = 0, red = 0, green = 0, blue = 0; in bmp_read_direct() local
720 padding = ((int)(info->depth / 8) * info->width) % 4; in bmp_read_direct()
721 if (padding) { in bmp_read_direct()
722 padding = 4 - padding; in bmp_read_direct()
755 for (xpos = padding; xpos > 0; --xpos) { in bmp_read_direct()
790 int padding = 0, current_byte = 0, bit = 0; in bmp_read_1bit() local
817 padding = (info->width + 7) / 8 % 4; in bmp_read_1bit()
818 if (padding) { in bmp_read_1bit()
819 padding = 4 - padding; in bmp_read_1bit()
848 for (xpos = padding; xpos > 0; --xpos) { in bmp_read_1bit()
860 int padding = 0, current_byte = 0; in bmp_read_4bit() local
887 padding = ((int)ceil(0.5 * info->width)) % 4; in bmp_read_4bit()
888 if (padding) { in bmp_read_4bit()
889 padding = 4 - padding; in bmp_read_4bit()
924 for (xpos = padding; xpos > 0; --xpos) { in bmp_read_4bit()
947 int padding = 0; in bmp_read_8bit() local
974 padding = (1 * info->width) % 4; in bmp_read_8bit()
975 if (padding) { in bmp_read_8bit()
976 padding = 4 - padding; in bmp_read_8bit()
999 for (xpos = padding; xpos > 0; --xpos) { in bmp_read_8bit()
1023 int padding = 0; in bmp_read_rle() local
1049 padding = 0; in bmp_read_rle()
1056 padding++; in bmp_read_rle()
1072 if (padding % 2 && !gdGetByte(&index, infile)) { in bmp_read_rle()