HPDFDecodeHeadlessTerminalImage

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

Pass 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 validates size relationships before allocation and checks library-controlled work at bounded checkpoints; native codec allocations additionally follow the codec-specific bounded profile

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

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