|
|
fd8f86a |
diff --git a/Source/MediaStorageAndFileFormat/gdcmJPEGLSCodec.cxx b/Source/MediaStorageAndFileFormat/gdcmJPEGLSCodec.cxx
|
|
|
fd8f86a |
index 4d38bef..48a52ac 100644
|
|
|
fd8f86a |
--- a/Source/MediaStorageAndFileFormat/gdcmJPEGLSCodec.cxx
|
|
|
fd8f86a |
+++ b/Source/MediaStorageAndFileFormat/gdcmJPEGLSCodec.cxx
|
|
|
fd8f86a |
@@ -72,7 +72,7 @@ bool JPEGLSCodec::GetHeaderInfo(std::istream &is, TransferSyntax &ts)
|
|
|
fd8f86a |
is.seekg(0, std::ios::beg);
|
|
|
fd8f86a |
is.read( dummy_buffer, buf_size);
|
|
|
fd8f86a |
|
|
|
fd8f86a |
- JlsParamaters metadata;
|
|
|
fd8f86a |
+ JlsParameters metadata;
|
|
|
fd8f86a |
if (JpegLsReadHeader(dummy_buffer, buf_size, &metadata) != OK)
|
|
|
fd8f86a |
{
|
|
|
fd8f86a |
return false;
|
|
|
fd8f86a |
@@ -160,7 +160,7 @@ bool JPEGLSCodec::Decode(DataElement const &in, DataElement &out)
|
|
|
fd8f86a |
sf->GetBuffer(buffer, totalLen);
|
|
|
fd8f86a |
//is.write(buffer, totalLen);
|
|
|
fd8f86a |
|
|
|
fd8f86a |
- JlsParamaters metadata;
|
|
|
fd8f86a |
+ JlsParameters metadata;
|
|
|
fd8f86a |
if (JpegLsReadHeader(buffer, totalLen, &metadata) != OK)
|
|
|
fd8f86a |
{
|
|
|
fd8f86a |
return false;
|
|
|
fd8f86a |
@@ -172,7 +172,7 @@ bool JPEGLSCodec::Decode(DataElement const &in, DataElement &out)
|
|
|
fd8f86a |
const BYTE* pbyteCompressed = (const BYTE*)buffer;
|
|
|
fd8f86a |
int cbyteCompressed = totalLen;
|
|
|
fd8f86a |
|
|
|
fd8f86a |
- JlsParamaters params = {0};
|
|
|
fd8f86a |
+ JlsParameters params = {0};
|
|
|
fd8f86a |
JpegLsReadHeader(pbyteCompressed, cbyteCompressed, ¶ms);
|
|
|
fd8f86a |
|
|
|
fd8f86a |
std::vector<BYTE> rgbyteCompressed;
|
|
|
fd8f86a |
@@ -216,7 +216,7 @@ bool JPEGLSCodec::Decode(DataElement const &in, DataElement &out)
|
|
|
fd8f86a |
// what if 0xd9 is never found ?
|
|
|
fd8f86a |
assert( totalLen > 0 && pbyteCompressed[totalLen-1] == 0xd9 );
|
|
|
fd8f86a |
|
|
|
fd8f86a |
- JlsParamaters metadata;
|
|
|
fd8f86a |
+ JlsParameters metadata;
|
|
|
fd8f86a |
if (JpegLsReadHeader(mybuffer, totalLen, &metadata) != OK)
|
|
|
fd8f86a |
{
|
|
|
fd8f86a |
return false;
|
|
|
fd8f86a |
@@ -228,7 +228,7 @@ bool JPEGLSCodec::Decode(DataElement const &in, DataElement &out)
|
|
|
fd8f86a |
|
|
|
fd8f86a |
int cbyteCompressed = totalLen;
|
|
|
fd8f86a |
|
|
|
fd8f86a |
- JlsParamaters params = {0};
|
|
|
fd8f86a |
+ JlsParameters params = {0};
|
|
|
fd8f86a |
JpegLsReadHeader(pbyteCompressed, cbyteCompressed, ¶ms);
|
|
|
fd8f86a |
|
|
|
fd8f86a |
std::vector<BYTE> rgbyteCompressed;
|
|
|
fd8f86a |
@@ -293,7 +293,7 @@ bool JPEGLSCodec::Code(DataElement const &in, DataElement &out)
|
|
|
fd8f86a |
{
|
|
|
fd8f86a |
const char *inputdata = input + dim * image_len; //bv->GetPointer();
|
|
|
fd8f86a |
|
|
|
fd8f86a |
- JlsParamaters params = {};
|
|
|
fd8f86a |
+ JlsParameters params = {};
|
|
|
fd8f86a |
/*
|
|
|
fd8f86a |
The fields in JlsCustomParameters do not control lossy/lossless. They
|
|
|
fd8f86a |
provide the possiblity to tune the JPEG-LS internals for better compression
|