summaryrefslogtreecommitdiff
path: root/OPJViewer/source/imagjp2.h
diff options
context:
space:
mode:
authorGiuseppe Baruffa <gbaruffa@users.noreply.github.com>2007-03-01 00:01:37 +0000
committerGiuseppe Baruffa <gbaruffa@users.noreply.github.com>2007-03-01 00:01:37 +0000
commitba423fe3d0b501ae9166e36514c01173b0ce04be (patch)
treeac0cbc5c0fdecfdb38f7908cdab2d04734284ab7 /OPJViewer/source/imagjp2.h
parente2a54d9ac6fe4bff3b54bb9669ffc00996fd18a2 (diff)
Zoom capability and decoder settings dialog in OPJViewer
Diffstat (limited to 'OPJViewer/source/imagjp2.h')
-rw-r--r--OPJViewer/source/imagjp2.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/OPJViewer/source/imagjp2.h b/OPJViewer/source/imagjp2.h
index 1ebad878..b30f111a 100644
--- a/OPJViewer/source/imagjp2.h
+++ b/OPJViewer/source/imagjp2.h
@@ -44,6 +44,7 @@
#if wxUSE_LIBOPENJPEG
#include "wx/image.h"
+#include "libopenjpeg/openjpeg.h"
#define wxBITMAP_TYPE_JP2 48
@@ -56,8 +57,24 @@ public:
m_extension = wxT("jp2");
m_type = wxBITMAP_TYPE_JP2;
m_mime = wxT("image/jp2");
+
+ m_reducefactor = 0;
+ m_qualitylayers = 0;
+ m_components = 0;
+#ifdef USE_JPWL
+ m_enablejpwl = true;
+ m_expcomps = JPWL_EXPECTED_COMPONENTS;
+ m_maxtiles = JPWL_MAXIMUM_TILES;
+#endif // USE_JPWL
}
+ // decoding engine parameters
+ int m_reducefactor, m_qualitylayers, m_components;
+#ifdef USE_JPWL
+ bool m_enablejpwl;
+ int m_expcomps, m_maxtiles;
+#endif // USE_JPWL
+
#if wxUSE_STREAMS
virtual bool LoadFile( wxImage *image, wxInputStream& stream, bool verbose=true, int index=-1 );
virtual bool SaveFile( wxImage *image, wxOutputStream& stream, bool verbose=true );