Harlequin RIP SDK
jpeg_decode_params Struct Reference

Structure defining any decode parameters defined for decoding the jpeg image. More...

#include "jpegapi.h"

Data Fields

size_t size
 Size of this structure. More...
 
int32 colortransform
 Definition of colorspace in absence of Adobe APPE tag. More...
 
HqBool JPEGErrorOnTruncation
 Behaviour on detecting missing image data. More...
 

Detailed Description

Structure defining any decode parameters defined for decoding the jpeg image.

The JPEG implementation should copy the parameters provided in this structure into its own memory if needed for decoding.

Field Documentation

◆ colortransform

int32 jpeg_decode_params::colortransform

Definition of colorspace in absence of Adobe APPE tag.

This is the value of the ColorTransform entry in the DCTDecode filter dictionary (PLRM3). Value 0 indicates no transformation, value 1 indicates that three channel JPEGs should be transformed from YUV to RGB after decoding, four channel JPEGs should be transformed from YUVK to CMYK after decoding.

◆ JPEGErrorOnTruncation

HqBool jpeg_decode_params::JPEGErrorOnTruncation

Behaviour on detecting missing image data.

This flag controls the behaviour of JPEG image decompression when the decoder reaches the end of the image data before all the raster lines have been decoded. If this parameter is absent then the decoder defaults this flag to TRUE.

◆ size

size_t jpeg_decode_params::size

Size of this structure.

This must be set correctly so that parameters for new versions of the JPEG API will be set to sensible default values if linked with older clients.


The documentation for this struct was generated from the following file: