summaryrefslogtreecommitdiff
path: root/OPJViewer/source/wxjp2parser.cpp
diff options
context:
space:
mode:
authorGiuseppe Baruffa <gbaruffa@users.noreply.github.com>2007-03-27 12:48:17 +0000
committerGiuseppe Baruffa <gbaruffa@users.noreply.github.com>2007-03-27 12:48:17 +0000
commit3f36196dfdd740417d5dfd7d7d313dd179d4a304 (patch)
tree43642e9862b196e034de375fbd408a0936630e2c /OPJViewer/source/wxjp2parser.cpp
parentf7c9b01800446213919cac9246c9bd66eb3701ad (diff)
Improved parsing in OPJViewer, as well some aesthetic modifications; support for image rendering with bit depths lower than 8 bits; can display an arbitrary frame of an MJ2 file (only in B/W, though); can reload a file; better image resizing capabilities
Diffstat (limited to 'OPJViewer/source/wxjp2parser.cpp')
-rw-r--r--OPJViewer/source/wxjp2parser.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/OPJViewer/source/wxjp2parser.cpp b/OPJViewer/source/wxjp2parser.cpp
index c929418d..46698bda 100644
--- a/OPJViewer/source/wxjp2parser.cpp
+++ b/OPJViewer/source/wxjp2parser.cpp
@@ -484,7 +484,7 @@ int OPJParseThread::box_handler_function(int boxtype, wxFile *fileid, wxFileOffs
);
wxString text;
- for (int s = 0; s < sample_count; s++) {
+ for (unsigned int s = 0; s < sample_count; s++) {
fileid->Read(&entry_size, sizeof(unsigned long int));
entry_size = BYTE_SWAP4(entry_size);
@@ -844,15 +844,15 @@ int OPJParseThread::jpeg2000parse(wxFile *fileid, wxFileOffset filepoint, wxFile
wxTreeItemId parentid, int level, char *scansign, unsigned long int *scanpoint)
{
unsigned long int LBox = 0x00000000;
- int LBox_read;
+ //int LBox_read;
char TBox[5] = "\0\0\0\0";
- int TBox_read;
+ //int TBox_read;
int8byte XLBox = 0x0000000000000000;
- int XLBox_read;
+ //int XLBox_read;
unsigned long int box_length = 0;
int last_box = 0, box_num = 0;
int box_type = ANY_BOX;
- unsigned char onebyte[1], twobytes[2], fourbytes[4];
+ unsigned char /*onebyte[1], twobytes[2],*/ fourbytes[4];
/* cycle all over the file */
box_num = 0;