summaryrefslogtreecommitdiff
path: root/jpeg/jcsample.c
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-01-17 12:29:30 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-01-17 12:29:30 +0100
commit2f09e96b6d478a56484bdb6d771a3dced8c37126 (patch)
treeec81147a77a06f90ffa130da08ed60afe10965cc /jpeg/jcsample.c
parent8941dd1ab7c9d9c8b1b0db3d49c557487ca31eca (diff)
Update bundled libjpeg to version 9e (16 jan 2022)
Diffstat (limited to 'jpeg/jcsample.c')
-rw-r--r--jpeg/jcsample.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/jpeg/jcsample.c b/jpeg/jcsample.c
index 4d36f85f3..2372c4173 100644
--- a/jpeg/jcsample.c
+++ b/jpeg/jcsample.c
@@ -2,6 +2,7 @@
* jcsample.c
*
* Copyright (C) 1991-1996, Thomas G. Lane.
+ * Modified 2003-2020 by Guido Vollbeding.
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
@@ -200,7 +201,7 @@ fullsize_downsample (j_compress_ptr cinfo, jpeg_component_info * compptr,
JSAMPARRAY input_data, JSAMPARRAY output_data)
{
/* Copy the data */
- jcopy_sample_rows(input_data, 0, output_data, 0,
+ jcopy_sample_rows(input_data, output_data,
cinfo->max_v_samp_factor, cinfo->image_width);
/* Edge-expand */
expand_right_edge(output_data, cinfo->max_v_samp_factor, cinfo->image_width,
@@ -483,10 +484,9 @@ jinit_downsampler (j_compress_ptr cinfo)
boolean smoothok = TRUE;
int h_in_group, v_in_group, h_out_group, v_out_group;
- downsample = (my_downsample_ptr)
- (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_IMAGE,
- SIZEOF(my_downsampler));
- cinfo->downsample = (struct jpeg_downsampler *) downsample;
+ downsample = (my_downsample_ptr) (*cinfo->mem->alloc_small)
+ ((j_common_ptr) cinfo, JPOOL_IMAGE, SIZEOF(my_downsampler));
+ cinfo->downsample = &downsample->pub;
downsample->pub.start_pass = start_pass_downsample;
downsample->pub.downsample = sep_downsample;
downsample->pub.need_context_rows = FALSE;