void MMRDecoder::init(GP<ByteStream> gbs, const bool striped) { rowsperstrip = (striped ? gbs->read16() : height); src = VLSource::create(gbs, striped); mrtable = VLTable::create(mrcodes, 7); btable = VLTable::create(bcodes, 13); wtable = VLTable::create(wcodes, 13); }
static void display_fgbz(ByteStream & out_str, IFFByteStream &iff, GUTF8String, size_t, DjVmInfo&, int) { GP<ByteStream> gbs = iff.get_bytestream(); int version = gbs->read8(); int size = gbs->read16(); out_str.format( "JB2 colors data, v%d, %d colors", version & 0x7f, size); }