summaryrefslogtreecommitdiffstats
path: root/generic/tkImgGIF.c
Commit message (Collapse)AuthorAgeFilesLines
* * generic/tkImgGIF.c (StringWriteGIF): Added ability to write a GIF todkf2010-07-181-318/+370
| | | | | | a string (as a byte array, of course) following comments on c.l.t by Aric Bills. Also improved readability of some of the function and field names in this file.
* Formattingnijtmans2010-04-231-12/+9
| | | | | | typo fixes remove not existing tkDisplayList; Useless re-definitions of TCL_STORAGE_CLASS
* fix more gcc warnings: missing initializernijtmans2010-01-181-1/+2
| | | | | Apply patch [#2932808]: Canvas items not updating on widget state change
* Add "const" to many internalnijtmans2008-10-171-2/+2
| | | | | | | | const tables, so those will be put by the C-compiler in the TEXT segment in stead of the DATA segment. This makes those table sharable in shared libraries.
* Get rid of pre-C89-isms (esp. CONST vs const).dkf2008-04-271-148/+177
|
* Let the GIF writer use a real LZW compressor.nijtmans2008-04-091-444/+321
|
* a little cleanup, in preparation for replacing the gif compressor with a ↵nijtmans2008-04-091-92/+85
| | | | real LZW one.
* * generic/tkImgGIF.c: Fixed a buffer overflow (CVE-2006-4484).rmax2008-02-011-1/+7
| | | | * tests/imgPhoto.test: Added a test for the above.
* merge stable branch onto HEADdgp2007-12-131-1/+1
|
* fix warningsdas2007-09-181-3/+3
|
* Yet another step in the tidying up of the GIF code.dkf2007-09-181-138/+169
|
* * generic/tkImgGIF.c: Fixed a buffer overrun that got triggered byrmax2007-09-111-2/+2
| | | | | | | multi-frame interlaced GIFs that contain subsequent frames that are smaller than the first one. * tests/imgPhoto.test: Added a test for the above.
* header cleanupdgp2007-09-071-2/+1
|
* Quell type-punning warnings from gcc/unix builddkf2007-01-121-5/+5
|
* Many minute fixes to reduce number of minor warnings from GCC.dkf2007-01-111-10/+12
|
* * generic/tkImgGIF.c (ReadImage):das2006-07-201-3/+3
| | | | | | | | * macosx/tkMacOSXCursor.c (TkMacOSXCursor): * macosx/tkMacOSXDebug.c (TkMacOSXGetNamedDebugSymbol): * macosx/tkMacOSXInit.c (Map): * xlib/xgc.c (XCreateGC): fix signed-with-unsigned comparison and other warnings from gcc4 -Wextra.
* Fix (and add test for) [Bug 1458234]dkf2006-03-271-13/+13
|
* * generic/tkImgGIF.c: cast calls to blockOuthobbs2005-12-011-3/+3
|
* ANSIfy and reduce casting of NULL to promote readabilitydkf2005-11-171-201/+190
|
* Getting more systematic about styledkf2005-08-101-131/+162
| | | | | Also start removing _ANSI_ARGS_; the core's required ANSI C for a while now Also fix [Bug 1252702]; size_t doesn't mix with Tcl_GetStringFromObj
* Typosdkf2005-06-191-5/+5
|
* Get rid of statics; replaced with stack-allocated structures which are ↵dkf2005-06-191-657/+723
| | | | | | automatically thread-safe. Also squelched a buffer overrun in binary string data handling...
* * generic/tkImgGIF.c (FileReadGIF): fix crash reported by Reinhard Max:das2004-07-271-4/+5
| | | | | in case of premature end of image data, return error instead of passing nil buffer to Tk_PhotoPutBlock().
* TIP#116 implementation. Docs still to come, tests will never be done becausedkf2003-03-061-4/+9
| | | | | they could never be done portably as they'd inevitably depend on the total amount of memory available to the process... :^(
* Removed pointless static variable ZeroDataBlock from tkImgGIF.c [Bug #664788]dkf2003-02-201-5/+1
| | | | It served no useful purpose whatsoever...
* * generic/tkImgGIF.c (FileReadGIF): Ensure that the trashBuffer isdkf2003-02-181-9/+13
| | | | always deallocated on function exit to stop a potential memory leak.
* * generic/tkImgGIF.c (FileReadGIF): fixed -from handling for gifshobbs2002-08-081-5/+5
| | | | [Bug #467524] (obermeier)
* TIP#98 implementation; improved photo image copy and GIF frame accessdkf2002-06-141-2/+3
|
* tkImgGIF.c was not following the Tcl C style; fixed...dkf2002-02-191-571/+676
|
* * Updates to handle change in type of tablePtrdgp2002-01-171-2/+2
| | | | | argument of Tcl_GetIndexFromObj(Struct) from (char **) to (CONST char **). [TIP 27] [Patch 504705]
* * generic/tkImgGIF.c:andreas_kupries2001-09-141-1/+2
| | | | | | | | | * generic/tkImgPPM.c: * generic/tkImgPhoto.c: * generic/tkMenu.c: Applied patch [461578], provided by Vincent Darley. This fixes several memory leaks in the image code. They happen if there are errors during the initialization of the channel the image is supposed to be read from.
* * generic/tkImgGIF.c (Mgetc): corrected screwy use of ternaryhobbs2001-07-031-2/+3
| | | | operator and possible FMR.
* * tests/imgPhoto.test: Added test for GIF writing code [Bug: 5823].ericm2000-07-051-47/+28
| | | | | * generic/tkImgGIF.c: Applied patch from Jan Nijtmans to fix a problem with the GIF writing code [Bug: 5823].
* * generic/tkImgGIF.c: Changed defines for GIF87a/GIF89a to beericm2000-05-301-6/+8
| | | | | | static char arrays with integer initialization, to address EBCIDIC vs. ASCII encoding issues and to handle compilers that don't deal with "\xAB" syntax for specifying hex values in strings.
* * generic/tkImgGIF.c: Fixed some ANSI specific bits to avoidericm2000-03-301-5/+5
| | | | | compile problems with non-ANSI compilers (ie, replace const with CONST, etc). [Bug: 4223].
* * generic/tkImgGIF.c: Applied "spirit of" the patch in 1605 (theericm2000-02-261-16/+34
| | | | | | submitted patch was more complicated than necessary and did not extend to writing GIF's, only reading), to allow reading/writing of GIF files on EBCDIC and other non-ASCII based systems.
* * generic/tkImgGIF.c (FileReadGIF): added cast for trashBufferhobbs2000-02-101-2/+2
| | | | | | | | | | | | | | * generic/tkIntXlibDecls.h: * generic/tkInt.decls: declared some Xlib emulation calls for the Mac * generic/tkFrame.c (TkInstallFrameMenu): added extra panic to inform user of bad call when framePtr is NULL [Bug: 2530] * generic/tkMenu.c (DestroyMenuInstance): Placed checks around menu name objects before trying to incr the ref. [Bug: 3402] * generic/tkTest.c: removed USE_OLD_IMAGE def for Mac
* * generic/tkDecls.h:hobbs2000-02-081-9/+9
| | | | | | | | | | | | | | | | | | | | | * generic/tk.decls: * generic/tk.h: moved new public functions created in dash patch to the stubs interface [Bug: 4062] * generic/tk.h: * doc/CrtImgType.3: * doc/CrtPhImgFmt.3: * generic/tk.h: * generic/tkImgGIF.c: * generic/tkImgPhoto.c: * generic/tkStubImg.c (new file): * generic/tkTest.c: * unix/Makefile.in: * win/Makefile.in: * win/makefile.vc: improved support for moving from the old style image C API to the new obj'ified one with new Tk_InitImageArgs command and stub'ing of image code. See docs for how to make the transition. [Bug: 4060]
* * generic/tkImgGIF.c: Additional code cleanup (now we only haveericm2000-01-271-163/+44
| | | | one decoder! neat!)
* * generic/tkImgPhoto.c: Added some comments regarding slowericm2000-01-261-94/+270
| | | | | | | | | | | processing of transparent images. * generic/tkImgGIF.c: Improved GIF decoder for ~60% speed increase. Added some comments on how to further improve the implementation, time permitting. * doc/photo.n: Added a description of what the -data string can contain (base64 or binary data).
* * generic/tkImgGIF.c: updated castinghobbs1999-12-091-10/+12
|
* added (int) casthobbs1999-11-301-2/+2
|
* * generic/tkImgGIF.c: added GIF writing that uses miGIF RLEhobbs1999-11-301-3/+767
| | | | [Bug: 2039, new patch]
* * generic/tk.h:hobbs1999-10-291-85/+201
| | | | | | | | | | | | | | | * generic/tkCmds.c: * generic/tkImage.c: * generic/tkImgBmap.c: * generic/tkImgGIF.c: * generic/tkImgPPM.c: * generic/tkImgPhoto.c: * generic/tkInt.h: * generic/tkTest.c: * generic/tkWindow.c: * tests/imgPhoto.test: added Img patch (Nijtmans) with docs, headers #def'd with USE_OLD_IMAGE. Upgrades image stuff to Tcl_Obj API, adds alpha channel (images are now 32 bpp)
* Patches from Bug: 2068 2080 2269redman1999-07-011-1/+2
|
* * Merged 8.1 branch into the main trunkstanton1999-04-161-26/+39
|
* Replaced SCCS strings, fixed binary filesstanton1998-09-141-1/+1
|
* Initial revisionrjohnson1998-04-011-0/+1059