class final Optional · pdftoolkit/pdf-codecs 0.1.0

PDFToolkit\Codecs\Jpeg\JpegScan
Request-local sequential/progressive entropy decoding (ITU T.81 Annexes F/G).
Progressive algorithm reviewed against Mozilla PDF.js jpg.js, Apache-2.0.
Exact upstream revision and adaptation notes: resources/jpeg/provenance.json.
@internal

Read the source declaration ↗

Inheritance and contracts

This type declares no parent, interface or trait.

Construction

__construct()

public function __construct(PDFToolkit\Codecs\Jpeg\JpegInput $input, PDFToolkit\Codecs\DecodeBudget $budget, PDFToolkit\Codecs\Jpeg\MarkerBudget $markers, bool $progressive, int $start, int $end, int $previous, int $successive)

Declared by PDFToolkit\Codecs\Jpeg\JpegScan · View the code ↗

Declared methods

decode()

public function decode(array $components, int $mcusX, int $mcusY, int $restartInterval): void
@param non-empty-list<JpegComponent> $components

Declared by PDFToolkit\Codecs\Jpeg\JpegScan · View the code ↗

Constants

NamePHP valueOrigin
ZIGZAG
[0 => 0, 1 => 1, 2 => 8, 3 => 16, 4 => 9, 5 => 2, 6 => 3, 7 => 10, 8 => 17, 9 => 24, 10 => 32, 11 => 25, 12 => 18, 13 => 11, 14 => 4, 15 => 5, 16 => 12, 17 => 19, 18 => 26, 19 => 33, 20 => 40, 21 => 48, 22 => 41, 23 => 34, 24 => 27, 25 => 20, 26 => 13, 27 => 6, 28 => 7, 29 => 14, 30 => 21, 31 => 28, 32 => 35, 33 => 42, 34 => 49, 35 => 56, 36 => 57, 37 => 50, 38 => 43, 39 => 36, 40 => 29, 41 => 22, 42 => 15, 43 => 23, 44 => 30, 45 => 37, 46 => 44, 47 => 51, 48 => 58, 49 => 59, 50 => 52, 51 => 45, 52 => 38, 53 => 31, 54 => 39, 55 => 46, 56 => 53, 57 => 60, 58 => 61, 59 => 54, 60 => 47, 61 => 55, 62 => 62, 63 => 63]
PDFToolkit\Codecs\Jpeg\JpegScan