mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-23 21:55:34 +08:00
(EriReader): added stubs for lossy decompression.
This commit is contained in:
parent
92604f96cc
commit
0892e32a74
@ -285,6 +285,9 @@ namespace GameRes.Formats.Entis
|
|||||||
m_info = info;
|
m_info = info;
|
||||||
if (CvType.Lossless_ERI == m_info.Transformation)
|
if (CvType.Lossless_ERI == m_info.Transformation)
|
||||||
InitializeLossless();
|
InitializeLossless();
|
||||||
|
else if (CvType.LOT_ERI == m_info.Transformation
|
||||||
|
|| CvType.DCT_ERI == m_info.Transformation)
|
||||||
|
InitializeLossy();
|
||||||
else
|
else
|
||||||
throw new NotSupportedException ("Not supported ERI compression");
|
throw new NotSupportedException ("Not supported ERI compression");
|
||||||
if (null != palette)
|
if (null != palette)
|
||||||
@ -379,6 +382,11 @@ namespace GameRes.Formats.Entis
|
|||||||
m_context = new RLEDecodeContext (0x10000);
|
m_context = new RLEDecodeContext (0x10000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void InitializeLossy ()
|
||||||
|
{
|
||||||
|
throw new NotImplementedException ("Lossy ERI compression not implemented");
|
||||||
|
}
|
||||||
|
|
||||||
int[] m_ptrTable;
|
int[] m_ptrTable;
|
||||||
|
|
||||||
void InitializeArrangeTable ()
|
void InitializeArrangeTable ()
|
||||||
@ -459,7 +467,10 @@ namespace GameRes.Formats.Entis
|
|||||||
|
|
||||||
public void DecodeImage ()
|
public void DecodeImage ()
|
||||||
{
|
{
|
||||||
|
if (CvType.Lossless_ERI == m_info.Transformation)
|
||||||
DecodeLosslessImage (m_context as RLEDecodeContext);
|
DecodeLosslessImage (m_context as RLEDecodeContext);
|
||||||
|
else
|
||||||
|
DecodeLossyImage (m_context as HuffmanDecodeContext);
|
||||||
}
|
}
|
||||||
|
|
||||||
private delegate void PtrProcedure ();
|
private delegate void PtrProcedure ();
|
||||||
@ -627,6 +638,11 @@ namespace GameRes.Formats.Entis
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void DecodeLossyImage (HuffmanDecodeContext context)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException ("Lossy ERI compression not implemented");
|
||||||
|
}
|
||||||
|
|
||||||
void PerformOperation (uint dwOpCode, int nAllBlockLines, sbyte[] pNextLineBuf, int iNextLineIdx )
|
void PerformOperation (uint dwOpCode, int nAllBlockLines, sbyte[] pNextLineBuf, int iNextLineIdx )
|
||||||
{
|
{
|
||||||
int i, j, k;
|
int i, j, k;
|
||||||
|
Loading…
Reference in New Issue
Block a user