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()
353 compressed_length += build_rle_packet(row, rle_type, compressed_run, uncompressed_row); in compress_row()
361 static int build_rle_packet(unsigned char *row, int packet_type, int length, unsigned char *data) in build_rle_packet() argument
373 memset(row, 1, 1); in build_rle_packet()
374 row++; in build_rle_packet()
376 memcpy(row, data++, 1); in build_rle_packet()
377 row++; in build_rle_packet()
381 memset(row, length, 1); in build_rle_packet()
382 row++; in build_rle_packet()
384 memcpy(row, data, 1); in build_rle_packet()
385 row++; in build_rle_packet()
388 memset(row, BMP_RLE_COMMAND, 1); in build_rle_packet()
389 row++; in build_rle_packet()
391 memset(row, length, 1); in build_rle_packet()
392 row++; in build_rle_packet()
394 memcpy(row, data, length); in build_rle_packet()
395 row += length; in build_rle_packet()
399 memset(row, 0, 1); in build_rle_packet()
400 row++; in build_rle_packet()
672 int ypos = 0, xpos = 0, row = 0; in bmp_read_direct() local
726 row = ypos; in bmp_read_direct()
728 row = info->height - ypos - 1; in bmp_read_direct()
751 gdImageSetPixel(im, xpos, row, gdTrueColor(red, green, blue)); in bmp_read_direct()
787 int ypos = 0, xpos = 0, row = 0, index = 0; in bmp_read_1bit() local
822 row = ypos; in bmp_read_1bit()
824 row = info->height - ypos - 1; in bmp_read_1bit()
838 gdImageSetPixel(im, xpos + bit, row, index); in bmp_read_1bit()
857 int ypos = 0, xpos = 0, row = 0, index = 0; in bmp_read_4bit() local
894 row = ypos; in bmp_read_4bit()
896 row = info->height - ypos - 1; in bmp_read_4bit()
908 gdImageSetPixel(im, xpos, row, index); in bmp_read_4bit()
919 gdImageSetPixel(im, xpos + 1, row, index); in bmp_read_4bit()
944 int ypos = 0, xpos = 0, row = 0, index = 0; in bmp_read_8bit() local
981 row = ypos; in bmp_read_8bit()
983 row = info->height - ypos - 1; in bmp_read_8bit()
994 gdImageSetPixel(im, xpos, row, index); in bmp_read_8bit()
1019 int ypos = 0, xpos = 0, row = 0, index = 0; in bmp_read_rle() local
1029 row = info->height - ypos - 1; in bmp_read_rle()
1042 gdImageSetPixel(im, xpos, row, index); in bmp_read_rle()
1065 gdImageSetPixel(im, xpos, row, temp); in bmp_read_rle()