implemented PBZ archives, PSB images and MV audio.

This commit is contained in:
morkt
2016-06-24 19:06:01 +04:00
parent 554ec7edce
commit 21138f9dcd
6 changed files with 946 additions and 8 deletions

View File

@@ -133,6 +133,13 @@ namespace GameRes.Formats.Purple
int height = (int)m_info.Height;
m_output = new byte[m_stride * height];
int x_blocks = width >> 4;
if (0 != (width & 0xF))
++x_blocks;
int y_blocks = height >> 4;
if (0 != (height & 0xF))
++y_blocks;
int plane_size = width * height;
byte[] plane = new byte[plane_size];
@@ -157,13 +164,6 @@ namespace GameRes.Formats.Purple
m_lzss_frame[i] = 0;
LzssUnpack (bit_src, data_src, plane, channel_size);
int x_blocks = width >> 4;
if (0 != (width & 0xF))
++x_blocks;
int y_blocks = height >> 4;
if (0 != (height & 0xF))
++y_blocks;
if (0 == y_blocks || 0 == x_blocks)
continue;
int plane_src = 0;