decodeAvifData function

DecodedImage decodeAvifData(
  1. Uint8List bytes, {
  2. AvifDecodeOptions? options,
  3. int maxDecodedBytes = defaultMaxDecodedBytes,
  4. 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,
);