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