class final readonly Optional · pdftoolkit/pdf-codecs 0.1.0

PDFToolkit\Codecs\Jbig2\GenericBitmapDecoder
T.88 6.2/6.3, context layouts adapted from PDF.js ce871674, Apache-2.0.

Read the source declaration ↗

Inheritance and contracts

This type declares no parent, interface or trait.

Construction

__construct()

public function __construct(PDFToolkit\Codecs\DecodeBudget $budget)

Declared by PDFToolkit\Codecs\Jbig2\GenericBitmapDecoder · View the code ↗

Declared methods

decode()

public function decode(int $width, int $height, int $template, bool $prediction, array $adaptive, PDFToolkit\Codecs\Jbig2\ArithmeticContext $context, ?PDFToolkit\Codecs\Jbig2\Bitmap $skip = null, bool $extended = false, bool $implicitAdaptive = false): PDFToolkit\Codecs\Jbig2\Bitmap
@param list<array{int,int}> $adaptive

Declared by PDFToolkit\Codecs\Jbig2\GenericBitmapDecoder · View the code ↗

refine()

public function refine(int $width, int $height, int $template, PDFToolkit\Codecs\Jbig2\Bitmap $reference, int $offsetX, int $offsetY, bool $prediction, array $adaptive, PDFToolkit\Codecs\Jbig2\ArithmeticContext $context): PDFToolkit\Codecs\Jbig2\Bitmap
@param list<array{int,int}> $adaptive

Declared by PDFToolkit\Codecs\Jbig2\GenericBitmapDecoder · View the code ↗