Skip to content

Commit

Permalink
GIF fix for D2009, small updates, 0.26.3
Browse files Browse the repository at this point in the history
  • Loading branch information
galfar committed Feb 15, 2009
1 parent 02d0aa2 commit 38213d8
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 8 deletions.
7 changes: 7 additions & 0 deletions Extras/Contrib/ExtraGIF/ImagingGif.pas
Original file line number Diff line number Diff line change
Expand Up @@ -1470,6 +1470,13 @@ initialization
-- TODOS ----------------------------------------------------
- nothing now
-- 0.26.3 Changes/Bug Fixes ---------------------------------
- Fixed bug - loading of GIF with NETSCAPE app extensions
failed with Delphi 2009.
-- 0.26.1 Changes/Bug Fixes ---------------------------------
- ExtraGIF fork.
-- 0.25.0 Changes/Bug Fixes ---------------------------------
- Fixed loading of some rare GIFs, problems with LZW
decompression.
Expand Down
8 changes: 8 additions & 0 deletions Extras/Extensions/OpenJpeg.pas
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@
Current Version: 1.01 (OpenJpeg 1.3.0 SVN revision 507 with my CDEF patch)
History:
v1.02 (2009-01-??):
- removed linking to stdc++ lib in LINUX/UNIX
- using CRTL unit in Delphi, removed linking to some functions from msvcrtl.dll
v1.01 (2008-12-27):
- removed linking to stdc++ lib in LINUX/UNIX
- Delphi 2009 compatibility checks
Expand Down Expand Up @@ -513,6 +516,11 @@ function opj_encode(cinfo: popj_cinfo_t; cio: popj_cio_t; image: popj_image_t;

implementation

{$IF Defined(DCC)}
uses
crtl;
{$IFEND}

{$IF Defined(WIN32)}

{$IF Defined(DCC)}
Expand Down
3 changes: 2 additions & 1 deletion Scripts/Clean.bat
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ echo Deleting ugly files...

set ROOTDIR=..
set EXTS=*.dcu *.ppu *.a *.dpu *.o *.rst *.bak *.bk? *.~* *.*~ *.or *.obj
set EXTS=%EXTS% *.tgs *.tgw *.identcache *.local
set EXTS=%EXTS% *.tgs *.tgw *.identcache *.local *.stat

del /q /f %ROOTDIR%\Demos\Bin\_BenchOut.* 2>nul 1>nul

Expand All @@ -17,6 +17,7 @@ call :DELINTREE %ROOTDIR%\Source\Extensions
call :DELINTREE %ROOTDIR%\Source\Projects
call :DELINDIR %ROOTDIR%\Source
call :DELINDIR %ROOTDIR%\Extras\Extensions
call :DELINDIR %ROOTDIR%\Extras\Extensions\LibTiff
call :DELINTREE %ROOTDIR%\Extras\Demos
call :DELINTREE %ROOTDIR%\Extras\Tools

Expand Down
4 changes: 4 additions & 0 deletions Source/ImagingFormats.pas
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,7 @@ procedure SetPixelFPFloat32(Bits: Pointer; Info: PImageFormatInfo; Palette: PPal
BytesPerPixel: 1;
ChannelCount: 1;
PaletteEntries: 256;
HasAlphaChannel: True;
IsIndexed: True;
GetPixelsSize: GetStdPixelsSize;
CheckDimensions: CheckStdDimensions;
Expand Down Expand Up @@ -4224,6 +4225,9 @@ initialization
- nothing now
- rewrite StretchRect for 8bit channels to use integer math?
-- 0.26.3 Changes/Bug Fixes -----------------------------------
- ifIndex8 format now has HasAlphaChannel=True.
-- 0.25.0 Changes/Bug Fixes -----------------------------------
- Made some resampling stuff public so that it can be used in canvas class.
- Added some color constructors.
Expand Down
14 changes: 9 additions & 5 deletions Source/ImagingGif.pas
Original file line number Diff line number Diff line change
Expand Up @@ -155,17 +155,17 @@ implementation
GIFAppBufferExtension = 2;

type
TGIFIdentifierCode = array[0..7] of char;
TGIFAuthenticationCode = array[0..2] of char;
TGIFIdentifierCode = array[0..7] of AnsiChar;
TGIFAuthenticationCode = array[0..2] of AnsiChar;
TGIFApplicationRec = packed record
Identifier : TGIFIdentifierCode;
Authentication : TGIFAuthenticationCode;
Identifier: TGIFIdentifierCode;
Authentication: TGIFAuthenticationCode;
end;

const
CodeTableSize = 4096;
HashTableSize = 17777;

type
TReadContext = record
Inx: Integer;
Expand Down Expand Up @@ -1208,6 +1208,10 @@ initialization
-- TODOS ----------------------------------------------------
- nothing now
-- 0.26.3 Changes/Bug Fixes ---------------------------------
- Fixed bug - loading of GIF with NETSCAPE app extensions
failed with Delphi 2009.
-- 0.26.1 Changes/Bug Fixes ---------------------------------
- GIF loading and animation mostly rewritten, based on
modification by Sergey Galezdinov (ExtraGIF in Extras/Contrib).
Expand Down
4 changes: 3 additions & 1 deletion Source/ImagingOptions.inc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@

{ File format support linking options.
Define formats which you don't want to be registred automatically.
Default: all formats are registered, no symbols defined.}
Default: all formats are registered = no symbols defined.
Example: If you want to disable JPEG support just uncomment //{$DEFINE DONT_LINK_JPEG line
}

//{$DEFINE DONT_LINK_JPEG} // link support for Jpeg images
//{$DEFINE DONT_LINK_PNG} // link support for PNG images
Expand Down
2 changes: 1 addition & 1 deletion Source/ImagingTypes.pas
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ interface
{ Current Minor version of Imaging.}
ImagingVersionMinor = 26;
{ Current patch of Imaging.}
ImagingVersionPatch = 2;
ImagingVersionPatch = 3;

{ Imaging Option Ids whose values can be set/get by SetOption/
GetOption functions.}
Expand Down

0 comments on commit 38213d8

Please sign in to comment.