diff options
author | Thomas G. Lane <tgl@netcom.com> | 1995-08-02 00:00:00 +0000 |
---|---|---|
committer | DRC <information@libjpeg-turbo.org> | 2015-07-29 15:31:30 -0500 |
commit | bc79e0680a45d1ca330d690dae0340c8e17ab5e3 (patch) | |
tree | a72d3996a6a70824338566ef36c2fe8acb00fba0 /wrbmp.c | |
parent | a8b67c4fbbfde9b4b4e03f2dea8f4f0b1900fc33 (diff) | |
download | libjpeg-turbo-bc79e0680a45d1ca330d690dae0340c8e17ab5e3.tar.gz |
The Independent JPEG Group's JPEG software v6
Diffstat (limited to 'wrbmp.c')
-rw-r--r-- | wrbmp.c | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -1,7 +1,7 @@ /* * wrbmp.c * - * Copyright (C) 1994, Thomas G. Lane. + * Copyright (C) 1994-1995, Thomas G. Lane. * This file is part of the Independent JPEG Group's software. * For conditions of distribution and use, see the accompanying README file. * @@ -80,7 +80,8 @@ put_pixel_rows (j_decompress_ptr cinfo, djpeg_dest_ptr dinfo, /* Access next row in virtual array */ image_ptr = (*cinfo->mem->access_virt_sarray) - ((j_common_ptr) cinfo, dest->whole_image, dest->cur_output_row, TRUE); + ((j_common_ptr) cinfo, dest->whole_image, + dest->cur_output_row, (JDIMENSION) 1, TRUE); dest->cur_output_row++; /* Transfer data. Note destination values must be in BGR order @@ -114,7 +115,8 @@ put_gray_rows (j_decompress_ptr cinfo, djpeg_dest_ptr dinfo, /* Access next row in virtual array */ image_ptr = (*cinfo->mem->access_virt_sarray) - ((j_common_ptr) cinfo, dest->whole_image, dest->cur_output_row, TRUE); + ((j_common_ptr) cinfo, dest->whole_image, + dest->cur_output_row, (JDIMENSION) 1, TRUE); dest->cur_output_row++; /* Transfer data. */ @@ -363,7 +365,7 @@ finish_output_bmp (j_decompress_ptr cinfo, djpeg_dest_ptr dinfo) (*progress->pub.progress_monitor) ((j_common_ptr) cinfo); } image_ptr = (*cinfo->mem->access_virt_sarray) - ((j_common_ptr) cinfo, dest->whole_image, row-1, FALSE); + ((j_common_ptr) cinfo, dest->whole_image, row-1, (JDIMENSION) 1, FALSE); data_ptr = image_ptr[0]; for (col = dest->row_width; col > 0; col--) { putc(GETJSAMPLE(*data_ptr), outfile); @@ -421,7 +423,7 @@ jinit_write_bmp (j_decompress_ptr cinfo, boolean is_os2) /* Allocate space for inversion array, prepare for write pass */ dest->whole_image = (*cinfo->mem->request_virt_sarray) - ((j_common_ptr) cinfo, JPOOL_IMAGE, + ((j_common_ptr) cinfo, JPOOL_IMAGE, FALSE, row_width, cinfo->output_height, (JDIMENSION) 1); dest->cur_output_row = 0; if (cinfo->progress != NULL) { |