HPDFDecodeHeadlessTerminalImage

The function in HPDFHeadlessImageCodecs decodes a terminal JPEG, JPEG 2000, CCITT or JBIG2 image payload into samples for the native renderer

Pass in authenticated stream bytes, resolved DecodeParms, optional JBIG2 globals, the declared dimensions and sample layout, a positive working byte limit and a borrowed cancellation token

The decoder checks size relationships before allocation and audits library-controlled work at bounded checkpoints; native codec allocations additionally follow the codec-specific bounded profile

JPEG uses TurboJPEG and JPEG 2000 uses OpenJPEG via optional dynamic libraries; CCITT and JBIG2 use the native Pascal implementation

Supported sample layouts, filters, colour and transparency · Authenticated image stream access