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.
More...
#include <gdcmJPEGCodec.h>
|
bool | AppendFrameEncode (std::ostream &out, const char *data, size_t datalen) |
|
bool | AppendRowEncode (std::ostream &out, const char *data, size_t datalen) |
|
bool | DecodeByStreams (std::istream &is, std::ostream &os) |
|
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 () |
|
bool | IsRowEncoder () |
|
virtual bool | IsStateSuspension () const |
|
bool | IsValid (PhotometricInterpretation const &pi) |
|
void | SetBitSample (int bit) |
|
bool | StartEncode (std::ostream &) |
|
bool | StopEncode (std::ostream &) |
|
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) |
|
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:
- GetJPEGSamplePrecision.cxx.
gdcm::JPEGCodec::JPEGCodec |
( |
| ) |
|
gdcm::JPEGCodec::~JPEGCodec |
( |
| ) |
|
bool gdcm::JPEGCodec::AppendFrameEncode |
( |
std::ostream & |
out, |
|
|
const char * |
data, |
|
|
size_t |
datalen |
|
) |
| |
|
protectedvirtual |
bool gdcm::JPEGCodec::AppendRowEncode |
( |
std::ostream & |
out, |
|
|
const char * |
data, |
|
|
size_t |
datalen |
|
) |
| |
|
protectedvirtual |
Return whether this coder support this transfer syntax (can code it)
Reimplemented from gdcm::ImageCodec.
Return whether this decoder support this transfer syntax (can decode it)
Reimplemented from gdcm::ImageCodec.
virtual ImageCodec* gdcm::JPEGCodec::Clone |
( |
| ) |
const |
|
virtual |
void gdcm::JPEGCodec::ComputeOffsetTable |
( |
bool |
b | ) |
|
Compute the offset table:
bool gdcm::JPEGCodec::DecodeByStreams |
( |
std::istream & |
is, |
|
|
std::ostream & |
os |
|
) |
| |
|
protectedvirtual |
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 |
virtual bool gdcm::JPEGCodec::EncodeBuffer |
( |
std::ostream & |
out, |
|
|
const char * |
inbuffer, |
|
|
size_t |
inlen |
|
) |
| |
|
virtual |
virtual bool gdcm::JPEGCodec::GetHeaderInfo |
( |
std::istream & |
is, |
|
|
TransferSyntax & |
ts |
|
) |
| |
|
virtual |
bool gdcm::JPEGCodec::GetLossless |
( |
| ) |
const |
double gdcm::JPEGCodec::GetQuality |
( |
| ) |
const |
bool gdcm::JPEGCodec::IsFrameEncoder |
( |
| ) |
|
|
protectedvirtual |
bool gdcm::JPEGCodec::IsRowEncoder |
( |
| ) |
|
|
protectedvirtual |
virtual bool gdcm::JPEGCodec::IsStateSuspension |
( |
| ) |
const |
|
protectedvirtual |
void gdcm::JPEGCodec::SetBitSample |
( |
int |
bit | ) |
|
|
protected |
void gdcm::JPEGCodec::SetLossless |
( |
bool |
l | ) |
|
void gdcm::JPEGCodec::SetPixelFormat |
( |
PixelFormat const & |
pf | ) |
|
|
virtual |
void gdcm::JPEGCodec::SetQuality |
( |
double |
q | ) |
|
bool gdcm::JPEGCodec::StartEncode |
( |
std::ostream & |
| ) |
|
|
protectedvirtual |
bool gdcm::JPEGCodec::StopEncode |
( |
std::ostream & |
| ) |
|
|
protectedvirtual |
int gdcm::JPEGCodec::BitSample |
|
protected |
int gdcm::JPEGCodec::Quality |
|
protected |
The documentation for this class was generated from the following file: