5#include "dcmtk/dcmdata/dccodec.h"
10 class Jp2Decoder :
public DcmCodec
30 static Photometric DVPhotometricFromDCMTKString(
const char* szName);
35 virtual OFCondition decode(
36 const DcmRepresentationParameter* fromRepParam,
37 DcmPixelSequence* pixSeq,
38 DcmPolymorphOBOW& uncompressedPixelData,
39 const DcmCodecParameter* cp,
40 const DcmStack& objStack)
const;
42 OFCondition encode(
const Uint16* pixelData,
const Uint32 length,
const DcmRepresentationParameter* toRepParam,
43 DcmPixelSequence*& pixSeq,
const DcmCodecParameter* cp, DcmStack& objStack,
44 OFBool& removeOldRep)
const override;
46 OFCondition encode(
const E_TransferSyntax fromRepType,
const DcmRepresentationParameter* fromRepParam,
47 DcmPixelSequence* fromPixSeq,
const DcmRepresentationParameter* toRepParam, DcmPixelSequence*& toPixSeq,
48 const DcmCodecParameter* cp, DcmStack& objStack, OFBool& removeOldRep)
const override;
50 virtual OFBool canChangeCoding(
51 const E_TransferSyntax oldRepType,
52 const E_TransferSyntax newRepType)
const override;
54 OFCondition decode(
const DcmRepresentationParameter* fromRepParam, DcmPixelSequence* pixSeq,
55 DcmPolymorphOBOW& uncompressedPixelData,
const DcmCodecParameter* cp,
const DcmStack& objStack,
56 OFBool& removeOldRep)
const override;
58 OFCondition decodeFrame(
const DcmRepresentationParameter* fromParam, DcmPixelSequence* fromPixSeq,
59 const DcmCodecParameter* cp, DcmItem* dataset, Uint32 frameNo, Uint32& startFragment,
void* buffer,
60 Uint32 bufSize, std::string& decompressedColorModel)
const override;
62 OFCondition determineDecompressedColorModel(
const DcmRepresentationParameter* fromParam,
63 DcmPixelSequence* fromPixSeq,
const DcmCodecParameter* cp, DcmItem* dataset,
64 std::string& decompressedColorModel)
const override;
Definition: exceptions.hpp:12