diff options
Diffstat (limited to 'mpeglib/lib/util/render/dither/colorTableHighBit.cpp')
-rw-r--r-- | mpeglib/lib/util/render/dither/colorTableHighBit.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/mpeglib/lib/util/render/dither/colorTableHighBit.cpp b/mpeglib/lib/util/render/dither/colorTableHighBit.cpp index 86b0b135..76038a5c 100644 --- a/mpeglib/lib/util/render/dither/colorTableHighBit.cpp +++ b/mpeglib/lib/util/render/dither/colorTableHighBit.cpp @@ -131,9 +131,9 @@ void ColorTableHighBit::initHighColor(int thirty2,unsigned int redMask, unsigned int greenMask, unsigned int blueMask) { - unsigned PIXVAL red_tqmask = redMask; - unsigned PIXVAL green_tqmask =greenMask; - unsigned PIXVAL blue_tqmask = blueMask; + unsigned PIXVAL red_mask = redMask; + unsigned PIXVAL green_mask =greenMask; + unsigned PIXVAL blue_mask = blueMask; int CR, CB, i; @@ -197,12 +197,12 @@ void ColorTableHighBit::initHighColor(int thirty2,unsigned int redMask, * Set up entries 0-255 in rgb-to-pixel value tables. */ for (i = 0; i < 256; i++) { - r_2_pix_alloc[i + 256] = i >> (8 - number_of_bits_set(red_tqmask)); - r_2_pix_alloc[i + 256] <<= free_bits_at_bottom(red_tqmask); - g_2_pix_alloc[i + 256] = i >> (8 - number_of_bits_set(green_tqmask)); - g_2_pix_alloc[i + 256] <<= free_bits_at_bottom(green_tqmask); - b_2_pix_alloc[i + 256] = i >> (8 - number_of_bits_set(blue_tqmask)); - b_2_pix_alloc[i + 256] <<= free_bits_at_bottom(blue_tqmask); + r_2_pix_alloc[i + 256] = i >> (8 - number_of_bits_set(red_mask)); + r_2_pix_alloc[i + 256] <<= free_bits_at_bottom(red_mask); + g_2_pix_alloc[i + 256] = i >> (8 - number_of_bits_set(green_mask)); + g_2_pix_alloc[i + 256] <<= free_bits_at_bottom(green_mask); + b_2_pix_alloc[i + 256] = i >> (8 - number_of_bits_set(blue_mask)); + b_2_pix_alloc[i + 256] <<= free_bits_at_bottom(blue_mask); /* * If we have 16-bit output depth, then we double the value * in the top word. This means that we can write out both |