1.1 --- a/bitblt.h Tue Mar 11 11:14:39 2003 +0000 1.2 +++ b/bitblt.h Wed Mar 12 06:02:46 2003 +0000 1.3 @@ -4,7 +4,7 @@ 1.4 * will be compressed using ITU-T T.6 (G4) fax encoding. 1.5 * 1.6 * bitblt routines 1.7 - * $Id: bitblt.h,v 1.14 2003/03/10 05:08:25 eric Exp $ 1.8 + * $Id: bitblt.h,v 1.15 2003/03/11 22:02:46 eric Exp $ 1.9 * Copyright 2001, 2002, 2003 Eric Smith <eric@brouhaha.com> 1.10 * 1.11 * This program is free software; you can redistribute it and/or modify 1.12 @@ -103,34 +103,4 @@ 1.13 void reverse_bits (uint8_t *p, int byte_count); 1.14 1.15 1.16 -/* 1.17 - * get_row_run_lengths counts the runs of 0 and 1 bits in row 1.18 - * y of a bitmap, from min_x through max_x inclusive. The run lengths 1.19 - * will be stored in the run_length array. The first entry will be 1.20 - * the length of a zero run (which length may be zero, if the first 1.21 - * bit is a one). The next entry will the be the length of a run of 1.22 - * ones, and they will alternate from there, with even entries representing 1.23 - * runs of zeros, and odd entries representing runs of ones. 1.24 - * 1.25 - * max_runs should be set to the maximum number of run lengths that 1.26 - * can be stored in the run_length array. 1.27 - * 1.28 - * Returns the actual number of runs counted, or -max_runs if there 1.29 - * was not enough room in the array. 1.30 - */ 1.31 - 1.32 -typedef struct 1.33 -{ 1.34 - bool value; 1.35 - int32_t left; 1.36 - uint32_t width; 1.37 -} run_t; 1.38 - 1.39 -int32_t get_row_run_lengths (Bitmap *src, 1.40 - int32_t y, 1.41 - int32_t min_x, int32_t max_x, 1.42 - int32_t max_runs, 1.43 - run_t *runs); 1.44 - 1.45 - 1.46 void bitblt_write_g4 (Bitmap *bitmap, FILE *f);