Skip to content

Commit

Permalink
Make quantization implementation private to the translation unit
Browse files Browse the repository at this point in the history
And don't compile the part we don't use
  • Loading branch information
paulcor committed Feb 18, 2017
1 parent ff98fdd commit dae545e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/common/quantize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@
#include <stdlib.h>
#include <string.h>

namespace
{

#define RGB_RED 0
#define RGB_GREEN 1
#define RGB_BLUE 2
Expand Down Expand Up @@ -993,6 +996,7 @@ fill_inverse_cmap (j_decompress_ptr cinfo, int c0, int c1, int c2)
* Map some rows of pixels to the output colormapped representation.
*/

#if 0
void
pass2_no_dither (j_decompress_ptr cinfo,
JSAMPARRAY input_buf, JSAMPARRAY output_buf, int num_rows)
Expand Down Expand Up @@ -1025,6 +1029,7 @@ pass2_no_dither (j_decompress_ptr cinfo,
}
}
}
#endif

void
pass2_fs_dither (j_decompress_ptr cinfo,
Expand Down Expand Up @@ -1409,7 +1414,7 @@ prepare_range_limit_table (j_decompress_ptr cinfo)
cinfo->sample_range_limit, CENTERJSAMPLE * sizeof(JSAMPLE));
}


} // anonymous namespace


/*
Expand Down

0 comments on commit dae545e

Please sign in to comment.