pdf_jpeg.c

changeset 147
090af3709920
parent 145
3ed3f7f32837
     1.1 --- a/pdf_jpeg.c	Thu Mar 20 07:52:25 2003 +0000
     1.2 +++ b/pdf_jpeg.c	Thu Mar 20 07:53:09 2003 +0000
     1.3 @@ -2,7 +2,7 @@
     1.4   * tumble: build a PDF file from image files
     1.5   *
     1.6   * PDF routines
     1.7 - * $Id: pdf_jpeg.c,v 1.4 2003/03/19 23:44:53 eric Exp $
     1.8 + * $Id: pdf_jpeg.c,v 1.5 2003/03/19 23:53:09 eric Exp $
     1.9   * Copyright 2003 Eric Smith <eric@brouhaha.com>
    1.10   *
    1.11   * This program is free software; you can redistribute it and/or modify
    1.12 @@ -98,6 +98,9 @@
    1.13  			   double y,
    1.14  			   double width,
    1.15  			   double height,
    1.16 +			   bool color,
    1.17 +			   uint32_t width_samples,
    1.18 +			   uint32_t height_samples,
    1.19  			   FILE *f)
    1.20  {
    1.21    struct pdf_jpeg_image *image;
    1.22 @@ -116,10 +119,9 @@
    1.23  
    1.24    image->f = f;
    1.25  
    1.26 -  /* $$$ quick hack, should read these from file! */
    1.27 -  image->color = 1;
    1.28 -  image->width_samples = 71;
    1.29 -  image->height_samples = 88;
    1.30 +  image->color = color;
    1.31 +  image->width_samples = width_samples;
    1.32 +  image->height_samples = height_samples;
    1.33  
    1.34    pdf_add_array_elem_unique (pdf_page->procset,
    1.35  			     pdf_new_name (image->color ? "ImageC" : "ImageB"));