Update to newer version of CSJ2K from github.com/cureos/csj2k with modification

This commit is contained in:
Cinder Biscuits
2017-05-16 19:41:03 -05:00
parent c719ef284c
commit 6fcb14800b
120 changed files with 9067 additions and 7812 deletions

View File

@@ -760,7 +760,7 @@ namespace CSJ2K.j2k.codestream.reader
int tIdx = TileIdx;
if (t != tIdx)
{
throw new System.ApplicationException("Asking the tile-component width of a tile " + "different from the current one.");
throw new System.InvalidOperationException("Asking the tile-component width of a tile " + "different from the current one.");
}
int ntulx;
int dl = mdl[c] - rl;
@@ -795,7 +795,7 @@ namespace CSJ2K.j2k.codestream.reader
int tIdx = TileIdx;
if (t != tIdx)
{
throw new System.ApplicationException("Asking the tile-component width of a tile " + "different from the current one.");
throw new System.InvalidOperationException("Asking the tile-component width of a tile " + "different from the current one.");
}
int ntuly;
int dl = mdl[c] - rl; // Revert level indexation (0 is hi-res)
@@ -1232,7 +1232,7 @@ namespace CSJ2K.j2k.codestream.reader
break;
default:
throw new System.ApplicationException("Internal JJ2000 error");
throw new System.InvalidOperationException("Internal JJ2000 error");
}
if (sb.ulcx - acb0x < 0 || sb.ulcy - acb0y < 0)