1.1 --- a/bitblt.h Sat Feb 22 10:02:06 2003 +0000 1.2 +++ b/bitblt.h Sun Feb 23 17:40:41 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.11 2003/02/20 04:11:06 eric Exp $ 1.8 + * $Id: bitblt.h,v 1.12 2003/02/23 09:40:41 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 @@ -115,8 +115,16 @@ 1.13 * Returns the actual number of runs counted, or -max_runs if there 1.14 * was not enough room in the array. 1.15 */ 1.16 + 1.17 +typedef struct 1.18 +{ 1.19 + bool value; 1.20 + int32_t left; 1.21 + uint32_t width; 1.22 +} run_t; 1.23 + 1.24 int32_t get_row_run_lengths (Bitmap *src, 1.25 int32_t y, 1.26 int32_t min_x, int32_t max_x, 1.27 int32_t max_runs, 1.28 - uint32_t *run_length); 1.29 + run_t *runs);