scanFrame method

Future<ScanOutcome> scanFrame(
  1. Uint8List plane,
  2. int width,
  3. int height, {
  4. required int rowStride,
  5. required int rotation,
  6. required bool mirror,
})

Decodes a camera frame: a Y plane with a row stride, rotated upright.

Implementation

Future<ScanOutcome> scanFrame(
  Uint8List plane,
  int width,
  int height, {
  required int rowStride,
  required int rotation,
  required bool mirror,
}) => _scan('scanFrame', plane, width, height, (m) {
  m
    ..setProperty('rowStride'.toJS, rowStride.toJS)
    ..setProperty('rotation'.toJS, rotation.toJS)
    ..setProperty('mirror'.toJS, mirror.toJS);
});