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. required Uint8List exifData,
  12. 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,
    required Uint8List exifData,
    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);
  var arg10 = _platform.api2wire_uint_8_list(exifData);
  return _platform.executeNormal(FlutterRustBridgeTask(
    callFfi: (port_) => _platform.inner.wire_encode_avif(port_, arg0, arg1,
        arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10),
    parseSuccessData: _wire2api_ZeroCopyBuffer_Uint8List,
    parseErrorData: null,
    constMeta: kEncodeAvifConstMeta,
    argValues: [
      width,
      height,
      speed,
      maxThreads,
      timescale,
      maxQuantizer,
      minQuantizer,
      maxQuantizerAlpha,
      minQuantizerAlpha,
      imageSequence,
      exifData
    ],
    hint: hint,
  ));
}