Skip to content

ndk v0.8.0

Compare
Choose a tag to compare
@MarijnS95 MarijnS95 released this 18 Oct 08:01
· 29 commits to master since this release
f414cab
  • event: Add tool_type getter for Pointer. (#323)
  • input_queue: Allow any non-zero return code from pre_dispatch() again, as per documentation. (#325)
  • asset: Use entire asset length when mapping buffer. (#387)
  • Bump MSRV to 1.66 for raw-window-handle 0.5.1, num_enum's catch_all with arbitrary enum discriminants. (#388, #431)
  • Bump optional jni dependency for doctest example from 0.19 to 0.21. (#390)
  • Breaking: Upgrade to ndk-sys 0.5.0. (#370)
  • Breaking: Upgrade bitflags crate from 1 to 2. (#394)
  • bitmap: Add try_format() to AndroidBitmapInfo to handle unexpected formats without panicking. (#395)
  • Add Font bindings. (#397)
  • Breaking: Upgrade num_enum crate from 0.5.1 to 0.7. (#398, #419)
  • Breaking: Renamed, moved and flattened "media" error types and helpers to a new media_error module. (#399, #432)
  • Breaking: media_codec: Wrap common dequeued-buffer status codes in enum. (#401)
  • Breaking: media_codec: Return MaybeUninit bytes in buffer_mut(). (#403)
  • native_window: Add lock() to blit raw pixel data. (#404)
  • hardware_buffer_format: Add YCbCr_P010 and R8_UNORM variants. (#405)
  • Breaking: hardware_buffer_format: Add catch-all variant. (#407)
  • asset: Add missing is_allocated() and open_file_descriptor() methods. (#409)
  • Breaking: media_codec: Add support for asynchronous notification callbacks. (#410)
  • Add panic guards to callbacks. (#412)
  • looper: Add remove_fd() to unregister events/callbacks for a file descriptor. (#416)
  • Breaking: Use BorrowedFd and OwnedFd to clarify possible ownership transitions. (#417)
  • Breaking: Upgrade to ndk-sys 0.5.0. (#420)
  • Add bindings for sync.h. (#423)
  • Breaking: bitmap: Provide detailed implementation for AndroidBitmapInfoFlags. (#424)
  • native_window: Add set_buffers_transform(), try_allocate_buffers() and set_frame_rate*(). (#425)
  • Add bindings for ASharedMemory. (#427)
  • hardware_buffer: Add id() to retrieve a system-wide unique identifier for a HardwareBuffer. (#428)
  • Breaking: bitmap: Strip Android prefix from structs and enums, and Bitmap from Result. (#430)
  • Breaking: raw-window-handle 0.5 support is now behind an optional rwh_05 crate feature and raw-window-handle 0.4 and 0.6 support is provided via the new rwh_04 and (default-enabled) rwh_06 crate features. (#434)
  • Breaking: looper: Provide event value to file descriptor poll callback. (#435)
  • Breaking: HardwareBufferFormat is no longer exported from hardware_buffer and native_window, and can only be reached through the hardware_buffer_format module. (#436)
  • Breaking: get_ prefixes have been removed from all public functions in light of the C-GETTER convention. (#437)
  • Add DataSpace type and relevant functions on Bitmap and NativeWindow. (#438)
  • bitmap: Add Bitmap::compress() and Bitmap::compress_raw() functions. (#440)
  • Breaking: Turn BitmapError into a non_exhaustive enum. (#440)
  • Breaking: audio: Rename AudioErrorResult to AudioResult and turn into a non_exhaustive enum. (#441)