THPDFZopfliFlateOptions Record

THPDFZopfliFlateOptions 控制四策略最大壓縮 zlib 基準之後的選用 Zopfli 階段

宣告

THPDFZopfliFlateOptions = record
  Enabled: Boolean;
  MaxInputBytes: Int64;
  Iterations: Integer;
  BlockSplitting: Boolean;
  MaximumBlocks: Integer;
  MaxOutputBytes: Int64;
  MaxElapsedMilliseconds: Cardinal;
  class function Default: THPDFZopfliFlateOptions; static;
end;

Default 針對最大 1 MiB 的輸入啟用 Zopfli,使用八次迭代、區塊切分、最多 15 個區塊、1 MiB 輸出上限與 30 秒耗時限制

輸入、迭代、區塊與輸出限制會在執行前約束工作量;耗時則是在程序內編碼器傳回後量測,由於編碼器無法被安全搶佔,逾時產生的結果會被捨棄

參見 THotPDF.ZopfliFlateOptions