added input and output attribute structures as arguments to process_page().

Mon, 31 Dec 2001 08:25:04 +0000

author
eric
date
Mon, 31 Dec 2001 08:25:04 +0000
changeset 23
1fe64161aaac
parent 22
198616589af5
child 24
6575fcfbdb1b

added input and output attribute structures as arguments to process_page().

t2p.c file | annotate | diff | revisions
t2p.h file | annotate | diff | revisions
tumble.c file | annotate | diff | revisions
tumble.h file | annotate | diff | revisions
     1.1 --- a/t2p.c	Mon Dec 31 08:12:58 2001 +0000
     1.2 +++ b/t2p.c	Mon Dec 31 08:25:04 2001 +0000
     1.3 @@ -1,7 +1,7 @@
     1.4  /*
     1.5   * tiffg4: reencode a bilevel TIFF file as a single-strip TIFF Class F Group 4
     1.6   * Main program
     1.7 - * $Id: t2p.c,v 1.5 2001/12/30 09:09:08 eric Exp $
     1.8 + * $Id: t2p.c,v 1.6 2001/12/31 00:25:04 eric Exp $
     1.9   * Copyright 2001 Eric Smith <eric@brouhaha.com>
    1.10   *
    1.11   * This program is free software; you can redistribute it and/or modify
    1.12 @@ -80,7 +80,9 @@
    1.13  }
    1.14  
    1.15  
    1.16 -boolean process_page (int image)  /* range 1 .. n */
    1.17 +boolean process_page (int image,  /* range 1 .. n */
    1.18 +		      input_attributes_t input_attributes,
    1.19 +		      output_attributes_t output_attributes)
    1.20  {
    1.21    u32 image_length, image_width;
    1.22  #ifdef CHECK_DEPTH
     2.1 --- a/t2p.h	Mon Dec 31 08:12:58 2001 +0000
     2.2 +++ b/t2p.h	Mon Dec 31 08:25:04 2001 +0000
     2.3 @@ -1,14 +1,22 @@
     2.4 +typedef struct
     2.5 +{
     2.6 +  page_size_t size;
     2.7 +  int rotation;
     2.8 +  crop_t crop;
     2.9 +} input_attributes_t;
    2.10 +
    2.11 +typedef struct
    2.12 +{
    2.13 +  char *page_number;
    2.14 +  bookmark_t *bookmarks;
    2.15 +} output_attributes_t;
    2.16 +
    2.17  boolean open_tiff_input_file (char *name);
    2.18  boolean close_tiff_input_file (void);
    2.19  
    2.20  boolean open_pdf_output_file (char *name);
    2.21  boolean close_pdf_output_file (void);
    2.22  
    2.23 -boolean process_page (int image);  /* range 1 .. n */
    2.24 -
    2.25 -
    2.26 -
    2.27 -
    2.28 -
    2.29 -
    2.30 -
    2.31 +boolean process_page (int image,  /* range 1 .. n */
    2.32 +		      input_attributes_t input_attributes,
    2.33 +		      output_attributes_t output_attributes);
     3.1 --- a/tumble.c	Mon Dec 31 08:12:58 2001 +0000
     3.2 +++ b/tumble.c	Mon Dec 31 08:25:04 2001 +0000
     3.3 @@ -1,7 +1,7 @@
     3.4  /*
     3.5   * tiffg4: reencode a bilevel TIFF file as a single-strip TIFF Class F Group 4
     3.6   * Main program
     3.7 - * $Id: tumble.c,v 1.5 2001/12/30 09:09:08 eric Exp $
     3.8 + * $Id: tumble.c,v 1.6 2001/12/31 00:25:04 eric Exp $
     3.9   * Copyright 2001 Eric Smith <eric@brouhaha.com>
    3.10   *
    3.11   * This program is free software; you can redistribute it and/or modify
    3.12 @@ -80,7 +80,9 @@
    3.13  }
    3.14  
    3.15  
    3.16 -boolean process_page (int image)  /* range 1 .. n */
    3.17 +boolean process_page (int image,  /* range 1 .. n */
    3.18 +		      input_attributes_t input_attributes,
    3.19 +		      output_attributes_t output_attributes)
    3.20  {
    3.21    u32 image_length, image_width;
    3.22  #ifdef CHECK_DEPTH
     4.1 --- a/tumble.h	Mon Dec 31 08:12:58 2001 +0000
     4.2 +++ b/tumble.h	Mon Dec 31 08:25:04 2001 +0000
     4.3 @@ -1,14 +1,22 @@
     4.4 +typedef struct
     4.5 +{
     4.6 +  page_size_t size;
     4.7 +  int rotation;
     4.8 +  crop_t crop;
     4.9 +} input_attributes_t;
    4.10 +
    4.11 +typedef struct
    4.12 +{
    4.13 +  char *page_number;
    4.14 +  bookmark_t *bookmarks;
    4.15 +} output_attributes_t;
    4.16 +
    4.17  boolean open_tiff_input_file (char *name);
    4.18  boolean close_tiff_input_file (void);
    4.19  
    4.20  boolean open_pdf_output_file (char *name);
    4.21  boolean close_pdf_output_file (void);
    4.22  
    4.23 -boolean process_page (int image);  /* range 1 .. n */
    4.24 -
    4.25 -
    4.26 -
    4.27 -
    4.28 -
    4.29 -
    4.30 -
    4.31 +boolean process_page (int image,  /* range 1 .. n */
    4.32 +		      input_attributes_t input_attributes,
    4.33 +		      output_attributes_t output_attributes);