diff --git a/docs/Manual.md b/docs/Manual.md index cf8b545..c3ed07b 100644 --- a/docs/Manual.md +++ b/docs/Manual.md @@ -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 diff --git a/src/pascal/main/DTcli.lpr b/src/pascal/main/DTcli.lpr index 0c4c410..f9db767 100644 --- a/src/pascal/main/DTcli.lpr +++ b/src/pascal/main/DTcli.lpr @@ -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; @@ -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. diff --git a/src/pascal/main/lib/libGraphFrame.pas b/src/pascal/main/lib/libGraphFrame.pas index 03d16a7..c92b11b 100644 --- a/src/pascal/main/lib/libGraphFrame.pas +++ b/src/pascal/main/lib/libGraphFrame.pas @@ -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;