summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: df64bd7)
raw | patch | inline | side by side (parent: df64bd7)
author | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Sun, 24 Apr 2016 11:41:34 +0000 (14:41 +0300) | ||
committer | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Sun, 24 Apr 2016 11:41:34 +0000 (14:41 +0300) |
src/sfs/wadcvt.dpr | patch | blob | history |
diff --git a/src/sfs/wadcvt.dpr b/src/sfs/wadcvt.dpr
index 83461a8c5581ed9506acdd8b46efc804c6566f42..5d1c1f1100afe4689e2c9bd4ccd377a6c90f925c 100644 (file)
--- a/src/sfs/wadcvt.dpr
+++ b/src/sfs/wadcvt.dpr
ImagingTypes, Imaging, ImagingUtility;
+{.$WARNINGS ON}
+{.$NOTES ON}
+{.$HINTS ON}
+
var
optConvertATX: Boolean = false;
var
WAD: TWADFile = nil;
TextureWAD: PChar = nil;
- ttw: PChar = nil;
TextData: Pointer = nil;
TextureData: Pointer = nil;
cfg: TConfig = nil;
- ResLength, rrl: Integer;
+ ResLength: Integer;
TextureResource: String;
_width, _height, _framecount, _speed: Integer;
_backanimation: Boolean;
- imgfmt: string;
ia: TDynImageDataArray = nil;
- il: TImageFileFormat = nil;
- f, c, frdelay, frloop: Integer;
+ f: Integer;
img: TImageData;
x, y, ofsx, ofsy, nx, ny: Integer;
clr: TColor32Rec;
//writeln('creating ', length(ia), ' animation frames...');
for f := 0 to high(ia) do
begin
+ GlobalMetadata.SetMetaItem(SMetaFrameDelay, _speed*28, f);
+ if _backanimation then
+ GlobalMetadata.SetMetaItem(SMetaAnimationLoops, 1, f)
+ else
+ GlobalMetadata.SetMetaItem(SMetaAnimationLoops, 0, f);
+
InitImage(ia[f]);
NewImage(_width, _height, TImageFormat.ifA8R8G8B8, ia[f]);
ofsx := f*_width;
end;
+{
procedure processed (count: Cardinal);
begin
//writeln(' read ', count, ' bytes');
end;
+}
// returs crc