encodeAvif function
Future<Uint8List>
encodeAvif({
- required Uint8List pixels,
- required Uint8List durations,
- 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 Uint8List exifData,
Implementation
Future<Uint8List> encodeAvif({
required Uint8List pixels,
required Uint8List durations,
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 Uint8List exifData,
}) {
final options = Uint32List.fromList([
width,
height,
speed,
maxThreads,
timescale,
maxQuantizer,
minQuantizer,
maxQuantizerAlpha,
minQuantizerAlpha,
]);
return promiseToFuture(_encode(pixels, durations, options, exifData));
}