29 #ifndef DCMJPLS_DJCODECD_H
30 #define DCMJPLS_DJCODECD_H
32 #include "dcmtk/config/osconfig.h"
33 #include "dcmtk/dcmdata/dccodec.h"
34 #include "dcmtk/ofstd/ofstring.h"
103 Uint32& startFragment,
106 OFString& decompressedColorModel)
const;
123 const Uint16 * pixelData,
145 const E_TransferSyntax fromRepType,
161 const E_TransferSyntax oldRepType,
162 const E_TransferSyntax newRepType)
const;
182 OFString &decompressedColorModel)
const;
218 Uint32& startFragment,
224 Uint16 imageSamplesPerPixel,
225 Uint16 bytesPerSample);
237 const OFString& photometricInterpretation);
252 Sint32 numberOfFrames,
255 OFBool ignoreOffsetTable,
a class representing a list of DICOM elements in which each element has a different tag and elements ...
static OFCondition createPlanarConfiguration1Word(Uint16 *imageFrame, Uint16 columns, Uint16 rows)
converts an RGB or YBR frame with 16 bits/sample from color-by-pixel to color-by-plane planar configu...
virtual OFCondition determineDecompressedColorModel(const DcmRepresentationParameter *fromParam, DcmPixelSequence *fromPixSeq, const DcmCodecParameter *cp, DcmItem *dataset, OFString &decompressedColorModel) const
determine color model of the decompressed image
DJLSDecoderBase()
default constructor
abstract base class for codec representation parameter sets.
virtual E_TransferSyntax supportedTransferSyntax() const
returns the transfer syntax that this particular codec is able to Decode
static OFCondition createPlanarConfiguration1Byte(Uint8 *imageFrame, Uint16 columns, Uint16 rows)
converts an RGB or YBR frame with 8 bits/sample from color-by-pixel to color-by-plane planar configur...
this class implements a sequence of pixel items, i.e.
abstract codec class for JPEG-LS decoders.
static OFCondition createPlanarConfiguration0Word(Uint16 *imageFrame, Uint16 columns, Uint16 rows)
converts an RGB or YBR frame with 16 bits/sample from color-by-plane to color-by-pixel planar configu...
virtual OFCondition encode(const Uint16 *pixelData, const Uint32 length, const DcmRepresentationParameter *toRepParam, DcmPixelSequence *&pixSeq, const DcmCodecParameter *cp, DcmStack &objStack) const
compresses the given uncompressed DICOM image and stores the result in the given pixSeq element...
static OFBool isJPEGLSStartOfImage(Uint8 *fragmentData)
check whether the given buffer contains a JPEG-LS start-of-image code
abstract base class for a codec parameter object that describes the settings (modes of operations) fo...
this class manages a stack of pointers to DcmObject instances.
virtual E_TransferSyntax supportedTransferSyntax() const
returns the transfer syntax that this particular codec is able to encode
static Uint32 computeNumberOfFragments(Sint32 numberOfFrames, Uint32 currentFrame, Uint32 startItem, OFBool ignoreOffsetTable, DcmPixelSequence *pixSeq)
computes the number of fragments (pixel items) that comprise the current frame in the compressed pixe...
codec class for JPEG-LS lossless only TS decoding
virtual OFCondition decodeFrame(const DcmRepresentationParameter *fromParam, DcmPixelSequence *fromPixSeq, const DcmCodecParameter *cp, DcmItem *dataset, Uint32 frameNo, Uint32 &startFragment, void *buffer, Uint32 bufSize, OFString &decompressedColorModel) const
decompresses a single frame from the given pixel sequence and stores the result in the given buffer...
codec parameter for JPEG-LS codecs
virtual ~DJLSDecoderBase()
destructor
static Uint16 determinePlanarConfiguration(const OFString &sopClassUID, const OFString &photometricInterpretation)
determines if a given image requires color-by-plane planar configuration depending on SOP Class UID (...
abstract base class for a codec object that can be registered in dcmdata and performs transfer syntax...
a simple string class that implements a subset of std::string.
a class representing DICOM elements (such as uncompressed pixel data) that can be interpreted either ...
static OFCondition createPlanarConfiguration0Byte(Uint8 *imageFrame, Uint16 columns, Uint16 rows)
converts an RGB or YBR frame with 8 bits/sample from color-by-plane to color-by-pixel planar configur...
virtual OFCondition decode(const DcmRepresentationParameter *fromRepParam, DcmPixelSequence *pixSeq, DcmPolymorphOBOW &uncompressedPixelData, const DcmCodecParameter *cp, const DcmStack &objStack) const
decompresses the given pixel sequence and stores the result in the given uncompressedPixelData elemen...
virtual OFBool canChangeCoding(const E_TransferSyntax oldRepType, const E_TransferSyntax newRepType) const
checks if this codec is able to convert from the given current transfer syntax to the given new trans...
codec class for JPEG-LS lossy and lossless TS decoding
General purpose class for condition codes.