JPEG codec.
More...
#include <gdcmJPEGCodec.h>
|
| bool | AppendFrameEncode (std::ostream &out, const char *data, size_t datalen) override |
| |
| bool | AppendRowEncode (std::ostream &out, const char *data, size_t datalen) override |
| |
| bool | DecodeByStreams (std::istream &is, std::ostream &os) override |
| |
| bool | DecodeExtent (char *buffer, unsigned int xmin, unsigned int xmax, unsigned int ymin, unsigned int ymax, unsigned int zmin, unsigned int zmax, std::istream &is) |
| |
| bool | IsFrameEncoder () override |
| |
| bool | IsRowEncoder () override |
| |
| virtual bool | IsStateSuspension () const |
| |
| bool | IsValid (PhotometricInterpretation const &pi) override |
| |
| void | SetBitSample (int bit) |
| |
| bool | StartEncode (std::ostream &) override |
| |
| bool | StopEncode (std::ostream &) override |
| |
| bool | DoByteSwap (std::istream &is_, std::ostream &os) |
| |
| bool | DoInvertMonochrome (std::istream &is_, std::ostream &os) |
| |
| bool | DoOverlayCleanup (std::istream &is_, std::ostream &os) |
| |
| bool | DoPaddedCompositePixelCode (std::istream &is_, std::ostream &os) |
| |
| bool | DoPlanarConfiguration (std::istream &is_, std::ostream &os) |
| |
| bool | DoSimpleCopy (std::istream &is_, std::ostream &os) |
| |
| bool | DoYBR (std::istream &is_, std::ostream &os) |
| |
| bool | DoYBRFull422 (std::istream &is_, std::ostream &os) |
| |
| virtual bool | InternalCode (const char *bv, unsigned long len, std::ostream &os) |
| |
JPEG codec.
Class to do JPEG (8bits, 12bits, 16bits lossy & lossless). It redispatch in between the different codec implementation: JPEG8Codec, JPEG12Codec & JPEG16Codec It also support inconsistency in between DICOM header and JPEG compressed stream ImageCodec implementation for the JPEG case
- Note
- Things you should know if you ever want to dive into DICOM/JPEG world (among other):
- Examples
- CompressLossyJPEG.cs, FileChangeTSLossy.cs, and GetJPEGSamplePrecision.cxx.
◆ JPEGCodec()
| gdcm::JPEGCodec::JPEGCodec |
( |
| ) |
|
◆ ~JPEGCodec()
| gdcm::JPEGCodec::~JPEGCodec |
( |
| ) |
|
|
override |
◆ AppendFrameEncode()
| bool gdcm::JPEGCodec::AppendFrameEncode |
( |
std::ostream & |
out, |
|
|
const char * |
data, |
|
|
size_t |
datalen |
|
) |
| |
|
overrideprotectedvirtual |
◆ AppendRowEncode()
| bool gdcm::JPEGCodec::AppendRowEncode |
( |
std::ostream & |
out, |
|
|
const char * |
data, |
|
|
size_t |
datalen |
|
) |
| |
|
overrideprotectedvirtual |
◆ CanCode()
◆ CanDecode()
Return whether this decoder support this transfer syntax (can decode it)
Reimplemented from gdcm::ImageCodec.
◆ Clone()
◆ Code()
◆ ComputeOffsetTable()
| void gdcm::JPEGCodec::ComputeOffsetTable |
( |
bool |
b | ) |
|
Compute the offset table:
◆ Decode()
◆ DecodeByStreams()
| bool gdcm::JPEGCodec::DecodeByStreams |
( |
std::istream & |
is, |
|
|
std::ostream & |
os |
|
) |
| |
|
overrideprotectedvirtual |
◆ DecodeExtent()
| bool gdcm::JPEGCodec::DecodeExtent |
( |
char * |
buffer, |
|
|
unsigned int |
xmin, |
|
|
unsigned int |
xmax, |
|
|
unsigned int |
ymin, |
|
|
unsigned int |
ymax, |
|
|
unsigned int |
zmin, |
|
|
unsigned int |
zmax, |
|
|
std::istream & |
is |
|
) |
| |
|
protected |
◆ EncodeBuffer()
| virtual bool gdcm::JPEGCodec::EncodeBuffer |
( |
std::ostream & |
out, |
|
|
const char * |
inbuffer, |
|
|
size_t |
inlen |
|
) |
| |
|
virtual |
◆ GetHeaderInfo()
| bool gdcm::JPEGCodec::GetHeaderInfo |
( |
std::istream & |
is, |
|
|
TransferSyntax & |
ts |
|
) |
| |
|
overridevirtual |
◆ GetLossless()
| bool gdcm::JPEGCodec::GetLossless |
( |
| ) |
const |
◆ GetQuality()
| double gdcm::JPEGCodec::GetQuality |
( |
| ) |
const |
◆ IsFrameEncoder()
| bool gdcm::JPEGCodec::IsFrameEncoder |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ IsRowEncoder()
| bool gdcm::JPEGCodec::IsRowEncoder |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ IsStateSuspension()
| virtual bool gdcm::JPEGCodec::IsStateSuspension |
( |
| ) |
const |
|
protectedvirtual |
◆ IsValid()
◆ SetBitSample()
| void gdcm::JPEGCodec::SetBitSample |
( |
int |
bit | ) |
|
|
protected |
◆ SetLossless()
| void gdcm::JPEGCodec::SetLossless |
( |
bool |
l | ) |
|
◆ SetPixelFormat()
| void gdcm::JPEGCodec::SetPixelFormat |
( |
PixelFormat const & |
pf | ) |
|
|
overridevirtual |
◆ SetQuality()
| void gdcm::JPEGCodec::SetQuality |
( |
double |
q | ) |
|
◆ StartEncode()
| bool gdcm::JPEGCodec::StartEncode |
( |
std::ostream & |
| ) |
|
|
overrideprotectedvirtual |
◆ StopEncode()
| bool gdcm::JPEGCodec::StopEncode |
( |
std::ostream & |
| ) |
|
|
overrideprotectedvirtual |
◆ ImageRegionReader
◆ BitSample
| int gdcm::JPEGCodec::BitSample |
|
protected |
◆ Quality
| int gdcm::JPEGCodec::Quality |
|
protected |
The documentation for this class was generated from the following file: