I have a question regarding DICOM standard and libjpeg library. In the DICOM standard, there are, among others, Transfer Syntax:
JPEG Lossless, Nonhierarchical, First- Order Prediction (Processes 14 [Selection Value 1]): Default Transfer Syntax for Lossless JPEG Image Compression
As far as I know, this Transfer Syntax corresponds with JPEG-1 Lossles format. I started researching libjpeg library and I found out that it doesn't support (?) Lossless JPEG, as stated here: JPEG Lossless in DICOM
Also, in libjpeg documentation there is a part saying:
Unsupported ISO options include: * Hierarchical storage * Lossless JPEG * DNL marker * Nonintegral subsampling ratios
However, in library code, in compression parameters structure jpeg_compress_struct
there is a field:
boolean lossless; /* TRUE=lossless encoding, FALSE=lossy */
What does is all mean? I'm really confused. Could anyone describe which standards of JPEG are supported by the library? Furthermore, how to set parameters for compression to be compatible with DICOM JPEG Lossless standard?