Lines Matching refs:compressed_run
296 int pixel = 0, compressed_run = 0, rle_compression = 0; in compress_row() local
308 if (compressed_run == 0) { in compress_row()
310 compressed_run++; in compress_row()
316 if (compressed_run == 1) { in compress_row()
324 if (compressed_run >= 128 || memcmp(uncompressed_rowp, uncompressed_rowp - 1, 1) != 0) { in compress_row()
326 rle_compression = build_rle_packet(row, rle_type, compressed_run, uncompressed_row); in compress_row()
329 compressed_run = 0; in compress_row()
332 compressed_run++; in compress_row()
336 if (compressed_run >= 128 || memcmp(uncompressed_rowp, uncompressed_rowp - 1, 1) == 0) { in compress_row()
338 rle_compression = build_rle_packet(row, rle_type, compressed_run, uncompressed_row); in compress_row()
341 compressed_run = 0; in compress_row()
345 compressed_run++; in compress_row()
352 if (compressed_run) { in compress_row()
354 compressed_length += build_rle_packet(row, rle_type, compressed_run, uncompressed_row); in compress_row()