diff options
| author | jhurst <jhurst@cinecert.com> | 2013-11-20 00:09:47 +0000 |
|---|---|---|
| committer | jhurst <> | 2013-11-20 00:09:47 +0000 |
| commit | 4dcacd557953d6976a6fd0fd389e3aeb95b38c7f (patch) | |
| tree | ee98910d00ff85eef4dbd150889021976ad4066d /src/j2c-test.cpp | |
| parent | eee42b6d7ce3d0857f96612919a1852e8c45283b (diff) | |
added COD decoding to the JP2K parser, fixed interpreter lock bug in text writer
Diffstat (limited to 'src/j2c-test.cpp')
| -rwxr-xr-x | src/j2c-test.cpp | 33 |
1 files changed, 16 insertions, 17 deletions
diff --git a/src/j2c-test.cpp b/src/j2c-test.cpp index 2221ff0..9f57c99 100755 --- a/src/j2c-test.cpp +++ b/src/j2c-test.cpp @@ -189,25 +189,24 @@ main(int argc, const char** argv) hexdump(MyMarker.m_Data - 2, MyMarker.m_DataSize + 2, stdout); } - switch ( MyMarker.m_Type ) + if ( MyMarker.m_Type == MRK_SOD ) { - case MRK_SOD: p = end_p; - break; - - case MRK_SIZ: - { - Accessor::SIZ SIZ_(MyMarker); - SIZ_.Dump(stdout); - } - break; - - case MRK_COM: - { - Accessor::COM COM_(MyMarker); - COM_.Dump(stdout); - } - break; + } + else if ( MyMarker.m_Type == MRK_SIZ ) + { + Accessor::SIZ SIZ_(MyMarker); + SIZ_.Dump(stdout); + } + else if ( MyMarker.m_Type == MRK_COD ) + { + Accessor::COD COD_(MyMarker); + COD_.Dump(stdout); + } + else if ( MyMarker.m_Type == MRK_COM ) + { + Accessor::COM COM_(MyMarker); + COM_.Dump(stdout); } } } |
