THPDFImageRecompressionCostInfo Record
시각 비용 기반 이미지 재압축 패스의 텔레메트리입니다. 검사·후보 수, 코덱별 결과, 시도·거부 카운터, 품질·오차 집계, 바이트 절감을 담습니다
선언
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 | 달성한 바이트 차감. options의 최소 절감 임계값과 비교합니다 |
DeterministicSelection | 보고된 모든 선택이 결정론적 비용 비교에서 나왔을 때 true |
사용 참고 사항
THotPDF.OptimizeLoadedImagesByVisualCost가 채웁니다. 함수 결과는 재압축된 이미지 수이고, 레코드가 전체 내역을 실어 줍니다SelectedQualitySum을RecompressedImageCount로 나누면 평균 선택 품질이 나옵니다- 호출 뒤
BytesBefore,BytesAfter,BytesSaved를 읽으면 패스가 설정된 절감 목표를 달성했는지 확인됩니다