decode static method
Implementation
static Uint8List? decode(Uint8List data, {required int width, required int height, Uint8List? globals}) {
try {
final UJbig2Bitmap page = UJbig2Bitmap(width, height);
bool painted = false;
if (globals != null && globals.isNotEmpty) painted = _run(globals, page) || painted;
painted = _run(data, page) || painted;
if (!painted) return null;
return page.toPackedRows();
} on Object {
return null;
}
}