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