Hi, I was wondering if it's possible to support streaming image data when decoding an Image. At the moment it looks like Image only has methods to decode the image when its data is already all in memory (e.g. ByteArray, Pixmap). This requires consumers to buffer the entire image data into memory before decoding, which isn't ideal for performance.
I'd be nice to support an InputStream-like primitive (can be a custom type) so that users can decode Images without totally reading them into memory first. This would be especially useful for decoding from Files.
It looks Skia already has support for streams that could hopefully be leveraged. Thanks for the great library!
Hi, I was wondering if it's possible to support streaming image data when decoding an
Image
. At the moment it looks likeImage
only has methods to decode the image when its data is already all in memory (e.g.ByteArray
,Pixmap
). This requires consumers to buffer the entire image data into memory before decoding, which isn't ideal for performance.I'd be nice to support an
InputStream
-like primitive (can be a custom type) so that users can decodeImage
s without totally reading them into memory first. This would be especially useful for decoding fromFile
s.It looks Skia already has support for streams that could hopefully be leveraged. Thanks for the great library!