rust-mobile / ndk

Rust bindings to the Android NDK
Apache License 2.0
1.11k stars 110 forks source link

bitmap: Add `compress()`/`compress_raw()` fns since API 30 #440

Closed MarijnS95 closed 10 months ago

MarijnS95 commented 10 months ago

Map the new compression functions that are available in API level 30, which also take a DataSpace that has recently been added in #438.

Also turn BitmapError into a proper non_exhaustive enum with num_enum's catch_all parser, similar to MediaError.