t2p.c

changeset 94
7664a3f112ba
parent 92
e3254135cf76
child 108
9b35b78d4c91
     1.1 diff -r 98a8a2c763fd -r 7664a3f112ba t2p.c
     1.2 --- a/t2p.c	Mon Mar 10 09:58:34 2003 +0000
     1.3 +++ b/t2p.c	Mon Mar 10 13:08:25 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   * Main program
     1.8 - * $Id: t2p.c,v 1.27 2003/03/10 01:58:09 eric Exp $
     1.9 + * $Id: t2p.c,v 1.28 2003/03/10 05:08:25 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 @@ -304,7 +304,7 @@
    1.14    uint16_t planar_config;
    1.15  
    1.16    uint16_t resolution_unit;
    1.17 -  double x_resolution, y_resolution;
    1.18 +  float x_resolution, y_resolution;
    1.19    double dest_x_resolution, dest_y_resolution;
    1.20  
    1.21    double width_points, height_points;  /* really 1/72 inch units rather than
    1.22 @@ -439,20 +439,17 @@
    1.23  		image_length * bitmap->row_words * sizeof (word_type));
    1.24  #endif /* TIFF_REVERSE_BITS */
    1.25  
    1.26 +#if 0
    1.27    if (input_attributes.has_page_size)
    1.28      bitmap = resize_bitmap (bitmap,
    1.29  			    x_resolution,
    1.30  			    y_resolution,
    1.31  			    input_attributes);
    1.32 +#endif
    1.33  
    1.34    rotate_bitmap (bitmap,
    1.35  		 input_attributes);
    1.36  
    1.37 -#ifdef TIFF_REVERSE_BITS
    1.38 -  reverse_bits ((uint8_t *) bitmap->bits,
    1.39 -		image_length * bitmap->row_words * sizeof (word_type));
    1.40 -#endif /* TIFF_REVERSE_BITS */
    1.41 -
    1.42    width_points = (rect_width (& bitmap->rect) / dest_x_resolution) * POINTS_PER_INCH;
    1.43    height_points = (rect_height (& bitmap->rect) / dest_y_resolution) * POINTS_PER_INCH;
    1.44  
    1.45 @@ -464,7 +461,6 @@
    1.46  
    1.47    page = pdf_new_page (out->pdf, width_points, height_points);
    1.48  
    1.49 -#if 0
    1.50    pdf_write_g4_fax_image (page,
    1.51  			  0, 0,  /* x, y */
    1.52  			  width_points, height_points,
    1.53 @@ -472,7 +468,6 @@
    1.54  			  0, /* ImageMask */
    1.55  			  0, 0, 0,  /* r, g, b */
    1.56  			  0); /* BlackIs1 */
    1.57 -#endif
    1.58  
    1.59    while (bookmarks)
    1.60      {