Lines Matching refs:uncompressed_row
28 static int compress_row(unsigned char *uncompressed_row, int length);
96 unsigned char *uncompressed_row = NULL, *uncompressed_row_start = NULL; in gdImageBmpCtx() local
172 …uncompressed_row = uncompressed_row_start = (unsigned char *) gdCalloc(gdImageSX(im) * 2, sizeof(c… in gdImageBmpCtx()
173 if (!uncompressed_row) { in gdImageBmpCtx()
181 memset (uncompressed_row, 0, gdImageSX(im)); in gdImageBmpCtx()
186 *uncompressed_row++ = (unsigned char)gdImageGetPixel(im, xpos, row); in gdImageBmpCtx()
199 uncompressed_row = uncompressed_row_start; in gdImageBmpCtx()
200 if ((compressed_size = compress_row(uncompressed_row, gdImageSX(im))) < 0) { in gdImageBmpCtx()
207 gdPutBuf(uncompressed_row, compressed_size, out); in gdImageBmpCtx()
214 if (compression && uncompressed_row) { in gdImageBmpCtx()
215 gdFree(uncompressed_row); in gdImageBmpCtx()
297 unsigned char *uncompressed_row = NULL, *uncompressed_rowp = NULL, *uncompressed_start = NULL; in compress_row() local
299 uncompressed_row = (unsigned char *) gdMalloc(length); in compress_row()
300 if (!uncompressed_row) { in compress_row()
304 memcpy(uncompressed_row, row, length); in compress_row()
305 uncompressed_start = uncompressed_rowp = uncompressed_row; in compress_row()
309 uncompressed_row = uncompressed_rowp; in compress_row()
326 rle_compression = build_rle_packet(row, rle_type, compressed_run, uncompressed_row); in compress_row()
338 rle_compression = build_rle_packet(row, rle_type, compressed_run, uncompressed_row); in compress_row()
354 compressed_length += build_rle_packet(row, rle_type, compressed_run, uncompressed_row); in compress_row()