encodeAvif method

Future<Uint8List> encodeAvif({
  1. required int width,
  2. required int height,
  3. required int speed,
  4. required int maxThreads,
  5. required int timescale,
  6. required int maxQuantizer,
  7. required int minQuantizer,
  8. required int maxQuantizerAlpha,
  9. required int minQuantizerAlpha,
  10. required List<EncodeFrame> imageSequence,
  11. dynamic hint,
})
override

Implementation

Future<Uint8List> encodeAvif(
    {required int width,
    required int height,
    required int speed,
    required int maxThreads,
    required int timescale,
    required int maxQuantizer,
    required int minQuantizer,
    required int maxQuantizerAlpha,
    required int minQuantizerAlpha,
    required List<EncodeFrame> imageSequence,
    dynamic hint}) {
  var arg0 = api2wire_u32(width);
  var arg1 = api2wire_u32(height);
  var arg2 = api2wire_i32(speed);
  var arg3 = api2wire_i32(maxThreads);
  var arg4 = _platform.api2wire_u64(timescale);
  var arg5 = api2wire_i32(maxQuantizer);
  var arg6 = api2wire_i32(minQuantizer);
  var arg7 = api2wire_i32(maxQuantizerAlpha);
  var arg8 = api2wire_i32(minQuantizerAlpha);
  var arg9 = _platform.api2wire_list_encode_frame(imageSequence);
  return _platform.executeNormal(FlutterRustBridgeTask(
    callFfi: (port_) => _platform.inner.wire_encode_avif(
        port_, arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9),
    parseSuccessData: _wire2api_ZeroCopyBuffer_Uint8List,
    constMeta: kEncodeAvifConstMeta,
    argValues: [
      width,
      height,
      speed,
      maxThreads,
      timescale,
      maxQuantizer,
      minQuantizer,
      maxQuantizerAlpha,
      minQuantizerAlpha,
      imageSequence
    ],
    hint: hint,
  ));
}