-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathImageHash.lpr
44 lines (37 loc) · 976 Bytes
/
ImageHash.lpr
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
program ImageHash;
{$SetPeFlags $0020} // LargeAddressAware
{$mode objfpc}{$H+}
uses
{$if not Declared(UseHeapTrace)}
ConcMM,
{$ifend}
{$IFDEF UNIX}{$IFDEF UseCThreads}
cthreads,
{$ENDIF}{$ENDIF}
Interfaces, // this includes the LCL widgetset
sysutils,
Forms,
{$IFDEF USE_JPEGTURBO}
FPReadJPEGTurbo,
{$ENDIF}
uFrmMain, uImageHashing, uThreadScanner, uThreadHashing, uThreadClassifier,
uUtils, uFrmAutoMark, uFrmPathEditor, uNotifier;
{$R *.res}
{$if Declared(UseHeapTrace)}
var
heapTrcFile: string;
{$ifend}
begin
{$if Declared(UseHeapTrace)}
heapTrcFile:= ExtractFilePath(ParamStr(0)) + 'heap.trc';
if FileExists(heapTrcFile) then
DeleteFile(heapTrcFile);
SetHeapTraceOutput(heapTrcFile);
{$ifend}
RequireDerivedFormResource:=True;
Application.MainFormOnTaskBar:=True;
Application.Initialize;
Application.CreateForm(TfmMain, fmMain);
Application.CreateForm(TfrmAutoMark, frmAutoMark);
Application.Run;
end.