decodeAvifData function
DecodedImage
decodeAvifData(
- Uint8List bytes, {
- AvifDecodeOptions? options,
- int maxDecodedBytes = defaultMaxDecodedBytes,
- int maxIccProfileBytes = defaultMaxIccProfileBytes,
Decodes AVIF samples while preserving high-bit-depth input and ICC profiles.
Implementation
DecodedImage decodeAvifData(
Uint8List bytes, {
AvifDecodeOptions? options,
int maxDecodedBytes = defaultMaxDecodedBytes,
int maxIccProfileBytes = defaultMaxIccProfileBytes,
}) => const AvifDecoder().decodeData(
bytes,
decodeOptions: options,
maxDecodedBytes: maxDecodedBytes,
maxIccProfileBytes: maxIccProfileBytes,
);