Skip to content

ndk v0.9.0

Latest
Compare
Choose a tag to compare
@MarijnS95 MarijnS95 released this 26 Apr 21:07
· 5 commits to master since this release
49bbbba
  • Move MediaFormat from media::media_codec to its own media::media_format module. (#442)
  • media_format: Expose MediaFormat::copy() and MediaFormat::clear() from API level 29. (#449)
  • Breaking: media_format: Mark all fn set_*() and fn str() as taking self by &mut. (#452)
  • Breaking: Require all dyn Fn* types to implement Send when the FFI implementation invokes them on a separate thread: (#455)
    • audio::AudioStreamDataCallback;
    • audio::AudioStreamErrorCallback;
    • media::image_reader::BufferRemovedListener;
    • media::image_reader::ImageListener;
    • media::media_codec::ErrorCallback;
    • media::media_codec::FormatChangedCallback;
    • media::media_codec::InputAvailableCallback;
    • media::media_codec::OutputAvailableCallback.
  • Drop previous Boxed callbacks after registering new ones, instead of before. (#455)
  • input_queue: Add from_java() constructor, available since API level 33. (#456)
  • event: Add from_java() constructors to KeyEvent and MotionEvent, available since API level 31. (#456)
  • Breaking: image_reader: Special-case return statuses in Image-acquire functions. (#457)
  • Breaking: image_reader: Mark ImageReader::acquire_latest_image_async() unsafe to match the safety requirements on ImageReader::acquire_next_image_async(). (#457)
  • event: Implement SourceClass bitflag and provide Source::class() getter. (#458)
  • Ensure all bitflags implementations consider all (including unknown) bits in negation and all(). (#458)
  • Breaking: Mark all enums as non_exhaustive and fix repr types. (#459)
  • Breaking: native_window: Remove redundant TRANSFORM_ prefix from NativeWindowTransform variants. (#460)
  • Breaking: hardware_buffer: Convert HardwareBufferUsage to bitflags. (#461)
  • bitmap: Guard BitmapCompressError behind missing api-level-30 feature. (#462)
  • native_window: Require linking against libnativewindow for most API >= 26 functions. (#465)
  • Breaking: audio: Merge AudioResult variant enum into AudioError. (#467)
  • data_space: Add missing DataSpaceRange::Unspecified variant. (#468)
  • Breaking: looper: Require Send marker when adding fd event callbacks on ForeignLooper. (#469)
  • Breaking: Upgrade to ndk-sys 0.6.0. (#472)