parent
eecefa3d54
commit
fd8f86a35a
@ -0,0 +1,58 @@
|
||||
diff --git a/Source/MediaStorageAndFileFormat/gdcmJPEGLSCodec.cxx b/Source/MediaStorageAndFileFormat/gdcmJPEGLSCodec.cxx
|
||||
index 4d38bef..48a52ac 100644
|
||||
--- a/Source/MediaStorageAndFileFormat/gdcmJPEGLSCodec.cxx
|
||||
+++ b/Source/MediaStorageAndFileFormat/gdcmJPEGLSCodec.cxx
|
||||
@@ -72,7 +72,7 @@ bool JPEGLSCodec::GetHeaderInfo(std::istream &is, TransferSyntax &ts)
|
||||
is.seekg(0, std::ios::beg);
|
||||
is.read( dummy_buffer, buf_size);
|
||||
|
||||
- JlsParamaters metadata;
|
||||
+ JlsParameters metadata;
|
||||
if (JpegLsReadHeader(dummy_buffer, buf_size, &metadata) != OK)
|
||||
{
|
||||
return false;
|
||||
@@ -160,7 +160,7 @@ bool JPEGLSCodec::Decode(DataElement const &in, DataElement &out)
|
||||
sf->GetBuffer(buffer, totalLen);
|
||||
//is.write(buffer, totalLen);
|
||||
|
||||
- JlsParamaters metadata;
|
||||
+ JlsParameters metadata;
|
||||
if (JpegLsReadHeader(buffer, totalLen, &metadata) != OK)
|
||||
{
|
||||
return false;
|
||||
@@ -172,7 +172,7 @@ bool JPEGLSCodec::Decode(DataElement const &in, DataElement &out)
|
||||
const BYTE* pbyteCompressed = (const BYTE*)buffer;
|
||||
int cbyteCompressed = totalLen;
|
||||
|
||||
- JlsParamaters params = {0};
|
||||
+ JlsParameters params = {0};
|
||||
JpegLsReadHeader(pbyteCompressed, cbyteCompressed, ¶ms);
|
||||
|
||||
std::vector<BYTE> rgbyteCompressed;
|
||||
@@ -216,7 +216,7 @@ bool JPEGLSCodec::Decode(DataElement const &in, DataElement &out)
|
||||
// what if 0xd9 is never found ?
|
||||
assert( totalLen > 0 && pbyteCompressed[totalLen-1] == 0xd9 );
|
||||
|
||||
- JlsParamaters metadata;
|
||||
+ JlsParameters metadata;
|
||||
if (JpegLsReadHeader(mybuffer, totalLen, &metadata) != OK)
|
||||
{
|
||||
return false;
|
||||
@@ -228,7 +228,7 @@ bool JPEGLSCodec::Decode(DataElement const &in, DataElement &out)
|
||||
|
||||
int cbyteCompressed = totalLen;
|
||||
|
||||
- JlsParamaters params = {0};
|
||||
+ JlsParameters params = {0};
|
||||
JpegLsReadHeader(pbyteCompressed, cbyteCompressed, ¶ms);
|
||||
|
||||
std::vector<BYTE> rgbyteCompressed;
|
||||
@@ -293,7 +293,7 @@ bool JPEGLSCodec::Code(DataElement const &in, DataElement &out)
|
||||
{
|
||||
const char *inputdata = input + dim * image_len; //bv->GetPointer();
|
||||
|
||||
- JlsParamaters params = {};
|
||||
+ JlsParameters params = {};
|
||||
/*
|
||||
The fields in JlsCustomParameters do not control lossy/lossless. They
|
||||
provide the possiblity to tune the JPEG-LS internals for better compression
|
@ -0,0 +1,22 @@
|
||||
diff --git a/Source/MediaStorageAndFileFormat/gdcmJPEGLSCodec.cxx b/Source/MediaStorageAndFileFormat/gdcmJPEGLSCodec.cxx
|
||||
index d51832f..4d38bef 100644
|
||||
--- a/Source/MediaStorageAndFileFormat/gdcmJPEGLSCodec.cxx
|
||||
+++ b/Source/MediaStorageAndFileFormat/gdcmJPEGLSCodec.cxx
|
||||
@@ -181,7 +181,7 @@ bool JPEGLSCodec::Decode(DataElement const &in, DataElement &out)
|
||||
std::vector<BYTE> rgbyteOut;
|
||||
rgbyteOut.resize(params.height *params.width * ((params.bitspersample + 7) / 8) * params.components);
|
||||
|
||||
- JLS_ERROR result = JpegLsDecode(&rgbyteOut[0], rgbyteOut.size(), pbyteCompressed, cbyteCompressed);
|
||||
+ JLS_ERROR result = JpegLsDecode(&rgbyteOut[0], rgbyteOut.size(), pbyteCompressed, cbyteCompressed, ¶ms);
|
||||
ASSERT(result == OK);
|
||||
|
||||
delete[] buffer;
|
||||
@@ -237,7 +237,7 @@ bool JPEGLSCodec::Decode(DataElement const &in, DataElement &out)
|
||||
std::vector<BYTE> rgbyteOut;
|
||||
rgbyteOut.resize(params.height *params.width * ((params.bitspersample + 7) / 8) * params.components);
|
||||
|
||||
- JLS_ERROR result = JpegLsDecode(&rgbyteOut[0], rgbyteOut.size(), pbyteCompressed, cbyteCompressed);
|
||||
+ JLS_ERROR result = JpegLsDecode(&rgbyteOut[0], rgbyteOut.size(), pbyteCompressed, cbyteCompressed, ¶ms);
|
||||
ASSERT(result == OK);
|
||||
bool r = true;
|
||||
|
@ -0,0 +1,13 @@
|
||||
diff --git a/Source/MediaStorageAndFileFormat/gdcmJPEGLSCodec.cxx b/Source/MediaStorageAndFileFormat/gdcmJPEGLSCodec.cxx
|
||||
index a44a2b1..d51832f 100644
|
||||
--- a/Source/MediaStorageAndFileFormat/gdcmJPEGLSCodec.cxx
|
||||
+++ b/Source/MediaStorageAndFileFormat/gdcmJPEGLSCodec.cxx
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
// CharLS includes
|
||||
#ifdef GDCM_USE_SYSTEM_EXPAT
|
||||
-#include "CharLS/stdafx.h" // sigh...
|
||||
+//#include "CharLS/stdafx.h" // sigh...
|
||||
#include "CharLS/interface.h"
|
||||
#include "CharLS/util.h"
|
||||
#include "CharLS/defaulttraits.h"
|
Loading…
Reference in new issue