Lines Matching refs:row
29 static int build_rle_packet(unsigned char *row, int packet_type, int length, unsigned char *data);
94 int i, row, xpos, pixel; in gdImageBmpCtx() local
179 for (row = (im->sy - 1); row >= 0; row--) { in gdImageBmpCtx()
186 *uncompressed_row++ = (unsigned char)gdImageGetPixel(im, xpos, row); in gdImageBmpCtx()
188 Putchar(gdImageGetPixel(im, xpos, row), out); in gdImageBmpCtx()
234 for (row = (im->sy - 1); row >= 0; row--) { in gdImageBmpCtx()
236 pixel = gdImageGetPixel(im, xpos, row); in gdImageBmpCtx()
292 static int compress_row(unsigned char *row, int length) in compress_row() argument
304 memcpy(uncompressed_row, row, length); in compress_row()
326 rle_compression = build_rle_packet(row, rle_type, compressed_run, uncompressed_row); in compress_row()
327 row += rle_compression; in compress_row()
338 rle_compression = build_rle_packet(row, rle_type, compressed_run, uncompressed_row); in compress_row()
339 row += rle_compression; in compress_row()
354 compressed_length += build_rle_packet(row, rle_type, compressed_run, uncompressed_row); in compress_row()
363 static int build_rle_packet(unsigned char *row, int packet_type, int length, unsigned char *data) in build_rle_packet() argument
375 memset(row, 1, 1); in build_rle_packet()
376 row++; in build_rle_packet()
378 memcpy(row, data++, 1); in build_rle_packet()
379 row++; in build_rle_packet()
383 memset(row, length, 1); in build_rle_packet()
384 row++; in build_rle_packet()
386 memcpy(row, data, 1); in build_rle_packet()
387 row++; in build_rle_packet()
390 memset(row, BMP_RLE_COMMAND, 1); in build_rle_packet()
391 row++; in build_rle_packet()
393 memset(row, length, 1); in build_rle_packet()
394 row++; in build_rle_packet()
396 memcpy(row, data, length); in build_rle_packet()
397 row += length; in build_rle_packet()
401 memset(row, 0, 1); in build_rle_packet()
402 row++; in build_rle_packet()
674 int ypos = 0, xpos = 0, row = 0; in bmp_read_direct() local
728 row = ypos; in bmp_read_direct()
730 row = info->height - ypos - 1; in bmp_read_direct()
753 gdImageSetPixel(im, xpos, row, gdTrueColor(red, green, blue)); in bmp_read_direct()
789 int ypos = 0, xpos = 0, row = 0, index = 0; in bmp_read_1bit() local
824 row = ypos; in bmp_read_1bit()
826 row = info->height - ypos - 1; in bmp_read_1bit()
840 gdImageSetPixel(im, xpos + bit, row, index); in bmp_read_1bit()
859 int ypos = 0, xpos = 0, row = 0, index = 0; in bmp_read_4bit() local
896 row = ypos; in bmp_read_4bit()
898 row = info->height - ypos - 1; in bmp_read_4bit()
910 gdImageSetPixel(im, xpos, row, index); in bmp_read_4bit()
921 gdImageSetPixel(im, xpos + 1, row, index); in bmp_read_4bit()
946 int ypos = 0, xpos = 0, row = 0, index = 0; in bmp_read_8bit() local
983 row = ypos; in bmp_read_8bit()
985 row = info->height - ypos - 1; in bmp_read_8bit()
996 gdImageSetPixel(im, xpos, row, index); in bmp_read_8bit()
1021 int ypos = 0, xpos = 0, row = 0, index = 0; in bmp_read_rle() local
1031 row = info->height - ypos - 1; in bmp_read_rle()
1044 gdImageSetPixel(im, xpos, row, index); in bmp_read_rle()
1067 gdImageSetPixel(im, xpos, row, temp); in bmp_read_rle()