* Reverting the CSJ2K Array.Copy -> Buffer.BlockCopy optimization for now since I didn't properly update the length parameter the first time around (LIBOMV-861)
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3415 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
@@ -292,14 +292,14 @@ namespace CSJ2K.j2k.image.invcomptransf
|
||||
switch (ttype)
|
||||
{
|
||||
|
||||
case NONE:
|
||||
Buffer.BlockCopy(utdepth, 0, tdepth, 0, utdepth.Length);
|
||||
case NONE:
|
||||
Array.Copy(utdepth, 0, tdepth, 0, utdepth.Length);
|
||||
break;
|
||||
|
||||
case INV_RCT:
|
||||
if (utdepth.Length > 3)
|
||||
{
|
||||
Buffer.BlockCopy(utdepth, 3, tdepth, 3, utdepth.Length - 3);
|
||||
Array.Copy(utdepth, 3, tdepth, 3, utdepth.Length - 3);
|
||||
}
|
||||
// The formulas are:
|
||||
// tdepth[0] = ceil(log2(2^(utdepth[0])+2^utdepth[1]+
|
||||
@@ -317,7 +317,7 @@ namespace CSJ2K.j2k.image.invcomptransf
|
||||
case INV_ICT:
|
||||
if (utdepth.Length > 3)
|
||||
{
|
||||
Buffer.BlockCopy(utdepth, 3, tdepth, 3, utdepth.Length - 3);
|
||||
Array.Copy(utdepth, 3, tdepth, 3, utdepth.Length - 3);
|
||||
}
|
||||
// The MathUtil.log2(x) function calculates floor(log2(x)), so we
|
||||
// use 'MathUtil.log2(2*x-1)+1', which calculates ceil(log2(x))
|
||||
|
||||
Reference in New Issue
Block a user