THPDFImageRecompressionCostInfo 记录

一趟视觉成本图像重压缩的遥测数据:扫描与候选计数、各编解码器的结果、尝试与拒绝计数、质量和误差汇总,以及字节节省

声明

THPDFImageRecompressionCostInfo= record
  ScannedImageCount: Integer;
  CandidateImageCount: Integer;
  RecompressedImageCount: Integer;
  RecompressedJPEGCount: Integer;
  RecompressedJPEG2000Count: Integer;
  EncodingTrialCount: Integer;
  VisualErrorRejectionCount: Integer;
  ByteCostRejectionCount: Integer;
  SelectedQualitySum: Integer;
  MaximumSelectedPerceptualError: Double;
  BytesBefore: Int64;
  BytesAfter: Int64;
  BytesSaved: Int64;
  DeterministicSelection: boolean;
end;

单元

HPDFDoc

字段

字段用途
ScannedImageCount该趟检查过的图像数
CandidateImageCount通过资格检查后进入质量搜索的图像数
RecompressedImageCount实际重新编码并写回的图像数
RecompressedJPEGCount最终滤镜为 JPEG 的重编码图像数
RecompressedJPEG2000Count最终滤镜为 JPEG 2000 的重编码图像数
EncodingTrialCount扫描质量范围期间执行的试编码次数
VisualErrorRejectionCount因感知误差超出预算而被拒绝的试编码次数
ByteCostRejectionCount因字节成本权重主导得分而被拒绝的试编码次数
SelectedQualitySum每幅重压缩图像所选质量之和,用于计算平均值
MaximumSelectedPerceptualError被接受的重压缩中最高的感知误差
BytesBefore / BytesAfter该趟处理前后的图像流字节数
BytesSaved实际取得的字节差;与选项的最小节省阈值比较
DeterministicSelection每个报告的选择都来自确定性成本比较时为 true

使用说明

相关 API