diff options
author | dcommander <dcommander@632fc199-4ca6-4c93-a231-07263d6284db> | 2010-10-08 08:05:44 +0000 |
---|---|---|
committer | dcommander <dcommander@632fc199-4ca6-4c93-a231-07263d6284db> | 2010-10-08 08:05:44 +0000 |
commit | 1e48ef1ca2eec768ae798933917c3966803a15ba (patch) | |
tree | 2b769f02f8cfb3199cbcd37f09930de4b17f7dad /jdsample.c | |
parent | d5b4d6a6aaa0c8f4bc6e1b0a2351fa6561041115 (diff) |
Added optional emulation of the jpeg-7 or jpeg-8b API/ABI's
git-svn-id: svn://svn.code.sf.net/p/libjpeg-turbo/code/trunk@236 632fc199-4ca6-4c93-a231-07263d6284db
Diffstat (limited to 'jdsample.c')
-rw-r--r-- | jdsample.c | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -3,6 +3,7 @@ * * Copyright (C) 1991-1996, Thomas G. Lane. * Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB + * Copyright (C) 2010, D. R. Commander. * This file is part of the Independent JPEG Group's software. * For conditions of distribution and use, see the accompanying README file. * @@ -23,6 +24,7 @@ #include "jinclude.h" #include "jpeglib.h" #include "jsimd.h" +#include "jpegcomp.h" /* Pointer to routine to upsample a single component */ @@ -420,7 +422,7 @@ jinit_upsampler (j_decompress_ptr cinfo) /* jdmainct.c doesn't support context rows when min_DCT_scaled_size = 1, * so don't ask for it. */ - do_fancy = cinfo->do_fancy_upsampling && cinfo->min_DCT_scaled_size > 1; + do_fancy = cinfo->do_fancy_upsampling && _min_DCT_scaled_size > 1; /* Verify we can handle the sampling factors, select per-component methods, * and create storage as needed. @@ -430,10 +432,10 @@ jinit_upsampler (j_decompress_ptr cinfo) /* Compute size of an "input group" after IDCT scaling. This many samples * are to be converted to max_h_samp_factor * max_v_samp_factor pixels. */ - h_in_group = (compptr->h_samp_factor * compptr->DCT_scaled_size) / - cinfo->min_DCT_scaled_size; - v_in_group = (compptr->v_samp_factor * compptr->DCT_scaled_size) / - cinfo->min_DCT_scaled_size; + h_in_group = (compptr->h_samp_factor * _DCT_scaled_size) / + _min_DCT_scaled_size; + v_in_group = (compptr->v_samp_factor * _DCT_scaled_size) / + _min_DCT_scaled_size; h_out_group = cinfo->max_h_samp_factor; v_out_group = cinfo->max_v_samp_factor; upsample->rowgroup_height[ci] = v_in_group; /* save for use later */ |