summaryrefslogtreecommitdiffstats
path: root/tqtinterface/qt4/src/3rdparty/libpng/pngwtran.c
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-08-10 12:13:27 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-08-10 12:13:27 -0500
commitd296f1d337dabfeae5191955fdadb874965dbbe9 (patch)
tree1a4b3b4cca01f2ea77eee2497297219d60e9bbd4 /tqtinterface/qt4/src/3rdparty/libpng/pngwtran.c
parenteaa7ee2e0bbca40ba3173c4304f81957e8964291 (diff)
downloadexperimental-d296f1d337dabfeae5191955fdadb874965dbbe9.tar.gz
experimental-d296f1d337dabfeae5191955fdadb874965dbbe9.zip
rename the following methods:
tqparent parent tqmask mask
Diffstat (limited to 'tqtinterface/qt4/src/3rdparty/libpng/pngwtran.c')
-rw-r--r--tqtinterface/qt4/src/3rdparty/libpng/pngwtran.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/tqtinterface/qt4/src/3rdparty/libpng/pngwtran.c b/tqtinterface/qt4/src/3rdparty/libpng/pngwtran.c
index 582c10d..c28da11 100644
--- a/tqtinterface/qt4/src/3rdparty/libpng/pngwtran.c
+++ b/tqtinterface/qt4/src/3rdparty/libpng/pngwtran.c
@@ -98,31 +98,31 @@ png_do_pack(png_row_infop row_info, png_bytep row, png_uint_32 bit_depth)
case 1:
{
png_bytep sp, dp;
- int tqmask, v;
+ int mask, v;
png_uint_32 i;
png_uint_32 row_width = row_info->width;
sp = row;
dp = row;
- tqmask = 0x80;
+ mask = 0x80;
v = 0;
for (i = 0; i < row_width; i++)
{
if (*sp != 0)
- v |= tqmask;
+ v |= mask;
sp++;
- if (tqmask > 1)
- tqmask >>= 1;
+ if (mask > 1)
+ mask >>= 1;
else
{
- tqmask = 0x80;
+ mask = 0x80;
*dp = (png_byte)v;
dp++;
v = 0;
}
}
- if (tqmask != 0x80)
+ if (mask != 0x80)
*dp = (png_byte)v;
break;
}
@@ -253,15 +253,15 @@ png_do_shift(png_row_infop row_info, png_bytep row, png_color_8p bit_depth)
{
png_bytep bp = row;
png_uint_32 i;
- png_byte tqmask;
+ png_byte mask;
png_uint_32 row_bytes = row_info->rowbytes;
if (bit_depth->gray == 1 && row_info->bit_depth == 2)
- tqmask = 0x55;
+ mask = 0x55;
else if (row_info->bit_depth == 4 && bit_depth->gray == 3)
- tqmask = 0x11;
+ mask = 0x11;
else
- tqmask = 0xff;
+ mask = 0xff;
for (i = 0; i < row_bytes; i++, bp++)
{
@@ -275,7 +275,7 @@ png_do_shift(png_row_infop row_info, png_bytep row, png_color_8p bit_depth)
if (j > 0)
*bp |= (png_byte)((v << j) & 0xff);
else
- *bp |= (png_byte)((v >> (-j)) & tqmask);
+ *bp |= (png_byte)((v >> (-j)) & mask);
}
}
}