HPDFDecodeWebPLossless Fonksiyonu

function HPDFDecodeWebPLossless(const Data: TBytes; out Width,
  Height: Integer; out Pixels: TWebPCardinalArray): boolean;

Bir WebP byte akışının ilk VP8L (lossless) karesini RFC 9649'a göre çözer ve Width * Height adet ARGB değeri döndürür ($AARRGGBB, scan-line sırasıyla piksel başına bir Cardinal)

Decoder; simple ve normal code length code'larıyla canonical prefix code'ları, entropy image üzerinden spatial meta prefix code'ları, 120 girişli neighborhood distance map ile LZ77 backward reference'larını, çarpımsal color cache'i ($1e35a7bd hash'i) ve dört inverse transform'un tamamını uygular: sınır kurallarıyla 14 modlu block predictor, 3.5 fixed-point color transform, subtract-green ve 8/4/2/1-bit pixel bundling ile color indexing

Lossy VP8 frame'leri ve animasyonlar, açık bir unsupported sınırı olarak False ile reddedilir; bozuk RIFF container'ları da öyle; HPDFDecodeWebPToBitmap ve HPDFDecodeWebPFileToBitmap, aynı sınırı paylaşan bitmap kolaylık sarmalayıcılarıdır

THotPDF.AddImageFromFile, .webp dosyalarını her embedding compression için bu decoder üzerinden kabul eder

THotPDF.AddImageFromFile