descriptor

ui

ImageDescriptor

raw

await

ui

ImmutableBuffer

fromUint8List

correctedImage

),

// Use the corrected image

width:

width

height:

height

pixelFormat:

ui

PixelFormat

bgra8888

// Use the alternate format

);

return

await

await

descriptor

instantiateCodec

())

getNextFrame

())

image

Timeline

Landed in version: 2.9.0-0.0.pre
In stable release: 2.10