Lines Matching refs:run_count
270 int cur, beg_run, run_count, old_run_count, nonrun_count; in RGBE_WriteBytes_RLE() local
277 run_count = old_run_count = 0; in RGBE_WriteBytes_RLE()
278 while((run_count < MINRUNLENGTH) && (beg_run < numbytes)) { in RGBE_WriteBytes_RLE()
279 beg_run += run_count; in RGBE_WriteBytes_RLE()
280 old_run_count = run_count; in RGBE_WriteBytes_RLE()
281 run_count = 1; in RGBE_WriteBytes_RLE()
282 while( (beg_run + run_count < numbytes) && (run_count < 127) in RGBE_WriteBytes_RLE()
283 && (data[beg_run] == data[beg_run + run_count])) in RGBE_WriteBytes_RLE()
284 run_count++; in RGBE_WriteBytes_RLE()
307 if (run_count >= MINRUNLENGTH) { in RGBE_WriteBytes_RLE()
308 buf[0] = static_cast<unsigned char>(128 + run_count); in RGBE_WriteBytes_RLE()
312 cur += run_count; in RGBE_WriteBytes_RLE()