Skip to content

Commit

Permalink
v0.2 release
Browse files Browse the repository at this point in the history
  • Loading branch information
eiroca committed Jul 11, 2021
1 parent 7b29005 commit 0fd7783
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 10 deletions.
30 changes: 23 additions & 7 deletions docs/Manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,21 +39,37 @@ The status of the conversion will be displayed in the bottom of the window.

```
Usage:
HELP -> DTcli.exe -h
CONVERT -> DTcli.exe inputfile --convert-to save_type [--input-type load_type] [--output outputfile]
-o --output (if missing is input file with extension changed)
-t --input-file (if missing is input file extension)
DTcli.exe [-h|--help]
DTcli.exe [-c|--convert-file] save_type [options] inputfile1 [inoutfile2 [...]]
DTcli.exe [-g|--convert-graphic] save_type [options] inputfile1 [inoutfile2 [...]]
DTcli.exe [-f|--convert-frame] save_type [options] inputfile1 [inoutfile2 [...]]
Command: --convert-file convert between DAI file formats
[-o|--output] output file name (if missing is input file with extension changed)
[-t|--input-type] input file type (if missing is input file extension)
Command: --convert-graphic convert a PNG in different DAI file formats
[-o|--output] output file name (if missing is input file with extension changed)
[-q|--quantize] quantize[:numer_of_colors]
[-d|--dither] dither ON/OFF
[-z|--optimize] use DAI tricks to reduce the image size
Command: --convert-frame generated a delta sequence
[-o|--output] output file name (if missing is input file with extension changed)
[-x|--xor] apply xor to frames
[-t|--no-trim] skip trim of common parts
Input types allowed:
bin -> BIN
sbin -> SBIN
dump -> dump
dai -> DAI
wav -> WAV
hrfb -> HRFB
png -> PNG
png -> PNG_(big)
-c --convert-to
Output types allowed:
BIN -> bin
SBIN -> sbin
dump -> dump
Expand Down
4 changes: 2 additions & 2 deletions src/pascal/main/DTcli.lpr
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ TDAIToolCLI = class(TCustomApplication)
desc := 'convert a PNG in different DAI file formats';
suffix := ':';
call := @cmdConvertGraphic;
SetLength(opts, 5);
SetLength(opts, 4);
opts[0] := OPT_OUTPUT;
opts[1] := OPT_QUANTIZE;
opts[2] := OPT_DITHER;
Expand Down Expand Up @@ -533,7 +533,7 @@ TDAIToolCLI = class(TCustomApplication)
Application: TDAIToolCLI;
begin
Application := TDAIToolCLI.Create(nil);
Application.Title := 'DAI tools CLI';
Application.Title:='DAI tools CLI';
Application.Run;
Application.Free;
end.
2 changes: 1 addition & 1 deletion src/pascal/main/lib/libGraphFrame.pas
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ procedure _findColorPair(freq: RColArr; out C1, C2: integer);
end;
end;

procedure RedGreenBlue(const col: TFPColor; var R, G, B: byte); inline;
procedure RedGreenBlue(const col: TFPColor; out R, G, B: byte); inline;
begin
R := col.Red shr 8;
G := col.Green shr 8;
Expand Down

0 comments on commit 0fd7783

Please sign in to comment.