1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145
|
2008-03-25 00:36 mikek
* tclconfig/tcl.m4, configure.in, configure: Updated TEA version to 3.6
and regenerated configure script (should fix config errors under Linux).
*** Tagged tkpng-0-9 ***
2008-03-25 00:36 mikek
* generic/tkImgPNG.c: Moved format alpha value to PNGImage structure.
2006-12-15 00:36 mikek
* README, generic/tkImgPNG.c: Added support for writing PNG images
to file (via $image write) or data (via $image data). No line
filtering is currently performed, and writing interlaced images
is not yet supported.
2006-12-14 20:24 mikek
* generic/tkImgPNG.c: inflateEnd/deflateEnd were reversed in PNGCleanup().
2006-12-13 01:08 mikek
* generic/tkImgPNG.c: Made a few more type and cast changes for
consistency and warnings. Added arithmetic overflow check for pitch
in PNGCheckColor().
2006-12-12 00:00 mikek
* generic/tkImgPNG.c: Add integer overflow pre-check for buffer size
in PNGZAlloc() and for pitch and block size in PNGCheckColor().
Remove unnecessary zero-fill of allocated buffer in PNGZAlloc().
2006-12-12 00:00 mikek
* generic/tkImgPNG.c: Standardize on int type for lengths instead
of uLong, for consistency with Tcl_Read() and Tcl_GetByteArrayFromObj(),
etc. Remove mWidth/mHeight, which were redundant: use mBlock.width
and mBlock.height everywhere instead.
2006-12-11 23:50 mikek
* generic/tkImgPNG.c: Added/clarified comments. Refactored
PNGRead() into PNGReadByteArray() and PNGReadBase64, -format
alpha parsing/application into ParseFormat() and ApplyAlpha().
Renamed PNGReadLong() to PNGReadInt32(). Added #defines for some
constants.
2006-12-11 23:23 mikek
* generic/tkImgPNG.c: Removed chunk and line counters, which weren't
used for anything. Renamed some items for clarity and consistency:
dataObj->pObjData, format->pObjFormat, mFile->mChannel, ret->zresult.
Switched K&R style function defs to ANSI style consistently.
2006-12-11 23:12 mikek
* generic/tkImgPNG.c: Renamed PNG_LONG to PNG_INT32. Cast its
arguments to longs to prevent sign extension problems on 64-bit
platforms [1602791].
2006-12-11 18:01 mikek
* generic/tkImgPNG.c: Calculate bit scale once at the end of
PNGCheckColor() instead of every line in DecodeLine(), to avoid
unnecessary overhead.
2006-12-11 01:09 mikek
* generic/tkImgPNG.c: transparency (tRNS chunk) for indexed color
was only allowing the first 1/3 of the palette entries to have
an alpha.
2006-11-27 06:34 mikek
* win/tkpng.sln, win/tkpng.vcproj: Added project and solution files
for MSVC8.
* generic/tkImgPNG.c, generic/tkImgPNGInit.c: Merged changes from
Muonics repository to fix errors/warnings building under MSVC8.
Changed length pointer arguments in calls to Tcl_GetByteArrayFromObj()
calls to point to an intermediary int variable instead of a long.
May fix [1602791].
2006-11-27 05:54 mikek
* generic/tkImgPNG.c: Fixed warning about signedness in Tcl_Read
buffer argument.
* Makefile.in, configure.in, configure, pkgIndex.tcl.in,
tclconfig/tcl.m4: Updated to TEA 3.5, bumped package version to 0.8.
2006-11-27 05:21 mikek
* generic/tkImgPNG.c, generic/tkImgPNGInit.c: Detect build against Tcl/Tk
8.5 or later, where there are different signatures for some of the
Tk_Photo interfaces.
2005-03-26 14:22 mikek
* generic/tkImgPNG.c: Add support for '-format "png -alpha
<0.0..1.0>"' to modify the overall image transparency level upon
image creation.
2005-03-26 14:20 mikek
* generic/tkImgPNGInit.c: Tk 8.3 or later is required to support
alpha.
2005-03-19 21:16 mikek
* README, TODO: [no log message]
2005-03-19 21:02 mikek
* configure, configure.in: Bump version to 0.6.
2005-03-19 21:02 mikek
* generic/tkImgPNG.c: Add base64 decoding support using a lookup
table rather than a monster switch statement (seems a little
faster).
2005-03-19 17:04 mikek
* generic/tkImgPNG.c: Check for needed remaining bytes before
checking for EOF unnecessarily.
2005-03-19 00:09 mikek
* generic/tkImgPNG.c: Optimized unfiltering of scan lines.
2005-03-08 22:27 mikek
* Makefile.in: Disable install-doc target, since there are no docs.
2005-03-08 21:38 mikek
* Makefile.in, README, TODO, configure, configure.in,
license.terms, generic/tkImgPNG.c, generic/tkImgPNGInit.c,
win/makefile.vc: Finished read support with interlacing and all,
but no base64 support yet. Bumped version to 0.5 for first
release.
2005-02-26 19:51 mikek
* Makefile.in, aclocal.m4, configure, configure.in,
generic/tkImgPNG.c, generic/tkImgPNGInit.c, tclconfig/install-sh,
tclconfig/tcl.m4, win/makefile.vc, win/nmakehlp.c, win/rules.vc:
Initial revision
2005-02-26 19:51 mikek
* Makefile.in, aclocal.m4, configure, configure.in,
generic/tkImgPNG.c, generic/tkImgPNGInit.c, tclconfig/install-sh,
tclconfig/tcl.m4, win/makefile.vc, win/nmakehlp.c, win/rules.vc:
[no log message]
|