bitblt.h

changeset 72
cddd6226b509
parent 57
b2a2f61135bb
child 91
e63762afae80
     1.1 diff -r 3e2d23e25fc3 -r cddd6226b509 bitblt.h
     1.2 --- a/bitblt.h	Sat Feb 22 10:02:06 2003 +0000
     1.3 +++ b/bitblt.h	Sun Feb 23 17:40:41 2003 +0000
     1.4 @@ -4,7 +4,7 @@
     1.5   *      will be compressed using ITU-T T.6 (G4) fax encoding.
     1.6   *
     1.7   * bitblt routines
     1.8 - * $Id: bitblt.h,v 1.11 2003/02/20 04:11:06 eric Exp $
     1.9 + * $Id: bitblt.h,v 1.12 2003/02/23 09:40:41 eric Exp $
    1.10   * Copyright 2001, 2002, 2003 Eric Smith <eric@brouhaha.com>
    1.11   *
    1.12   * This program is free software; you can redistribute it and/or modify
    1.13 @@ -115,8 +115,16 @@
    1.14   * Returns the actual number of runs counted, or -max_runs if there
    1.15   * was not enough room in the array.
    1.16   */
    1.17 +
    1.18 +typedef struct
    1.19 +{
    1.20 +  bool value;
    1.21 +  int32_t left;
    1.22 +  uint32_t width;
    1.23 +} run_t;
    1.24 +
    1.25  int32_t get_row_run_lengths (Bitmap *src,
    1.26  			     int32_t y,
    1.27  			     int32_t min_x, int32_t max_x,
    1.28  			     int32_t max_runs,
    1.29 -			     uint32_t *run_length);
    1.30 +			     run_t *runs);