mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
(ImageFormat.ReadPalette): new static methods.
Generalized image palette deserializations.
This commit is contained in:
@@ -425,6 +425,9 @@ namespace GameRes.Formats.Entis
|
||||
throw new InvalidFormatException();
|
||||
DecodeType2Image (context);
|
||||
return;
|
||||
case 4:
|
||||
DecodeType4Image (context);
|
||||
return;
|
||||
case 8:
|
||||
if (nBitCount != 8)
|
||||
throw new InvalidFormatException();
|
||||
@@ -589,6 +592,11 @@ namespace GameRes.Formats.Entis
|
||||
}
|
||||
}
|
||||
|
||||
private void DecodeType4Image (RLEDecodeContext context)
|
||||
{
|
||||
throw new NotImplementedException ("Arithmetic compression not implemented");
|
||||
}
|
||||
|
||||
private void DecodeLossyImage (HuffmanDecodeContext context)
|
||||
{
|
||||
context.FlushBuffer();
|
||||
|
||||
Reference in New Issue
Block a user