HPDFSelectFlatePredictor 関数

境界付きの分散行サンプルを比較して、同一性、TIFF、または PNG 予測子エンコーディングを選択します

宣言

function HPDFSelectFlatePredictor(const Data: AnsiString; Colors,
  BitsPerComponent, Columns: Integer;
  const Options: THPDFFlatePredictorSelectionOptions;
  out Info: THPDFFlatePredictorSelectionInfo): Integer;

ユニット

HPDFPredictor

パラメータ

名前目的
DataPDF サンプル順でパックされた完全な無フィルタ行
Colorsピクセルあたりのカラーコンポーネント数
BitsPerComponent1、2、4、8、または 16 ビットのサンプル幅
Columns完全な入力行ごとのピクセル数
Optionsサンプルバイト、行、作業のハードリミットと CPU コストの重み
Info選択された予測子、サンプルサイズ、候補数、推定コスト、使用された作業量、予算ステータスを返します

戻り値

1、2、または 10 から 15 の PNG 予測子を返します

使用上の注意

例

Options := HPDFDefaultFlatePredictorSelectionOptions;
Predictor := HPDFSelectFlatePredictor(Raster, 3, 8, Width, Options, Info);
Predicted := HPDFEncodePredictor(Raster, Predictor, 3, 8, Width);

関連 API