decodePixels static method
Decodes packed 32-bit pixel data (BGRA or RGBA) straight from a frame.
Implementation
static List<UCode> decodePixels(Uint8List pixels, int width, int height, {bool bgra = true, int rowStride = 0, UCodeScanOptions options = const UCodeScanOptions()}) =>
decode(UGrayImage.fromPacked(pixels, width, height, bgra: bgra, rowStride: rowStride), options);