1. 08 Aug, 2022 35 commits
  2. 21 Jul, 2022 5 commits
    • Modify release date for 2.18.1 and media3:1.0.0-beta02 · 26c8478d
      Also rearranged release notes to correctly show when the changes were released.
      
      #minor-release
      
      PiperOrigin-RevId: 462361982
      rohks committed
    • Ensure pending commands are still sent in MediaController.release() · ee209690
      We currently clear all pending messages, including the one that flushes
      pending commands to the MediaSession. To ensure all commands that have
      been called before controller.release() are still sent, we can manually
      trigger the flush message from the release call.
      
      Related to handling the final flush because disconnecting the controller,
      MediaSessionStub didn't post the removal of the controller to the
      session thread, creating a race condition between removing the controller
      and actually handling the flush.
      
      Issue: androidx/media#99
      PiperOrigin-RevId: 462342860
      tonihei committed
    • Slightly disentangle `MediaBrowser/Controller(Impl)Base/Legacy` · 287c7579
      These constructors are currently very intertwined, passing `this`
      references from the constructor of one to the constructor of another
      before the first constructor is complete (and so the `this` reference
      isn't really valid yet).
      
      This change uses checker framework `@UnderInitialization` and
      `@NotOnlyInitialized` annotations to make it more clear that the
      references are not available yet. For the one 'direct' access needed
      in the second constructor (calling `getApplicationLooper()`) we now
      pass the `applicationLooper` directly alongside (to avoid needing to
      dereference the reference 'too early').
      
      This change also ensures that where a class hierarchy has a
      'dependent' class hierarchy, the 'subclass' instance is always used
      (by both subclass and superclass) without casting or manually hiding
      the superclass field, by defining an overridable `getFoo()` method
      instead and always using it.
      
      #minor-release
      
      PiperOrigin-RevId: 462335043
      ibaker committed
    • HDR: Implement HLG EOTF and OETF. · 2f977eee
      This allows us to use BT.2020 RGB linear for intermediate shaders, which also
      allows us to re-enable PeriodicVignetteProcessor, which should work properly in
      linear color-spaces.
      
      Manually tested by adding a GlEffectsWrapper, and confirming that HLG HDR editing still looks correct.
      
      PiperOrigin-RevId: 462265821
      huangdarwin committed
    • Add ContrastProcessor for contrast adjustments. · 714edc93
      PiperOrigin-RevId: 462232813
      olly committed