decodePixels static method

List<UCode> decodePixels(
  1. Uint8List pixels,
  2. int width,
  3. int height, {
  4. bool bgra = true,
  5. int rowStride = 0,
  6. UCodeScanOptions options = const UCodeScanOptions(),
})

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);